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