@mjhls/mjh-framework 1.0.859-segment-targeting-v3 → 1.0.860-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 +16 -19
- package/dist/cjs/AD300x250x600.js +16 -19
- package/dist/cjs/AD728x90.js +17 -20
- package/dist/cjs/ADFloatingFooter.js +18 -21
- package/dist/cjs/ADFooter.js +11 -14
- package/dist/cjs/ADGutter.js +18 -21
- package/dist/cjs/{ADInfeed-7cd00f5d.js → ADInfeed-7c09edba.js} +10 -12
- package/dist/cjs/ADSkyscraper.js +18 -21
- package/dist/cjs/ADSponsoredResources.js +18 -21
- package/dist/cjs/ADWebcast.js +18 -21
- package/dist/cjs/ADWelcome.js +22 -25
- package/dist/cjs/{ADlgInfeed-0c68c2d8.js → ADlgInfeed-2e7effc7.js} +7 -8
- package/dist/cjs/AccordionPanel.js +25 -29
- package/dist/cjs/AdSlot.js +20 -23
- package/dist/cjs/AdSlotsProvider.js +907 -18
- package/dist/cjs/AlgoliaSearch.js +849 -959
- package/dist/cjs/AlphabeticList.js +21 -24
- package/dist/cjs/ArticleCarousel.js +15 -18
- package/dist/cjs/ArticleProgramLandingPage.js +34 -37
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -33
- package/dist/cjs/ArticleSeriesListing.js +46 -49
- package/dist/cjs/Auth.js +1203 -245
- package/dist/cjs/AuthWrapper.js +41 -124
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +5 -7
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +24 -28
- package/dist/cjs/CMEDeck.js +71 -73
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +25 -30
- package/dist/cjs/Column3.js +41 -46
- package/dist/cjs/ConferenceArticleCard.js +20 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +83 -89
- package/dist/cjs/DeckQueue.js +77 -82
- package/dist/cjs/{Dfp-391fd124.js → Dfp-14d2455c.js} +25 -28
- package/dist/cjs/EventsDeck.js +127 -136
- package/dist/cjs/ExternalResources.js +58 -61
- package/dist/cjs/Feature.js +26 -25
- package/dist/cjs/ForbesHero.js +37 -40
- package/dist/cjs/GridContent.js +214 -221
- package/dist/cjs/GridHero.js +38 -41
- package/dist/cjs/GroupDeck.js +52 -55
- package/dist/cjs/HamMagazine.js +121 -128
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +48 -51
- package/dist/cjs/HorizontalHero.js +26 -24
- package/dist/cjs/IssueContentDeck.js +68 -75
- package/dist/cjs/IssueDeck.js +66 -73
- package/dist/cjs/IssueLanding.js +40 -43
- package/dist/cjs/LeftNav.js +27 -31
- package/dist/cjs/MasterDeck.js +60 -63
- package/dist/cjs/MediaSeriesLanding.js +792 -741
- package/dist/cjs/NavDvm.js +68 -75
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +121 -128
- package/dist/cjs/NavNative.js +113 -123
- package/dist/cjs/OncliveHero.js +20 -17
- package/dist/cjs/OncliveLargeHero.js +66 -69
- package/dist/cjs/PageFilter.js +11 -14
- package/dist/cjs/PartnerDetailListing.js +1179 -84
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +16 -20
- package/dist/cjs/PubSection.js +27 -30
- package/dist/cjs/PubToc.js +12 -15
- package/dist/cjs/PublicationDeck.js +62 -64
- package/dist/cjs/PublicationLanding.js +118 -124
- package/dist/cjs/QueueDeckExpanded.js +293 -295
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +25 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +15 -21
- package/dist/cjs/Segment.js +25 -15
- package/dist/cjs/SeriesListingDeck.js +31 -33
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-94af9fcb.js} +34 -35
- package/dist/cjs/SideFooter.js +28 -31
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-650f6101.js} +35 -39
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +58 -61
- package/dist/cjs/TaxonomyDescription.js +33 -36
- package/dist/cjs/TemplateNormal.js +43 -46
- package/dist/cjs/ThumbnailCard.js +20 -19
- package/dist/cjs/Ustream.js +26 -29
- package/dist/cjs/VerticalHero.js +18 -16
- package/dist/cjs/VideoProgramLandingPage.js +51 -57
- package/dist/cjs/VideoSeriesCard.js +26 -27
- package/dist/cjs/VideoSeriesFilter.js +14 -16
- package/dist/cjs/VideoSeriesLandingPage.js +35 -38
- package/dist/cjs/VideoSeriesListing.js +63 -66
- package/dist/cjs/View.js +216 -228
- package/dist/cjs/YahooHero.js +33 -36
- package/dist/cjs/YoutubeGroup.js +54 -57
- package/dist/cjs/{_is-array-754e012d.js → _is-array-aa52fa1e.js} +9 -9
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-05795553.js} +6 -7
- package/dist/cjs/_object-sap-171b9ea5.js +16 -0
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-9bac8737.js} +4 -4
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-df19209d.js} +65 -67
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/{_to-object-329a650b.js → core.get-iterator-method-f3c44602.js} +239 -3
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-21887c62.js} +3 -3
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{extends-0a918631.js → extends-eed4f016.js} +8 -8
- package/dist/cjs/faundadb.js +5 -7
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +135 -73
- package/dist/cjs/getRootDocGroup.js +4 -6
- package/dist/cjs/getSerializers.js +23 -25
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +5 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-efd6512d.js → index-cdcc0b5e.js} +963 -968
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +72 -79
- package/dist/cjs/{inherits-0c7830c5.js → inherits-12d44cca.js} +13 -14
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{keys-a586b7a0.js → keys-d207942e.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-f6d4eaa8.js} +7 -9
- package/dist/cjs/{stringify-7c5aff47.js → stringify-bbc68047.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-c9b8a0d0.js} +8 -10
- package/dist/cjs/{typeof-9d7f610f.js → typeof-5f52cf64.js} +73 -74
- package/dist/cjs/urlFor.js +21 -4
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-e34bf324.js} +8 -9
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +14 -16
- package/dist/esm/AD300x250x600.js +14 -16
- package/dist/esm/AD728x90.js +15 -17
- package/dist/esm/ADFloatingFooter.js +16 -18
- package/dist/esm/ADFooter.js +9 -11
- package/dist/esm/ADGutter.js +16 -18
- package/dist/esm/{ADInfeed-77da0e2a.js → ADInfeed-bfd129d9.js} +8 -8
- package/dist/esm/ADSkyscraper.js +16 -18
- package/dist/esm/ADSponsoredResources.js +16 -18
- package/dist/esm/ADWebcast.js +16 -18
- package/dist/esm/ADWelcome.js +20 -22
- package/dist/esm/{ADlgInfeed-d3e3000f.js → ADlgInfeed-0489335b.js} +5 -5
- package/dist/esm/AccordionPanel.js +20 -22
- package/dist/esm/AdSlot.js +12 -14
- package/dist/esm/AdSlotsProvider.js +906 -16
- package/dist/esm/AlgoliaSearch.js +245 -354
- package/dist/esm/AlphabeticList.js +19 -21
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +32 -34
- package/dist/esm/ArticleSeriesLandingPage.js +28 -30
- package/dist/esm/ArticleSeriesListing.js +43 -45
- package/dist/esm/Auth.js +1187 -225
- package/dist/esm/AuthWrapper.js +39 -121
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-e6f95c2f.js} +11 -11
- package/dist/esm/Beam.js +5 -7
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +14 -16
- package/dist/esm/CMEDeck.js +68 -70
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +23 -25
- package/dist/esm/Column3.js +39 -41
- package/dist/esm/ConferenceArticleCard.js +18 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -81
- package/dist/esm/DeckQueue.js +73 -74
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-f867d061.js} +13 -15
- package/dist/esm/EventsDeck.js +102 -104
- package/dist/esm/ExternalResources.js +53 -55
- package/dist/esm/Feature.js +20 -17
- package/dist/esm/ForbesHero.js +31 -33
- package/dist/esm/GridContent.js +183 -185
- package/dist/esm/GridHero.js +32 -34
- package/dist/esm/GroupDeck.js +40 -42
- package/dist/esm/HamMagazine.js +96 -98
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +46 -48
- package/dist/esm/HorizontalHero.js +24 -21
- package/dist/esm/IssueContentDeck.js +56 -58
- package/dist/esm/IssueDeck.js +60 -62
- package/dist/esm/IssueLanding.js +38 -40
- package/dist/esm/LeftNav.js +23 -25
- package/dist/esm/MasterDeck.js +57 -59
- package/dist/esm/MediaSeriesLanding.js +518 -464
- package/dist/esm/NavDvm.js +51 -53
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +98 -100
- package/dist/esm/NavNative.js +88 -90
- package/dist/esm/OncliveHero.js +18 -14
- package/dist/esm/OncliveLargeHero.js +55 -57
- package/dist/esm/PageFilter.js +9 -11
- package/dist/esm/PartnerDetailListing.js +1178 -83
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +11 -13
- package/dist/esm/PubSection.js +25 -27
- package/dist/esm/PubToc.js +10 -12
- package/dist/esm/PublicationDeck.js +54 -51
- package/dist/esm/PublicationLanding.js +77 -79
- package/dist/esm/QueueDeckExpanded.js +259 -261
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +20 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +10 -12
- package/dist/esm/Segment.js +25 -15
- package/dist/esm/SeriesListingDeck.js +26 -28
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-0371fc11.js} +25 -25
- package/dist/esm/SideFooter.js +25 -27
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-d7dec0c2.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -52
- package/dist/esm/TaxonomyDescription.js +28 -30
- package/dist/esm/TemplateNormal.js +40 -42
- package/dist/esm/ThumbnailCard.js +13 -10
- package/dist/esm/Ustream.js +24 -26
- package/dist/esm/VerticalHero.js +16 -13
- package/dist/esm/VideoProgramLandingPage.js +44 -46
- package/dist/esm/VideoSeriesCard.js +21 -21
- package/dist/esm/VideoSeriesFilter.js +11 -13
- package/dist/esm/VideoSeriesLandingPage.js +28 -30
- package/dist/esm/VideoSeriesListing.js +60 -62
- package/dist/esm/View.js +199 -207
- package/dist/esm/YahooHero.js +28 -30
- package/dist/esm/YoutubeGroup.js +39 -41
- package/dist/esm/{_is-array-58e95429.js → _is-array-4df618a6.js} +1 -1
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-130ee549.js} +1 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-c54dd835.js} +1 -1
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7bf8bc4d.js} +3 -5
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{_to-object-a4107da3.js → core.get-iterator-method-86d4db69.js} +230 -1
- package/dist/esm/{define-property-8af5f002.js → define-property-6d26cb48.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{extends-6f2fcc99.js → extends-5b1796d4.js} +1 -1
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +130 -68
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +23 -25
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +5 -7
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index-23415831.js → index-fe008ffe.js} +914 -909
- 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-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +64 -68
- package/dist/esm/{inherits-75d45541.js → inherits-2409637d.js} +4 -5
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{keys-8eda7a5c.js → keys-69989821.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-67a08c9c.js} +2 -4
- package/dist/esm/{stringify-4330ccdc.js → stringify-70b72959.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-32282905.js} +2 -4
- package/dist/esm/{typeof-af9c50d8.js → typeof-c05a82ba.js} +4 -5
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-f8f967cd.js} +1 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_object-sap-5e74ba08.js +0 -16
- package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +0 -210
- package/dist/esm/core.get-iterator-method-e1de7503.js +0 -36
- package/dist/esm/es6.string.iterator-c990c18c.js +0 -201
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { _ as _export, a as _core } from './
|
|
3
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-
|
|
4
|
-
import { _ as _extends, b as _extends$
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-
|
|
6
|
-
import { _ as _typeof
|
|
7
|
-
import
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
2
|
+
import { _ as _export, a as _core } from './core.get-iterator-method-86d4db69.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
4
|
+
import { _ as _extends$1, b as _extends$2 } from './extends-5b1796d4.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-2409637d.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
|
|
14
15
|
import urlFor from './urlFor.js';
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
16
|
-
import { d as main_16, b as
|
|
16
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
17
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
18
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
28
|
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
30
30
|
import Head from 'next/head';
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as _objectToArray } from './_object-to-array-
|
|
33
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
-
import Figure$
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
33
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
-
import Popover from 'react-bootstrap/Popover';
|
|
36
|
+
import Tooltip$1 from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover$1 from 'react-bootstrap/Popover';
|
|
38
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -69,27 +69,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React__default.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React__default.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React__default.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React__default.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React__default.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -100,18 +100,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
var isArray = Array.isArray;
|
|
104
|
+
var keyList = Object.keys;
|
|
105
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
106
106
|
|
|
107
107
|
var fastDeepEqual = function equal(a, b) {
|
|
108
108
|
if (a === b) return true;
|
|
109
109
|
|
|
110
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
111
|
+
var arrA = isArray(a)
|
|
112
|
+
, arrB = isArray(b)
|
|
113
|
+
, i
|
|
114
|
+
, length
|
|
115
|
+
, key;
|
|
112
116
|
|
|
113
|
-
|
|
114
|
-
if (Array.isArray(a)) {
|
|
117
|
+
if (arrA && arrB) {
|
|
115
118
|
length = a.length;
|
|
116
119
|
if (length != b.length) return false;
|
|
117
120
|
for (i = length; i-- !== 0;)
|
|
@@ -119,29 +122,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
122
|
return true;
|
|
120
123
|
}
|
|
121
124
|
|
|
125
|
+
if (arrA != arrB) return false;
|
|
122
126
|
|
|
127
|
+
var dateA = a instanceof Date
|
|
128
|
+
, dateB = b instanceof Date;
|
|
129
|
+
if (dateA != dateB) return false;
|
|
130
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (
|
|
132
|
+
var regexpA = a instanceof RegExp
|
|
133
|
+
, regexpB = b instanceof RegExp;
|
|
134
|
+
if (regexpA != regexpB) return false;
|
|
135
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
127
136
|
|
|
128
|
-
keys =
|
|
137
|
+
var keys = keyList(a);
|
|
129
138
|
length = keys.length;
|
|
130
|
-
|
|
139
|
+
|
|
140
|
+
if (length !== keyList(b).length)
|
|
141
|
+
return false;
|
|
131
142
|
|
|
132
143
|
for (i = length; i-- !== 0;)
|
|
133
|
-
if (!
|
|
144
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
134
145
|
|
|
135
146
|
for (i = length; i-- !== 0;) {
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
key = keys[i];
|
|
138
148
|
if (!equal(a[key], b[key])) return false;
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
return true;
|
|
142
152
|
}
|
|
143
153
|
|
|
144
|
-
// true if both NaN, false otherwise
|
|
145
154
|
return a!==a && b!==b;
|
|
146
155
|
};
|
|
147
156
|
|
|
@@ -1564,239 +1573,199 @@ module.exports = exports['default'];
|
|
|
1564
1573
|
|
|
1565
1574
|
var youTubePlayer = unwrapExports(dist);
|
|
1566
1575
|
|
|
1567
|
-
function
|
|
1568
|
-
|
|
1569
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1570
|
-
|
|
1571
|
-
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); } }
|
|
1572
|
-
|
|
1573
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1574
|
-
|
|
1575
|
-
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); }
|
|
1576
|
-
|
|
1577
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1578
|
-
|
|
1579
|
-
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); }; }
|
|
1580
|
-
|
|
1581
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1582
|
-
|
|
1583
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1576
|
+
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; }; }();
|
|
1584
1577
|
|
|
1585
|
-
function
|
|
1578
|
+
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; };
|
|
1586
1579
|
|
|
1587
|
-
function
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1588
1581
|
|
|
1589
|
-
function
|
|
1582
|
+
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; }
|
|
1590
1583
|
|
|
1591
|
-
function
|
|
1584
|
+
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; }
|
|
1592
1585
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
* @param {Object}
|
|
1598
|
-
* @param {Object} props
|
|
1586
|
+
/**
|
|
1587
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1588
|
+
*
|
|
1589
|
+
* @param {Object} prevProps
|
|
1590
|
+
* @param {Object} props
|
|
1599
1591
|
*/
|
|
1600
|
-
|
|
1601
1592
|
function shouldUpdateVideo(prevProps, props) {
|
|
1602
1593
|
// A changing video should always trigger an update
|
|
1603
1594
|
if (prevProps.videoId !== props.videoId) {
|
|
1604
1595
|
return true;
|
|
1605
|
-
}
|
|
1606
|
-
// update.
|
|
1607
|
-
|
|
1596
|
+
}
|
|
1608
1597
|
|
|
1598
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
|
+
// update.
|
|
1609
1600
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1610
1601
|
var vars = props.opts.playerVars || {};
|
|
1602
|
+
|
|
1611
1603
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1612
1604
|
}
|
|
1613
|
-
/**
|
|
1614
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1615
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
-
* player reset is necessary.
|
|
1617
|
-
*
|
|
1618
|
-
* @param {Object} opts
|
|
1619
|
-
*/
|
|
1620
|
-
|
|
1621
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1608
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
+
* player reset is necessary.
|
|
1610
|
+
*
|
|
1611
|
+
* @param {Object} opts
|
|
1612
|
+
*/
|
|
1622
1613
|
function filterResetOptions(opts) {
|
|
1623
|
-
return
|
|
1624
|
-
playerVars:
|
|
1614
|
+
return _extends({}, opts, {
|
|
1615
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1625
1616
|
autoplay: 0,
|
|
1626
1617
|
start: 0,
|
|
1627
1618
|
end: 0
|
|
1628
|
-
}
|
|
1619
|
+
})
|
|
1629
1620
|
});
|
|
1630
1621
|
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
-
* those.
|
|
1636
|
-
*
|
|
1637
|
-
* @param {Object} prevProps
|
|
1638
|
-
* @param {Object} props
|
|
1639
|
-
*/
|
|
1640
|
-
|
|
1641
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1625
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1626
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1627
|
+
* those.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Object} prevProps
|
|
1630
|
+
* @param {Object} props
|
|
1631
|
+
*/
|
|
1642
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1643
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1644
1634
|
}
|
|
1645
|
-
/**
|
|
1646
|
-
* Check whether a props change should result in an id or className update.
|
|
1647
|
-
*
|
|
1648
|
-
* @param {Object} prevProps
|
|
1649
|
-
* @param {Object} props
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Check whether a props change should result in an id or className update.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {Object} prevProps
|
|
1640
|
+
* @param {Object} props
|
|
1641
|
+
*/
|
|
1653
1642
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1654
1643
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1655
1644
|
}
|
|
1656
1645
|
|
|
1657
|
-
var YouTube =
|
|
1646
|
+
var YouTube = function (_React$Component) {
|
|
1658
1647
|
_inherits(YouTube, _React$Component);
|
|
1659
1648
|
|
|
1660
|
-
var _super = _createSuper(YouTube);
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1664
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1665
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1666
|
-
*/
|
|
1667
1649
|
function YouTube(props) {
|
|
1668
|
-
var _this;
|
|
1669
|
-
|
|
1670
1650
|
_classCallCheck(this, YouTube);
|
|
1671
1651
|
|
|
1672
|
-
_this =
|
|
1652
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1673
1653
|
|
|
1674
|
-
|
|
1654
|
+
_this.onPlayerReady = function (event) {
|
|
1675
1655
|
return _this.props.onReady(event);
|
|
1676
|
-
}
|
|
1656
|
+
};
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerError = function (event) {
|
|
1679
1659
|
return _this.props.onError(event);
|
|
1680
|
-
}
|
|
1660
|
+
};
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerStateChange = function (event) {
|
|
1683
1663
|
_this.props.onStateChange(event);
|
|
1684
|
-
|
|
1685
1664
|
switch (event.data) {
|
|
1665
|
+
|
|
1686
1666
|
case YouTube.PlayerState.ENDED:
|
|
1687
1667
|
_this.props.onEnd(event);
|
|
1688
|
-
|
|
1689
1668
|
break;
|
|
1690
1669
|
|
|
1691
1670
|
case YouTube.PlayerState.PLAYING:
|
|
1692
1671
|
_this.props.onPlay(event);
|
|
1693
|
-
|
|
1694
1672
|
break;
|
|
1695
1673
|
|
|
1696
1674
|
case YouTube.PlayerState.PAUSED:
|
|
1697
1675
|
_this.props.onPause(event);
|
|
1698
|
-
|
|
1699
1676
|
break;
|
|
1700
1677
|
}
|
|
1701
|
-
}
|
|
1678
|
+
};
|
|
1702
1679
|
|
|
1703
|
-
|
|
1680
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1704
1681
|
return _this.props.onPlaybackRateChange(event);
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1708
1685
|
return _this.props.onPlaybackQualityChange(event);
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.createPlayer = function () {
|
|
1712
1689
|
// do not attempt to create a player server-side, it won't work
|
|
1713
|
-
if (typeof document === 'undefined') return;
|
|
1714
|
-
|
|
1715
|
-
var playerOpts =
|
|
1690
|
+
if (typeof document === 'undefined') return;
|
|
1691
|
+
// create player
|
|
1692
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1716
1693
|
// preload the `videoId` video if one is already given
|
|
1717
1694
|
videoId: _this.props.videoId
|
|
1718
1695
|
});
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1696
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1697
|
+
// attach event handlers
|
|
1722
1698
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
-
|
|
1724
1699
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
-
|
|
1726
1700
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
-
|
|
1728
1701
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
-
|
|
1730
1702
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1731
|
-
}
|
|
1703
|
+
};
|
|
1732
1704
|
|
|
1733
|
-
|
|
1705
|
+
_this.resetPlayer = function () {
|
|
1734
1706
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1735
|
-
}
|
|
1707
|
+
};
|
|
1736
1708
|
|
|
1737
|
-
|
|
1709
|
+
_this.updatePlayer = function () {
|
|
1738
1710
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1739
1711
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1740
1712
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1741
1713
|
});
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
-
return _this.internalPlayer;
|
|
1746
|
-
});
|
|
1714
|
+
};
|
|
1747
1715
|
|
|
1748
|
-
|
|
1716
|
+
_this.updateVideo = function () {
|
|
1749
1717
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1750
1718
|
_this.internalPlayer.stopVideo();
|
|
1751
|
-
|
|
1752
1719
|
return;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1720
|
+
}
|
|
1755
1721
|
|
|
1722
|
+
// set queueing options
|
|
1756
1723
|
var autoplay = false;
|
|
1757
1724
|
var opts = {
|
|
1758
1725
|
videoId: _this.props.videoId
|
|
1759
1726
|
};
|
|
1760
|
-
|
|
1761
1727
|
if ('playerVars' in _this.props.opts) {
|
|
1762
1728
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
-
|
|
1764
1729
|
if ('start' in _this.props.opts.playerVars) {
|
|
1765
1730
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1766
1731
|
}
|
|
1767
|
-
|
|
1768
1732
|
if ('end' in _this.props.opts.playerVars) {
|
|
1769
1733
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1770
1734
|
}
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1735
|
+
}
|
|
1773
1736
|
|
|
1737
|
+
// if autoplay is enabled loadVideoById
|
|
1774
1738
|
if (autoplay) {
|
|
1775
1739
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
-
|
|
1777
1740
|
return;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1741
|
+
}
|
|
1742
|
+
// default behaviour just cues the video
|
|
1781
1743
|
_this.internalPlayer.cueVideoById(opts);
|
|
1782
|
-
}
|
|
1744
|
+
};
|
|
1783
1745
|
|
|
1784
|
-
|
|
1746
|
+
_this.refContainer = function (container) {
|
|
1785
1747
|
_this.container = container;
|
|
1786
|
-
}
|
|
1748
|
+
};
|
|
1787
1749
|
|
|
1788
1750
|
_this.container = null;
|
|
1789
1751
|
_this.internalPlayer = null;
|
|
1790
1752
|
return _this;
|
|
1791
1753
|
}
|
|
1792
1754
|
|
|
1755
|
+
/**
|
|
1756
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
+
*/
|
|
1760
|
+
|
|
1761
|
+
|
|
1793
1762
|
_createClass(YouTube, [{
|
|
1794
|
-
key:
|
|
1763
|
+
key: 'componentDidMount',
|
|
1795
1764
|
value: function componentDidMount() {
|
|
1796
1765
|
this.createPlayer();
|
|
1797
1766
|
}
|
|
1798
1767
|
}, {
|
|
1799
|
-
key:
|
|
1768
|
+
key: 'componentDidUpdate',
|
|
1800
1769
|
value: function componentDidUpdate(prevProps) {
|
|
1801
1770
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1802
1771
|
this.updatePlayer();
|
|
@@ -1811,58 +1780,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1811
1780
|
}
|
|
1812
1781
|
}
|
|
1813
1782
|
}, {
|
|
1814
|
-
key:
|
|
1783
|
+
key: 'componentWillUnmount',
|
|
1815
1784
|
value: function componentWillUnmount() {
|
|
1816
|
-
/**
|
|
1817
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1818
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
-
* this method isn't quick enough to reset the container element.
|
|
1785
|
+
/**
|
|
1786
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1787
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
+
* this method isn't quick enough to reset the container element.
|
|
1821
1790
|
*/
|
|
1822
1791
|
this.internalPlayer.destroy();
|
|
1823
1792
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1796
|
+
*
|
|
1797
|
+
* @param {Object} event
|
|
1798
|
+
* @param {Object} target - player object
|
|
1799
|
+
*/
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Integer} data - error type
|
|
1807
|
+
* @param {Object} target - player object
|
|
1808
|
+
*/
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
+
*
|
|
1814
|
+
* @param {Object} event
|
|
1815
|
+
* @param {Integer} data - status change type
|
|
1816
|
+
* @param {Object} target - actual YT player
|
|
1817
|
+
*/
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
+
*
|
|
1823
|
+
* @param {Object} event
|
|
1824
|
+
* @param {Float} data - playback rate
|
|
1825
|
+
* @param {Object} target - actual YT player
|
|
1826
|
+
*/
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
+
*
|
|
1832
|
+
* @param {Object} event
|
|
1833
|
+
* @param {String} data - playback quality
|
|
1834
|
+
* @param {Object} target - actual YT player
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
+
* React should update this automatically but since the Youtube Player API
|
|
1851
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
+
* Youtube Player API methods to update the video.
|
|
1829
1859
|
*/
|
|
1830
1860
|
|
|
1831
1861
|
}, {
|
|
1832
|
-
key:
|
|
1862
|
+
key: 'render',
|
|
1833
1863
|
value: function render() {
|
|
1834
|
-
return
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
id: this.props.id,
|
|
1838
|
-
|
|
1839
|
-
ref: this.refContainer
|
|
1840
|
-
}));
|
|
1864
|
+
return React__default.createElement(
|
|
1865
|
+
'div',
|
|
1866
|
+
{ className: this.props.containerClassName },
|
|
1867
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1868
|
+
);
|
|
1841
1869
|
}
|
|
1842
1870
|
}]);
|
|
1843
1871
|
|
|
1844
1872
|
return YouTube;
|
|
1845
|
-
}(
|
|
1846
|
-
|
|
1847
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
-
UNSTARTED: -1,
|
|
1849
|
-
ENDED: 0,
|
|
1850
|
-
PLAYING: 1,
|
|
1851
|
-
PAUSED: 2,
|
|
1852
|
-
BUFFERING: 3,
|
|
1853
|
-
CUED: 5
|
|
1854
|
-
});
|
|
1873
|
+
}(React__default.Component);
|
|
1855
1874
|
|
|
1856
1875
|
YouTube.propTypes = {
|
|
1857
1876
|
videoId: PropTypes.string,
|
|
1877
|
+
|
|
1858
1878
|
// custom ID for player element
|
|
1859
1879
|
id: PropTypes.string,
|
|
1880
|
+
|
|
1860
1881
|
// custom class name for player element
|
|
1861
1882
|
className: PropTypes.string,
|
|
1862
1883
|
// custom class name for player container element
|
|
1863
1884
|
containerClassName: PropTypes.string,
|
|
1885
|
+
|
|
1864
1886
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1865
1887
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
+
|
|
1866
1889
|
// event subscriptions
|
|
1867
1890
|
onReady: PropTypes.func,
|
|
1868
1891
|
onError: PropTypes.func,
|
|
@@ -1874,7 +1897,6 @@ YouTube.propTypes = {
|
|
|
1874
1897
|
onPlaybackQualityChange: PropTypes.func
|
|
1875
1898
|
};
|
|
1876
1899
|
YouTube.defaultProps = {
|
|
1877
|
-
videoId: null,
|
|
1878
1900
|
id: null,
|
|
1879
1901
|
className: null,
|
|
1880
1902
|
opts: {},
|
|
@@ -1888,6 +1910,14 @@ YouTube.defaultProps = {
|
|
|
1888
1910
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1889
1911
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1890
1912
|
};
|
|
1913
|
+
YouTube.PlayerState = {
|
|
1914
|
+
UNSTARTED: -1,
|
|
1915
|
+
ENDED: 0,
|
|
1916
|
+
PLAYING: 1,
|
|
1917
|
+
PAUSED: 2,
|
|
1918
|
+
BUFFERING: 3,
|
|
1919
|
+
CUED: 5
|
|
1920
|
+
};
|
|
1891
1921
|
|
|
1892
1922
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1893
1923
|
var url = _ref.url,
|
|
@@ -1989,11 +2019,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1989
2019
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
2020
|
};
|
|
1991
2021
|
|
|
1992
|
-
return
|
|
2022
|
+
return React__default.createElement(
|
|
1993
2023
|
'div',
|
|
1994
2024
|
{ id: 'fluid-video-container' },
|
|
1995
|
-
|
|
1996
|
-
|
|
2025
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2026
|
+
React__default.createElement(
|
|
1997
2027
|
'style',
|
|
1998
2028
|
{ jsx: 'true' },
|
|
1999
2029
|
'\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 '
|
|
@@ -2006,20 +2036,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2006
2036
|
content = _ref.content,
|
|
2007
2037
|
getSerializers = _ref.getSerializers;
|
|
2008
2038
|
|
|
2009
|
-
return
|
|
2039
|
+
return React__default.createElement(
|
|
2010
2040
|
'article',
|
|
2011
2041
|
{ className: 'sidebar' },
|
|
2012
|
-
|
|
2042
|
+
React__default.createElement(
|
|
2013
2043
|
'div',
|
|
2014
2044
|
null,
|
|
2015
|
-
|
|
2045
|
+
React__default.createElement(
|
|
2016
2046
|
'h3',
|
|
2017
2047
|
null,
|
|
2018
2048
|
caption
|
|
2019
2049
|
),
|
|
2020
|
-
|
|
2050
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2021
2051
|
),
|
|
2022
|
-
|
|
2052
|
+
React__default.createElement(
|
|
2023
2053
|
'style',
|
|
2024
2054
|
{ jsx: 'true' },
|
|
2025
2055
|
'\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 '
|
|
@@ -2030,18 +2060,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2030
2060
|
var TableShow = function TableShow(_ref) {
|
|
2031
2061
|
var rows = _ref.rows;
|
|
2032
2062
|
|
|
2033
|
-
return
|
|
2063
|
+
return React__default.createElement(
|
|
2034
2064
|
Table,
|
|
2035
2065
|
{ bordered: true, hover: true, responsive: true },
|
|
2036
|
-
|
|
2066
|
+
React__default.createElement(
|
|
2037
2067
|
'tbody',
|
|
2038
2068
|
null,
|
|
2039
2069
|
rows && rows.map(function (row) {
|
|
2040
|
-
return
|
|
2070
|
+
return React__default.createElement(
|
|
2041
2071
|
'tr',
|
|
2042
2072
|
{ key: row._key },
|
|
2043
2073
|
row.cells && row.cells.map(function (cell, index) {
|
|
2044
|
-
return cell &&
|
|
2074
|
+
return cell && React__default.createElement(
|
|
2045
2075
|
'td',
|
|
2046
2076
|
{ key: index },
|
|
2047
2077
|
cell
|
|
@@ -2053,6 +2083,27 @@ var TableShow = function TableShow(_ref) {
|
|
|
2053
2083
|
);
|
|
2054
2084
|
};
|
|
2055
2085
|
|
|
2086
|
+
var urlForFile = function urlForFile(_ref) {
|
|
2087
|
+
var _ref$asset = _ref.asset,
|
|
2088
|
+
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
2089
|
+
var url = asset.url,
|
|
2090
|
+
originalFilename = asset.originalFilename;
|
|
2091
|
+
|
|
2092
|
+
// Appending file name in URL
|
|
2093
|
+
|
|
2094
|
+
if (url && originalFilename) {
|
|
2095
|
+
var _url$split = url.split('?'),
|
|
2096
|
+
_url$split2 = _slicedToArray(_url$split, 2),
|
|
2097
|
+
path = _url$split2[0],
|
|
2098
|
+
queryString = _url$split2[1];
|
|
2099
|
+
|
|
2100
|
+
originalFilename = encodeURIComponent(originalFilename);
|
|
2101
|
+
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
return url;
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2056
2107
|
var Media = function Media(_ref) {
|
|
2057
2108
|
var node = _ref.node,
|
|
2058
2109
|
client = _ref.client;
|
|
@@ -2139,25 +2190,25 @@ var Media = function Media(_ref) {
|
|
|
2139
2190
|
margin: imageMargin
|
|
2140
2191
|
};
|
|
2141
2192
|
|
|
2142
|
-
return
|
|
2193
|
+
return React__default.createElement(
|
|
2143
2194
|
Figure$1,
|
|
2144
2195
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2145
|
-
|
|
2196
|
+
React__default.createElement(
|
|
2146
2197
|
'a',
|
|
2147
|
-
{ href: uploadDoc.asset
|
|
2148
|
-
|
|
2198
|
+
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2199
|
+
React__default.createElement(
|
|
2149
2200
|
LazyLoad,
|
|
2150
2201
|
{ once: true },
|
|
2151
|
-
|
|
2202
|
+
React__default.createElement(
|
|
2152
2203
|
'picture',
|
|
2153
2204
|
null,
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2205
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2206
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2207
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2208
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2158
2209
|
)
|
|
2159
2210
|
),
|
|
2160
|
-
caption &&
|
|
2211
|
+
caption && React__default.createElement(
|
|
2161
2212
|
Figure$1.Caption,
|
|
2162
2213
|
{ className: 'media-caption' },
|
|
2163
2214
|
caption
|
|
@@ -2165,9 +2216,9 @@ var Media = function Media(_ref) {
|
|
|
2165
2216
|
)
|
|
2166
2217
|
);
|
|
2167
2218
|
} else if (caption && caption !== '') {
|
|
2168
|
-
return
|
|
2219
|
+
return React__default.createElement(
|
|
2169
2220
|
'a',
|
|
2170
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2221
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2171
2222
|
href: uploadDoc.asset.url + '?dl='
|
|
2172
2223
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2173
2224
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2185,10 +2236,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2185
2236
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2186
2237
|
|
|
2187
2238
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2188
|
-
return
|
|
2239
|
+
return React__default.createElement(
|
|
2189
2240
|
'div',
|
|
2190
2241
|
{ className: 'd-block text-center mb-3' },
|
|
2191
|
-
|
|
2242
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2192
2243
|
);
|
|
2193
2244
|
};
|
|
2194
2245
|
|
|
@@ -2283,10 +2334,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2283
2334
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2284
2335
|
};
|
|
2285
2336
|
|
|
2286
|
-
return
|
|
2337
|
+
return React__default.createElement(
|
|
2287
2338
|
'div',
|
|
2288
2339
|
null,
|
|
2289
|
-
vidLoaded &&
|
|
2340
|
+
vidLoaded && React__default.createElement(
|
|
2290
2341
|
'video',
|
|
2291
2342
|
{
|
|
2292
2343
|
poster: thumbnail || '',
|
|
@@ -2304,7 +2355,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2304
2355
|
onPlay: function onPlay(e) {
|
|
2305
2356
|
return handleOnPlay(e);
|
|
2306
2357
|
} },
|
|
2307
|
-
|
|
2358
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2308
2359
|
'Your browser does not support the video tag.'
|
|
2309
2360
|
)
|
|
2310
2361
|
);
|
|
@@ -2341,7 +2392,7 @@ var Video = function Video(_ref) {
|
|
|
2341
2392
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2342
2393
|
//console.log('success:', success.ref)
|
|
2343
2394
|
var player = success.ref;
|
|
2344
|
-
if (_typeof
|
|
2395
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2345
2396
|
player.ima3.settings.debug = true;
|
|
2346
2397
|
if (targeting.content_placement && targeting.document_url) {
|
|
2347
2398
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2439,53 +2490,53 @@ var Video = function Video(_ref) {
|
|
|
2439
2490
|
|
|
2440
2491
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2441
2492
|
if (videoID) {
|
|
2442
|
-
return
|
|
2493
|
+
return React__default.createElement(
|
|
2443
2494
|
'div',
|
|
2444
2495
|
null,
|
|
2445
|
-
|
|
2496
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2446
2497
|
onSuccess: onVideoSuccess,
|
|
2447
2498
|
accountId: accountIDs.brightcove.accountId,
|
|
2448
2499
|
videoId: videoID,
|
|
2449
2500
|
playerId: accountIDs.brightcove.playerId,
|
|
2450
2501
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2451
2502
|
}),
|
|
2452
|
-
|
|
2503
|
+
React__default.createElement(
|
|
2453
2504
|
'style',
|
|
2454
2505
|
{ jsx: 'true' },
|
|
2455
2506
|
'\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 '
|
|
2456
2507
|
)
|
|
2457
2508
|
);
|
|
2458
2509
|
} else if (playlistID) {
|
|
2459
|
-
return
|
|
2510
|
+
return React__default.createElement(
|
|
2460
2511
|
'div',
|
|
2461
2512
|
null,
|
|
2462
|
-
|
|
2513
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2463
2514
|
accountId: accountIDs.brightcove.accountId,
|
|
2464
2515
|
playlistId: playlistID,
|
|
2465
2516
|
playerId: accountIDs.brightcove.playerId,
|
|
2466
2517
|
onSuccess: onVideoSuccess,
|
|
2467
2518
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2468
2519
|
}),
|
|
2469
|
-
|
|
2520
|
+
React__default.createElement(
|
|
2470
2521
|
'style',
|
|
2471
2522
|
{ jsx: 'true' },
|
|
2472
2523
|
'\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 '
|
|
2473
2524
|
)
|
|
2474
2525
|
);
|
|
2475
2526
|
} else if (experienceID) {
|
|
2476
|
-
return
|
|
2527
|
+
return React__default.createElement(
|
|
2477
2528
|
'div',
|
|
2478
2529
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2479
|
-
videoLoaded &&
|
|
2530
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2480
2531
|
);
|
|
2481
2532
|
}
|
|
2482
2533
|
return null;
|
|
2483
2534
|
}
|
|
2484
2535
|
if (source === 'mp4') {
|
|
2485
|
-
return
|
|
2536
|
+
return React__default.createElement(
|
|
2486
2537
|
'div',
|
|
2487
2538
|
null,
|
|
2488
|
-
|
|
2539
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2489
2540
|
);
|
|
2490
2541
|
}
|
|
2491
2542
|
|
|
@@ -2863,17 +2914,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2863
2914
|
|
|
2864
2915
|
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; }
|
|
2865
2916
|
|
|
2866
|
-
function
|
|
2867
|
-
|
|
2868
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2869
|
-
|
|
2870
|
-
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."); }
|
|
2917
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2871
2918
|
|
|
2872
|
-
function
|
|
2919
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2873
2920
|
|
|
2874
|
-
function
|
|
2875
|
-
|
|
2876
|
-
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; }
|
|
2921
|
+
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; }
|
|
2877
2922
|
|
|
2878
2923
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2879
2924
|
|
|
@@ -3003,12 +3048,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3003
3048
|
|
|
3004
3049
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3005
3050
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3006
|
-
|
|
3007
|
-
var
|
|
3008
|
-
|
|
3051
|
+
var _iteratorNormalCompletion = true;
|
|
3052
|
+
var _didIteratorError = false;
|
|
3053
|
+
var _iteratorError = undefined;
|
|
3009
3054
|
|
|
3010
3055
|
try {
|
|
3011
|
-
for (_iterator.
|
|
3056
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3012
3057
|
var p = _step.value;
|
|
3013
3058
|
|
|
3014
3059
|
if (props$1[p]) {
|
|
@@ -3023,9 +3068,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3023
3068
|
}
|
|
3024
3069
|
}
|
|
3025
3070
|
} catch (err) {
|
|
3026
|
-
|
|
3071
|
+
_didIteratorError = true;
|
|
3072
|
+
_iteratorError = err;
|
|
3027
3073
|
} finally {
|
|
3028
|
-
|
|
3074
|
+
try {
|
|
3075
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3076
|
+
_iterator["return"]();
|
|
3077
|
+
}
|
|
3078
|
+
} finally {
|
|
3079
|
+
if (_didIteratorError) {
|
|
3080
|
+
throw _iteratorError;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3029
3083
|
}
|
|
3030
3084
|
|
|
3031
3085
|
return config;
|
|
@@ -3090,7 +3144,7 @@ function isEqual(a, b) {
|
|
|
3090
3144
|
return true;
|
|
3091
3145
|
}
|
|
3092
3146
|
|
|
3093
|
-
if ((0,
|
|
3147
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3094
3148
|
return true;
|
|
3095
3149
|
}
|
|
3096
3150
|
|
|
@@ -3152,7 +3206,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3152
3206
|
});
|
|
3153
3207
|
exports["default"] = void 0;
|
|
3154
3208
|
|
|
3155
|
-
var _react = _interopRequireWildcard(
|
|
3209
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3156
3210
|
|
|
3157
3211
|
|
|
3158
3212
|
|
|
@@ -3172,16 +3226,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3172
3226
|
|
|
3173
3227
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3174
3228
|
|
|
3175
|
-
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); }; }
|
|
3176
|
-
|
|
3177
3229
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3178
3230
|
|
|
3179
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3180
|
-
|
|
3181
|
-
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; } }
|
|
3182
|
-
|
|
3183
3231
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3184
3232
|
|
|
3233
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3234
|
+
|
|
3185
3235
|
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); }
|
|
3186
3236
|
|
|
3187
3237
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3190,12 +3240,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3190
3240
|
|
|
3191
3241
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3192
3242
|
|
|
3193
|
-
var Player =
|
|
3243
|
+
var Player =
|
|
3244
|
+
/*#__PURE__*/
|
|
3245
|
+
function (_Component) {
|
|
3194
3246
|
_inherits(Player, _Component);
|
|
3195
3247
|
|
|
3196
|
-
var _super = _createSuper(Player);
|
|
3197
|
-
|
|
3198
3248
|
function Player() {
|
|
3249
|
+
var _getPrototypeOf2;
|
|
3250
|
+
|
|
3199
3251
|
var _this;
|
|
3200
3252
|
|
|
3201
3253
|
_classCallCheck(this, Player);
|
|
@@ -3204,7 +3256,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3204
3256
|
_args[_key] = arguments[_key];
|
|
3205
3257
|
}
|
|
3206
3258
|
|
|
3207
|
-
_this =
|
|
3259
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3208
3260
|
|
|
3209
3261
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3210
3262
|
|
|
@@ -3529,7 +3581,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3529
3581
|
return null;
|
|
3530
3582
|
}
|
|
3531
3583
|
|
|
3532
|
-
return
|
|
3584
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3533
3585
|
ref: this.ref,
|
|
3534
3586
|
onReady: this.handleReady,
|
|
3535
3587
|
onPlay: this.handlePlay,
|
|
@@ -3562,7 +3614,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3562
3614
|
});
|
|
3563
3615
|
exports["default"] = createSinglePlayer;
|
|
3564
3616
|
|
|
3565
|
-
var _react = _interopRequireWildcard(
|
|
3617
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3566
3618
|
|
|
3567
3619
|
|
|
3568
3620
|
|
|
@@ -3590,16 +3642,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3590
3642
|
|
|
3591
3643
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3592
3644
|
|
|
3593
|
-
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); }; }
|
|
3594
|
-
|
|
3595
3645
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3596
3646
|
|
|
3597
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3598
|
-
|
|
3599
|
-
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; } }
|
|
3600
|
-
|
|
3601
3647
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3602
3648
|
|
|
3649
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3650
|
+
|
|
3603
3651
|
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); }
|
|
3604
3652
|
|
|
3605
3653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3611,12 +3659,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3611
3659
|
function createSinglePlayer(activePlayer) {
|
|
3612
3660
|
var _class, _temp;
|
|
3613
3661
|
|
|
3614
|
-
return _temp = _class =
|
|
3662
|
+
return _temp = _class =
|
|
3663
|
+
/*#__PURE__*/
|
|
3664
|
+
function (_Component) {
|
|
3615
3665
|
_inherits(SinglePlayer, _Component);
|
|
3616
3666
|
|
|
3617
|
-
var _super = _createSuper(SinglePlayer);
|
|
3618
|
-
|
|
3619
3667
|
function SinglePlayer() {
|
|
3668
|
+
var _getPrototypeOf2;
|
|
3669
|
+
|
|
3620
3670
|
var _this;
|
|
3621
3671
|
|
|
3622
3672
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3625,7 +3675,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3625
3675
|
args[_key] = arguments[_key];
|
|
3626
3676
|
}
|
|
3627
3677
|
|
|
3628
|
-
_this =
|
|
3678
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3629
3679
|
|
|
3630
3680
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3631
3681
|
|
|
@@ -3693,12 +3743,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3693
3743
|
height = _this$props.height,
|
|
3694
3744
|
Wrapper = _this$props.wrapper;
|
|
3695
3745
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3696
|
-
return
|
|
3746
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3697
3747
|
style: _objectSpread({}, style, {
|
|
3698
3748
|
width: width,
|
|
3699
3749
|
height: height
|
|
3700
3750
|
})
|
|
3701
|
-
}, otherProps),
|
|
3751
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3702
3752
|
ref: this.ref,
|
|
3703
3753
|
activePlayer: activePlayer,
|
|
3704
3754
|
config: this.config
|
|
@@ -3720,7 +3770,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3720
3770
|
});
|
|
3721
3771
|
exports["default"] = exports.YouTube = void 0;
|
|
3722
3772
|
|
|
3723
|
-
var _react = _interopRequireWildcard(
|
|
3773
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3724
3774
|
|
|
3725
3775
|
|
|
3726
3776
|
|
|
@@ -3744,31 +3794,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3744
3794
|
|
|
3745
3795
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3746
3796
|
|
|
3747
|
-
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); }; }
|
|
3748
|
-
|
|
3749
3797
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3750
3798
|
|
|
3751
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3752
|
-
|
|
3753
|
-
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; } }
|
|
3754
|
-
|
|
3755
3799
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3756
3800
|
|
|
3801
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3802
|
+
|
|
3757
3803
|
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); }
|
|
3758
3804
|
|
|
3759
3805
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3760
3806
|
|
|
3761
3807
|
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; }
|
|
3762
3808
|
|
|
3763
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3809
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3764
3810
|
|
|
3765
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3811
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3766
3812
|
|
|
3767
|
-
function
|
|
3768
|
-
|
|
3769
|
-
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; }
|
|
3770
|
-
|
|
3771
|
-
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; }
|
|
3813
|
+
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; }
|
|
3772
3814
|
|
|
3773
3815
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3774
3816
|
|
|
@@ -3793,12 +3835,14 @@ function parsePlaylist(url) {
|
|
|
3793
3835
|
return {};
|
|
3794
3836
|
}
|
|
3795
3837
|
|
|
3796
|
-
var YouTube =
|
|
3838
|
+
var YouTube =
|
|
3839
|
+
/*#__PURE__*/
|
|
3840
|
+
function (_Component) {
|
|
3797
3841
|
_inherits(YouTube, _Component);
|
|
3798
3842
|
|
|
3799
|
-
var _super = _createSuper(YouTube);
|
|
3800
|
-
|
|
3801
3843
|
function YouTube() {
|
|
3844
|
+
var _getPrototypeOf2;
|
|
3845
|
+
|
|
3802
3846
|
var _this;
|
|
3803
3847
|
|
|
3804
3848
|
_classCallCheck(this, YouTube);
|
|
@@ -3807,7 +3851,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3807
3851
|
args[_key] = arguments[_key];
|
|
3808
3852
|
}
|
|
3809
3853
|
|
|
3810
|
-
_this =
|
|
3854
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3811
3855
|
|
|
3812
3856
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3813
3857
|
|
|
@@ -3995,9 +4039,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3995
4039
|
height: '100%',
|
|
3996
4040
|
display: display
|
|
3997
4041
|
};
|
|
3998
|
-
return
|
|
4042
|
+
return _react["default"].createElement("div", {
|
|
3999
4043
|
style: style
|
|
4000
|
-
},
|
|
4044
|
+
}, _react["default"].createElement("div", {
|
|
4001
4045
|
ref: this.ref
|
|
4002
4046
|
}));
|
|
4003
4047
|
}
|
|
@@ -4029,7 +4073,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4029
4073
|
});
|
|
4030
4074
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4031
4075
|
|
|
4032
|
-
var _react = _interopRequireWildcard(
|
|
4076
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4033
4077
|
|
|
4034
4078
|
|
|
4035
4079
|
|
|
@@ -4053,16 +4097,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4053
4097
|
|
|
4054
4098
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4055
4099
|
|
|
4056
|
-
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); }; }
|
|
4057
|
-
|
|
4058
4100
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4059
4101
|
|
|
4060
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4061
|
-
|
|
4062
|
-
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; } }
|
|
4063
|
-
|
|
4064
4102
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4065
4103
|
|
|
4104
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4105
|
+
|
|
4066
4106
|
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); }
|
|
4067
4107
|
|
|
4068
4108
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4071,14 +4111,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4071
4111
|
|
|
4072
4112
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4073
4113
|
var SDK_GLOBAL = 'SC';
|
|
4074
|
-
var MATCH_URL = /(
|
|
4114
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4075
4115
|
|
|
4076
|
-
var SoundCloud =
|
|
4116
|
+
var SoundCloud =
|
|
4117
|
+
/*#__PURE__*/
|
|
4118
|
+
function (_Component) {
|
|
4077
4119
|
_inherits(SoundCloud, _Component);
|
|
4078
4120
|
|
|
4079
|
-
var _super = _createSuper(SoundCloud);
|
|
4080
|
-
|
|
4081
4121
|
function SoundCloud() {
|
|
4122
|
+
var _getPrototypeOf2;
|
|
4123
|
+
|
|
4082
4124
|
var _this;
|
|
4083
4125
|
|
|
4084
4126
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4087,7 +4129,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4087
4129
|
args[_key] = arguments[_key];
|
|
4088
4130
|
}
|
|
4089
4131
|
|
|
4090
|
-
_this =
|
|
4132
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4091
4133
|
|
|
4092
4134
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4093
4135
|
|
|
@@ -4208,7 +4250,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4208
4250
|
height: '100%',
|
|
4209
4251
|
display: display
|
|
4210
4252
|
};
|
|
4211
|
-
return
|
|
4253
|
+
return _react["default"].createElement("iframe", {
|
|
4212
4254
|
ref: this.ref,
|
|
4213
4255
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4214
4256
|
style: style,
|
|
@@ -4246,7 +4288,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4246
4288
|
});
|
|
4247
4289
|
exports["default"] = exports.Vimeo = void 0;
|
|
4248
4290
|
|
|
4249
|
-
var _react = _interopRequireWildcard(
|
|
4291
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4250
4292
|
|
|
4251
4293
|
|
|
4252
4294
|
|
|
@@ -4270,16 +4312,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4270
4312
|
|
|
4271
4313
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4272
4314
|
|
|
4273
|
-
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); }; }
|
|
4274
|
-
|
|
4275
4315
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4276
4316
|
|
|
4277
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4278
|
-
|
|
4279
|
-
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; } }
|
|
4280
|
-
|
|
4281
4317
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4282
4318
|
|
|
4319
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4320
|
+
|
|
4283
4321
|
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); }
|
|
4284
4322
|
|
|
4285
4323
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4291,12 +4329,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4291
4329
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4292
4330
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4293
4331
|
|
|
4294
|
-
var Vimeo =
|
|
4332
|
+
var Vimeo =
|
|
4333
|
+
/*#__PURE__*/
|
|
4334
|
+
function (_Component) {
|
|
4295
4335
|
_inherits(Vimeo, _Component);
|
|
4296
4336
|
|
|
4297
|
-
var _super = _createSuper(Vimeo);
|
|
4298
|
-
|
|
4299
4337
|
function Vimeo() {
|
|
4338
|
+
var _getPrototypeOf2;
|
|
4339
|
+
|
|
4300
4340
|
var _this;
|
|
4301
4341
|
|
|
4302
4342
|
_classCallCheck(this, Vimeo);
|
|
@@ -4305,7 +4345,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4305
4345
|
args[_key] = arguments[_key];
|
|
4306
4346
|
}
|
|
4307
4347
|
|
|
4308
|
-
_this =
|
|
4348
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4309
4349
|
|
|
4310
4350
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4311
4351
|
|
|
@@ -4462,7 +4502,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4462
4502
|
overflow: 'hidden',
|
|
4463
4503
|
display: display
|
|
4464
4504
|
};
|
|
4465
|
-
return
|
|
4505
|
+
return _react["default"].createElement("div", {
|
|
4466
4506
|
key: this.props.url,
|
|
4467
4507
|
ref: this.ref,
|
|
4468
4508
|
style: style
|
|
@@ -4502,7 +4542,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4502
4542
|
});
|
|
4503
4543
|
exports["default"] = exports.Facebook = void 0;
|
|
4504
4544
|
|
|
4505
|
-
var _react = _interopRequireWildcard(
|
|
4545
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4506
4546
|
|
|
4507
4547
|
|
|
4508
4548
|
|
|
@@ -4522,16 +4562,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4522
4562
|
|
|
4523
4563
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4524
4564
|
|
|
4525
|
-
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); }; }
|
|
4526
|
-
|
|
4527
4565
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4528
4566
|
|
|
4529
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4530
|
-
|
|
4531
|
-
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; } }
|
|
4532
|
-
|
|
4533
4567
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4534
4568
|
|
|
4569
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4570
|
+
|
|
4535
4571
|
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); }
|
|
4536
4572
|
|
|
4537
4573
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4544,12 +4580,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4544
4580
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4545
4581
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4546
4582
|
|
|
4547
|
-
var Facebook =
|
|
4583
|
+
var Facebook =
|
|
4584
|
+
/*#__PURE__*/
|
|
4585
|
+
function (_Component) {
|
|
4548
4586
|
_inherits(Facebook, _Component);
|
|
4549
4587
|
|
|
4550
|
-
var _super = _createSuper(Facebook);
|
|
4551
|
-
|
|
4552
4588
|
function Facebook() {
|
|
4589
|
+
var _getPrototypeOf2;
|
|
4590
|
+
|
|
4553
4591
|
var _this;
|
|
4554
4592
|
|
|
4555
4593
|
_classCallCheck(this, Facebook);
|
|
@@ -4558,7 +4596,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4558
4596
|
args[_key] = arguments[_key];
|
|
4559
4597
|
}
|
|
4560
4598
|
|
|
4561
|
-
_this =
|
|
4599
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4562
4600
|
|
|
4563
4601
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4564
4602
|
|
|
@@ -4674,7 +4712,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4674
4712
|
width: '100%',
|
|
4675
4713
|
height: '100%'
|
|
4676
4714
|
};
|
|
4677
|
-
return
|
|
4715
|
+
return _react["default"].createElement("div", {
|
|
4678
4716
|
style: style,
|
|
4679
4717
|
id: this.playerID,
|
|
4680
4718
|
className: "fb-video",
|
|
@@ -4714,7 +4752,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4714
4752
|
});
|
|
4715
4753
|
exports["default"] = exports.Streamable = void 0;
|
|
4716
4754
|
|
|
4717
|
-
var _react = _interopRequireWildcard(
|
|
4755
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4718
4756
|
|
|
4719
4757
|
|
|
4720
4758
|
|
|
@@ -4734,16 +4772,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4734
4772
|
|
|
4735
4773
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4736
4774
|
|
|
4737
|
-
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); }; }
|
|
4738
|
-
|
|
4739
4775
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4740
4776
|
|
|
4741
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4742
|
-
|
|
4743
|
-
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; } }
|
|
4744
|
-
|
|
4745
4777
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4746
4778
|
|
|
4779
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4780
|
+
|
|
4747
4781
|
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); }
|
|
4748
4782
|
|
|
4749
4783
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4754,12 +4788,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4754
4788
|
var SDK_GLOBAL = 'playerjs';
|
|
4755
4789
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4756
4790
|
|
|
4757
|
-
var Streamable =
|
|
4791
|
+
var Streamable =
|
|
4792
|
+
/*#__PURE__*/
|
|
4793
|
+
function (_Component) {
|
|
4758
4794
|
_inherits(Streamable, _Component);
|
|
4759
4795
|
|
|
4760
|
-
var _super = _createSuper(Streamable);
|
|
4761
|
-
|
|
4762
4796
|
function Streamable() {
|
|
4797
|
+
var _getPrototypeOf2;
|
|
4798
|
+
|
|
4763
4799
|
var _this;
|
|
4764
4800
|
|
|
4765
4801
|
_classCallCheck(this, Streamable);
|
|
@@ -4768,7 +4804,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4768
4804
|
args[_key] = arguments[_key];
|
|
4769
4805
|
}
|
|
4770
4806
|
|
|
4771
|
-
_this =
|
|
4807
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4772
4808
|
|
|
4773
4809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4774
4810
|
|
|
@@ -4888,7 +4924,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4888
4924
|
width: '100%',
|
|
4889
4925
|
height: '100%'
|
|
4890
4926
|
};
|
|
4891
|
-
return
|
|
4927
|
+
return _react["default"].createElement("iframe", {
|
|
4892
4928
|
ref: this.ref,
|
|
4893
4929
|
src: "https://streamable.com/o/".concat(id),
|
|
4894
4930
|
frameBorder: "0",
|
|
@@ -4925,7 +4961,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4925
4961
|
});
|
|
4926
4962
|
exports["default"] = exports.Wistia = void 0;
|
|
4927
4963
|
|
|
4928
|
-
var _react = _interopRequireWildcard(
|
|
4964
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4929
4965
|
|
|
4930
4966
|
|
|
4931
4967
|
|
|
@@ -4949,16 +4985,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4949
4985
|
|
|
4950
4986
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4951
4987
|
|
|
4952
|
-
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); }; }
|
|
4953
|
-
|
|
4954
4988
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4955
4989
|
|
|
4956
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4957
|
-
|
|
4958
|
-
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; } }
|
|
4959
|
-
|
|
4960
4990
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4961
4991
|
|
|
4992
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4993
|
+
|
|
4962
4994
|
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); }
|
|
4963
4995
|
|
|
4964
4996
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4969,48 +5001,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4969
5001
|
var SDK_GLOBAL = 'Wistia';
|
|
4970
5002
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4971
5003
|
|
|
4972
|
-
var Wistia =
|
|
5004
|
+
var Wistia =
|
|
5005
|
+
/*#__PURE__*/
|
|
5006
|
+
function (_Component) {
|
|
4973
5007
|
_inherits(Wistia, _Component);
|
|
4974
5008
|
|
|
4975
|
-
var _super = _createSuper(Wistia);
|
|
4976
|
-
|
|
4977
5009
|
function Wistia() {
|
|
5010
|
+
var _getPrototypeOf2;
|
|
5011
|
+
|
|
4978
5012
|
var _this;
|
|
4979
5013
|
|
|
4980
5014
|
_classCallCheck(this, Wistia);
|
|
4981
5015
|
|
|
4982
|
-
for (var _len = arguments.length,
|
|
4983
|
-
|
|
5016
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5017
|
+
args[_key] = arguments[_key];
|
|
4984
5018
|
}
|
|
4985
5019
|
|
|
4986
|
-
_this =
|
|
5020
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4987
5021
|
|
|
4988
5022
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4989
5023
|
|
|
4990
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4991
|
-
var _this$props;
|
|
4992
|
-
|
|
4993
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4994
|
-
});
|
|
4995
|
-
|
|
4996
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4997
|
-
var _this$props2;
|
|
4998
|
-
|
|
4999
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5000
|
-
});
|
|
5001
|
-
|
|
5002
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5003
|
-
var _this$props3;
|
|
5004
|
-
|
|
5005
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5006
|
-
});
|
|
5007
|
-
|
|
5008
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5009
|
-
var _this$props4;
|
|
5010
|
-
|
|
5011
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5012
|
-
});
|
|
5013
|
-
|
|
5014
5024
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5015
5025
|
_this.callPlayer('mute');
|
|
5016
5026
|
});
|
|
@@ -5032,13 +5042,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5032
5042
|
value: function load(url) {
|
|
5033
5043
|
var _this2 = this;
|
|
5034
5044
|
|
|
5035
|
-
var _this$
|
|
5036
|
-
playing = _this$
|
|
5037
|
-
muted = _this$
|
|
5038
|
-
controls = _this$
|
|
5039
|
-
_onReady = _this$
|
|
5040
|
-
|
|
5041
|
-
|
|
5045
|
+
var _this$props = this.props,
|
|
5046
|
+
playing = _this$props.playing,
|
|
5047
|
+
muted = _this$props.muted,
|
|
5048
|
+
controls = _this$props.controls,
|
|
5049
|
+
_onReady = _this$props.onReady,
|
|
5050
|
+
onPlay = _this$props.onPlay,
|
|
5051
|
+
onPause = _this$props.onPause,
|
|
5052
|
+
onSeek = _this$props.onSeek,
|
|
5053
|
+
onEnded = _this$props.onEnded,
|
|
5054
|
+
config = _this$props.config,
|
|
5055
|
+
onError = _this$props.onError;
|
|
5042
5056
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5043
5057
|
window._wq = window._wq || [];
|
|
5044
5058
|
|
|
@@ -5055,28 +5069,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5055
5069
|
|
|
5056
5070
|
_this2.unbind();
|
|
5057
5071
|
|
|
5058
|
-
_this2.player.bind('play',
|
|
5072
|
+
_this2.player.bind('play', onPlay);
|
|
5059
5073
|
|
|
5060
|
-
_this2.player.bind('pause',
|
|
5074
|
+
_this2.player.bind('pause', onPause);
|
|
5061
5075
|
|
|
5062
|
-
_this2.player.bind('seek',
|
|
5076
|
+
_this2.player.bind('seek', onSeek);
|
|
5063
5077
|
|
|
5064
|
-
_this2.player.bind('end',
|
|
5078
|
+
_this2.player.bind('end', onEnded);
|
|
5065
5079
|
|
|
5066
5080
|
_onReady();
|
|
5067
5081
|
}
|
|
5068
5082
|
});
|
|
5069
5083
|
}, onError);
|
|
5070
5084
|
}
|
|
5071
|
-
}, {
|
|
5072
|
-
key: "unbind",
|
|
5073
|
-
value: function unbind() {
|
|
5074
|
-
this.player.unbind('play', this.onPlay);
|
|
5075
|
-
this.player.unbind('pause', this.onPause);
|
|
5076
|
-
this.player.unbind('seek', this.onSeek);
|
|
5077
|
-
this.player.unbind('end', this.onEnded);
|
|
5078
|
-
} // Proxy methods to prevent listener leaks
|
|
5079
|
-
|
|
5080
5085
|
}, {
|
|
5081
5086
|
key: "play",
|
|
5082
5087
|
value: function play() {
|
|
@@ -5087,6 +5092,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5087
5092
|
value: function pause() {
|
|
5088
5093
|
this.callPlayer('pause');
|
|
5089
5094
|
}
|
|
5095
|
+
}, {
|
|
5096
|
+
key: "unbind",
|
|
5097
|
+
value: function unbind() {
|
|
5098
|
+
var _this$props2 = this.props,
|
|
5099
|
+
onPlay = _this$props2.onPlay,
|
|
5100
|
+
onPause = _this$props2.onPause,
|
|
5101
|
+
onSeek = _this$props2.onSeek,
|
|
5102
|
+
onEnded = _this$props2.onEnded;
|
|
5103
|
+
this.player.unbind('play', onPlay);
|
|
5104
|
+
this.player.unbind('pause', onPause);
|
|
5105
|
+
this.player.unbind('seek', onSeek);
|
|
5106
|
+
this.player.unbind('end', onEnded);
|
|
5107
|
+
}
|
|
5090
5108
|
}, {
|
|
5091
5109
|
key: "stop",
|
|
5092
5110
|
value: function stop() {
|
|
@@ -5132,7 +5150,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5132
5150
|
width: '100%',
|
|
5133
5151
|
height: '100%'
|
|
5134
5152
|
};
|
|
5135
|
-
return
|
|
5153
|
+
return _react["default"].createElement("div", {
|
|
5136
5154
|
key: id,
|
|
5137
5155
|
className: className,
|
|
5138
5156
|
style: style
|
|
@@ -5168,7 +5186,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5168
5186
|
});
|
|
5169
5187
|
exports["default"] = exports.Twitch = void 0;
|
|
5170
5188
|
|
|
5171
|
-
var _react = _interopRequireWildcard(
|
|
5189
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5172
5190
|
|
|
5173
5191
|
|
|
5174
5192
|
|
|
@@ -5192,16 +5210,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5192
5210
|
|
|
5193
5211
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5194
5212
|
|
|
5195
|
-
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); }; }
|
|
5196
|
-
|
|
5197
5213
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5198
5214
|
|
|
5199
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5200
|
-
|
|
5201
|
-
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; } }
|
|
5202
|
-
|
|
5203
5215
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5204
5216
|
|
|
5217
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5218
|
+
|
|
5205
5219
|
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); }
|
|
5206
5220
|
|
|
5207
5221
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5214,12 +5228,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5214
5228
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5215
5229
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5216
5230
|
|
|
5217
|
-
var Twitch =
|
|
5231
|
+
var Twitch =
|
|
5232
|
+
/*#__PURE__*/
|
|
5233
|
+
function (_Component) {
|
|
5218
5234
|
_inherits(Twitch, _Component);
|
|
5219
5235
|
|
|
5220
|
-
var _super = _createSuper(Twitch);
|
|
5221
|
-
|
|
5222
5236
|
function Twitch() {
|
|
5237
|
+
var _getPrototypeOf2;
|
|
5238
|
+
|
|
5223
5239
|
var _this;
|
|
5224
5240
|
|
|
5225
5241
|
_classCallCheck(this, Twitch);
|
|
@@ -5228,7 +5244,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5228
5244
|
args[_key] = arguments[_key];
|
|
5229
5245
|
}
|
|
5230
5246
|
|
|
5231
|
-
_this =
|
|
5247
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5232
5248
|
|
|
5233
5249
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5234
5250
|
|
|
@@ -5349,7 +5365,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5349
5365
|
width: '100%',
|
|
5350
5366
|
height: '100%'
|
|
5351
5367
|
};
|
|
5352
|
-
return
|
|
5368
|
+
return _react["default"].createElement("div", {
|
|
5353
5369
|
style: style,
|
|
5354
5370
|
id: this.playerID
|
|
5355
5371
|
});
|
|
@@ -5384,7 +5400,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5384
5400
|
});
|
|
5385
5401
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5386
5402
|
|
|
5387
|
-
var _react = _interopRequireWildcard(
|
|
5403
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5388
5404
|
|
|
5389
5405
|
|
|
5390
5406
|
|
|
@@ -5402,15 +5418,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5402
5418
|
|
|
5403
5419
|
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; }
|
|
5404
5420
|
|
|
5405
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5421
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5406
5422
|
|
|
5407
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5423
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5408
5424
|
|
|
5409
|
-
function
|
|
5410
|
-
|
|
5411
|
-
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; }
|
|
5412
|
-
|
|
5413
|
-
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; }
|
|
5425
|
+
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; }
|
|
5414
5426
|
|
|
5415
5427
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5416
5428
|
|
|
@@ -5420,16 +5432,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5420
5432
|
|
|
5421
5433
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5422
5434
|
|
|
5423
|
-
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); }; }
|
|
5424
|
-
|
|
5425
5435
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5426
5436
|
|
|
5427
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5428
|
-
|
|
5429
|
-
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; } }
|
|
5430
|
-
|
|
5431
5437
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5432
5438
|
|
|
5439
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5440
|
+
|
|
5433
5441
|
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); }
|
|
5434
5442
|
|
|
5435
5443
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5441,12 +5449,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5441
5449
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5442
5450
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5443
5451
|
|
|
5444
|
-
var DailyMotion =
|
|
5452
|
+
var DailyMotion =
|
|
5453
|
+
/*#__PURE__*/
|
|
5454
|
+
function (_Component) {
|
|
5445
5455
|
_inherits(DailyMotion, _Component);
|
|
5446
5456
|
|
|
5447
|
-
var _super = _createSuper(DailyMotion);
|
|
5448
|
-
|
|
5449
5457
|
function DailyMotion() {
|
|
5458
|
+
var _getPrototypeOf2;
|
|
5459
|
+
|
|
5450
5460
|
var _this;
|
|
5451
5461
|
|
|
5452
5462
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5455,7 +5465,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5455
5465
|
args[_key] = arguments[_key];
|
|
5456
5466
|
}
|
|
5457
5467
|
|
|
5458
|
-
_this =
|
|
5468
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5459
5469
|
|
|
5460
5470
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5461
5471
|
|
|
@@ -5584,9 +5594,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5584
5594
|
height: '100%',
|
|
5585
5595
|
display: display
|
|
5586
5596
|
};
|
|
5587
|
-
return
|
|
5597
|
+
return _react["default"].createElement("div", {
|
|
5588
5598
|
style: style
|
|
5589
|
-
},
|
|
5599
|
+
}, _react["default"].createElement("div", {
|
|
5590
5600
|
ref: this.ref
|
|
5591
5601
|
}));
|
|
5592
5602
|
}
|
|
@@ -5620,7 +5630,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5620
5630
|
});
|
|
5621
5631
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5622
5632
|
|
|
5623
|
-
var _react = _interopRequireWildcard(
|
|
5633
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5624
5634
|
|
|
5625
5635
|
|
|
5626
5636
|
|
|
@@ -5644,16 +5654,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5644
5654
|
|
|
5645
5655
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5646
5656
|
|
|
5647
|
-
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); }; }
|
|
5648
|
-
|
|
5649
5657
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5650
5658
|
|
|
5651
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5652
|
-
|
|
5653
|
-
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; } }
|
|
5654
|
-
|
|
5655
5659
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5656
5660
|
|
|
5661
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5662
|
+
|
|
5657
5663
|
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); }
|
|
5658
5664
|
|
|
5659
5665
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5664,12 +5670,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5664
5670
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5665
5671
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5666
5672
|
|
|
5667
|
-
var Mixcloud =
|
|
5673
|
+
var Mixcloud =
|
|
5674
|
+
/*#__PURE__*/
|
|
5675
|
+
function (_Component) {
|
|
5668
5676
|
_inherits(Mixcloud, _Component);
|
|
5669
5677
|
|
|
5670
|
-
var _super = _createSuper(Mixcloud);
|
|
5671
|
-
|
|
5672
5678
|
function Mixcloud() {
|
|
5679
|
+
var _getPrototypeOf2;
|
|
5680
|
+
|
|
5673
5681
|
var _this;
|
|
5674
5682
|
|
|
5675
5683
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5678,7 +5686,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5678
5686
|
args[_key] = arguments[_key];
|
|
5679
5687
|
}
|
|
5680
5688
|
|
|
5681
|
-
_this =
|
|
5689
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5682
5690
|
|
|
5683
5691
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5684
5692
|
|
|
@@ -5781,7 +5789,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5781
5789
|
})); // We have to give the iframe a key here to prevent a
|
|
5782
5790
|
// weird dialog appearing when loading a new track
|
|
5783
5791
|
|
|
5784
|
-
return
|
|
5792
|
+
return _react["default"].createElement("iframe", {
|
|
5785
5793
|
key: id,
|
|
5786
5794
|
ref: this.ref,
|
|
5787
5795
|
style: style,
|
|
@@ -5819,7 +5827,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5819
5827
|
});
|
|
5820
5828
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5821
5829
|
|
|
5822
|
-
var _react = _interopRequireWildcard(
|
|
5830
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5823
5831
|
|
|
5824
5832
|
|
|
5825
5833
|
|
|
@@ -5841,33 +5849,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5841
5849
|
|
|
5842
5850
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5843
5851
|
|
|
5844
|
-
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); }; }
|
|
5845
|
-
|
|
5846
5852
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5847
5853
|
|
|
5848
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5849
|
-
|
|
5850
|
-
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; } }
|
|
5851
|
-
|
|
5852
5854
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5853
5855
|
|
|
5856
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5857
|
+
|
|
5854
5858
|
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); }
|
|
5855
5859
|
|
|
5856
5860
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5857
5861
|
|
|
5858
5862
|
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; }
|
|
5859
5863
|
|
|
5860
|
-
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; } } }; }
|
|
5861
|
-
|
|
5862
|
-
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); }
|
|
5863
|
-
|
|
5864
|
-
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; }
|
|
5865
|
-
|
|
5866
5864
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5867
5865
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5868
5866
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5869
5867
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5870
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5868
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5871
5869
|
var HLS_GLOBAL = 'Hls';
|
|
5872
5870
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5873
5871
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5876,11 +5874,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5876
5874
|
|
|
5877
5875
|
function canPlay(url) {
|
|
5878
5876
|
if (url instanceof Array) {
|
|
5879
|
-
var
|
|
5880
|
-
|
|
5877
|
+
var _iteratorNormalCompletion = true;
|
|
5878
|
+
var _didIteratorError = false;
|
|
5879
|
+
var _iteratorError = undefined;
|
|
5881
5880
|
|
|
5882
5881
|
try {
|
|
5883
|
-
for (_iterator.
|
|
5882
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5884
5883
|
var item = _step.value;
|
|
5885
5884
|
|
|
5886
5885
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5892,9 +5891,18 @@ function canPlay(url) {
|
|
|
5892
5891
|
}
|
|
5893
5892
|
}
|
|
5894
5893
|
} catch (err) {
|
|
5895
|
-
|
|
5894
|
+
_didIteratorError = true;
|
|
5895
|
+
_iteratorError = err;
|
|
5896
5896
|
} finally {
|
|
5897
|
-
|
|
5897
|
+
try {
|
|
5898
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5899
|
+
_iterator["return"]();
|
|
5900
|
+
}
|
|
5901
|
+
} finally {
|
|
5902
|
+
if (_didIteratorError) {
|
|
5903
|
+
throw _iteratorError;
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5898
5906
|
}
|
|
5899
5907
|
|
|
5900
5908
|
return false;
|
|
@@ -5918,12 +5926,14 @@ function canEnablePIP(url) {
|
|
|
5918
5926
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5919
5927
|
}
|
|
5920
5928
|
|
|
5921
|
-
var FilePlayer =
|
|
5929
|
+
var FilePlayer =
|
|
5930
|
+
/*#__PURE__*/
|
|
5931
|
+
function (_Component) {
|
|
5922
5932
|
_inherits(FilePlayer, _Component);
|
|
5923
5933
|
|
|
5924
|
-
var _super = _createSuper(FilePlayer);
|
|
5925
|
-
|
|
5926
5934
|
function FilePlayer() {
|
|
5935
|
+
var _getPrototypeOf2;
|
|
5936
|
+
|
|
5927
5937
|
var _this;
|
|
5928
5938
|
|
|
5929
5939
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5932,7 +5942,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5932
5942
|
_args[_key] = arguments[_key];
|
|
5933
5943
|
}
|
|
5934
5944
|
|
|
5935
|
-
_this =
|
|
5945
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5936
5946
|
|
|
5937
5947
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5938
5948
|
var _this$props;
|
|
@@ -6019,19 +6029,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6019
6029
|
|
|
6020
6030
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6021
6031
|
if (typeof source === 'string') {
|
|
6022
|
-
return
|
|
6032
|
+
return _react["default"].createElement("source", {
|
|
6023
6033
|
key: index,
|
|
6024
6034
|
src: source
|
|
6025
6035
|
});
|
|
6026
6036
|
}
|
|
6027
6037
|
|
|
6028
|
-
return
|
|
6038
|
+
return _react["default"].createElement("source", _extends({
|
|
6029
6039
|
key: index
|
|
6030
6040
|
}, source));
|
|
6031
6041
|
});
|
|
6032
6042
|
|
|
6033
6043
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6034
|
-
return
|
|
6044
|
+
return _react["default"].createElement("track", _extends({
|
|
6035
6045
|
key: index
|
|
6036
6046
|
}, track));
|
|
6037
6047
|
});
|
|
@@ -6069,10 +6079,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6069
6079
|
key: "componentWillUnmount",
|
|
6070
6080
|
value: function componentWillUnmount() {
|
|
6071
6081
|
this.removeListeners(this.player);
|
|
6072
|
-
|
|
6073
|
-
if (this.hls) {
|
|
6074
|
-
this.hls.destroy();
|
|
6075
|
-
}
|
|
6076
6082
|
}
|
|
6077
6083
|
}, {
|
|
6078
6084
|
key: "addListeners",
|
|
@@ -6203,6 +6209,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6203
6209
|
value: function stop() {
|
|
6204
6210
|
this.player.removeAttribute('src');
|
|
6205
6211
|
|
|
6212
|
+
if (this.hls) {
|
|
6213
|
+
this.hls.destroy();
|
|
6214
|
+
}
|
|
6215
|
+
|
|
6206
6216
|
if (this.dash) {
|
|
6207
6217
|
this.dash.reset();
|
|
6208
6218
|
}
|
|
@@ -6314,7 +6324,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6314
6324
|
width: width === 'auto' ? width : '100%',
|
|
6315
6325
|
height: height === 'auto' ? height : '100%'
|
|
6316
6326
|
};
|
|
6317
|
-
return
|
|
6327
|
+
return _react["default"].createElement(Element, _extends({
|
|
6318
6328
|
ref: this.ref,
|
|
6319
6329
|
src: this.getSource(url),
|
|
6320
6330
|
style: style,
|
|
@@ -6386,7 +6396,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6386
6396
|
});
|
|
6387
6397
|
exports["default"] = void 0;
|
|
6388
6398
|
|
|
6389
|
-
var _react = _interopRequireWildcard(
|
|
6399
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6390
6400
|
|
|
6391
6401
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6392
6402
|
|
|
@@ -6404,16 +6414,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6404
6414
|
|
|
6405
6415
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6406
6416
|
|
|
6407
|
-
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); }; }
|
|
6408
|
-
|
|
6409
6417
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6410
6418
|
|
|
6411
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6412
|
-
|
|
6413
|
-
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; } }
|
|
6414
|
-
|
|
6415
6419
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6416
6420
|
|
|
6421
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6422
|
+
|
|
6417
6423
|
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); }
|
|
6418
6424
|
|
|
6419
6425
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6422,12 +6428,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6422
6428
|
|
|
6423
6429
|
var ICON_SIZE = '64px';
|
|
6424
6430
|
|
|
6425
|
-
var Preview =
|
|
6431
|
+
var Preview =
|
|
6432
|
+
/*#__PURE__*/
|
|
6433
|
+
function (_Component) {
|
|
6426
6434
|
_inherits(Preview, _Component);
|
|
6427
6435
|
|
|
6428
|
-
var _super = _createSuper(Preview);
|
|
6429
|
-
|
|
6430
6436
|
function Preview() {
|
|
6437
|
+
var _getPrototypeOf2;
|
|
6438
|
+
|
|
6431
6439
|
var _this;
|
|
6432
6440
|
|
|
6433
6441
|
_classCallCheck(this, Preview);
|
|
@@ -6436,7 +6444,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6436
6444
|
args[_key] = arguments[_key];
|
|
6437
6445
|
}
|
|
6438
6446
|
|
|
6439
|
-
_this =
|
|
6447
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6440
6448
|
|
|
6441
6449
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6442
6450
|
|
|
@@ -6534,15 +6542,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6534
6542
|
}
|
|
6535
6543
|
};
|
|
6536
6544
|
|
|
6537
|
-
var defaultPlayIcon =
|
|
6545
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6538
6546
|
style: styles.shadow,
|
|
6539
6547
|
className: "react-player__shadow"
|
|
6540
|
-
},
|
|
6548
|
+
}, _react["default"].createElement("div", {
|
|
6541
6549
|
style: styles.playIcon,
|
|
6542
6550
|
className: "react-player__play-icon"
|
|
6543
6551
|
}));
|
|
6544
6552
|
|
|
6545
|
-
return
|
|
6553
|
+
return _react["default"].createElement("div", {
|
|
6546
6554
|
style: styles.preview,
|
|
6547
6555
|
className: "react-player__preview",
|
|
6548
6556
|
onClick: onClick
|
|
@@ -6565,7 +6573,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6565
6573
|
});
|
|
6566
6574
|
exports["default"] = renderPreloadPlayers;
|
|
6567
6575
|
|
|
6568
|
-
var _react = _interopRequireDefault(
|
|
6576
|
+
var _react = _interopRequireDefault(React__default);
|
|
6569
6577
|
|
|
6570
6578
|
var _Player = _interopRequireDefault(Player_1);
|
|
6571
6579
|
|
|
@@ -6579,12 +6587,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6579
6587
|
|
|
6580
6588
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6581
6589
|
|
|
6582
|
-
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; } } }; }
|
|
6583
|
-
|
|
6584
|
-
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); }
|
|
6585
|
-
|
|
6586
|
-
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; }
|
|
6587
|
-
|
|
6588
6590
|
var PRELOAD_PLAYERS = [{
|
|
6589
6591
|
Player: YouTube_1.YouTube,
|
|
6590
6592
|
configKey: 'youtube',
|
|
@@ -6605,16 +6607,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6605
6607
|
|
|
6606
6608
|
function renderPreloadPlayers(url, controls, config) {
|
|
6607
6609
|
var players = [];
|
|
6608
|
-
|
|
6609
|
-
var
|
|
6610
|
-
|
|
6610
|
+
var _iteratorNormalCompletion = true;
|
|
6611
|
+
var _didIteratorError = false;
|
|
6612
|
+
var _iteratorError = undefined;
|
|
6611
6613
|
|
|
6612
6614
|
try {
|
|
6613
|
-
for (_iterator.
|
|
6615
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6614
6616
|
var player = _step.value;
|
|
6615
6617
|
|
|
6616
6618
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6617
|
-
players.push(
|
|
6619
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6618
6620
|
key: player.Player.displayName,
|
|
6619
6621
|
activePlayer: player.Player,
|
|
6620
6622
|
url: player.url,
|
|
@@ -6626,9 +6628,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6626
6628
|
}
|
|
6627
6629
|
}
|
|
6628
6630
|
} catch (err) {
|
|
6629
|
-
|
|
6631
|
+
_didIteratorError = true;
|
|
6632
|
+
_iteratorError = err;
|
|
6630
6633
|
} finally {
|
|
6631
|
-
|
|
6634
|
+
try {
|
|
6635
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6636
|
+
_iterator["return"]();
|
|
6637
|
+
}
|
|
6638
|
+
} finally {
|
|
6639
|
+
if (_didIteratorError) {
|
|
6640
|
+
throw _iteratorError;
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6632
6643
|
}
|
|
6633
6644
|
|
|
6634
6645
|
return players;
|
|
@@ -6704,7 +6715,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6704
6715
|
});
|
|
6705
6716
|
exports["default"] = void 0;
|
|
6706
6717
|
|
|
6707
|
-
var _react = _interopRequireWildcard(
|
|
6718
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6708
6719
|
|
|
6709
6720
|
|
|
6710
6721
|
|
|
@@ -6752,17 +6763,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6752
6763
|
|
|
6753
6764
|
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); }
|
|
6754
6765
|
|
|
6755
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6756
|
-
|
|
6757
|
-
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."); }
|
|
6758
|
-
|
|
6759
|
-
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); }
|
|
6766
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6760
6767
|
|
|
6761
|
-
function
|
|
6768
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6762
6769
|
|
|
6763
|
-
function
|
|
6770
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6764
6771
|
|
|
6765
|
-
function
|
|
6772
|
+
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; } }
|
|
6766
6773
|
|
|
6767
6774
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6768
6775
|
|
|
@@ -6770,16 +6777,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6770
6777
|
|
|
6771
6778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6772
6779
|
|
|
6773
|
-
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); }; }
|
|
6774
|
-
|
|
6775
6780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6776
6781
|
|
|
6777
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6778
|
-
|
|
6779
|
-
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; } }
|
|
6780
|
-
|
|
6781
6782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6782
6783
|
|
|
6784
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6785
|
+
|
|
6783
6786
|
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); }
|
|
6784
6787
|
|
|
6785
6788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6789,12 +6792,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6789
6792
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6790
6793
|
var customPlayers = [];
|
|
6791
6794
|
|
|
6792
|
-
var ReactPlayer =
|
|
6795
|
+
var ReactPlayer =
|
|
6796
|
+
/*#__PURE__*/
|
|
6797
|
+
function (_Component) {
|
|
6793
6798
|
_inherits(ReactPlayer, _Component);
|
|
6794
6799
|
|
|
6795
|
-
var _super = _createSuper(ReactPlayer);
|
|
6796
|
-
|
|
6797
6800
|
function ReactPlayer() {
|
|
6801
|
+
var _getPrototypeOf2;
|
|
6802
|
+
|
|
6798
6803
|
var _this;
|
|
6799
6804
|
|
|
6800
6805
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6803,7 +6808,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6803
6808
|
args[_key] = arguments[_key];
|
|
6804
6809
|
}
|
|
6805
6810
|
|
|
6806
|
-
_this =
|
|
6811
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6807
6812
|
|
|
6808
6813
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6809
6814
|
|
|
@@ -6914,7 +6919,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6914
6919
|
key: "renderActivePlayer",
|
|
6915
6920
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6916
6921
|
if (!url) return null;
|
|
6917
|
-
return
|
|
6922
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6918
6923
|
key: activePlayer.displayName,
|
|
6919
6924
|
ref: this.activePlayerRef,
|
|
6920
6925
|
config: this.config,
|
|
@@ -6951,14 +6956,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6951
6956
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6952
6957
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6953
6958
|
|
|
6954
|
-
var preview =
|
|
6959
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6955
6960
|
url: url,
|
|
6956
6961
|
light: light,
|
|
6957
6962
|
playIcon: playIcon,
|
|
6958
6963
|
onClick: this.handleClickPreview
|
|
6959
6964
|
});
|
|
6960
6965
|
|
|
6961
|
-
return
|
|
6966
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6962
6967
|
ref: this.wrapperRef,
|
|
6963
6968
|
style: _objectSpread({}, style, {
|
|
6964
6969
|
width: width,
|
|
@@ -7018,20 +7023,20 @@ var Audio = function Audio(_ref) {
|
|
|
7018
7023
|
var node = _ref.node;
|
|
7019
7024
|
|
|
7020
7025
|
if (node.uploadAudio) {
|
|
7021
|
-
return
|
|
7026
|
+
return React__default.createElement(
|
|
7022
7027
|
'div',
|
|
7023
7028
|
{ className: 'audio d-block text-center mb-3' },
|
|
7024
|
-
|
|
7029
|
+
React__default.createElement(
|
|
7025
7030
|
'audio',
|
|
7026
7031
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7027
|
-
|
|
7028
|
-
|
|
7032
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7033
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7029
7034
|
'Your browser does not support the audio element.'
|
|
7030
7035
|
),
|
|
7031
|
-
node.caption &&
|
|
7036
|
+
node.caption && React__default.createElement(
|
|
7032
7037
|
'p',
|
|
7033
7038
|
{ style: { fontSize: '.9rem' } },
|
|
7034
|
-
|
|
7039
|
+
React__default.createElement(
|
|
7035
7040
|
'em',
|
|
7036
7041
|
null,
|
|
7037
7042
|
node.caption
|
|
@@ -7041,15 +7046,15 @@ var Audio = function Audio(_ref) {
|
|
|
7041
7046
|
} else if (node.audioFilePth) {
|
|
7042
7047
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7043
7048
|
if (hostname === 'embeds.audioboom.com') {
|
|
7044
|
-
return
|
|
7049
|
+
return React__default.createElement(
|
|
7045
7050
|
'div',
|
|
7046
7051
|
null,
|
|
7047
|
-
|
|
7052
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7048
7053
|
' ',
|
|
7049
|
-
node.caption &&
|
|
7054
|
+
node.caption && React__default.createElement(
|
|
7050
7055
|
'p',
|
|
7051
7056
|
{ style: { fontSize: '.9rem' } },
|
|
7052
|
-
|
|
7057
|
+
React__default.createElement(
|
|
7053
7058
|
'em',
|
|
7054
7059
|
null,
|
|
7055
7060
|
node.caption
|
|
@@ -7057,14 +7062,14 @@ var Audio = function Audio(_ref) {
|
|
|
7057
7062
|
)
|
|
7058
7063
|
);
|
|
7059
7064
|
}
|
|
7060
|
-
return
|
|
7065
|
+
return React__default.createElement(
|
|
7061
7066
|
'div',
|
|
7062
7067
|
{ className: 'audio' },
|
|
7063
|
-
|
|
7064
|
-
node.caption &&
|
|
7068
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7069
|
+
node.caption && React__default.createElement(
|
|
7065
7070
|
'p',
|
|
7066
7071
|
{ style: { fontSize: '.9rem' } },
|
|
7067
|
-
|
|
7072
|
+
React__default.createElement(
|
|
7068
7073
|
'em',
|
|
7069
7074
|
null,
|
|
7070
7075
|
node.caption
|
|
@@ -7082,34 +7087,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7082
7087
|
var profileImage = arguments[6];
|
|
7083
7088
|
|
|
7084
7089
|
if (authorName && authorURL) {
|
|
7085
|
-
return
|
|
7090
|
+
return React__default.createElement(
|
|
7086
7091
|
'span',
|
|
7087
7092
|
null,
|
|
7088
|
-
|
|
7093
|
+
React__default.createElement(
|
|
7089
7094
|
'a',
|
|
7090
7095
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7091
7096
|
authorName
|
|
7092
7097
|
),
|
|
7093
|
-
|
|
7098
|
+
React__default.createElement(
|
|
7094
7099
|
Card,
|
|
7095
7100
|
{ className: 'author-details-card-' + index },
|
|
7096
|
-
|
|
7101
|
+
React__default.createElement(
|
|
7097
7102
|
Row,
|
|
7098
7103
|
null,
|
|
7099
|
-
profileImage &&
|
|
7104
|
+
profileImage && React__default.createElement(
|
|
7100
7105
|
Col,
|
|
7101
7106
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7102
|
-
|
|
7107
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7103
7108
|
),
|
|
7104
|
-
|
|
7109
|
+
React__default.createElement(
|
|
7105
7110
|
Col,
|
|
7106
7111
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7107
|
-
|
|
7112
|
+
React__default.createElement(
|
|
7108
7113
|
'div',
|
|
7109
7114
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7110
7115
|
authorName
|
|
7111
7116
|
),
|
|
7112
|
-
|
|
7117
|
+
React__default.createElement(
|
|
7113
7118
|
'p',
|
|
7114
7119
|
null,
|
|
7115
7120
|
biography
|
|
@@ -7117,7 +7122,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7117
7122
|
)
|
|
7118
7123
|
)
|
|
7119
7124
|
),
|
|
7120
|
-
|
|
7125
|
+
React__default.createElement(
|
|
7121
7126
|
'style',
|
|
7122
7127
|
{ jsx: 'true' },
|
|
7123
7128
|
'\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 '
|
|
@@ -7125,7 +7130,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7125
7130
|
length !== index + 1 && ' , '
|
|
7126
7131
|
);
|
|
7127
7132
|
} else if (authorName) {
|
|
7128
|
-
return
|
|
7133
|
+
return React__default.createElement(
|
|
7129
7134
|
'span',
|
|
7130
7135
|
{ key: index },
|
|
7131
7136
|
authorName,
|
|
@@ -7397,44 +7402,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7397
7402
|
}
|
|
7398
7403
|
};
|
|
7399
7404
|
|
|
7400
|
-
return
|
|
7405
|
+
return React__default.createElement(
|
|
7401
7406
|
'div',
|
|
7402
7407
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7403
|
-
|
|
7408
|
+
React__default.createElement(
|
|
7404
7409
|
'div',
|
|
7405
7410
|
{ className: 'mt-2 mb-5' },
|
|
7406
|
-
series &&
|
|
7411
|
+
series && React__default.createElement(
|
|
7407
7412
|
'div',
|
|
7408
7413
|
{ style: { fontSize: '0.9rem' } },
|
|
7409
7414
|
article.title,
|
|
7410
7415
|
' - Episode ',
|
|
7411
7416
|
series
|
|
7412
7417
|
),
|
|
7413
|
-
Videos[series - 1] &&
|
|
7418
|
+
Videos[series - 1] && React__default.createElement(
|
|
7414
7419
|
'h1',
|
|
7415
7420
|
{ className: 'mb-3' },
|
|
7416
7421
|
Videos[series - 1].title
|
|
7417
7422
|
),
|
|
7418
|
-
|
|
7423
|
+
React__default.createElement(
|
|
7419
7424
|
'div',
|
|
7420
7425
|
null,
|
|
7421
7426
|
moment(article.published).format('LL')
|
|
7422
7427
|
),
|
|
7423
|
-
|
|
7428
|
+
React__default.createElement(
|
|
7424
7429
|
'div',
|
|
7425
7430
|
{ className: 'mb-3' },
|
|
7426
7431
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7427
|
-
return
|
|
7432
|
+
return React__default.createElement(
|
|
7428
7433
|
'span',
|
|
7429
7434
|
{ key: index },
|
|
7430
7435
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7431
7436
|
);
|
|
7432
7437
|
})
|
|
7433
7438
|
),
|
|
7434
|
-
|
|
7439
|
+
React__default.createElement(
|
|
7435
7440
|
'p',
|
|
7436
7441
|
null,
|
|
7437
|
-
|
|
7442
|
+
React__default.createElement(SocialShare, {
|
|
7438
7443
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7439
7444
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7440
7445
|
shareVia: meta.shareVia,
|
|
@@ -7449,20 +7454,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7449
7454
|
hideFacebook: meta.hideFBShare
|
|
7450
7455
|
})
|
|
7451
7456
|
),
|
|
7452
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7457
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7453
7458
|
'p',
|
|
7454
7459
|
{ className: 'mb-3' },
|
|
7455
|
-
|
|
7460
|
+
React__default.createElement(
|
|
7456
7461
|
'em',
|
|
7457
7462
|
null,
|
|
7458
7463
|
Videos[series - 1].intro
|
|
7459
7464
|
)
|
|
7460
7465
|
)
|
|
7461
7466
|
),
|
|
7462
|
-
|
|
7467
|
+
React__default.createElement(
|
|
7463
7468
|
'div',
|
|
7464
7469
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7465
|
-
vidUrl && vidType == 'youtube' &&
|
|
7470
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7466
7471
|
className: 'fluid-iframe',
|
|
7467
7472
|
videoId: getYoutubeId(vidUrl),
|
|
7468
7473
|
opts: opts,
|
|
@@ -7473,10 +7478,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7473
7478
|
return handleOnEnd(e);
|
|
7474
7479
|
}
|
|
7475
7480
|
}),
|
|
7476
|
-
vidUrl && vidType == 'mp4' &&
|
|
7477
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7478
|
-
|
|
7479
|
-
series &&
|
|
7481
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7482
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7483
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7484
|
+
series && React__default.createElement(
|
|
7480
7485
|
'div',
|
|
7481
7486
|
{
|
|
7482
7487
|
className: 'vid-series',
|
|
@@ -7486,10 +7491,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
7491
|
maxHeight: '100%',
|
|
7487
7492
|
paddingBottom: '0'
|
|
7488
7493
|
} },
|
|
7489
|
-
|
|
7494
|
+
React__default.createElement(
|
|
7490
7495
|
'p',
|
|
7491
7496
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7492
|
-
|
|
7497
|
+
React__default.createElement(
|
|
7493
7498
|
'b',
|
|
7494
7499
|
{ style: { fontSize: '1.25em' } },
|
|
7495
7500
|
'Now Playing:'
|
|
@@ -7497,16 +7502,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7502
|
' ',
|
|
7498
7503
|
seriesData[series ? series - 1 : 0].title
|
|
7499
7504
|
),
|
|
7500
|
-
vidUrl &&
|
|
7505
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7501
7506
|
)
|
|
7502
7507
|
),
|
|
7503
|
-
|
|
7504
|
-
|
|
7508
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7509
|
+
React__default.createElement(
|
|
7505
7510
|
'div',
|
|
7506
7511
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7512
|
+
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
7513
|
),
|
|
7509
|
-
|
|
7514
|
+
React__default.createElement(
|
|
7510
7515
|
'style',
|
|
7511
7516
|
{ jsx: 'true' },
|
|
7512
7517
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7559,67 +7564,67 @@ var Poll = function Poll(_ref) {
|
|
|
7559
7564
|
return acc;
|
|
7560
7565
|
}
|
|
7561
7566
|
}, 0);
|
|
7562
|
-
return
|
|
7563
|
-
|
|
7567
|
+
return React__default.createElement(
|
|
7568
|
+
React__default.Fragment,
|
|
7564
7569
|
null,
|
|
7565
|
-
question &&
|
|
7570
|
+
question && React__default.createElement(
|
|
7566
7571
|
'p',
|
|
7567
7572
|
{ className: 'font-weight-bold' },
|
|
7568
7573
|
question
|
|
7569
7574
|
),
|
|
7570
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7575
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7571
7576
|
'form',
|
|
7572
7577
|
{ onSubmit: function onSubmit(e) {
|
|
7573
7578
|
return onSubmitPoll(e);
|
|
7574
7579
|
} },
|
|
7575
7580
|
choices && choices.map(function (choice) {
|
|
7576
|
-
return
|
|
7581
|
+
return React__default.createElement(
|
|
7577
7582
|
'div',
|
|
7578
7583
|
{ key: choice._key },
|
|
7579
|
-
|
|
7584
|
+
React__default.createElement(
|
|
7580
7585
|
'label',
|
|
7581
7586
|
{ className: 'pl-2' },
|
|
7582
|
-
|
|
7587
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7583
7588
|
return setSelectedChoice(e.target.value);
|
|
7584
7589
|
} }),
|
|
7585
7590
|
' ' + choice.choiceText
|
|
7586
7591
|
)
|
|
7587
7592
|
);
|
|
7588
7593
|
}),
|
|
7589
|
-
|
|
7594
|
+
React__default.createElement(
|
|
7590
7595
|
Button,
|
|
7591
7596
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7592
7597
|
'Vote'
|
|
7593
7598
|
)
|
|
7594
7599
|
),
|
|
7595
|
-
|
|
7600
|
+
React__default.createElement(
|
|
7596
7601
|
'div',
|
|
7597
7602
|
{ className: 'progress-container' },
|
|
7598
7603
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7599
7604
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7600
|
-
return
|
|
7605
|
+
return React__default.createElement(
|
|
7601
7606
|
'div',
|
|
7602
7607
|
{ key: choice._key, className: 'mb-3' },
|
|
7603
|
-
|
|
7608
|
+
React__default.createElement(
|
|
7604
7609
|
'div',
|
|
7605
7610
|
{ className: 'correct-answer' },
|
|
7606
|
-
|
|
7611
|
+
React__default.createElement(
|
|
7607
7612
|
'div',
|
|
7608
7613
|
null,
|
|
7609
7614
|
choice.choiceText
|
|
7610
7615
|
),
|
|
7611
|
-
choice.choiceAnswer === true &&
|
|
7616
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7612
7617
|
'div',
|
|
7613
7618
|
null,
|
|
7614
|
-
|
|
7619
|
+
React__default.createElement(
|
|
7615
7620
|
'span',
|
|
7616
7621
|
{ style: { color: 'limegreen' } },
|
|
7617
7622
|
'Correct!'
|
|
7618
7623
|
)
|
|
7619
7624
|
)
|
|
7620
7625
|
),
|
|
7621
|
-
|
|
7622
|
-
|
|
7626
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7627
|
+
React__default.createElement(
|
|
7623
7628
|
'span',
|
|
7624
7629
|
{ className: 'float-right' },
|
|
7625
7630
|
percentage,
|
|
@@ -7630,14 +7635,14 @@ var Poll = function Poll(_ref) {
|
|
|
7630
7635
|
);
|
|
7631
7636
|
})
|
|
7632
7637
|
),
|
|
7633
|
-
showAnswer &&
|
|
7638
|
+
showAnswer && React__default.createElement(
|
|
7634
7639
|
'h4',
|
|
7635
7640
|
{ className: 'text-center small p-3' },
|
|
7636
7641
|
'Total Votes: ',
|
|
7637
7642
|
choicesTotalCount
|
|
7638
7643
|
),
|
|
7639
|
-
showAnswer && response &&
|
|
7640
|
-
|
|
7644
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7645
|
+
React__default.createElement(
|
|
7641
7646
|
'style',
|
|
7642
7647
|
{ jsx: 'true' },
|
|
7643
7648
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7736,67 +7741,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7736
7741
|
return acc;
|
|
7737
7742
|
}
|
|
7738
7743
|
}, 0);
|
|
7739
|
-
return
|
|
7740
|
-
|
|
7744
|
+
return React__default.createElement(
|
|
7745
|
+
React__default.Fragment,
|
|
7741
7746
|
null,
|
|
7742
|
-
question &&
|
|
7747
|
+
question && React__default.createElement(
|
|
7743
7748
|
'p',
|
|
7744
7749
|
{ className: 'font-weight-bold' },
|
|
7745
7750
|
question
|
|
7746
7751
|
),
|
|
7747
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7752
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7748
7753
|
'form',
|
|
7749
7754
|
{ onSubmit: function onSubmit(e) {
|
|
7750
7755
|
return onSubmitPoll(e);
|
|
7751
7756
|
} },
|
|
7752
7757
|
choices && choices.map(function (choice) {
|
|
7753
|
-
return
|
|
7758
|
+
return React__default.createElement(
|
|
7754
7759
|
'div',
|
|
7755
7760
|
{ key: choice._key },
|
|
7756
|
-
|
|
7761
|
+
React__default.createElement(
|
|
7757
7762
|
'label',
|
|
7758
7763
|
{ className: 'pl-2' },
|
|
7759
|
-
|
|
7764
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7760
7765
|
return setSelectedChoice(e.target.value);
|
|
7761
7766
|
} }),
|
|
7762
7767
|
' ' + choice.choiceText
|
|
7763
7768
|
)
|
|
7764
7769
|
);
|
|
7765
7770
|
}),
|
|
7766
|
-
|
|
7771
|
+
React__default.createElement(
|
|
7767
7772
|
Button,
|
|
7768
7773
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7769
7774
|
'Vote'
|
|
7770
7775
|
)
|
|
7771
7776
|
),
|
|
7772
|
-
|
|
7777
|
+
React__default.createElement(
|
|
7773
7778
|
'div',
|
|
7774
7779
|
{ className: 'progress-container' },
|
|
7775
7780
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7776
7781
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7777
|
-
return
|
|
7782
|
+
return React__default.createElement(
|
|
7778
7783
|
'div',
|
|
7779
7784
|
{ key: choice._key, className: 'mb-3' },
|
|
7780
|
-
|
|
7785
|
+
React__default.createElement(
|
|
7781
7786
|
'div',
|
|
7782
7787
|
{ className: 'correct-answer' },
|
|
7783
|
-
|
|
7788
|
+
React__default.createElement(
|
|
7784
7789
|
'div',
|
|
7785
7790
|
null,
|
|
7786
7791
|
choice.choiceText
|
|
7787
7792
|
),
|
|
7788
|
-
choice.choiceAnswer === true &&
|
|
7793
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7789
7794
|
'div',
|
|
7790
7795
|
null,
|
|
7791
|
-
|
|
7796
|
+
React__default.createElement(
|
|
7792
7797
|
'span',
|
|
7793
7798
|
{ style: { color: 'limegreen' } },
|
|
7794
7799
|
'Correct!'
|
|
7795
7800
|
)
|
|
7796
7801
|
)
|
|
7797
7802
|
),
|
|
7798
|
-
|
|
7799
|
-
|
|
7803
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7804
|
+
React__default.createElement(
|
|
7800
7805
|
'span',
|
|
7801
7806
|
{ className: 'float-right' },
|
|
7802
7807
|
percentage,
|
|
@@ -7807,14 +7812,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7807
7812
|
);
|
|
7808
7813
|
})
|
|
7809
7814
|
),
|
|
7810
|
-
showAnswer &&
|
|
7815
|
+
showAnswer && React__default.createElement(
|
|
7811
7816
|
'h4',
|
|
7812
7817
|
{ className: 'text-center small p-3' },
|
|
7813
7818
|
'Total Votes: ',
|
|
7814
7819
|
choicesTotalCount
|
|
7815
7820
|
),
|
|
7816
|
-
showAnswer && response &&
|
|
7817
|
-
|
|
7821
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7822
|
+
React__default.createElement(
|
|
7818
7823
|
'style',
|
|
7819
7824
|
{ jsx: 'true' },
|
|
7820
7825
|
'\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 +7827,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7822
7827
|
);
|
|
7823
7828
|
};
|
|
7824
7829
|
|
|
7825
|
-
var numberOfPaginations =
|
|
7830
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7826
7831
|
|
|
7827
7832
|
var Quiz = function Quiz(_ref) {
|
|
7828
7833
|
var quizzes = _ref.quizzes,
|
|
@@ -7940,34 +7945,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7940
7945
|
};
|
|
7941
7946
|
|
|
7942
7947
|
var renderPagination = function renderPagination() {
|
|
7943
|
-
return
|
|
7944
|
-
Pagination,
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
|
|
7948
|
+
return React__default.createElement(
|
|
7949
|
+
Pagination$1,
|
|
7950
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7951
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7947
7952
|
return changePage('first');
|
|
7948
7953
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
7954
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7950
7955
|
return changePage('prev');
|
|
7951
7956
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
|
|
7957
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7953
7958
|
return renderNewPages('prev');
|
|
7954
7959
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
7960
|
pages.map(function (page) {
|
|
7956
|
-
return
|
|
7957
|
-
Pagination.Item,
|
|
7961
|
+
return React__default.createElement(
|
|
7962
|
+
Pagination$1.Item,
|
|
7958
7963
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
7964
|
return changePage(page);
|
|
7960
7965
|
} },
|
|
7961
7966
|
page
|
|
7962
7967
|
);
|
|
7963
7968
|
}),
|
|
7964
|
-
|
|
7969
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7965
7970
|
return renderNewPages('next');
|
|
7966
7971
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
|
|
7972
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7968
7973
|
return changePage('next');
|
|
7969
7974
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
|
|
7975
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7971
7976
|
return changePage('last');
|
|
7972
7977
|
}, disabled: currentPage === pageCount })
|
|
7973
7978
|
);
|
|
@@ -8050,51 +8055,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8050
8055
|
}
|
|
8051
8056
|
};
|
|
8052
8057
|
|
|
8053
|
-
return
|
|
8054
|
-
|
|
8058
|
+
return React__default.createElement(
|
|
8059
|
+
React__default.Fragment,
|
|
8055
8060
|
null,
|
|
8056
|
-
quizzes[currentPage - 1] &&
|
|
8057
|
-
|
|
8061
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8062
|
+
React__default.Fragment,
|
|
8058
8063
|
null,
|
|
8059
|
-
|
|
8060
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8064
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8065
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8061
8066
|
'form',
|
|
8062
8067
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8063
8068
|
return e.preventDefault();
|
|
8064
8069
|
} },
|
|
8065
8070
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8066
|
-
return
|
|
8071
|
+
return React__default.createElement(
|
|
8067
8072
|
'div',
|
|
8068
8073
|
{ key: answer._key },
|
|
8069
|
-
|
|
8074
|
+
React__default.createElement(
|
|
8070
8075
|
'label',
|
|
8071
8076
|
{ className: 'pl-2' },
|
|
8072
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8077
|
+
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
8078
|
' ' + answer.answerText
|
|
8074
8079
|
)
|
|
8075
8080
|
);
|
|
8076
8081
|
})
|
|
8077
8082
|
)
|
|
8078
8083
|
),
|
|
8079
|
-
!showAnswer &&
|
|
8084
|
+
!showAnswer && React__default.createElement(
|
|
8080
8085
|
Button$1,
|
|
8081
8086
|
{ onClick: function onClick() {
|
|
8082
8087
|
return checkAnswers();
|
|
8083
8088
|
}, variant: 'info', block: true },
|
|
8084
8089
|
'Please click here for answer'
|
|
8085
8090
|
),
|
|
8086
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8087
|
-
|
|
8091
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8092
|
+
React__default.Fragment,
|
|
8088
8093
|
null,
|
|
8089
|
-
|
|
8094
|
+
React__default.createElement(
|
|
8090
8095
|
'h4',
|
|
8091
8096
|
null,
|
|
8092
8097
|
'Answer:'
|
|
8093
8098
|
),
|
|
8094
|
-
quizzes[currentPage - 1].answer &&
|
|
8099
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8095
8100
|
),
|
|
8096
|
-
|
|
8097
|
-
pageCount > 1 &&
|
|
8101
|
+
React__default.createElement('br', null),
|
|
8102
|
+
pageCount > 1 && React__default.createElement(
|
|
8098
8103
|
'div',
|
|
8099
8104
|
{ className: 'd-flex justify-content-center' },
|
|
8100
8105
|
renderPagination()
|
|
@@ -8105,10 +8110,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8105
8110
|
var Leads = function Leads(_ref) {
|
|
8106
8111
|
var url = _ref.url;
|
|
8107
8112
|
|
|
8108
|
-
return
|
|
8113
|
+
return React__default.createElement(
|
|
8109
8114
|
'div',
|
|
8110
8115
|
{ className: 'd-block text-center mb-3' },
|
|
8111
|
-
url &&
|
|
8116
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8112
8117
|
);
|
|
8113
8118
|
};
|
|
8114
8119
|
|
|
@@ -8148,53 +8153,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8148
8153
|
setCarouselIndex(selectedIndex);
|
|
8149
8154
|
};
|
|
8150
8155
|
|
|
8151
|
-
return
|
|
8156
|
+
return React__default.createElement(
|
|
8152
8157
|
'div',
|
|
8153
8158
|
{ className: 'mt-3 mb-4' },
|
|
8154
|
-
|
|
8159
|
+
React__default.createElement(
|
|
8155
8160
|
Carousel,
|
|
8156
8161
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8157
8162
|
slides && slides.map(function (slide) {
|
|
8158
8163
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8159
|
-
return
|
|
8164
|
+
return React__default.createElement(
|
|
8160
8165
|
Carousel.Item,
|
|
8161
8166
|
{ key: slide._key },
|
|
8162
|
-
|
|
8167
|
+
React__default.createElement(
|
|
8163
8168
|
'a',
|
|
8164
8169
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8165
|
-
|
|
8170
|
+
React__default.createElement(
|
|
8166
8171
|
'div',
|
|
8167
8172
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8168
|
-
|
|
8173
|
+
React__default.createElement(
|
|
8169
8174
|
LazyLoad,
|
|
8170
8175
|
null,
|
|
8171
|
-
|
|
8176
|
+
React__default.createElement(
|
|
8172
8177
|
'picture',
|
|
8173
8178
|
null,
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8179
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8180
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8181
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8182
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8178
8183
|
)
|
|
8179
8184
|
)
|
|
8180
8185
|
)
|
|
8181
8186
|
),
|
|
8182
|
-
|
|
8187
|
+
React__default.createElement(
|
|
8183
8188
|
'div',
|
|
8184
8189
|
{ className: 'p-2' },
|
|
8185
|
-
slide.slideshowImage.caption &&
|
|
8190
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8186
8191
|
'h3',
|
|
8187
8192
|
{ style: { padding: '0px' } },
|
|
8188
8193
|
slide.slideshowImage.caption
|
|
8189
8194
|
),
|
|
8190
|
-
slide.description &&
|
|
8195
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8191
8196
|
)
|
|
8192
8197
|
);
|
|
8193
8198
|
}
|
|
8194
8199
|
return null;
|
|
8195
8200
|
})
|
|
8196
8201
|
),
|
|
8197
|
-
|
|
8202
|
+
React__default.createElement(
|
|
8198
8203
|
'style',
|
|
8199
8204
|
{ jsx: 'true' },
|
|
8200
8205
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\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 '
|
|
@@ -8213,10 +8218,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8213
8218
|
sizes = _props$node.sizes,
|
|
8214
8219
|
sizeMapping = _props$node.sizeMapping;
|
|
8215
8220
|
|
|
8216
|
-
return
|
|
8221
|
+
return React__default.createElement(
|
|
8217
8222
|
'div',
|
|
8218
8223
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8219
|
-
|
|
8224
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8220
8225
|
);
|
|
8221
8226
|
};
|
|
8222
8227
|
|
|
@@ -8227,15 +8232,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8227
8232
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8228
8233
|
|
|
8229
8234
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8230
|
-
return
|
|
8235
|
+
return React__default.createElement(
|
|
8231
8236
|
'section',
|
|
8232
8237
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8233
|
-
Caption &&
|
|
8238
|
+
Caption && React__default.createElement(
|
|
8234
8239
|
'h4',
|
|
8235
8240
|
{ className: 'formstack-caption' },
|
|
8236
8241
|
Caption
|
|
8237
8242
|
),
|
|
8238
|
-
|
|
8243
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8239
8244
|
);
|
|
8240
8245
|
};
|
|
8241
8246
|
|
|
@@ -8251,36 +8256,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8251
8256
|
}
|
|
8252
8257
|
});
|
|
8253
8258
|
if (medias && medias.length > 0) {
|
|
8254
|
-
return
|
|
8259
|
+
return React__default.createElement(
|
|
8255
8260
|
'div',
|
|
8256
8261
|
{ className: 'multi-media-container' },
|
|
8257
|
-
|
|
8262
|
+
React__default.createElement(
|
|
8258
8263
|
Row$1,
|
|
8259
8264
|
{ noGutters: true },
|
|
8260
8265
|
medias.map(function (media) {
|
|
8261
|
-
return
|
|
8266
|
+
return React__default.createElement(
|
|
8262
8267
|
Col$1,
|
|
8263
8268
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8264
|
-
|
|
8269
|
+
React__default.createElement(
|
|
8265
8270
|
'a',
|
|
8266
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8271
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8267
8272
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8268
|
-
|
|
8273
|
+
React__default.createElement(
|
|
8269
8274
|
'div',
|
|
8270
8275
|
{ className: 'multi-media-image-container' },
|
|
8271
|
-
imageBox &&
|
|
8276
|
+
imageBox && React__default.createElement(
|
|
8272
8277
|
LazyLoad,
|
|
8273
8278
|
{ once: true },
|
|
8274
|
-
|
|
8279
|
+
React__default.createElement(
|
|
8275
8280
|
'picture',
|
|
8276
8281
|
null,
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8282
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8283
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8284
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8285
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8281
8286
|
)
|
|
8282
8287
|
),
|
|
8283
|
-
media.caption &&
|
|
8288
|
+
media.caption && React__default.createElement(
|
|
8284
8289
|
'span',
|
|
8285
8290
|
{ className: 'multi-media-caption' },
|
|
8286
8291
|
media.caption
|
|
@@ -8290,7 +8295,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8290
8295
|
);
|
|
8291
8296
|
})
|
|
8292
8297
|
),
|
|
8293
|
-
|
|
8298
|
+
React__default.createElement(
|
|
8294
8299
|
'style',
|
|
8295
8300
|
{ jsx: 'true' },
|
|
8296
8301
|
'\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 '
|
|
@@ -8337,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8337
8342
|
}
|
|
8338
8343
|
};
|
|
8339
8344
|
|
|
8340
|
-
_this.wraperRef =
|
|
8345
|
+
_this.wraperRef = React__default.createRef();
|
|
8341
8346
|
_this.visible = false;
|
|
8342
8347
|
return _this;
|
|
8343
8348
|
}
|
|
@@ -8365,7 +8370,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8365
8370
|
_props$id = _props.id,
|
|
8366
8371
|
id = _props$id === undefined ? '' : _props$id;
|
|
8367
8372
|
|
|
8368
|
-
return
|
|
8373
|
+
return React__default.createElement(
|
|
8369
8374
|
'div',
|
|
8370
8375
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8371
8376
|
this.props.children
|
|
@@ -8374,7 +8379,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8374
8379
|
}]);
|
|
8375
8380
|
|
|
8376
8381
|
return InscreenSensor;
|
|
8377
|
-
}(
|
|
8382
|
+
}(React__default.Component);
|
|
8378
8383
|
|
|
8379
8384
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8380
8385
|
var nodes = _ref.nodes,
|
|
@@ -8483,33 +8488,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8483
8488
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8484
8489
|
var showReading = show ? 'showReading' : '';
|
|
8485
8490
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8486
|
-
return
|
|
8491
|
+
return React__default.createElement(
|
|
8487
8492
|
'div',
|
|
8488
8493
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8489
|
-
|
|
8494
|
+
React__default.createElement(
|
|
8490
8495
|
'a',
|
|
8491
8496
|
{ onClick: function onClick(e) {
|
|
8492
8497
|
return articleCardClickHandler(e);
|
|
8493
8498
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8494
|
-
|
|
8499
|
+
React__default.createElement(
|
|
8495
8500
|
'div',
|
|
8496
8501
|
{ className: 'prevNext-thumbnail' },
|
|
8497
|
-
|
|
8498
|
-
|
|
8502
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8503
|
+
React__default.createElement(
|
|
8499
8504
|
'div',
|
|
8500
8505
|
{ className: 'prevNext-reading ' + showReading },
|
|
8501
8506
|
articleLabel
|
|
8502
8507
|
)
|
|
8503
8508
|
),
|
|
8504
|
-
|
|
8509
|
+
React__default.createElement(
|
|
8505
8510
|
'div',
|
|
8506
8511
|
{ className: 'prevNext-summary' },
|
|
8507
|
-
|
|
8512
|
+
React__default.createElement(
|
|
8508
8513
|
'div',
|
|
8509
8514
|
{ className: 'prevNext-publishDate' },
|
|
8510
8515
|
moment(article.published).format('LL')
|
|
8511
8516
|
),
|
|
8512
|
-
|
|
8517
|
+
React__default.createElement(
|
|
8513
8518
|
'h2',
|
|
8514
8519
|
{ className: 'prevNext-title' },
|
|
8515
8520
|
article.title
|
|
@@ -8558,7 +8563,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8558
8563
|
|
|
8559
8564
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8560
8565
|
if (biography) {
|
|
8561
|
-
return
|
|
8566
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8562
8567
|
}
|
|
8563
8568
|
};
|
|
8564
8569
|
|
|
@@ -8644,7 +8649,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8649
|
//console.log('useLayoutEffect')
|
|
8645
8650
|
if (!firstLoad) {
|
|
8646
8651
|
setUpArrowClicked(false);
|
|
8647
|
-
if (
|
|
8652
|
+
if (main_36) {
|
|
8648
8653
|
grabLoadedAds();
|
|
8649
8654
|
} else {
|
|
8650
8655
|
scrollToArticle();
|
|
@@ -8668,7 +8673,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8668
8673
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8669
8674
|
if (pageview) pageview(path);
|
|
8670
8675
|
|
|
8671
|
-
if (!
|
|
8676
|
+
if (!main_36) {
|
|
8672
8677
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8673
8678
|
if (window.googletag && googletag.pubadsReady) {
|
|
8674
8679
|
lib_3.refresh();
|
|
@@ -8676,7 +8681,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8676
8681
|
});
|
|
8677
8682
|
}
|
|
8678
8683
|
//Refresh leaderboard ad on mobile
|
|
8679
|
-
if (
|
|
8684
|
+
if (main_36) {
|
|
8680
8685
|
var leaderboardSlotId = '';
|
|
8681
8686
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8682
8687
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8716,38 +8721,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8716
8721
|
setSensorVisible(false);
|
|
8717
8722
|
};
|
|
8718
8723
|
|
|
8719
|
-
return
|
|
8720
|
-
|
|
8724
|
+
return React__default.createElement(
|
|
8725
|
+
React__default.Fragment,
|
|
8721
8726
|
null,
|
|
8722
|
-
|
|
8727
|
+
React__default.createElement(
|
|
8723
8728
|
'div',
|
|
8724
8729
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8725
|
-
|
|
8730
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8726
8731
|
return handleArrowClick();
|
|
8727
8732
|
} })
|
|
8728
8733
|
),
|
|
8729
|
-
|
|
8730
|
-
|
|
8734
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8735
|
+
React__default.createElement(
|
|
8731
8736
|
'div',
|
|
8732
8737
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8733
|
-
|
|
8738
|
+
React__default.createElement(
|
|
8734
8739
|
'h5',
|
|
8735
8740
|
{ className: 'objective-title' },
|
|
8736
8741
|
nodes.seriesTitle
|
|
8737
8742
|
),
|
|
8738
|
-
|
|
8743
|
+
React__default.createElement(
|
|
8739
8744
|
'div',
|
|
8740
8745
|
{ className: 'prevNextWrapper' },
|
|
8741
8746
|
PrevNextCards(false, -1)
|
|
8742
8747
|
)
|
|
8743
8748
|
),
|
|
8744
|
-
|
|
8745
|
-
|
|
8749
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8750
|
+
React__default.createElement(
|
|
8746
8751
|
'div',
|
|
8747
8752
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8748
|
-
|
|
8753
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8749
8754
|
if (index === 0) {
|
|
8750
|
-
return
|
|
8755
|
+
return React__default.createElement(
|
|
8751
8756
|
'div',
|
|
8752
8757
|
{
|
|
8753
8758
|
key: 'addid-1',
|
|
@@ -8767,14 +8772,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8767
8772
|
}
|
|
8768
8773
|
})
|
|
8769
8774
|
),
|
|
8770
|
-
|
|
8775
|
+
React__default.createElement(
|
|
8771
8776
|
'div',
|
|
8772
8777
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8773
8778
|
Articles.map(function (article, index) {
|
|
8774
|
-
return
|
|
8779
|
+
return React__default.createElement(
|
|
8775
8780
|
'div',
|
|
8776
8781
|
{ key: article.title },
|
|
8777
|
-
|
|
8782
|
+
React__default.createElement(
|
|
8778
8783
|
InscreenSensor,
|
|
8779
8784
|
{
|
|
8780
8785
|
visible: sensorVisible,
|
|
@@ -8792,84 +8797,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8792
8797
|
}
|
|
8793
8798
|
}
|
|
8794
8799
|
} },
|
|
8795
|
-
|
|
8800
|
+
React__default.createElement(
|
|
8796
8801
|
Head,
|
|
8797
8802
|
null,
|
|
8798
|
-
currentTitle !== null &&
|
|
8803
|
+
currentTitle !== null && React__default.createElement(
|
|
8799
8804
|
'title',
|
|
8800
8805
|
{ key: 'title' },
|
|
8801
8806
|
currentTitle
|
|
8802
8807
|
),
|
|
8803
|
-
currentSummary !== null &&
|
|
8804
|
-
currentURL !== null &&
|
|
8805
|
-
currentTitle !== null &&
|
|
8806
|
-
currentThumbnail !== null &&
|
|
8807
|
-
currentSummary !== null &&
|
|
8808
|
-
currentTitle !== null &&
|
|
8809
|
-
currentThumbnail !== null &&
|
|
8810
|
-
currentSummary !== null &&
|
|
8808
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8809
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8810
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8811
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8812
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8813
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8814
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8815
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8811
8816
|
),
|
|
8812
|
-
|
|
8817
|
+
React__default.createElement(
|
|
8813
8818
|
'article',
|
|
8814
8819
|
{ className: 'article-wrapper' },
|
|
8815
|
-
|
|
8820
|
+
React__default.createElement(
|
|
8816
8821
|
'div',
|
|
8817
8822
|
{ className: 'article-publishDate' },
|
|
8818
8823
|
moment(article.published).format('LL')
|
|
8819
8824
|
),
|
|
8820
|
-
|
|
8825
|
+
React__default.createElement(
|
|
8821
8826
|
'div',
|
|
8822
8827
|
{ className: 'author-details-wrapper' },
|
|
8823
8828
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8824
|
-
return
|
|
8829
|
+
return React__default.createElement(
|
|
8825
8830
|
'span',
|
|
8826
8831
|
{ key: index },
|
|
8827
8832
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8828
8833
|
);
|
|
8829
8834
|
})
|
|
8830
8835
|
),
|
|
8831
|
-
|
|
8836
|
+
React__default.createElement(
|
|
8832
8837
|
'h2',
|
|
8833
8838
|
{ className: 'article-title' },
|
|
8834
8839
|
article.title
|
|
8835
8840
|
),
|
|
8836
|
-
|
|
8841
|
+
React__default.createElement(
|
|
8837
8842
|
'div',
|
|
8838
8843
|
{ className: 'mt-2 mb-2' },
|
|
8839
|
-
|
|
8844
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8840
8845
|
serializers: getSerializers,
|
|
8841
8846
|
videoAccountIDs: accountIDs,
|
|
8842
8847
|
blocks: article.text,
|
|
8843
8848
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8844
8849
|
}, client.config())),
|
|
8845
|
-
|
|
8850
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8846
8851
|
),
|
|
8847
|
-
Articles.length > 1 &&
|
|
8848
|
-
|
|
8852
|
+
Articles.length > 1 && React__default.createElement(
|
|
8853
|
+
React__default.Fragment,
|
|
8849
8854
|
null,
|
|
8850
|
-
|
|
8855
|
+
React__default.createElement(
|
|
8851
8856
|
'div',
|
|
8852
8857
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8853
|
-
|
|
8858
|
+
React__default.createElement(
|
|
8854
8859
|
'h5',
|
|
8855
8860
|
{ className: 'objective-title' },
|
|
8856
8861
|
nodes.seriesTitle
|
|
8857
8862
|
),
|
|
8858
|
-
|
|
8863
|
+
React__default.createElement(
|
|
8859
8864
|
'div',
|
|
8860
8865
|
{ className: 'prevNextWrapper' },
|
|
8861
8866
|
PrevNextCards(true, index)
|
|
8862
8867
|
)
|
|
8863
8868
|
),
|
|
8864
|
-
|
|
8869
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8865
8870
|
)
|
|
8866
8871
|
),
|
|
8867
|
-
|
|
8872
|
+
React__default.createElement(
|
|
8868
8873
|
'div',
|
|
8869
8874
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8870
|
-
|
|
8875
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8871
8876
|
if (innerIndex === 0) {
|
|
8872
|
-
return
|
|
8877
|
+
return React__default.createElement(
|
|
8873
8878
|
'div',
|
|
8874
8879
|
{
|
|
8875
8880
|
key: 'addid-' + (index + 2),
|
|
@@ -8892,7 +8897,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8892
8897
|
)
|
|
8893
8898
|
);
|
|
8894
8899
|
}),
|
|
8895
|
-
|
|
8900
|
+
React__default.createElement(
|
|
8896
8901
|
'style',
|
|
8897
8902
|
{ jsx: 'true' },
|
|
8898
8903
|
'\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 '
|
|
@@ -8922,11 +8927,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8922
8927
|
};
|
|
8923
8928
|
}, [handleClickOutside]);
|
|
8924
8929
|
|
|
8925
|
-
return
|
|
8930
|
+
return React__default.createElement(
|
|
8926
8931
|
'div',
|
|
8927
8932
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8928
|
-
|
|
8929
|
-
|
|
8933
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8934
|
+
React__default.createElement(
|
|
8930
8935
|
'style',
|
|
8931
8936
|
{ jsx: 'true' },
|
|
8932
8937
|
'\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 '
|
|
@@ -8940,7 +8945,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8940
8945
|
}
|
|
8941
8946
|
};
|
|
8942
8947
|
|
|
8943
|
-
var FigureImage =
|
|
8948
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8944
8949
|
var node = _ref2.node,
|
|
8945
8950
|
client = _ref2.client,
|
|
8946
8951
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8948,13 +8953,13 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8948
8953
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8949
8954
|
|
|
8950
8955
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8951
|
-
return
|
|
8956
|
+
return React__default.createElement(
|
|
8952
8957
|
'picture',
|
|
8953
8958
|
null,
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8959
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8960
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8961
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8962
|
+
React__default.createElement('img', _extends$1({
|
|
8958
8963
|
style: figureImageStyle,
|
|
8959
8964
|
className: 'figure-image',
|
|
8960
8965
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9005,30 +9010,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9005
9010
|
|
|
9006
9011
|
var renderTooltip = function renderTooltip(props) {
|
|
9007
9012
|
if (infoBox[0].title) {
|
|
9008
|
-
return
|
|
9009
|
-
Popover,
|
|
9013
|
+
return React__default.createElement(
|
|
9014
|
+
Popover$1,
|
|
9010
9015
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9011
|
-
|
|
9012
|
-
Popover.Title,
|
|
9016
|
+
React__default.createElement(
|
|
9017
|
+
Popover$1.Title,
|
|
9013
9018
|
{ as: 'h3' },
|
|
9014
9019
|
infoBox[0].title
|
|
9015
9020
|
),
|
|
9016
|
-
|
|
9017
|
-
Popover.Content,
|
|
9021
|
+
React__default.createElement(
|
|
9022
|
+
Popover$1.Content,
|
|
9018
9023
|
null,
|
|
9019
|
-
|
|
9024
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9020
9025
|
)
|
|
9021
9026
|
);
|
|
9022
9027
|
} else {
|
|
9023
|
-
return
|
|
9024
|
-
Tooltip,
|
|
9025
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9026
|
-
|
|
9028
|
+
return React__default.createElement(
|
|
9029
|
+
Tooltip$1,
|
|
9030
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9031
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9027
9032
|
);
|
|
9028
9033
|
}
|
|
9029
9034
|
};
|
|
9030
9035
|
|
|
9031
|
-
var FigureImageWOverLay =
|
|
9036
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9032
9037
|
var node = _ref3.node,
|
|
9033
9038
|
client = _ref3.client,
|
|
9034
9039
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9036,32 +9041,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9036
9041
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9037
9042
|
|
|
9038
9043
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9039
|
-
var triggerAction =
|
|
9040
|
-
var placementLocation =
|
|
9041
|
-
return
|
|
9044
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9045
|
+
var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9046
|
+
return React__default.createElement(
|
|
9042
9047
|
'picture',
|
|
9043
9048
|
null,
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9049
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9050
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9051
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9052
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9048
9053
|
style: figureImageStyle,
|
|
9049
9054
|
className: 'figure-image',
|
|
9050
9055
|
src: urlFor({ source: node, client: client }),
|
|
9051
9056
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9052
|
-
}, !link && !
|
|
9057
|
+
}, !link && !main_35 && {
|
|
9053
9058
|
onClick: function onClick() {
|
|
9054
9059
|
return handleClickFigure(node, client);
|
|
9055
9060
|
}
|
|
9056
|
-
})) :
|
|
9061
|
+
})) : React__default.createElement(
|
|
9057
9062
|
OverlayTrigger,
|
|
9058
9063
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9059
|
-
|
|
9064
|
+
React__default.createElement('img', _extends$1({
|
|
9060
9065
|
style: figureImageStyle,
|
|
9061
9066
|
className: 'figure-image',
|
|
9062
9067
|
src: urlFor({ source: node, client: client }),
|
|
9063
9068
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9064
|
-
}, !link && !
|
|
9069
|
+
}, !link && !main_35 && {
|
|
9065
9070
|
onClick: function onClick() {
|
|
9066
9071
|
return handleClickFigure(node, client);
|
|
9067
9072
|
}
|
|
@@ -9110,13 +9115,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9110
9115
|
|
|
9111
9116
|
var FigureCaption = useCallback(function () {
|
|
9112
9117
|
if (imgcaption && imgcaption.length > 0) {
|
|
9113
|
-
return
|
|
9118
|
+
return React__default.createElement(
|
|
9114
9119
|
'div',
|
|
9115
9120
|
{ className: 'figure-caption' },
|
|
9116
|
-
|
|
9121
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9117
9122
|
);
|
|
9118
9123
|
} else if (caption) {
|
|
9119
|
-
return
|
|
9124
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9120
9125
|
} else return null;
|
|
9121
9126
|
}, [caption, imgcaption]);
|
|
9122
9127
|
|
|
@@ -9133,24 +9138,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9133
9138
|
setShowLightbox(true);
|
|
9134
9139
|
}, [node, client]);
|
|
9135
9140
|
|
|
9136
|
-
return
|
|
9137
|
-
|
|
9141
|
+
return React__default.createElement(
|
|
9142
|
+
React__default.Fragment,
|
|
9138
9143
|
null,
|
|
9139
|
-
infoBox.length >= 1 ?
|
|
9140
|
-
Figure$
|
|
9144
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9145
|
+
Figure$1$1,
|
|
9141
9146
|
{ className: '' + class_name, style: figureStyle },
|
|
9142
|
-
link ?
|
|
9147
|
+
link ? React__default.createElement(
|
|
9143
9148
|
'a',
|
|
9144
9149
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
) :
|
|
9148
|
-
|
|
9150
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9151
|
+
React__default.createElement(FigureCaption, null)
|
|
9152
|
+
) : React__default.createElement(
|
|
9153
|
+
React__default.Fragment,
|
|
9149
9154
|
null,
|
|
9150
|
-
|
|
9151
|
-
|
|
9155
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9156
|
+
React__default.createElement(FigureCaption, null)
|
|
9152
9157
|
),
|
|
9153
|
-
|
|
9158
|
+
React__default.createElement(LightBox, {
|
|
9154
9159
|
showLightbox: showLightbox,
|
|
9155
9160
|
lightboxImgSrc: lightboxImgSrc,
|
|
9156
9161
|
closeLightbox: function closeLightbox() {
|
|
@@ -9158,21 +9163,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9158
9163
|
setShowLightbox(false);
|
|
9159
9164
|
}
|
|
9160
9165
|
})
|
|
9161
|
-
) :
|
|
9162
|
-
Figure$
|
|
9166
|
+
) : React__default.createElement(
|
|
9167
|
+
Figure$1$1,
|
|
9163
9168
|
{ className: '' + class_name, style: figureStyle },
|
|
9164
|
-
link ?
|
|
9169
|
+
link ? React__default.createElement(
|
|
9165
9170
|
'a',
|
|
9166
9171
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
) :
|
|
9170
|
-
|
|
9172
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9173
|
+
React__default.createElement(FigureCaption, null)
|
|
9174
|
+
) : React__default.createElement(
|
|
9175
|
+
React__default.Fragment,
|
|
9171
9176
|
null,
|
|
9172
|
-
|
|
9173
|
-
|
|
9177
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9178
|
+
React__default.createElement(FigureCaption, null)
|
|
9174
9179
|
),
|
|
9175
|
-
|
|
9180
|
+
React__default.createElement(LightBox, {
|
|
9176
9181
|
showLightbox: showLightbox,
|
|
9177
9182
|
lightboxImgSrc: lightboxImgSrc,
|
|
9178
9183
|
closeLightbox: function closeLightbox() {
|
|
@@ -9181,7 +9186,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9181
9186
|
}
|
|
9182
9187
|
})
|
|
9183
9188
|
),
|
|
9184
|
-
|
|
9189
|
+
React__default.createElement(
|
|
9185
9190
|
'style',
|
|
9186
9191
|
{ jsx: 'true' },
|
|
9187
9192
|
'\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 '
|
|
@@ -9189,7 +9194,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9189
9194
|
);
|
|
9190
9195
|
};
|
|
9191
9196
|
|
|
9192
|
-
var Figure =
|
|
9197
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9193
9198
|
|
|
9194
9199
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9195
9200
|
useEffect(function () {
|
|
@@ -9206,7 +9211,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9206
9211
|
}, [ref]);
|
|
9207
9212
|
}
|
|
9208
9213
|
|
|
9209
|
-
var FigureImage$1 =
|
|
9214
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9210
9215
|
var imagesCount = _ref.imagesCount,
|
|
9211
9216
|
image = _ref.image,
|
|
9212
9217
|
client = _ref.client,
|
|
@@ -9214,13 +9219,13 @@ var FigureImage$1 = React.memo(function (_ref) {
|
|
|
9214
9219
|
link = _ref.link,
|
|
9215
9220
|
handleClickFigure = _ref.handleClickFigure;
|
|
9216
9221
|
|
|
9217
|
-
return
|
|
9222
|
+
return React__default.createElement(
|
|
9218
9223
|
'picture',
|
|
9219
9224
|
null,
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9225
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9226
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9227
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9228
|
+
React__default.createElement('img', _extends$1({
|
|
9224
9229
|
'images-count': imagesCount,
|
|
9225
9230
|
className: 'multi-figure-image',
|
|
9226
9231
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9257,13 +9262,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9257
9262
|
imgcaption = _ref2.imgcaption;
|
|
9258
9263
|
|
|
9259
9264
|
if (imgcaption && imgcaption.length > 0) {
|
|
9260
|
-
return
|
|
9265
|
+
return React__default.createElement(
|
|
9261
9266
|
'div',
|
|
9262
9267
|
{ className: 'multi-figure-caption' },
|
|
9263
|
-
|
|
9268
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9264
9269
|
);
|
|
9265
9270
|
} else if (caption) {
|
|
9266
|
-
return
|
|
9271
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9267
9272
|
} else return null;
|
|
9268
9273
|
};
|
|
9269
9274
|
|
|
@@ -9272,7 +9277,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9272
9277
|
setOpenImg(true);
|
|
9273
9278
|
}, [client]);
|
|
9274
9279
|
|
|
9275
|
-
var FigureImageWOverLay =
|
|
9280
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9276
9281
|
var imagesCount = _ref3.imagesCount,
|
|
9277
9282
|
image = _ref3.image,
|
|
9278
9283
|
client = _ref3.client,
|
|
@@ -9280,32 +9285,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9280
9285
|
link = _ref3.link,
|
|
9281
9286
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9282
9287
|
|
|
9283
|
-
var triggerAction =
|
|
9284
|
-
var placementLocation =
|
|
9285
|
-
return
|
|
9288
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9289
|
+
var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9290
|
+
return React__default.createElement(
|
|
9286
9291
|
'picture',
|
|
9287
9292
|
null,
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9293
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9294
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9295
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9296
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9292
9297
|
'images-count': imagesCount,
|
|
9293
9298
|
className: 'multi-figure-image',
|
|
9294
9299
|
src: urlFor({ source: image, client: client }),
|
|
9295
9300
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9296
|
-
}, !link && !
|
|
9301
|
+
}, !link && !main_35 && {
|
|
9297
9302
|
onClick: function onClick() {
|
|
9298
9303
|
return handleClickFigure(image, client);
|
|
9299
9304
|
}
|
|
9300
|
-
})) :
|
|
9305
|
+
})) : React__default.createElement(
|
|
9301
9306
|
OverlayTrigger,
|
|
9302
9307
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9303
|
-
|
|
9308
|
+
React__default.createElement('img', _extends$1({
|
|
9304
9309
|
'images-count': imagesCount,
|
|
9305
9310
|
className: 'multi-figure-image',
|
|
9306
9311
|
src: urlFor({ source: image, client: client }),
|
|
9307
9312
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9308
|
-
}, !link && !
|
|
9313
|
+
}, !link && !main_35 && {
|
|
9309
9314
|
onClick: function onClick() {
|
|
9310
9315
|
return handleClickFigure(image, client);
|
|
9311
9316
|
}
|
|
@@ -9316,102 +9321,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9316
9321
|
|
|
9317
9322
|
var renderTooltip = function renderTooltip(image) {
|
|
9318
9323
|
if (image.infoBox[0].title) {
|
|
9319
|
-
return
|
|
9320
|
-
Popover,
|
|
9324
|
+
return React__default.createElement(
|
|
9325
|
+
Popover$1,
|
|
9321
9326
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9322
|
-
|
|
9323
|
-
Popover.Title,
|
|
9327
|
+
React__default.createElement(
|
|
9328
|
+
Popover$1.Title,
|
|
9324
9329
|
{ as: 'h3' },
|
|
9325
9330
|
image.infoBox[0].title
|
|
9326
9331
|
),
|
|
9327
|
-
|
|
9328
|
-
Popover.Content,
|
|
9332
|
+
React__default.createElement(
|
|
9333
|
+
Popover$1.Content,
|
|
9329
9334
|
null,
|
|
9330
|
-
|
|
9335
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9331
9336
|
)
|
|
9332
9337
|
);
|
|
9333
9338
|
} else {
|
|
9334
|
-
return
|
|
9335
|
-
Tooltip,
|
|
9336
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9337
|
-
|
|
9339
|
+
return React__default.createElement(
|
|
9340
|
+
Tooltip$1,
|
|
9341
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9342
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9338
9343
|
);
|
|
9339
9344
|
}
|
|
9340
9345
|
};
|
|
9341
9346
|
|
|
9342
9347
|
if (images && images.length > 0) {
|
|
9343
|
-
return
|
|
9348
|
+
return React__default.createElement(
|
|
9344
9349
|
'div',
|
|
9345
9350
|
{ className: 'multi-figure-container' },
|
|
9346
|
-
|
|
9351
|
+
React__default.createElement(
|
|
9347
9352
|
Row$1,
|
|
9348
9353
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9349
9354
|
images.map(function (image, index) {
|
|
9350
9355
|
if (image.infoBox) {
|
|
9351
|
-
return
|
|
9356
|
+
return React__default.createElement(
|
|
9352
9357
|
Col$1,
|
|
9353
9358
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9354
|
-
image.link ?
|
|
9359
|
+
image.link ? React__default.createElement(
|
|
9355
9360
|
'a',
|
|
9356
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9357
|
-
|
|
9361
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9362
|
+
React__default.createElement(
|
|
9358
9363
|
'div',
|
|
9359
9364
|
{ className: 'multi-figure-image-container' },
|
|
9360
|
-
|
|
9365
|
+
React__default.createElement(
|
|
9361
9366
|
LazyLoad,
|
|
9362
9367
|
{ once: true },
|
|
9363
|
-
|
|
9368
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9364
9369
|
),
|
|
9365
|
-
|
|
9370
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9366
9371
|
)
|
|
9367
|
-
) :
|
|
9372
|
+
) : React__default.createElement(
|
|
9368
9373
|
'div',
|
|
9369
9374
|
{ className: 'multi-figure-image-container' },
|
|
9370
|
-
|
|
9375
|
+
React__default.createElement(
|
|
9371
9376
|
LazyLoad,
|
|
9372
9377
|
{ once: true },
|
|
9373
|
-
|
|
9378
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9374
9379
|
),
|
|
9375
|
-
|
|
9380
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9376
9381
|
)
|
|
9377
9382
|
);
|
|
9378
9383
|
} else {
|
|
9379
|
-
return
|
|
9384
|
+
return React__default.createElement(
|
|
9380
9385
|
Col$1,
|
|
9381
9386
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9382
|
-
image.link ?
|
|
9387
|
+
image.link ? React__default.createElement(
|
|
9383
9388
|
'a',
|
|
9384
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9385
|
-
|
|
9389
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9390
|
+
React__default.createElement(
|
|
9386
9391
|
'div',
|
|
9387
9392
|
{ className: 'multi-figure-image-container' },
|
|
9388
|
-
|
|
9393
|
+
React__default.createElement(
|
|
9389
9394
|
LazyLoad,
|
|
9390
9395
|
{ once: true },
|
|
9391
|
-
|
|
9396
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9392
9397
|
),
|
|
9393
|
-
|
|
9398
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9394
9399
|
)
|
|
9395
|
-
) :
|
|
9400
|
+
) : React__default.createElement(
|
|
9396
9401
|
'div',
|
|
9397
9402
|
{ className: 'multi-figure-image-container' },
|
|
9398
|
-
|
|
9403
|
+
React__default.createElement(
|
|
9399
9404
|
LazyLoad,
|
|
9400
9405
|
{ once: true },
|
|
9401
|
-
|
|
9406
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9402
9407
|
),
|
|
9403
|
-
|
|
9408
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9404
9409
|
)
|
|
9405
9410
|
);
|
|
9406
9411
|
}
|
|
9407
9412
|
})
|
|
9408
9413
|
),
|
|
9409
|
-
|
|
9414
|
+
React__default.createElement(
|
|
9410
9415
|
'div',
|
|
9411
9416
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9412
|
-
|
|
9417
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9413
9418
|
),
|
|
9414
|
-
|
|
9419
|
+
React__default.createElement(
|
|
9415
9420
|
'style',
|
|
9416
9421
|
{ jsx: 'true' },
|
|
9417
9422
|
'\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 cursor: pointer;\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 '
|
|
@@ -9460,23 +9465,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9460
9465
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9461
9466
|
}, []);
|
|
9462
9467
|
|
|
9463
|
-
return
|
|
9464
|
-
|
|
9468
|
+
return React__default.createElement(
|
|
9469
|
+
React__default.Fragment,
|
|
9465
9470
|
null,
|
|
9466
|
-
|
|
9471
|
+
React__default.createElement(
|
|
9467
9472
|
Head,
|
|
9468
9473
|
null,
|
|
9469
|
-
|
|
9474
|
+
React__default.createElement('script', {
|
|
9470
9475
|
dangerouslySetInnerHTML: {
|
|
9471
9476
|
__html: 'history.scrollRestoration = "manual"'
|
|
9472
9477
|
}
|
|
9473
9478
|
})
|
|
9474
9479
|
),
|
|
9475
|
-
|
|
9480
|
+
React__default.createElement(
|
|
9476
9481
|
'div',
|
|
9477
9482
|
{ id: elementId },
|
|
9478
|
-
|
|
9479
|
-
|
|
9483
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9484
|
+
React__default.createElement(
|
|
9480
9485
|
'style',
|
|
9481
9486
|
{ jsx: 'true' },
|
|
9482
9487
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -9510,7 +9515,7 @@ exports.__esModule = true;
|
|
|
9510
9515
|
|
|
9511
9516
|
|
|
9512
9517
|
|
|
9513
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9518
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9514
9519
|
|
|
9515
9520
|
|
|
9516
9521
|
|
|
@@ -9530,7 +9535,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9530
9535
|
|
|
9531
9536
|
|
|
9532
9537
|
|
|
9533
|
-
var _react2 = _interopRequireDefault(
|
|
9538
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9534
9539
|
|
|
9535
9540
|
|
|
9536
9541
|
|
|
@@ -9689,7 +9694,7 @@ var ScriptTag = function (_Component) {
|
|
|
9689
9694
|
};
|
|
9690
9695
|
|
|
9691
9696
|
return ScriptTag;
|
|
9692
|
-
}(
|
|
9697
|
+
}(React__default.Component);
|
|
9693
9698
|
|
|
9694
9699
|
ScriptTag.propTypes = {
|
|
9695
9700
|
/**
|
|
@@ -9768,11 +9773,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9768
9773
|
}, []);
|
|
9769
9774
|
|
|
9770
9775
|
if (iframeSrc) {
|
|
9771
|
-
return
|
|
9776
|
+
return React__default.createElement(
|
|
9772
9777
|
'section',
|
|
9773
9778
|
{ className: 'form-assembly' },
|
|
9774
|
-
|
|
9775
|
-
|
|
9779
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9780
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9776
9781
|
);
|
|
9777
9782
|
}
|
|
9778
9783
|
|
|
@@ -9809,27 +9814,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9809
9814
|
return window.removeEventListener('resize', handleResize);
|
|
9810
9815
|
};
|
|
9811
9816
|
}, []);
|
|
9812
|
-
return
|
|
9817
|
+
return React__default.createElement(
|
|
9813
9818
|
'div',
|
|
9814
9819
|
{ className: 'blockTableHolder', ref: holder },
|
|
9815
|
-
|
|
9820
|
+
React__default.createElement(
|
|
9816
9821
|
'div',
|
|
9817
9822
|
{ className: 'blockTable' },
|
|
9818
9823
|
rows && rows.map(function (row) {
|
|
9819
|
-
return
|
|
9824
|
+
return React__default.createElement(
|
|
9820
9825
|
'div',
|
|
9821
9826
|
{ className: 'blockTableRow' },
|
|
9822
9827
|
row.cells && row.cells.map(function (cell) {
|
|
9823
|
-
return
|
|
9828
|
+
return React__default.createElement(
|
|
9824
9829
|
'div',
|
|
9825
9830
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9826
|
-
|
|
9831
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9827
9832
|
);
|
|
9828
9833
|
})
|
|
9829
9834
|
);
|
|
9830
9835
|
})
|
|
9831
9836
|
),
|
|
9832
|
-
|
|
9837
|
+
React__default.createElement(
|
|
9833
9838
|
'style',
|
|
9834
9839
|
{ jsx: true },
|
|
9835
9840
|
'\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 '
|
|
@@ -9908,12 +9913,12 @@ var getSerializers = function getSerializers() {
|
|
|
9908
9913
|
var node = _ref.node;
|
|
9909
9914
|
var url = node.url;
|
|
9910
9915
|
|
|
9911
|
-
return
|
|
9916
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9912
9917
|
},
|
|
9913
9918
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9914
9919
|
var node = _ref2.node;
|
|
9915
9920
|
|
|
9916
|
-
return
|
|
9921
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9917
9922
|
nodes: node,
|
|
9918
9923
|
article: article,
|
|
9919
9924
|
meta: meta,
|
|
@@ -9927,7 +9932,7 @@ var getSerializers = function getSerializers() {
|
|
|
9927
9932
|
articleSeries: function articleSeries(_ref3) {
|
|
9928
9933
|
var node = _ref3.node;
|
|
9929
9934
|
|
|
9930
|
-
return
|
|
9935
|
+
return React__default.createElement(ArticleSeries, {
|
|
9931
9936
|
nodes: node,
|
|
9932
9937
|
accountIDs: videoAccountIDs || {},
|
|
9933
9938
|
pageview: pageview,
|
|
@@ -9940,61 +9945,61 @@ var getSerializers = function getSerializers() {
|
|
|
9940
9945
|
figure: function figure(_ref4) {
|
|
9941
9946
|
var node = _ref4.node;
|
|
9942
9947
|
|
|
9943
|
-
return
|
|
9948
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9944
9949
|
},
|
|
9945
9950
|
multifigure: function multifigure(_ref5) {
|
|
9946
9951
|
var node = _ref5.node;
|
|
9947
9952
|
|
|
9948
|
-
return
|
|
9953
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9949
9954
|
},
|
|
9950
9955
|
slideshow: function slideshow(_ref6) {
|
|
9951
9956
|
var node = _ref6.node;
|
|
9952
9957
|
var slides = node.slides;
|
|
9953
9958
|
|
|
9954
|
-
return
|
|
9959
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9955
9960
|
},
|
|
9956
9961
|
sidebar: function sidebar(_ref7) {
|
|
9957
9962
|
var node = _ref7.node;
|
|
9958
9963
|
var caption = node.caption,
|
|
9959
9964
|
content = node.content;
|
|
9960
9965
|
|
|
9961
|
-
return
|
|
9966
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9962
9967
|
},
|
|
9963
9968
|
datatable: function datatable(_ref8) {
|
|
9964
9969
|
var node = _ref8.node;
|
|
9965
9970
|
var table = node.table;
|
|
9966
9971
|
|
|
9967
|
-
return
|
|
9972
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9968
9973
|
},
|
|
9969
9974
|
media: function media(_ref9) {
|
|
9970
9975
|
var node = _ref9.node;
|
|
9971
9976
|
|
|
9972
|
-
return
|
|
9977
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9973
9978
|
},
|
|
9974
9979
|
iframe: function iframe(_ref10) {
|
|
9975
9980
|
var node = _ref10.node;
|
|
9976
9981
|
|
|
9977
|
-
return
|
|
9982
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9978
9983
|
},
|
|
9979
9984
|
video: function video(_ref11) {
|
|
9980
9985
|
var node = _ref11.node;
|
|
9981
9986
|
|
|
9982
|
-
return
|
|
9987
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9983
9988
|
},
|
|
9984
9989
|
audio: function audio(_ref12) {
|
|
9985
9990
|
var node = _ref12.node;
|
|
9986
9991
|
|
|
9987
|
-
return
|
|
9992
|
+
return React__default.createElement(Audio, { node: node });
|
|
9988
9993
|
},
|
|
9989
9994
|
poll: function poll(_ref13) {
|
|
9990
9995
|
var node = _ref13.node;
|
|
9991
9996
|
|
|
9992
|
-
return
|
|
9997
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9993
9998
|
},
|
|
9994
9999
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9995
10000
|
var node = _ref14.node;
|
|
9996
10001
|
|
|
9997
|
-
return
|
|
10002
|
+
return React__default.createElement(Poll$1, {
|
|
9998
10003
|
node: node,
|
|
9999
10004
|
client: client,
|
|
10000
10005
|
pageview: pageview,
|
|
@@ -10008,35 +10013,35 @@ var getSerializers = function getSerializers() {
|
|
|
10008
10013
|
var node = _ref15.node;
|
|
10009
10014
|
var quizzes = node.quizzes;
|
|
10010
10015
|
|
|
10011
|
-
return
|
|
10016
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10012
10017
|
},
|
|
10013
10018
|
leads: function leads(_ref16) {
|
|
10014
10019
|
var node = _ref16.node;
|
|
10015
10020
|
var leadID = node.leadID;
|
|
10016
10021
|
|
|
10017
10022
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10018
|
-
return
|
|
10023
|
+
return React__default.createElement(Leads, { url: url });
|
|
10019
10024
|
},
|
|
10020
10025
|
slideshows: function slideshows(_ref17) {
|
|
10021
10026
|
var node = _ref17.node;
|
|
10022
10027
|
|
|
10023
|
-
return
|
|
10028
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10024
10029
|
},
|
|
10025
10030
|
nativeAd: function nativeAd(_ref18) {
|
|
10026
10031
|
var node = _ref18.node;
|
|
10027
10032
|
|
|
10028
|
-
return
|
|
10033
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10029
10034
|
},
|
|
10030
10035
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10031
10036
|
var node = _ref19.node;
|
|
10032
10037
|
|
|
10033
|
-
return
|
|
10038
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10034
10039
|
},
|
|
10035
10040
|
hrtag: function hrtag() {
|
|
10036
|
-
return
|
|
10041
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10037
10042
|
},
|
|
10038
10043
|
brtag: function brtag() {
|
|
10039
|
-
return
|
|
10044
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10040
10045
|
},
|
|
10041
10046
|
formstack: function formstack(_ref20) {
|
|
10042
10047
|
var node = _ref20.node;
|
|
@@ -10044,29 +10049,29 @@ var getSerializers = function getSerializers() {
|
|
|
10044
10049
|
Caption = node.Caption,
|
|
10045
10050
|
needSegmentSupport = node.needSegmentSupport;
|
|
10046
10051
|
|
|
10047
|
-
return
|
|
10052
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10048
10053
|
},
|
|
10049
10054
|
formassembly: FormAssembly,
|
|
10050
10055
|
multimedia: function multimedia(_ref21) {
|
|
10051
10056
|
var node = _ref21.node;
|
|
10052
10057
|
|
|
10053
|
-
return
|
|
10058
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10054
10059
|
},
|
|
10055
10060
|
blockTable: function blockTable(_ref22) {
|
|
10056
10061
|
var node = _ref22.node;
|
|
10057
|
-
return
|
|
10062
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10058
10063
|
}
|
|
10059
10064
|
},
|
|
10060
10065
|
marks: {
|
|
10061
10066
|
superscript: function superscript(props) {
|
|
10062
|
-
return
|
|
10067
|
+
return React__default.createElement(
|
|
10063
10068
|
'sup',
|
|
10064
10069
|
null,
|
|
10065
10070
|
props.children
|
|
10066
10071
|
);
|
|
10067
10072
|
},
|
|
10068
10073
|
subscript: function subscript(props) {
|
|
10069
|
-
return
|
|
10074
|
+
return React__default.createElement(
|
|
10070
10075
|
'sub',
|
|
10071
10076
|
null,
|
|
10072
10077
|
props.children
|
|
@@ -10083,7 +10088,7 @@ var getSerializers = function getSerializers() {
|
|
|
10083
10088
|
if (href && href.charAt(0) === '#') {
|
|
10084
10089
|
var elementId = href.slice(1);
|
|
10085
10090
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10086
|
-
return
|
|
10091
|
+
return React__default.createElement(
|
|
10087
10092
|
'a',
|
|
10088
10093
|
{ onClick: function onClick() {
|
|
10089
10094
|
return ScrollToElement(elementId);
|
|
@@ -10093,15 +10098,15 @@ var getSerializers = function getSerializers() {
|
|
|
10093
10098
|
}
|
|
10094
10099
|
|
|
10095
10100
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10096
|
-
return
|
|
10101
|
+
return href ? React__default.createElement(
|
|
10097
10102
|
'a',
|
|
10098
|
-
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10103
|
+
_extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10099
10104
|
children
|
|
10100
|
-
);
|
|
10105
|
+
) : children;
|
|
10101
10106
|
},
|
|
10102
10107
|
alignleft: function alignleft(_ref23) {
|
|
10103
10108
|
var children = _ref23.children;
|
|
10104
|
-
return
|
|
10109
|
+
return React__default.createElement(
|
|
10105
10110
|
'div',
|
|
10106
10111
|
{ style: { textAlign: 'left' } },
|
|
10107
10112
|
children
|
|
@@ -10109,7 +10114,7 @@ var getSerializers = function getSerializers() {
|
|
|
10109
10114
|
},
|
|
10110
10115
|
alignright: function alignright(_ref24) {
|
|
10111
10116
|
var children = _ref24.children;
|
|
10112
|
-
return
|
|
10117
|
+
return React__default.createElement(
|
|
10113
10118
|
'div',
|
|
10114
10119
|
{ style: { textAlign: 'right' } },
|
|
10115
10120
|
children
|
|
@@ -10117,7 +10122,7 @@ var getSerializers = function getSerializers() {
|
|
|
10117
10122
|
},
|
|
10118
10123
|
aligncenter: function aligncenter(_ref25) {
|
|
10119
10124
|
var children = _ref25.children;
|
|
10120
|
-
return
|
|
10125
|
+
return React__default.createElement(
|
|
10121
10126
|
'div',
|
|
10122
10127
|
{ style: { textAlign: 'center' } },
|
|
10123
10128
|
children
|
|
@@ -10125,7 +10130,7 @@ var getSerializers = function getSerializers() {
|
|
|
10125
10130
|
},
|
|
10126
10131
|
alignjustify: function alignjustify(_ref26) {
|
|
10127
10132
|
var children = _ref26.children;
|
|
10128
|
-
return
|
|
10133
|
+
return React__default.createElement(
|
|
10129
10134
|
'div',
|
|
10130
10135
|
{ style: { textAlign: 'justify' } },
|
|
10131
10136
|
children
|
|
@@ -10135,7 +10140,7 @@ var getSerializers = function getSerializers() {
|
|
|
10135
10140
|
var children = props.children,
|
|
10136
10141
|
color = props.mark.color;
|
|
10137
10142
|
|
|
10138
|
-
return
|
|
10143
|
+
return React__default.createElement(
|
|
10139
10144
|
'span',
|
|
10140
10145
|
{ style: { color: color ? color.hex : null } },
|
|
10141
10146
|
children
|