@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,64 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var
|
|
5
|
-
var toConsumableArray = require('./toConsumableArray-
|
|
6
|
-
var _extends = require('./extends-
|
|
7
|
-
var inherits = require('./inherits-
|
|
8
|
-
var _typeof
|
|
6
|
+
var core_getIteratorMethod = require('./core.get-iterator-method-f3c44602.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-c9b8a0d0.js');
|
|
8
|
+
var _extends$1 = require('./extends-eed4f016.js');
|
|
9
|
+
var inherits$1 = require('./inherits-12d44cca.js');
|
|
10
|
+
var _typeof = require('./typeof-5f52cf64.js');
|
|
9
11
|
var React = require('react');
|
|
10
|
-
var
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
11
14
|
var PropTypes = require('prop-types');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
15
19
|
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var slicedToArray = require('./slicedToArray-f6d4eaa8.js');
|
|
16
22
|
var urlFor = require('./urlFor.js');
|
|
17
|
-
var index$2 = require('./index-
|
|
18
|
-
var main = require('./main-
|
|
23
|
+
var index$2 = require('./index-96b3db50.js');
|
|
24
|
+
var main = require('./main-02daeefe.js');
|
|
19
25
|
var entities = require('./entities-310b46ee.js');
|
|
20
|
-
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
21
26
|
var Segment = require('./Segment.js');
|
|
22
27
|
var Beam = require('./Beam.js');
|
|
23
28
|
var AdSlot = require('./AdSlot.js');
|
|
24
|
-
var Button = require('react-bootstrap/Button');
|
|
25
|
-
var BlockContent = require('./BlockContent-
|
|
26
|
-
var index$
|
|
29
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
30
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
31
|
+
var index$3 = require('./index-187c967e.js');
|
|
27
32
|
var GroupDeck = require('./GroupDeck.js');
|
|
28
33
|
var reactBootstrap = require('react-bootstrap');
|
|
29
|
-
var index_esm = require('./index.esm-
|
|
34
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
30
35
|
var util = require('./util-f2c1b65b.js');
|
|
31
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
32
|
-
var Head = require('next/head');
|
|
36
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
37
|
+
var Head = _interopDefault(require('next/head'));
|
|
33
38
|
var SocialShare = require('./SocialShare.js');
|
|
34
|
-
var _objectToArray = require('./_object-to-array-
|
|
35
|
-
var Pagination = require('react-bootstrap/Pagination');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
var OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
38
|
-
var Tooltip = require('react-bootstrap/Tooltip');
|
|
39
|
-
var Popover = require('react-bootstrap/Popover');
|
|
40
|
-
var ScriptTag = require('react-script-tag');
|
|
41
|
-
|
|
42
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
43
|
-
|
|
44
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
45
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
46
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
47
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
48
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
49
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
50
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
51
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
52
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
53
|
-
var OverlayTrigger__default = /*#__PURE__*/_interopDefaultLegacy(OverlayTrigger);
|
|
54
|
-
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
55
|
-
var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
56
|
-
var ScriptTag__default = /*#__PURE__*/_interopDefaultLegacy(ScriptTag);
|
|
39
|
+
var _objectToArray = require('./_object-to-array-9bac8737.js');
|
|
40
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
42
|
+
var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
|
|
43
|
+
var Tooltip = _interopDefault(require('react-bootstrap/Tooltip'));
|
|
44
|
+
var Popover = _interopDefault(require('react-bootstrap/Popover'));
|
|
57
45
|
|
|
58
46
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
59
47
|
var pageNumber = selectedIndex + 1;
|
|
60
48
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
61
|
-
Router__default
|
|
49
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
62
50
|
};
|
|
63
51
|
|
|
64
52
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -88,27 +76,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
88
76
|
if (pageview) pageview(router.asPath);
|
|
89
77
|
}, [router]);
|
|
90
78
|
|
|
91
|
-
return React__default
|
|
79
|
+
return React__default.createElement(
|
|
92
80
|
'div',
|
|
93
81
|
{ className: 'mt-3 mb-3' },
|
|
94
|
-
React__default
|
|
82
|
+
React__default.createElement(
|
|
95
83
|
reactBootstrap.Carousel,
|
|
96
84
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
97
85
|
return onChangeSlide(selectedIndex, router);
|
|
98
86
|
}, interval: null },
|
|
99
87
|
slides && slides.map(function (slide) {
|
|
100
|
-
return React__default
|
|
88
|
+
return React__default.createElement(
|
|
101
89
|
reactBootstrap.Carousel.Item,
|
|
102
90
|
{ key: slide._key },
|
|
103
|
-
React__default
|
|
91
|
+
React__default.createElement(
|
|
104
92
|
'picture',
|
|
105
93
|
null,
|
|
106
|
-
React__default
|
|
107
|
-
React__default
|
|
108
|
-
React__default
|
|
109
|
-
React__default
|
|
94
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
95
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
96
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
97
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
110
98
|
),
|
|
111
|
-
slide.caption && React__default
|
|
99
|
+
slide.caption && React__default.createElement(
|
|
112
100
|
'p',
|
|
113
101
|
{ className: 'p-2' },
|
|
114
102
|
slide.caption
|
|
@@ -119,18 +107,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
119
107
|
);
|
|
120
108
|
};
|
|
121
109
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
110
|
+
var isArray = Array.isArray;
|
|
111
|
+
var keyList = Object.keys;
|
|
112
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
125
113
|
|
|
126
114
|
var fastDeepEqual = function equal(a, b) {
|
|
127
115
|
if (a === b) return true;
|
|
128
116
|
|
|
129
117
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
130
|
-
|
|
118
|
+
var arrA = isArray(a)
|
|
119
|
+
, arrB = isArray(b)
|
|
120
|
+
, i
|
|
121
|
+
, length
|
|
122
|
+
, key;
|
|
131
123
|
|
|
132
|
-
|
|
133
|
-
if (Array.isArray(a)) {
|
|
124
|
+
if (arrA && arrB) {
|
|
134
125
|
length = a.length;
|
|
135
126
|
if (length != b.length) return false;
|
|
136
127
|
for (i = length; i-- !== 0;)
|
|
@@ -138,29 +129,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
138
129
|
return true;
|
|
139
130
|
}
|
|
140
131
|
|
|
132
|
+
if (arrA != arrB) return false;
|
|
141
133
|
|
|
134
|
+
var dateA = a instanceof Date
|
|
135
|
+
, dateB = b instanceof Date;
|
|
136
|
+
if (dateA != dateB) return false;
|
|
137
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
142
138
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
if (
|
|
139
|
+
var regexpA = a instanceof RegExp
|
|
140
|
+
, regexpB = b instanceof RegExp;
|
|
141
|
+
if (regexpA != regexpB) return false;
|
|
142
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
146
143
|
|
|
147
|
-
keys =
|
|
144
|
+
var keys = keyList(a);
|
|
148
145
|
length = keys.length;
|
|
149
|
-
|
|
146
|
+
|
|
147
|
+
if (length !== keyList(b).length)
|
|
148
|
+
return false;
|
|
150
149
|
|
|
151
150
|
for (i = length; i-- !== 0;)
|
|
152
|
-
if (!
|
|
151
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
153
152
|
|
|
154
153
|
for (i = length; i-- !== 0;) {
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
key = keys[i];
|
|
157
155
|
if (!equal(a[key], b[key])) return false;
|
|
158
156
|
}
|
|
159
157
|
|
|
160
158
|
return true;
|
|
161
159
|
}
|
|
162
160
|
|
|
163
|
-
// true if both NaN, false otherwise
|
|
164
161
|
return a!==a && b!==b;
|
|
165
162
|
};
|
|
166
163
|
|
|
@@ -1583,239 +1580,199 @@ module.exports = exports['default'];
|
|
|
1583
1580
|
|
|
1584
1581
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1585
1582
|
|
|
1586
|
-
function
|
|
1587
|
-
|
|
1588
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1589
|
-
|
|
1590
|
-
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); } }
|
|
1591
|
-
|
|
1592
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1593
|
-
|
|
1594
|
-
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); }
|
|
1583
|
+
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; }; }();
|
|
1595
1584
|
|
|
1596
|
-
function
|
|
1585
|
+
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; };
|
|
1597
1586
|
|
|
1598
|
-
function
|
|
1599
|
-
|
|
1600
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1601
|
-
|
|
1602
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1603
|
-
|
|
1604
|
-
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; } }
|
|
1587
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1605
1588
|
|
|
1606
|
-
function
|
|
1589
|
+
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; }
|
|
1607
1590
|
|
|
1608
|
-
function
|
|
1591
|
+
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; }
|
|
1609
1592
|
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
*
|
|
1615
|
-
*
|
|
1616
|
-
* @param {Object} prevProps
|
|
1617
|
-
* @param {Object} props
|
|
1593
|
+
/**
|
|
1594
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1595
|
+
*
|
|
1596
|
+
* @param {Object} prevProps
|
|
1597
|
+
* @param {Object} props
|
|
1618
1598
|
*/
|
|
1619
|
-
|
|
1620
1599
|
function shouldUpdateVideo(prevProps, props) {
|
|
1621
1600
|
// A changing video should always trigger an update
|
|
1622
1601
|
if (prevProps.videoId !== props.videoId) {
|
|
1623
1602
|
return true;
|
|
1624
|
-
}
|
|
1625
|
-
// update.
|
|
1626
|
-
|
|
1603
|
+
}
|
|
1627
1604
|
|
|
1605
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1606
|
+
// update.
|
|
1628
1607
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1629
1608
|
var vars = props.opts.playerVars || {};
|
|
1609
|
+
|
|
1630
1610
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1631
1611
|
}
|
|
1632
|
-
/**
|
|
1633
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1634
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1635
|
-
* player reset is necessary.
|
|
1636
|
-
*
|
|
1637
|
-
* @param {Object} opts
|
|
1638
|
-
*/
|
|
1639
|
-
|
|
1640
1612
|
|
|
1613
|
+
/**
|
|
1614
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1615
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
+
* player reset is necessary.
|
|
1617
|
+
*
|
|
1618
|
+
* @param {Object} opts
|
|
1619
|
+
*/
|
|
1641
1620
|
function filterResetOptions(opts) {
|
|
1642
|
-
return
|
|
1643
|
-
playerVars:
|
|
1621
|
+
return _extends({}, opts, {
|
|
1622
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1644
1623
|
autoplay: 0,
|
|
1645
1624
|
start: 0,
|
|
1646
1625
|
end: 0
|
|
1647
1626
|
})
|
|
1648
1627
|
});
|
|
1649
1628
|
}
|
|
1650
|
-
/**
|
|
1651
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1652
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1653
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1654
|
-
* those.
|
|
1655
|
-
*
|
|
1656
|
-
* @param {Object} prevProps
|
|
1657
|
-
* @param {Object} props
|
|
1658
|
-
*/
|
|
1659
|
-
|
|
1660
1629
|
|
|
1630
|
+
/**
|
|
1631
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1632
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1633
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1634
|
+
* those.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {Object} prevProps
|
|
1637
|
+
* @param {Object} props
|
|
1638
|
+
*/
|
|
1661
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1662
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1663
1641
|
}
|
|
1664
|
-
/**
|
|
1665
|
-
* Check whether a props change should result in an id or className update.
|
|
1666
|
-
*
|
|
1667
|
-
* @param {Object} prevProps
|
|
1668
|
-
* @param {Object} props
|
|
1669
|
-
*/
|
|
1670
|
-
|
|
1671
1642
|
|
|
1643
|
+
/**
|
|
1644
|
+
* Check whether a props change should result in an id or className update.
|
|
1645
|
+
*
|
|
1646
|
+
* @param {Object} prevProps
|
|
1647
|
+
* @param {Object} props
|
|
1648
|
+
*/
|
|
1672
1649
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1673
1650
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1674
1651
|
}
|
|
1675
1652
|
|
|
1676
|
-
var YouTube =
|
|
1653
|
+
var YouTube = function (_React$Component) {
|
|
1677
1654
|
_inherits(YouTube, _React$Component);
|
|
1678
1655
|
|
|
1679
|
-
var _super = _createSuper(YouTube);
|
|
1680
|
-
|
|
1681
|
-
/**
|
|
1682
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1683
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1684
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1685
|
-
*/
|
|
1686
1656
|
function YouTube(props) {
|
|
1687
|
-
var _this;
|
|
1688
|
-
|
|
1689
1657
|
_classCallCheck(this, YouTube);
|
|
1690
1658
|
|
|
1691
|
-
_this =
|
|
1659
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1692
1660
|
|
|
1693
|
-
|
|
1661
|
+
_this.onPlayerReady = function (event) {
|
|
1694
1662
|
return _this.props.onReady(event);
|
|
1695
|
-
}
|
|
1663
|
+
};
|
|
1696
1664
|
|
|
1697
|
-
|
|
1665
|
+
_this.onPlayerError = function (event) {
|
|
1698
1666
|
return _this.props.onError(event);
|
|
1699
|
-
}
|
|
1667
|
+
};
|
|
1700
1668
|
|
|
1701
|
-
|
|
1669
|
+
_this.onPlayerStateChange = function (event) {
|
|
1702
1670
|
_this.props.onStateChange(event);
|
|
1703
|
-
|
|
1704
1671
|
switch (event.data) {
|
|
1672
|
+
|
|
1705
1673
|
case YouTube.PlayerState.ENDED:
|
|
1706
1674
|
_this.props.onEnd(event);
|
|
1707
|
-
|
|
1708
1675
|
break;
|
|
1709
1676
|
|
|
1710
1677
|
case YouTube.PlayerState.PLAYING:
|
|
1711
1678
|
_this.props.onPlay(event);
|
|
1712
|
-
|
|
1713
1679
|
break;
|
|
1714
1680
|
|
|
1715
1681
|
case YouTube.PlayerState.PAUSED:
|
|
1716
1682
|
_this.props.onPause(event);
|
|
1717
|
-
|
|
1718
1683
|
break;
|
|
1719
1684
|
}
|
|
1720
|
-
}
|
|
1685
|
+
};
|
|
1721
1686
|
|
|
1722
|
-
|
|
1687
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1723
1688
|
return _this.props.onPlaybackRateChange(event);
|
|
1724
|
-
}
|
|
1689
|
+
};
|
|
1725
1690
|
|
|
1726
|
-
|
|
1691
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1727
1692
|
return _this.props.onPlaybackQualityChange(event);
|
|
1728
|
-
}
|
|
1693
|
+
};
|
|
1729
1694
|
|
|
1730
|
-
|
|
1695
|
+
_this.createPlayer = function () {
|
|
1731
1696
|
// do not attempt to create a player server-side, it won't work
|
|
1732
|
-
if (typeof document === 'undefined') return;
|
|
1733
|
-
|
|
1734
|
-
var playerOpts =
|
|
1697
|
+
if (typeof document === 'undefined') return;
|
|
1698
|
+
// create player
|
|
1699
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1735
1700
|
// preload the `videoId` video if one is already given
|
|
1736
1701
|
videoId: _this.props.videoId
|
|
1737
1702
|
});
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1703
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1704
|
+
// attach event handlers
|
|
1741
1705
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1742
|
-
|
|
1743
1706
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1744
|
-
|
|
1745
1707
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1746
|
-
|
|
1747
1708
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1748
|
-
|
|
1749
1709
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1750
|
-
}
|
|
1710
|
+
};
|
|
1751
1711
|
|
|
1752
|
-
|
|
1712
|
+
_this.resetPlayer = function () {
|
|
1753
1713
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1754
|
-
}
|
|
1714
|
+
};
|
|
1755
1715
|
|
|
1756
|
-
|
|
1716
|
+
_this.updatePlayer = function () {
|
|
1757
1717
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1758
1718
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1759
1719
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1760
1720
|
});
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1764
|
-
return _this.internalPlayer;
|
|
1765
|
-
});
|
|
1721
|
+
};
|
|
1766
1722
|
|
|
1767
|
-
|
|
1723
|
+
_this.updateVideo = function () {
|
|
1768
1724
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1769
1725
|
_this.internalPlayer.stopVideo();
|
|
1770
|
-
|
|
1771
1726
|
return;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1727
|
+
}
|
|
1774
1728
|
|
|
1729
|
+
// set queueing options
|
|
1775
1730
|
var autoplay = false;
|
|
1776
1731
|
var opts = {
|
|
1777
1732
|
videoId: _this.props.videoId
|
|
1778
1733
|
};
|
|
1779
|
-
|
|
1780
1734
|
if ('playerVars' in _this.props.opts) {
|
|
1781
1735
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1782
|
-
|
|
1783
1736
|
if ('start' in _this.props.opts.playerVars) {
|
|
1784
1737
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1785
1738
|
}
|
|
1786
|
-
|
|
1787
1739
|
if ('end' in _this.props.opts.playerVars) {
|
|
1788
1740
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1789
1741
|
}
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1742
|
+
}
|
|
1792
1743
|
|
|
1744
|
+
// if autoplay is enabled loadVideoById
|
|
1793
1745
|
if (autoplay) {
|
|
1794
1746
|
_this.internalPlayer.loadVideoById(opts);
|
|
1795
|
-
|
|
1796
1747
|
return;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
|
|
1748
|
+
}
|
|
1749
|
+
// default behaviour just cues the video
|
|
1800
1750
|
_this.internalPlayer.cueVideoById(opts);
|
|
1801
|
-
}
|
|
1751
|
+
};
|
|
1802
1752
|
|
|
1803
|
-
|
|
1753
|
+
_this.refContainer = function (container) {
|
|
1804
1754
|
_this.container = container;
|
|
1805
|
-
}
|
|
1755
|
+
};
|
|
1806
1756
|
|
|
1807
1757
|
_this.container = null;
|
|
1808
1758
|
_this.internalPlayer = null;
|
|
1809
1759
|
return _this;
|
|
1810
1760
|
}
|
|
1811
1761
|
|
|
1762
|
+
/**
|
|
1763
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1764
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1765
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1766
|
+
*/
|
|
1767
|
+
|
|
1768
|
+
|
|
1812
1769
|
_createClass(YouTube, [{
|
|
1813
|
-
key:
|
|
1770
|
+
key: 'componentDidMount',
|
|
1814
1771
|
value: function componentDidMount() {
|
|
1815
1772
|
this.createPlayer();
|
|
1816
1773
|
}
|
|
1817
1774
|
}, {
|
|
1818
|
-
key:
|
|
1775
|
+
key: 'componentDidUpdate',
|
|
1819
1776
|
value: function componentDidUpdate(prevProps) {
|
|
1820
1777
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1821
1778
|
this.updatePlayer();
|
|
@@ -1830,70 +1787,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1830
1787
|
}
|
|
1831
1788
|
}
|
|
1832
1789
|
}, {
|
|
1833
|
-
key:
|
|
1790
|
+
key: 'componentWillUnmount',
|
|
1834
1791
|
value: function componentWillUnmount() {
|
|
1835
|
-
/**
|
|
1836
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1837
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1838
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1839
|
-
* this method isn't quick enough to reset the container element.
|
|
1792
|
+
/**
|
|
1793
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1794
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1795
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1796
|
+
* this method isn't quick enough to reset the container element.
|
|
1840
1797
|
*/
|
|
1841
1798
|
this.internalPlayer.destroy();
|
|
1842
1799
|
}
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
*
|
|
1846
|
-
*
|
|
1847
|
-
*
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1803
|
+
*
|
|
1804
|
+
* @param {Object} event
|
|
1805
|
+
* @param {Object} target - player object
|
|
1806
|
+
*/
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1811
|
+
*
|
|
1812
|
+
* @param {Object} event
|
|
1813
|
+
* @param {Integer} data - error type
|
|
1814
|
+
* @param {Object} target - player object
|
|
1815
|
+
*/
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1820
|
+
*
|
|
1821
|
+
* @param {Object} event
|
|
1822
|
+
* @param {Integer} data - status change type
|
|
1823
|
+
* @param {Object} target - actual YT player
|
|
1824
|
+
*/
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1829
|
+
*
|
|
1830
|
+
* @param {Object} event
|
|
1831
|
+
* @param {Float} data - playback rate
|
|
1832
|
+
* @param {Object} target - actual YT player
|
|
1833
|
+
*/
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1838
|
+
*
|
|
1839
|
+
* @param {Object} event
|
|
1840
|
+
* @param {String} data - playback quality
|
|
1841
|
+
* @param {Object} target - actual YT player
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1847
|
+
*/
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1857
|
+
* React should update this automatically but since the Youtube Player API
|
|
1858
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1859
|
+
*/
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1864
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1865
|
+
* Youtube Player API methods to update the video.
|
|
1848
1866
|
*/
|
|
1849
1867
|
|
|
1850
1868
|
}, {
|
|
1851
|
-
key:
|
|
1869
|
+
key: 'render',
|
|
1852
1870
|
value: function render() {
|
|
1853
|
-
return
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
id: this.props.id,
|
|
1857
|
-
|
|
1858
|
-
ref: this.refContainer
|
|
1859
|
-
}));
|
|
1871
|
+
return React__default.createElement(
|
|
1872
|
+
'div',
|
|
1873
|
+
{ className: this.props.containerClassName },
|
|
1874
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1875
|
+
);
|
|
1860
1876
|
}
|
|
1861
1877
|
}]);
|
|
1862
1878
|
|
|
1863
1879
|
return YouTube;
|
|
1864
|
-
}(React__default
|
|
1865
|
-
|
|
1866
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1867
|
-
UNSTARTED: -1,
|
|
1868
|
-
ENDED: 0,
|
|
1869
|
-
PLAYING: 1,
|
|
1870
|
-
PAUSED: 2,
|
|
1871
|
-
BUFFERING: 3,
|
|
1872
|
-
CUED: 5
|
|
1873
|
-
});
|
|
1880
|
+
}(React__default.Component);
|
|
1874
1881
|
|
|
1875
1882
|
YouTube.propTypes = {
|
|
1876
|
-
videoId: PropTypes__default
|
|
1883
|
+
videoId: PropTypes__default.string,
|
|
1884
|
+
|
|
1877
1885
|
// custom ID for player element
|
|
1878
|
-
id: PropTypes__default
|
|
1886
|
+
id: PropTypes__default.string,
|
|
1887
|
+
|
|
1879
1888
|
// custom class name for player element
|
|
1880
|
-
className: PropTypes__default
|
|
1889
|
+
className: PropTypes__default.string,
|
|
1881
1890
|
// custom class name for player container element
|
|
1882
|
-
containerClassName: PropTypes__default
|
|
1891
|
+
containerClassName: PropTypes__default.string,
|
|
1892
|
+
|
|
1883
1893
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
|
-
opts: PropTypes__default
|
|
1894
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1895
|
+
|
|
1885
1896
|
// event subscriptions
|
|
1886
|
-
onReady: PropTypes__default
|
|
1887
|
-
onError: PropTypes__default
|
|
1888
|
-
onPlay: PropTypes__default
|
|
1889
|
-
onPause: PropTypes__default
|
|
1890
|
-
onEnd: PropTypes__default
|
|
1891
|
-
onStateChange: PropTypes__default
|
|
1892
|
-
onPlaybackRateChange: PropTypes__default
|
|
1893
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1897
|
+
onReady: PropTypes__default.func,
|
|
1898
|
+
onError: PropTypes__default.func,
|
|
1899
|
+
onPlay: PropTypes__default.func,
|
|
1900
|
+
onPause: PropTypes__default.func,
|
|
1901
|
+
onEnd: PropTypes__default.func,
|
|
1902
|
+
onStateChange: PropTypes__default.func,
|
|
1903
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1904
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1894
1905
|
};
|
|
1895
1906
|
YouTube.defaultProps = {
|
|
1896
|
-
videoId: null,
|
|
1897
1907
|
id: null,
|
|
1898
1908
|
className: null,
|
|
1899
1909
|
opts: {},
|
|
@@ -1907,12 +1917,20 @@ YouTube.defaultProps = {
|
|
|
1907
1917
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1918
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1919
|
};
|
|
1920
|
+
YouTube.PlayerState = {
|
|
1921
|
+
UNSTARTED: -1,
|
|
1922
|
+
ENDED: 0,
|
|
1923
|
+
PLAYING: 1,
|
|
1924
|
+
PAUSED: 2,
|
|
1925
|
+
BUFFERING: 3,
|
|
1926
|
+
CUED: 5
|
|
1927
|
+
};
|
|
1910
1928
|
|
|
1911
1929
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1912
1930
|
var url = _ref.url,
|
|
1913
1931
|
autoplay = _ref.autoplay;
|
|
1914
1932
|
|
|
1915
|
-
var id = index$
|
|
1933
|
+
var id = index$3.getYoutubeId(url);
|
|
1916
1934
|
|
|
1917
1935
|
var _useState = React.useState(false),
|
|
1918
1936
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -2008,11 +2026,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2008
2026
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2009
2027
|
};
|
|
2010
2028
|
|
|
2011
|
-
return React__default
|
|
2029
|
+
return React__default.createElement(
|
|
2012
2030
|
'div',
|
|
2013
2031
|
{ id: 'fluid-video-container' },
|
|
2014
|
-
React__default
|
|
2015
|
-
React__default
|
|
2032
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2033
|
+
React__default.createElement(
|
|
2016
2034
|
'style',
|
|
2017
2035
|
{ jsx: 'true' },
|
|
2018
2036
|
'\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 '
|
|
@@ -2025,20 +2043,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2025
2043
|
content = _ref.content,
|
|
2026
2044
|
getSerializers = _ref.getSerializers;
|
|
2027
2045
|
|
|
2028
|
-
return React__default
|
|
2046
|
+
return React__default.createElement(
|
|
2029
2047
|
'article',
|
|
2030
2048
|
{ className: 'sidebar' },
|
|
2031
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2032
2050
|
'div',
|
|
2033
2051
|
null,
|
|
2034
|
-
React__default
|
|
2052
|
+
React__default.createElement(
|
|
2035
2053
|
'h3',
|
|
2036
2054
|
null,
|
|
2037
2055
|
caption
|
|
2038
2056
|
),
|
|
2039
|
-
React__default
|
|
2057
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2040
2058
|
),
|
|
2041
|
-
React__default
|
|
2059
|
+
React__default.createElement(
|
|
2042
2060
|
'style',
|
|
2043
2061
|
{ jsx: 'true' },
|
|
2044
2062
|
'\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 '
|
|
@@ -2049,18 +2067,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2049
2067
|
var TableShow = function TableShow(_ref) {
|
|
2050
2068
|
var rows = _ref.rows;
|
|
2051
2069
|
|
|
2052
|
-
return React__default
|
|
2070
|
+
return React__default.createElement(
|
|
2053
2071
|
reactBootstrap.Table,
|
|
2054
2072
|
{ bordered: true, hover: true, responsive: true },
|
|
2055
|
-
React__default
|
|
2073
|
+
React__default.createElement(
|
|
2056
2074
|
'tbody',
|
|
2057
2075
|
null,
|
|
2058
2076
|
rows && rows.map(function (row) {
|
|
2059
|
-
return React__default
|
|
2077
|
+
return React__default.createElement(
|
|
2060
2078
|
'tr',
|
|
2061
2079
|
{ key: row._key },
|
|
2062
2080
|
row.cells && row.cells.map(function (cell, index) {
|
|
2063
|
-
return cell && React__default
|
|
2081
|
+
return cell && React__default.createElement(
|
|
2064
2082
|
'td',
|
|
2065
2083
|
{ key: index },
|
|
2066
2084
|
cell
|
|
@@ -2072,6 +2090,27 @@ var TableShow = function TableShow(_ref) {
|
|
|
2072
2090
|
);
|
|
2073
2091
|
};
|
|
2074
2092
|
|
|
2093
|
+
var urlForFile = function urlForFile(_ref) {
|
|
2094
|
+
var _ref$asset = _ref.asset,
|
|
2095
|
+
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
2096
|
+
var url = asset.url,
|
|
2097
|
+
originalFilename = asset.originalFilename;
|
|
2098
|
+
|
|
2099
|
+
// Appending file name in URL
|
|
2100
|
+
|
|
2101
|
+
if (url && originalFilename) {
|
|
2102
|
+
var _url$split = url.split('?'),
|
|
2103
|
+
_url$split2 = slicedToArray._slicedToArray(_url$split, 2),
|
|
2104
|
+
path = _url$split2[0],
|
|
2105
|
+
queryString = _url$split2[1];
|
|
2106
|
+
|
|
2107
|
+
originalFilename = encodeURIComponent(originalFilename);
|
|
2108
|
+
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
return url;
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2075
2114
|
var Media = function Media(_ref) {
|
|
2076
2115
|
var node = _ref.node,
|
|
2077
2116
|
client = _ref.client;
|
|
@@ -2158,25 +2197,25 @@ var Media = function Media(_ref) {
|
|
|
2158
2197
|
margin: imageMargin
|
|
2159
2198
|
};
|
|
2160
2199
|
|
|
2161
|
-
return React__default
|
|
2200
|
+
return React__default.createElement(
|
|
2162
2201
|
reactBootstrap.Figure,
|
|
2163
2202
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2164
|
-
React__default
|
|
2203
|
+
React__default.createElement(
|
|
2165
2204
|
'a',
|
|
2166
|
-
{ href: uploadDoc.asset
|
|
2167
|
-
React__default
|
|
2205
|
+
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2206
|
+
React__default.createElement(
|
|
2168
2207
|
index$2.LazyLoad,
|
|
2169
2208
|
{ once: true },
|
|
2170
|
-
React__default
|
|
2209
|
+
React__default.createElement(
|
|
2171
2210
|
'picture',
|
|
2172
2211
|
null,
|
|
2173
|
-
React__default
|
|
2174
|
-
React__default
|
|
2175
|
-
React__default
|
|
2176
|
-
React__default
|
|
2212
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2213
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2214
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2215
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2177
2216
|
)
|
|
2178
2217
|
),
|
|
2179
|
-
caption && React__default
|
|
2218
|
+
caption && React__default.createElement(
|
|
2180
2219
|
reactBootstrap.Figure.Caption,
|
|
2181
2220
|
{ className: 'media-caption' },
|
|
2182
2221
|
caption
|
|
@@ -2184,9 +2223,9 @@ var Media = function Media(_ref) {
|
|
|
2184
2223
|
)
|
|
2185
2224
|
);
|
|
2186
2225
|
} else if (caption && caption !== '') {
|
|
2187
|
-
return React__default
|
|
2226
|
+
return React__default.createElement(
|
|
2188
2227
|
'a',
|
|
2189
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2228
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2190
2229
|
href: uploadDoc.asset.url + '?dl='
|
|
2191
2230
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2192
2231
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2204,10 +2243,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2204
2243
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2205
2244
|
|
|
2206
2245
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2207
|
-
return React__default
|
|
2246
|
+
return React__default.createElement(
|
|
2208
2247
|
'div',
|
|
2209
2248
|
{ className: 'd-block text-center mb-3' },
|
|
2210
|
-
React__default
|
|
2249
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2211
2250
|
);
|
|
2212
2251
|
};
|
|
2213
2252
|
|
|
@@ -2302,10 +2341,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2302
2341
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2303
2342
|
};
|
|
2304
2343
|
|
|
2305
|
-
return React__default
|
|
2344
|
+
return React__default.createElement(
|
|
2306
2345
|
'div',
|
|
2307
2346
|
null,
|
|
2308
|
-
vidLoaded && React__default
|
|
2347
|
+
vidLoaded && React__default.createElement(
|
|
2309
2348
|
'video',
|
|
2310
2349
|
{
|
|
2311
2350
|
poster: thumbnail || '',
|
|
@@ -2323,7 +2362,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2323
2362
|
onPlay: function onPlay(e) {
|
|
2324
2363
|
return handleOnPlay(e);
|
|
2325
2364
|
} },
|
|
2326
|
-
React__default
|
|
2365
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2327
2366
|
'Your browser does not support the video tag.'
|
|
2328
2367
|
)
|
|
2329
2368
|
);
|
|
@@ -2360,7 +2399,7 @@ var Video = function Video(_ref) {
|
|
|
2360
2399
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2361
2400
|
//console.log('success:', success.ref)
|
|
2362
2401
|
var player = success.ref;
|
|
2363
|
-
if (_typeof
|
|
2402
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2364
2403
|
player.ima3.settings.debug = true;
|
|
2365
2404
|
if (targeting.content_placement && targeting.document_url) {
|
|
2366
2405
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2458,53 +2497,53 @@ var Video = function Video(_ref) {
|
|
|
2458
2497
|
|
|
2459
2498
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2460
2499
|
if (videoID) {
|
|
2461
|
-
return React__default
|
|
2500
|
+
return React__default.createElement(
|
|
2462
2501
|
'div',
|
|
2463
2502
|
null,
|
|
2464
|
-
React__default
|
|
2503
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2465
2504
|
onSuccess: onVideoSuccess,
|
|
2466
2505
|
accountId: accountIDs.brightcove.accountId,
|
|
2467
2506
|
videoId: videoID,
|
|
2468
2507
|
playerId: accountIDs.brightcove.playerId,
|
|
2469
2508
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2470
2509
|
}),
|
|
2471
|
-
React__default
|
|
2510
|
+
React__default.createElement(
|
|
2472
2511
|
'style',
|
|
2473
2512
|
{ jsx: 'true' },
|
|
2474
2513
|
'\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 '
|
|
2475
2514
|
)
|
|
2476
2515
|
);
|
|
2477
2516
|
} else if (playlistID) {
|
|
2478
|
-
return React__default
|
|
2517
|
+
return React__default.createElement(
|
|
2479
2518
|
'div',
|
|
2480
2519
|
null,
|
|
2481
|
-
React__default
|
|
2520
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2482
2521
|
accountId: accountIDs.brightcove.accountId,
|
|
2483
2522
|
playlistId: playlistID,
|
|
2484
2523
|
playerId: accountIDs.brightcove.playerId,
|
|
2485
2524
|
onSuccess: onVideoSuccess,
|
|
2486
2525
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2487
2526
|
}),
|
|
2488
|
-
React__default
|
|
2527
|
+
React__default.createElement(
|
|
2489
2528
|
'style',
|
|
2490
2529
|
{ jsx: 'true' },
|
|
2491
2530
|
'\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 '
|
|
2492
2531
|
)
|
|
2493
2532
|
);
|
|
2494
2533
|
} else if (experienceID) {
|
|
2495
|
-
return React__default
|
|
2534
|
+
return React__default.createElement(
|
|
2496
2535
|
'div',
|
|
2497
2536
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2498
|
-
videoLoaded && React__default
|
|
2537
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2499
2538
|
);
|
|
2500
2539
|
}
|
|
2501
2540
|
return null;
|
|
2502
2541
|
}
|
|
2503
2542
|
if (source === 'mp4') {
|
|
2504
|
-
return React__default
|
|
2543
|
+
return React__default.createElement(
|
|
2505
2544
|
'div',
|
|
2506
2545
|
null,
|
|
2507
|
-
React__default
|
|
2546
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2508
2547
|
);
|
|
2509
2548
|
}
|
|
2510
2549
|
|
|
@@ -2519,7 +2558,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2519
2558
|
});
|
|
2520
2559
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2521
2560
|
|
|
2522
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2561
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2523
2562
|
|
|
2524
2563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2525
2564
|
|
|
@@ -2882,17 +2921,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2882
2921
|
|
|
2883
2922
|
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; }
|
|
2884
2923
|
|
|
2885
|
-
function
|
|
2886
|
-
|
|
2887
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2888
|
-
|
|
2889
|
-
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."); }
|
|
2890
|
-
|
|
2891
|
-
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); }
|
|
2924
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2892
2925
|
|
|
2893
|
-
function
|
|
2926
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2894
2927
|
|
|
2895
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
2928
|
+
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; }
|
|
2896
2929
|
|
|
2897
2930
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2898
2931
|
|
|
@@ -3022,12 +3055,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3022
3055
|
|
|
3023
3056
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3024
3057
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3025
|
-
|
|
3026
|
-
var
|
|
3027
|
-
|
|
3058
|
+
var _iteratorNormalCompletion = true;
|
|
3059
|
+
var _didIteratorError = false;
|
|
3060
|
+
var _iteratorError = undefined;
|
|
3028
3061
|
|
|
3029
3062
|
try {
|
|
3030
|
-
for (_iterator.
|
|
3063
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3031
3064
|
var p = _step.value;
|
|
3032
3065
|
|
|
3033
3066
|
if (props$1[p]) {
|
|
@@ -3042,9 +3075,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3042
3075
|
}
|
|
3043
3076
|
}
|
|
3044
3077
|
} catch (err) {
|
|
3045
|
-
|
|
3078
|
+
_didIteratorError = true;
|
|
3079
|
+
_iteratorError = err;
|
|
3046
3080
|
} finally {
|
|
3047
|
-
|
|
3081
|
+
try {
|
|
3082
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3083
|
+
_iterator["return"]();
|
|
3084
|
+
}
|
|
3085
|
+
} finally {
|
|
3086
|
+
if (_didIteratorError) {
|
|
3087
|
+
throw _iteratorError;
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3048
3090
|
}
|
|
3049
3091
|
|
|
3050
3092
|
return config;
|
|
@@ -3109,7 +3151,7 @@ function isEqual(a, b) {
|
|
|
3109
3151
|
return true;
|
|
3110
3152
|
}
|
|
3111
3153
|
|
|
3112
|
-
if ((0, React__default
|
|
3154
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3113
3155
|
return true;
|
|
3114
3156
|
}
|
|
3115
3157
|
|
|
@@ -3171,7 +3213,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3171
3213
|
});
|
|
3172
3214
|
exports["default"] = void 0;
|
|
3173
3215
|
|
|
3174
|
-
var _react = _interopRequireWildcard(React__default
|
|
3216
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3175
3217
|
|
|
3176
3218
|
|
|
3177
3219
|
|
|
@@ -3191,16 +3233,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3191
3233
|
|
|
3192
3234
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3193
3235
|
|
|
3194
|
-
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); }; }
|
|
3195
|
-
|
|
3196
3236
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3197
3237
|
|
|
3198
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3199
|
-
|
|
3200
|
-
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; } }
|
|
3201
|
-
|
|
3202
3238
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3203
3239
|
|
|
3240
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3241
|
+
|
|
3204
3242
|
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); }
|
|
3205
3243
|
|
|
3206
3244
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3209,12 +3247,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3209
3247
|
|
|
3210
3248
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3211
3249
|
|
|
3212
|
-
var Player =
|
|
3250
|
+
var Player =
|
|
3251
|
+
/*#__PURE__*/
|
|
3252
|
+
function (_Component) {
|
|
3213
3253
|
_inherits(Player, _Component);
|
|
3214
3254
|
|
|
3215
|
-
var _super = _createSuper(Player);
|
|
3216
|
-
|
|
3217
3255
|
function Player() {
|
|
3256
|
+
var _getPrototypeOf2;
|
|
3257
|
+
|
|
3218
3258
|
var _this;
|
|
3219
3259
|
|
|
3220
3260
|
_classCallCheck(this, Player);
|
|
@@ -3223,7 +3263,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3223
3263
|
_args[_key] = arguments[_key];
|
|
3224
3264
|
}
|
|
3225
3265
|
|
|
3226
|
-
_this =
|
|
3266
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3227
3267
|
|
|
3228
3268
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3229
3269
|
|
|
@@ -3548,7 +3588,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3548
3588
|
return null;
|
|
3549
3589
|
}
|
|
3550
3590
|
|
|
3551
|
-
return
|
|
3591
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3552
3592
|
ref: this.ref,
|
|
3553
3593
|
onReady: this.handleReady,
|
|
3554
3594
|
onPlay: this.handlePlay,
|
|
@@ -3581,7 +3621,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3581
3621
|
});
|
|
3582
3622
|
exports["default"] = createSinglePlayer;
|
|
3583
3623
|
|
|
3584
|
-
var _react = _interopRequireWildcard(React__default
|
|
3624
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3585
3625
|
|
|
3586
3626
|
|
|
3587
3627
|
|
|
@@ -3609,16 +3649,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3609
3649
|
|
|
3610
3650
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3611
3651
|
|
|
3612
|
-
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); }; }
|
|
3613
|
-
|
|
3614
3652
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3615
3653
|
|
|
3616
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3617
|
-
|
|
3618
|
-
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; } }
|
|
3619
|
-
|
|
3620
3654
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3621
3655
|
|
|
3656
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3657
|
+
|
|
3622
3658
|
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); }
|
|
3623
3659
|
|
|
3624
3660
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3630,12 +3666,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3630
3666
|
function createSinglePlayer(activePlayer) {
|
|
3631
3667
|
var _class, _temp;
|
|
3632
3668
|
|
|
3633
|
-
return _temp = _class =
|
|
3669
|
+
return _temp = _class =
|
|
3670
|
+
/*#__PURE__*/
|
|
3671
|
+
function (_Component) {
|
|
3634
3672
|
_inherits(SinglePlayer, _Component);
|
|
3635
3673
|
|
|
3636
|
-
var _super = _createSuper(SinglePlayer);
|
|
3637
|
-
|
|
3638
3674
|
function SinglePlayer() {
|
|
3675
|
+
var _getPrototypeOf2;
|
|
3676
|
+
|
|
3639
3677
|
var _this;
|
|
3640
3678
|
|
|
3641
3679
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3644,7 +3682,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3644
3682
|
args[_key] = arguments[_key];
|
|
3645
3683
|
}
|
|
3646
3684
|
|
|
3647
|
-
_this =
|
|
3685
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3648
3686
|
|
|
3649
3687
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3650
3688
|
|
|
@@ -3712,12 +3750,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3712
3750
|
height = _this$props.height,
|
|
3713
3751
|
Wrapper = _this$props.wrapper;
|
|
3714
3752
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3715
|
-
return
|
|
3753
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3716
3754
|
style: _objectSpread({}, style, {
|
|
3717
3755
|
width: width,
|
|
3718
3756
|
height: height
|
|
3719
3757
|
})
|
|
3720
|
-
}, otherProps),
|
|
3758
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3721
3759
|
ref: this.ref,
|
|
3722
3760
|
activePlayer: activePlayer,
|
|
3723
3761
|
config: this.config
|
|
@@ -3739,7 +3777,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3739
3777
|
});
|
|
3740
3778
|
exports["default"] = exports.YouTube = void 0;
|
|
3741
3779
|
|
|
3742
|
-
var _react = _interopRequireWildcard(React__default
|
|
3780
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3743
3781
|
|
|
3744
3782
|
|
|
3745
3783
|
|
|
@@ -3763,31 +3801,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3763
3801
|
|
|
3764
3802
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3765
3803
|
|
|
3766
|
-
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); }; }
|
|
3767
|
-
|
|
3768
3804
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3769
3805
|
|
|
3770
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3771
|
-
|
|
3772
|
-
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; } }
|
|
3773
|
-
|
|
3774
3806
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3775
3807
|
|
|
3808
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3809
|
+
|
|
3776
3810
|
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); }
|
|
3777
3811
|
|
|
3778
3812
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3779
3813
|
|
|
3780
3814
|
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; }
|
|
3781
3815
|
|
|
3782
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3816
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3783
3817
|
|
|
3784
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3818
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3785
3819
|
|
|
3786
|
-
function
|
|
3787
|
-
|
|
3788
|
-
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; }
|
|
3789
|
-
|
|
3790
|
-
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; }
|
|
3820
|
+
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; }
|
|
3791
3821
|
|
|
3792
3822
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3793
3823
|
|
|
@@ -3812,12 +3842,14 @@ function parsePlaylist(url) {
|
|
|
3812
3842
|
return {};
|
|
3813
3843
|
}
|
|
3814
3844
|
|
|
3815
|
-
var YouTube =
|
|
3845
|
+
var YouTube =
|
|
3846
|
+
/*#__PURE__*/
|
|
3847
|
+
function (_Component) {
|
|
3816
3848
|
_inherits(YouTube, _Component);
|
|
3817
3849
|
|
|
3818
|
-
var _super = _createSuper(YouTube);
|
|
3819
|
-
|
|
3820
3850
|
function YouTube() {
|
|
3851
|
+
var _getPrototypeOf2;
|
|
3852
|
+
|
|
3821
3853
|
var _this;
|
|
3822
3854
|
|
|
3823
3855
|
_classCallCheck(this, YouTube);
|
|
@@ -3826,7 +3858,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3826
3858
|
args[_key] = arguments[_key];
|
|
3827
3859
|
}
|
|
3828
3860
|
|
|
3829
|
-
_this =
|
|
3861
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3830
3862
|
|
|
3831
3863
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3832
3864
|
|
|
@@ -4014,9 +4046,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4014
4046
|
height: '100%',
|
|
4015
4047
|
display: display
|
|
4016
4048
|
};
|
|
4017
|
-
return
|
|
4049
|
+
return _react["default"].createElement("div", {
|
|
4018
4050
|
style: style
|
|
4019
|
-
},
|
|
4051
|
+
}, _react["default"].createElement("div", {
|
|
4020
4052
|
ref: this.ref
|
|
4021
4053
|
}));
|
|
4022
4054
|
}
|
|
@@ -4048,7 +4080,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4048
4080
|
});
|
|
4049
4081
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4050
4082
|
|
|
4051
|
-
var _react = _interopRequireWildcard(React__default
|
|
4083
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4052
4084
|
|
|
4053
4085
|
|
|
4054
4086
|
|
|
@@ -4072,16 +4104,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4072
4104
|
|
|
4073
4105
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4074
4106
|
|
|
4075
|
-
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); }; }
|
|
4076
|
-
|
|
4077
4107
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4078
4108
|
|
|
4079
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4080
|
-
|
|
4081
|
-
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; } }
|
|
4082
|
-
|
|
4083
4109
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4084
4110
|
|
|
4111
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4112
|
+
|
|
4085
4113
|
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); }
|
|
4086
4114
|
|
|
4087
4115
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4090,14 +4118,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4090
4118
|
|
|
4091
4119
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4092
4120
|
var SDK_GLOBAL = 'SC';
|
|
4093
|
-
var MATCH_URL = /(
|
|
4121
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4094
4122
|
|
|
4095
|
-
var SoundCloud =
|
|
4123
|
+
var SoundCloud =
|
|
4124
|
+
/*#__PURE__*/
|
|
4125
|
+
function (_Component) {
|
|
4096
4126
|
_inherits(SoundCloud, _Component);
|
|
4097
4127
|
|
|
4098
|
-
var _super = _createSuper(SoundCloud);
|
|
4099
|
-
|
|
4100
4128
|
function SoundCloud() {
|
|
4129
|
+
var _getPrototypeOf2;
|
|
4130
|
+
|
|
4101
4131
|
var _this;
|
|
4102
4132
|
|
|
4103
4133
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4106,7 +4136,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4106
4136
|
args[_key] = arguments[_key];
|
|
4107
4137
|
}
|
|
4108
4138
|
|
|
4109
|
-
_this =
|
|
4139
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4110
4140
|
|
|
4111
4141
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4112
4142
|
|
|
@@ -4227,7 +4257,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4227
4257
|
height: '100%',
|
|
4228
4258
|
display: display
|
|
4229
4259
|
};
|
|
4230
|
-
return
|
|
4260
|
+
return _react["default"].createElement("iframe", {
|
|
4231
4261
|
ref: this.ref,
|
|
4232
4262
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4233
4263
|
style: style,
|
|
@@ -4265,7 +4295,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4265
4295
|
});
|
|
4266
4296
|
exports["default"] = exports.Vimeo = void 0;
|
|
4267
4297
|
|
|
4268
|
-
var _react = _interopRequireWildcard(React__default
|
|
4298
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4269
4299
|
|
|
4270
4300
|
|
|
4271
4301
|
|
|
@@ -4289,16 +4319,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4289
4319
|
|
|
4290
4320
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4291
4321
|
|
|
4292
|
-
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); }; }
|
|
4293
|
-
|
|
4294
4322
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4295
4323
|
|
|
4296
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4297
|
-
|
|
4298
|
-
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; } }
|
|
4299
|
-
|
|
4300
4324
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4301
4325
|
|
|
4326
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4327
|
+
|
|
4302
4328
|
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); }
|
|
4303
4329
|
|
|
4304
4330
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4310,12 +4336,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4310
4336
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4311
4337
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4312
4338
|
|
|
4313
|
-
var Vimeo =
|
|
4339
|
+
var Vimeo =
|
|
4340
|
+
/*#__PURE__*/
|
|
4341
|
+
function (_Component) {
|
|
4314
4342
|
_inherits(Vimeo, _Component);
|
|
4315
4343
|
|
|
4316
|
-
var _super = _createSuper(Vimeo);
|
|
4317
|
-
|
|
4318
4344
|
function Vimeo() {
|
|
4345
|
+
var _getPrototypeOf2;
|
|
4346
|
+
|
|
4319
4347
|
var _this;
|
|
4320
4348
|
|
|
4321
4349
|
_classCallCheck(this, Vimeo);
|
|
@@ -4324,7 +4352,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4324
4352
|
args[_key] = arguments[_key];
|
|
4325
4353
|
}
|
|
4326
4354
|
|
|
4327
|
-
_this =
|
|
4355
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4328
4356
|
|
|
4329
4357
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4330
4358
|
|
|
@@ -4481,7 +4509,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4481
4509
|
overflow: 'hidden',
|
|
4482
4510
|
display: display
|
|
4483
4511
|
};
|
|
4484
|
-
return
|
|
4512
|
+
return _react["default"].createElement("div", {
|
|
4485
4513
|
key: this.props.url,
|
|
4486
4514
|
ref: this.ref,
|
|
4487
4515
|
style: style
|
|
@@ -4521,7 +4549,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4521
4549
|
});
|
|
4522
4550
|
exports["default"] = exports.Facebook = void 0;
|
|
4523
4551
|
|
|
4524
|
-
var _react = _interopRequireWildcard(React__default
|
|
4552
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4525
4553
|
|
|
4526
4554
|
|
|
4527
4555
|
|
|
@@ -4541,16 +4569,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4541
4569
|
|
|
4542
4570
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4543
4571
|
|
|
4544
|
-
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); }; }
|
|
4545
|
-
|
|
4546
4572
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4547
4573
|
|
|
4548
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4549
|
-
|
|
4550
|
-
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; } }
|
|
4551
|
-
|
|
4552
4574
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4553
4575
|
|
|
4576
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4577
|
+
|
|
4554
4578
|
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); }
|
|
4555
4579
|
|
|
4556
4580
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4563,12 +4587,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4563
4587
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4564
4588
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4565
4589
|
|
|
4566
|
-
var Facebook =
|
|
4590
|
+
var Facebook =
|
|
4591
|
+
/*#__PURE__*/
|
|
4592
|
+
function (_Component) {
|
|
4567
4593
|
_inherits(Facebook, _Component);
|
|
4568
4594
|
|
|
4569
|
-
var _super = _createSuper(Facebook);
|
|
4570
|
-
|
|
4571
4595
|
function Facebook() {
|
|
4596
|
+
var _getPrototypeOf2;
|
|
4597
|
+
|
|
4572
4598
|
var _this;
|
|
4573
4599
|
|
|
4574
4600
|
_classCallCheck(this, Facebook);
|
|
@@ -4577,7 +4603,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4577
4603
|
args[_key] = arguments[_key];
|
|
4578
4604
|
}
|
|
4579
4605
|
|
|
4580
|
-
_this =
|
|
4606
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4581
4607
|
|
|
4582
4608
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4583
4609
|
|
|
@@ -4693,7 +4719,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4693
4719
|
width: '100%',
|
|
4694
4720
|
height: '100%'
|
|
4695
4721
|
};
|
|
4696
|
-
return
|
|
4722
|
+
return _react["default"].createElement("div", {
|
|
4697
4723
|
style: style,
|
|
4698
4724
|
id: this.playerID,
|
|
4699
4725
|
className: "fb-video",
|
|
@@ -4733,7 +4759,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4733
4759
|
});
|
|
4734
4760
|
exports["default"] = exports.Streamable = void 0;
|
|
4735
4761
|
|
|
4736
|
-
var _react = _interopRequireWildcard(React__default
|
|
4762
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4737
4763
|
|
|
4738
4764
|
|
|
4739
4765
|
|
|
@@ -4753,16 +4779,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4753
4779
|
|
|
4754
4780
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4755
4781
|
|
|
4756
|
-
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); }; }
|
|
4757
|
-
|
|
4758
4782
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4759
4783
|
|
|
4760
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4761
|
-
|
|
4762
|
-
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; } }
|
|
4763
|
-
|
|
4764
4784
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4765
4785
|
|
|
4786
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4787
|
+
|
|
4766
4788
|
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); }
|
|
4767
4789
|
|
|
4768
4790
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4773,12 +4795,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4773
4795
|
var SDK_GLOBAL = 'playerjs';
|
|
4774
4796
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4775
4797
|
|
|
4776
|
-
var Streamable =
|
|
4798
|
+
var Streamable =
|
|
4799
|
+
/*#__PURE__*/
|
|
4800
|
+
function (_Component) {
|
|
4777
4801
|
_inherits(Streamable, _Component);
|
|
4778
4802
|
|
|
4779
|
-
var _super = _createSuper(Streamable);
|
|
4780
|
-
|
|
4781
4803
|
function Streamable() {
|
|
4804
|
+
var _getPrototypeOf2;
|
|
4805
|
+
|
|
4782
4806
|
var _this;
|
|
4783
4807
|
|
|
4784
4808
|
_classCallCheck(this, Streamable);
|
|
@@ -4787,7 +4811,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4787
4811
|
args[_key] = arguments[_key];
|
|
4788
4812
|
}
|
|
4789
4813
|
|
|
4790
|
-
_this =
|
|
4814
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4791
4815
|
|
|
4792
4816
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4793
4817
|
|
|
@@ -4907,7 +4931,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4907
4931
|
width: '100%',
|
|
4908
4932
|
height: '100%'
|
|
4909
4933
|
};
|
|
4910
|
-
return
|
|
4934
|
+
return _react["default"].createElement("iframe", {
|
|
4911
4935
|
ref: this.ref,
|
|
4912
4936
|
src: "https://streamable.com/o/".concat(id),
|
|
4913
4937
|
frameBorder: "0",
|
|
@@ -4944,7 +4968,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4944
4968
|
});
|
|
4945
4969
|
exports["default"] = exports.Wistia = void 0;
|
|
4946
4970
|
|
|
4947
|
-
var _react = _interopRequireWildcard(React__default
|
|
4971
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4948
4972
|
|
|
4949
4973
|
|
|
4950
4974
|
|
|
@@ -4968,16 +4992,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4968
4992
|
|
|
4969
4993
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4970
4994
|
|
|
4971
|
-
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); }; }
|
|
4972
|
-
|
|
4973
4995
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4974
4996
|
|
|
4975
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4976
|
-
|
|
4977
|
-
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; } }
|
|
4978
|
-
|
|
4979
4997
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4980
4998
|
|
|
4999
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5000
|
+
|
|
4981
5001
|
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); }
|
|
4982
5002
|
|
|
4983
5003
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4988,48 +5008,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4988
5008
|
var SDK_GLOBAL = 'Wistia';
|
|
4989
5009
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4990
5010
|
|
|
4991
|
-
var Wistia =
|
|
5011
|
+
var Wistia =
|
|
5012
|
+
/*#__PURE__*/
|
|
5013
|
+
function (_Component) {
|
|
4992
5014
|
_inherits(Wistia, _Component);
|
|
4993
5015
|
|
|
4994
|
-
var _super = _createSuper(Wistia);
|
|
4995
|
-
|
|
4996
5016
|
function Wistia() {
|
|
5017
|
+
var _getPrototypeOf2;
|
|
5018
|
+
|
|
4997
5019
|
var _this;
|
|
4998
5020
|
|
|
4999
5021
|
_classCallCheck(this, Wistia);
|
|
5000
5022
|
|
|
5001
|
-
for (var _len = arguments.length,
|
|
5002
|
-
|
|
5023
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5024
|
+
args[_key] = arguments[_key];
|
|
5003
5025
|
}
|
|
5004
5026
|
|
|
5005
|
-
_this =
|
|
5027
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5006
5028
|
|
|
5007
5029
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5008
5030
|
|
|
5009
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5010
|
-
var _this$props;
|
|
5011
|
-
|
|
5012
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5013
|
-
});
|
|
5014
|
-
|
|
5015
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5016
|
-
var _this$props2;
|
|
5017
|
-
|
|
5018
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5019
|
-
});
|
|
5020
|
-
|
|
5021
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5022
|
-
var _this$props3;
|
|
5023
|
-
|
|
5024
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5025
|
-
});
|
|
5026
|
-
|
|
5027
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5028
|
-
var _this$props4;
|
|
5029
|
-
|
|
5030
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5031
|
-
});
|
|
5032
|
-
|
|
5033
5031
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5034
5032
|
_this.callPlayer('mute');
|
|
5035
5033
|
});
|
|
@@ -5051,13 +5049,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5051
5049
|
value: function load(url) {
|
|
5052
5050
|
var _this2 = this;
|
|
5053
5051
|
|
|
5054
|
-
var _this$
|
|
5055
|
-
playing = _this$
|
|
5056
|
-
muted = _this$
|
|
5057
|
-
controls = _this$
|
|
5058
|
-
_onReady = _this$
|
|
5059
|
-
|
|
5060
|
-
|
|
5052
|
+
var _this$props = this.props,
|
|
5053
|
+
playing = _this$props.playing,
|
|
5054
|
+
muted = _this$props.muted,
|
|
5055
|
+
controls = _this$props.controls,
|
|
5056
|
+
_onReady = _this$props.onReady,
|
|
5057
|
+
onPlay = _this$props.onPlay,
|
|
5058
|
+
onPause = _this$props.onPause,
|
|
5059
|
+
onSeek = _this$props.onSeek,
|
|
5060
|
+
onEnded = _this$props.onEnded,
|
|
5061
|
+
config = _this$props.config,
|
|
5062
|
+
onError = _this$props.onError;
|
|
5061
5063
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5062
5064
|
window._wq = window._wq || [];
|
|
5063
5065
|
|
|
@@ -5074,28 +5076,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5074
5076
|
|
|
5075
5077
|
_this2.unbind();
|
|
5076
5078
|
|
|
5077
|
-
_this2.player.bind('play',
|
|
5079
|
+
_this2.player.bind('play', onPlay);
|
|
5078
5080
|
|
|
5079
|
-
_this2.player.bind('pause',
|
|
5081
|
+
_this2.player.bind('pause', onPause);
|
|
5080
5082
|
|
|
5081
|
-
_this2.player.bind('seek',
|
|
5083
|
+
_this2.player.bind('seek', onSeek);
|
|
5082
5084
|
|
|
5083
|
-
_this2.player.bind('end',
|
|
5085
|
+
_this2.player.bind('end', onEnded);
|
|
5084
5086
|
|
|
5085
5087
|
_onReady();
|
|
5086
5088
|
}
|
|
5087
5089
|
});
|
|
5088
5090
|
}, onError);
|
|
5089
5091
|
}
|
|
5090
|
-
}, {
|
|
5091
|
-
key: "unbind",
|
|
5092
|
-
value: function unbind() {
|
|
5093
|
-
this.player.unbind('play', this.onPlay);
|
|
5094
|
-
this.player.unbind('pause', this.onPause);
|
|
5095
|
-
this.player.unbind('seek', this.onSeek);
|
|
5096
|
-
this.player.unbind('end', this.onEnded);
|
|
5097
|
-
} // Proxy methods to prevent listener leaks
|
|
5098
|
-
|
|
5099
5092
|
}, {
|
|
5100
5093
|
key: "play",
|
|
5101
5094
|
value: function play() {
|
|
@@ -5106,6 +5099,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5106
5099
|
value: function pause() {
|
|
5107
5100
|
this.callPlayer('pause');
|
|
5108
5101
|
}
|
|
5102
|
+
}, {
|
|
5103
|
+
key: "unbind",
|
|
5104
|
+
value: function unbind() {
|
|
5105
|
+
var _this$props2 = this.props,
|
|
5106
|
+
onPlay = _this$props2.onPlay,
|
|
5107
|
+
onPause = _this$props2.onPause,
|
|
5108
|
+
onSeek = _this$props2.onSeek,
|
|
5109
|
+
onEnded = _this$props2.onEnded;
|
|
5110
|
+
this.player.unbind('play', onPlay);
|
|
5111
|
+
this.player.unbind('pause', onPause);
|
|
5112
|
+
this.player.unbind('seek', onSeek);
|
|
5113
|
+
this.player.unbind('end', onEnded);
|
|
5114
|
+
}
|
|
5109
5115
|
}, {
|
|
5110
5116
|
key: "stop",
|
|
5111
5117
|
value: function stop() {
|
|
@@ -5151,7 +5157,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5151
5157
|
width: '100%',
|
|
5152
5158
|
height: '100%'
|
|
5153
5159
|
};
|
|
5154
|
-
return
|
|
5160
|
+
return _react["default"].createElement("div", {
|
|
5155
5161
|
key: id,
|
|
5156
5162
|
className: className,
|
|
5157
5163
|
style: style
|
|
@@ -5187,7 +5193,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5187
5193
|
});
|
|
5188
5194
|
exports["default"] = exports.Twitch = void 0;
|
|
5189
5195
|
|
|
5190
|
-
var _react = _interopRequireWildcard(React__default
|
|
5196
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5191
5197
|
|
|
5192
5198
|
|
|
5193
5199
|
|
|
@@ -5211,16 +5217,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5211
5217
|
|
|
5212
5218
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5213
5219
|
|
|
5214
|
-
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); }; }
|
|
5215
|
-
|
|
5216
5220
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5217
5221
|
|
|
5218
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5219
|
-
|
|
5220
|
-
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; } }
|
|
5221
|
-
|
|
5222
5222
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5223
5223
|
|
|
5224
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5225
|
+
|
|
5224
5226
|
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); }
|
|
5225
5227
|
|
|
5226
5228
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5233,12 +5235,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5233
5235
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5234
5236
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5235
5237
|
|
|
5236
|
-
var Twitch =
|
|
5238
|
+
var Twitch =
|
|
5239
|
+
/*#__PURE__*/
|
|
5240
|
+
function (_Component) {
|
|
5237
5241
|
_inherits(Twitch, _Component);
|
|
5238
5242
|
|
|
5239
|
-
var _super = _createSuper(Twitch);
|
|
5240
|
-
|
|
5241
5243
|
function Twitch() {
|
|
5244
|
+
var _getPrototypeOf2;
|
|
5245
|
+
|
|
5242
5246
|
var _this;
|
|
5243
5247
|
|
|
5244
5248
|
_classCallCheck(this, Twitch);
|
|
@@ -5247,7 +5251,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5247
5251
|
args[_key] = arguments[_key];
|
|
5248
5252
|
}
|
|
5249
5253
|
|
|
5250
|
-
_this =
|
|
5254
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5251
5255
|
|
|
5252
5256
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5253
5257
|
|
|
@@ -5368,7 +5372,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5368
5372
|
width: '100%',
|
|
5369
5373
|
height: '100%'
|
|
5370
5374
|
};
|
|
5371
|
-
return
|
|
5375
|
+
return _react["default"].createElement("div", {
|
|
5372
5376
|
style: style,
|
|
5373
5377
|
id: this.playerID
|
|
5374
5378
|
});
|
|
@@ -5403,7 +5407,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5403
5407
|
});
|
|
5404
5408
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5405
5409
|
|
|
5406
|
-
var _react = _interopRequireWildcard(React__default
|
|
5410
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5407
5411
|
|
|
5408
5412
|
|
|
5409
5413
|
|
|
@@ -5421,15 +5425,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5421
5425
|
|
|
5422
5426
|
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; }
|
|
5423
5427
|
|
|
5424
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5425
|
-
|
|
5426
|
-
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."); }
|
|
5428
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5427
5429
|
|
|
5428
|
-
function
|
|
5430
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5429
5431
|
|
|
5430
|
-
function
|
|
5431
|
-
|
|
5432
|
-
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; }
|
|
5432
|
+
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; }
|
|
5433
5433
|
|
|
5434
5434
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5435
5435
|
|
|
@@ -5439,16 +5439,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5439
5439
|
|
|
5440
5440
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5441
5441
|
|
|
5442
|
-
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); }; }
|
|
5443
|
-
|
|
5444
5442
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5445
5443
|
|
|
5446
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5447
|
-
|
|
5448
|
-
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; } }
|
|
5449
|
-
|
|
5450
5444
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5451
5445
|
|
|
5446
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5447
|
+
|
|
5452
5448
|
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); }
|
|
5453
5449
|
|
|
5454
5450
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5460,12 +5456,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5460
5456
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5461
5457
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5462
5458
|
|
|
5463
|
-
var DailyMotion =
|
|
5459
|
+
var DailyMotion =
|
|
5460
|
+
/*#__PURE__*/
|
|
5461
|
+
function (_Component) {
|
|
5464
5462
|
_inherits(DailyMotion, _Component);
|
|
5465
5463
|
|
|
5466
|
-
var _super = _createSuper(DailyMotion);
|
|
5467
|
-
|
|
5468
5464
|
function DailyMotion() {
|
|
5465
|
+
var _getPrototypeOf2;
|
|
5466
|
+
|
|
5469
5467
|
var _this;
|
|
5470
5468
|
|
|
5471
5469
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5474,7 +5472,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5474
5472
|
args[_key] = arguments[_key];
|
|
5475
5473
|
}
|
|
5476
5474
|
|
|
5477
|
-
_this =
|
|
5475
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5478
5476
|
|
|
5479
5477
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5480
5478
|
|
|
@@ -5603,9 +5601,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5603
5601
|
height: '100%',
|
|
5604
5602
|
display: display
|
|
5605
5603
|
};
|
|
5606
|
-
return
|
|
5604
|
+
return _react["default"].createElement("div", {
|
|
5607
5605
|
style: style
|
|
5608
|
-
},
|
|
5606
|
+
}, _react["default"].createElement("div", {
|
|
5609
5607
|
ref: this.ref
|
|
5610
5608
|
}));
|
|
5611
5609
|
}
|
|
@@ -5639,7 +5637,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5639
5637
|
});
|
|
5640
5638
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5641
5639
|
|
|
5642
|
-
var _react = _interopRequireWildcard(React__default
|
|
5640
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5643
5641
|
|
|
5644
5642
|
|
|
5645
5643
|
|
|
@@ -5663,16 +5661,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5663
5661
|
|
|
5664
5662
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5665
5663
|
|
|
5666
|
-
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); }; }
|
|
5667
|
-
|
|
5668
5664
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5669
5665
|
|
|
5670
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5671
|
-
|
|
5672
|
-
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; } }
|
|
5673
|
-
|
|
5674
5666
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5675
5667
|
|
|
5668
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5669
|
+
|
|
5676
5670
|
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); }
|
|
5677
5671
|
|
|
5678
5672
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5683,12 +5677,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5683
5677
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5684
5678
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5685
5679
|
|
|
5686
|
-
var Mixcloud =
|
|
5680
|
+
var Mixcloud =
|
|
5681
|
+
/*#__PURE__*/
|
|
5682
|
+
function (_Component) {
|
|
5687
5683
|
_inherits(Mixcloud, _Component);
|
|
5688
5684
|
|
|
5689
|
-
var _super = _createSuper(Mixcloud);
|
|
5690
|
-
|
|
5691
5685
|
function Mixcloud() {
|
|
5686
|
+
var _getPrototypeOf2;
|
|
5687
|
+
|
|
5692
5688
|
var _this;
|
|
5693
5689
|
|
|
5694
5690
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5697,7 +5693,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5697
5693
|
args[_key] = arguments[_key];
|
|
5698
5694
|
}
|
|
5699
5695
|
|
|
5700
|
-
_this =
|
|
5696
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5701
5697
|
|
|
5702
5698
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5703
5699
|
|
|
@@ -5800,7 +5796,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5800
5796
|
})); // We have to give the iframe a key here to prevent a
|
|
5801
5797
|
// weird dialog appearing when loading a new track
|
|
5802
5798
|
|
|
5803
|
-
return
|
|
5799
|
+
return _react["default"].createElement("iframe", {
|
|
5804
5800
|
key: id,
|
|
5805
5801
|
ref: this.ref,
|
|
5806
5802
|
style: style,
|
|
@@ -5838,7 +5834,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5838
5834
|
});
|
|
5839
5835
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5840
5836
|
|
|
5841
|
-
var _react = _interopRequireWildcard(React__default
|
|
5837
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5842
5838
|
|
|
5843
5839
|
|
|
5844
5840
|
|
|
@@ -5860,33 +5856,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5860
5856
|
|
|
5861
5857
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5862
5858
|
|
|
5863
|
-
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); }; }
|
|
5864
|
-
|
|
5865
5859
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5866
5860
|
|
|
5867
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5868
|
-
|
|
5869
|
-
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; } }
|
|
5870
|
-
|
|
5871
5861
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5872
5862
|
|
|
5863
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5864
|
+
|
|
5873
5865
|
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); }
|
|
5874
5866
|
|
|
5875
5867
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5876
5868
|
|
|
5877
5869
|
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; }
|
|
5878
5870
|
|
|
5879
|
-
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; } } }; }
|
|
5880
|
-
|
|
5881
|
-
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); }
|
|
5882
|
-
|
|
5883
|
-
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; }
|
|
5884
|
-
|
|
5885
5871
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5886
5872
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5887
5873
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5888
5874
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5889
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5875
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5890
5876
|
var HLS_GLOBAL = 'Hls';
|
|
5891
5877
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5892
5878
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5895,11 +5881,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5895
5881
|
|
|
5896
5882
|
function canPlay(url) {
|
|
5897
5883
|
if (url instanceof Array) {
|
|
5898
|
-
var
|
|
5899
|
-
|
|
5884
|
+
var _iteratorNormalCompletion = true;
|
|
5885
|
+
var _didIteratorError = false;
|
|
5886
|
+
var _iteratorError = undefined;
|
|
5900
5887
|
|
|
5901
5888
|
try {
|
|
5902
|
-
for (_iterator.
|
|
5889
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5903
5890
|
var item = _step.value;
|
|
5904
5891
|
|
|
5905
5892
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5911,9 +5898,18 @@ function canPlay(url) {
|
|
|
5911
5898
|
}
|
|
5912
5899
|
}
|
|
5913
5900
|
} catch (err) {
|
|
5914
|
-
|
|
5901
|
+
_didIteratorError = true;
|
|
5902
|
+
_iteratorError = err;
|
|
5915
5903
|
} finally {
|
|
5916
|
-
|
|
5904
|
+
try {
|
|
5905
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5906
|
+
_iterator["return"]();
|
|
5907
|
+
}
|
|
5908
|
+
} finally {
|
|
5909
|
+
if (_didIteratorError) {
|
|
5910
|
+
throw _iteratorError;
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5917
5913
|
}
|
|
5918
5914
|
|
|
5919
5915
|
return false;
|
|
@@ -5937,12 +5933,14 @@ function canEnablePIP(url) {
|
|
|
5937
5933
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5938
5934
|
}
|
|
5939
5935
|
|
|
5940
|
-
var FilePlayer =
|
|
5936
|
+
var FilePlayer =
|
|
5937
|
+
/*#__PURE__*/
|
|
5938
|
+
function (_Component) {
|
|
5941
5939
|
_inherits(FilePlayer, _Component);
|
|
5942
5940
|
|
|
5943
|
-
var _super = _createSuper(FilePlayer);
|
|
5944
|
-
|
|
5945
5941
|
function FilePlayer() {
|
|
5942
|
+
var _getPrototypeOf2;
|
|
5943
|
+
|
|
5946
5944
|
var _this;
|
|
5947
5945
|
|
|
5948
5946
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5951,7 +5949,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5951
5949
|
_args[_key] = arguments[_key];
|
|
5952
5950
|
}
|
|
5953
5951
|
|
|
5954
|
-
_this =
|
|
5952
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5955
5953
|
|
|
5956
5954
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5957
5955
|
var _this$props;
|
|
@@ -6038,19 +6036,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6038
6036
|
|
|
6039
6037
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6040
6038
|
if (typeof source === 'string') {
|
|
6041
|
-
return
|
|
6039
|
+
return _react["default"].createElement("source", {
|
|
6042
6040
|
key: index,
|
|
6043
6041
|
src: source
|
|
6044
6042
|
});
|
|
6045
6043
|
}
|
|
6046
6044
|
|
|
6047
|
-
return
|
|
6045
|
+
return _react["default"].createElement("source", _extends({
|
|
6048
6046
|
key: index
|
|
6049
6047
|
}, source));
|
|
6050
6048
|
});
|
|
6051
6049
|
|
|
6052
6050
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6053
|
-
return
|
|
6051
|
+
return _react["default"].createElement("track", _extends({
|
|
6054
6052
|
key: index
|
|
6055
6053
|
}, track));
|
|
6056
6054
|
});
|
|
@@ -6088,10 +6086,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6088
6086
|
key: "componentWillUnmount",
|
|
6089
6087
|
value: function componentWillUnmount() {
|
|
6090
6088
|
this.removeListeners(this.player);
|
|
6091
|
-
|
|
6092
|
-
if (this.hls) {
|
|
6093
|
-
this.hls.destroy();
|
|
6094
|
-
}
|
|
6095
6089
|
}
|
|
6096
6090
|
}, {
|
|
6097
6091
|
key: "addListeners",
|
|
@@ -6222,6 +6216,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6222
6216
|
value: function stop() {
|
|
6223
6217
|
this.player.removeAttribute('src');
|
|
6224
6218
|
|
|
6219
|
+
if (this.hls) {
|
|
6220
|
+
this.hls.destroy();
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6225
6223
|
if (this.dash) {
|
|
6226
6224
|
this.dash.reset();
|
|
6227
6225
|
}
|
|
@@ -6333,7 +6331,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6333
6331
|
width: width === 'auto' ? width : '100%',
|
|
6334
6332
|
height: height === 'auto' ? height : '100%'
|
|
6335
6333
|
};
|
|
6336
|
-
return
|
|
6334
|
+
return _react["default"].createElement(Element, _extends({
|
|
6337
6335
|
ref: this.ref,
|
|
6338
6336
|
src: this.getSource(url),
|
|
6339
6337
|
style: style,
|
|
@@ -6405,7 +6403,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6405
6403
|
});
|
|
6406
6404
|
exports["default"] = void 0;
|
|
6407
6405
|
|
|
6408
|
-
var _react = _interopRequireWildcard(React__default
|
|
6406
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6409
6407
|
|
|
6410
6408
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6411
6409
|
|
|
@@ -6423,16 +6421,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6423
6421
|
|
|
6424
6422
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6425
6423
|
|
|
6426
|
-
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); }; }
|
|
6427
|
-
|
|
6428
6424
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6429
6425
|
|
|
6430
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6431
|
-
|
|
6432
|
-
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; } }
|
|
6433
|
-
|
|
6434
6426
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6435
6427
|
|
|
6428
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6429
|
+
|
|
6436
6430
|
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); }
|
|
6437
6431
|
|
|
6438
6432
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6441,12 +6435,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6441
6435
|
|
|
6442
6436
|
var ICON_SIZE = '64px';
|
|
6443
6437
|
|
|
6444
|
-
var Preview =
|
|
6438
|
+
var Preview =
|
|
6439
|
+
/*#__PURE__*/
|
|
6440
|
+
function (_Component) {
|
|
6445
6441
|
_inherits(Preview, _Component);
|
|
6446
6442
|
|
|
6447
|
-
var _super = _createSuper(Preview);
|
|
6448
|
-
|
|
6449
6443
|
function Preview() {
|
|
6444
|
+
var _getPrototypeOf2;
|
|
6445
|
+
|
|
6450
6446
|
var _this;
|
|
6451
6447
|
|
|
6452
6448
|
_classCallCheck(this, Preview);
|
|
@@ -6455,7 +6451,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6455
6451
|
args[_key] = arguments[_key];
|
|
6456
6452
|
}
|
|
6457
6453
|
|
|
6458
|
-
_this =
|
|
6454
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6459
6455
|
|
|
6460
6456
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6461
6457
|
|
|
@@ -6553,15 +6549,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6553
6549
|
}
|
|
6554
6550
|
};
|
|
6555
6551
|
|
|
6556
|
-
var defaultPlayIcon =
|
|
6552
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6557
6553
|
style: styles.shadow,
|
|
6558
6554
|
className: "react-player__shadow"
|
|
6559
|
-
},
|
|
6555
|
+
}, _react["default"].createElement("div", {
|
|
6560
6556
|
style: styles.playIcon,
|
|
6561
6557
|
className: "react-player__play-icon"
|
|
6562
6558
|
}));
|
|
6563
6559
|
|
|
6564
|
-
return
|
|
6560
|
+
return _react["default"].createElement("div", {
|
|
6565
6561
|
style: styles.preview,
|
|
6566
6562
|
className: "react-player__preview",
|
|
6567
6563
|
onClick: onClick
|
|
@@ -6584,7 +6580,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6584
6580
|
});
|
|
6585
6581
|
exports["default"] = renderPreloadPlayers;
|
|
6586
6582
|
|
|
6587
|
-
var _react = _interopRequireDefault(React__default
|
|
6583
|
+
var _react = _interopRequireDefault(React__default);
|
|
6588
6584
|
|
|
6589
6585
|
var _Player = _interopRequireDefault(Player_1);
|
|
6590
6586
|
|
|
@@ -6598,12 +6594,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6598
6594
|
|
|
6599
6595
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6600
6596
|
|
|
6601
|
-
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; } } }; }
|
|
6602
|
-
|
|
6603
|
-
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); }
|
|
6604
|
-
|
|
6605
|
-
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; }
|
|
6606
|
-
|
|
6607
6597
|
var PRELOAD_PLAYERS = [{
|
|
6608
6598
|
Player: YouTube_1.YouTube,
|
|
6609
6599
|
configKey: 'youtube',
|
|
@@ -6624,16 +6614,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6624
6614
|
|
|
6625
6615
|
function renderPreloadPlayers(url, controls, config) {
|
|
6626
6616
|
var players = [];
|
|
6627
|
-
|
|
6628
|
-
var
|
|
6629
|
-
|
|
6617
|
+
var _iteratorNormalCompletion = true;
|
|
6618
|
+
var _didIteratorError = false;
|
|
6619
|
+
var _iteratorError = undefined;
|
|
6630
6620
|
|
|
6631
6621
|
try {
|
|
6632
|
-
for (_iterator.
|
|
6622
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6633
6623
|
var player = _step.value;
|
|
6634
6624
|
|
|
6635
6625
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6636
|
-
players.push(
|
|
6626
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6637
6627
|
key: player.Player.displayName,
|
|
6638
6628
|
activePlayer: player.Player,
|
|
6639
6629
|
url: player.url,
|
|
@@ -6645,9 +6635,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6645
6635
|
}
|
|
6646
6636
|
}
|
|
6647
6637
|
} catch (err) {
|
|
6648
|
-
|
|
6638
|
+
_didIteratorError = true;
|
|
6639
|
+
_iteratorError = err;
|
|
6649
6640
|
} finally {
|
|
6650
|
-
|
|
6641
|
+
try {
|
|
6642
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6643
|
+
_iterator["return"]();
|
|
6644
|
+
}
|
|
6645
|
+
} finally {
|
|
6646
|
+
if (_didIteratorError) {
|
|
6647
|
+
throw _iteratorError;
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6651
6650
|
}
|
|
6652
6651
|
|
|
6653
6652
|
return players;
|
|
@@ -6723,7 +6722,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6723
6722
|
});
|
|
6724
6723
|
exports["default"] = void 0;
|
|
6725
6724
|
|
|
6726
|
-
var _react = _interopRequireWildcard(React__default
|
|
6725
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6727
6726
|
|
|
6728
6727
|
|
|
6729
6728
|
|
|
@@ -6771,17 +6770,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6771
6770
|
|
|
6772
6771
|
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); }
|
|
6773
6772
|
|
|
6774
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6775
|
-
|
|
6776
|
-
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."); }
|
|
6777
|
-
|
|
6778
|
-
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); }
|
|
6773
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6779
6774
|
|
|
6780
|
-
function
|
|
6775
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6781
6776
|
|
|
6782
|
-
function
|
|
6777
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6783
6778
|
|
|
6784
|
-
function
|
|
6779
|
+
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; } }
|
|
6785
6780
|
|
|
6786
6781
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6787
6782
|
|
|
@@ -6789,16 +6784,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6789
6784
|
|
|
6790
6785
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6791
6786
|
|
|
6792
|
-
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); }; }
|
|
6793
|
-
|
|
6794
6787
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6795
6788
|
|
|
6796
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6797
|
-
|
|
6798
|
-
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; } }
|
|
6799
|
-
|
|
6800
6789
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6801
6790
|
|
|
6791
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6792
|
+
|
|
6802
6793
|
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); }
|
|
6803
6794
|
|
|
6804
6795
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6808,12 +6799,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6808
6799
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6809
6800
|
var customPlayers = [];
|
|
6810
6801
|
|
|
6811
|
-
var ReactPlayer =
|
|
6802
|
+
var ReactPlayer =
|
|
6803
|
+
/*#__PURE__*/
|
|
6804
|
+
function (_Component) {
|
|
6812
6805
|
_inherits(ReactPlayer, _Component);
|
|
6813
6806
|
|
|
6814
|
-
var _super = _createSuper(ReactPlayer);
|
|
6815
|
-
|
|
6816
6807
|
function ReactPlayer() {
|
|
6808
|
+
var _getPrototypeOf2;
|
|
6809
|
+
|
|
6817
6810
|
var _this;
|
|
6818
6811
|
|
|
6819
6812
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6822,7 +6815,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6822
6815
|
args[_key] = arguments[_key];
|
|
6823
6816
|
}
|
|
6824
6817
|
|
|
6825
|
-
_this =
|
|
6818
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6826
6819
|
|
|
6827
6820
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6828
6821
|
|
|
@@ -6933,7 +6926,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6933
6926
|
key: "renderActivePlayer",
|
|
6934
6927
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6935
6928
|
if (!url) return null;
|
|
6936
|
-
return
|
|
6929
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6937
6930
|
key: activePlayer.displayName,
|
|
6938
6931
|
ref: this.activePlayerRef,
|
|
6939
6932
|
config: this.config,
|
|
@@ -6970,14 +6963,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6970
6963
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6971
6964
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6972
6965
|
|
|
6973
|
-
var preview =
|
|
6966
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6974
6967
|
url: url,
|
|
6975
6968
|
light: light,
|
|
6976
6969
|
playIcon: playIcon,
|
|
6977
6970
|
onClick: this.handleClickPreview
|
|
6978
6971
|
});
|
|
6979
6972
|
|
|
6980
|
-
return
|
|
6973
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6981
6974
|
ref: this.wrapperRef,
|
|
6982
6975
|
style: _objectSpread({}, style, {
|
|
6983
6976
|
width: width,
|
|
@@ -7037,20 +7030,20 @@ var Audio = function Audio(_ref) {
|
|
|
7037
7030
|
var node = _ref.node;
|
|
7038
7031
|
|
|
7039
7032
|
if (node.uploadAudio) {
|
|
7040
|
-
return React__default
|
|
7033
|
+
return React__default.createElement(
|
|
7041
7034
|
'div',
|
|
7042
7035
|
{ className: 'audio d-block text-center mb-3' },
|
|
7043
|
-
React__default
|
|
7036
|
+
React__default.createElement(
|
|
7044
7037
|
'audio',
|
|
7045
7038
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7046
|
-
React__default
|
|
7047
|
-
React__default
|
|
7039
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7040
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7048
7041
|
'Your browser does not support the audio element.'
|
|
7049
7042
|
),
|
|
7050
|
-
node.caption && React__default
|
|
7043
|
+
node.caption && React__default.createElement(
|
|
7051
7044
|
'p',
|
|
7052
7045
|
{ style: { fontSize: '.9rem' } },
|
|
7053
|
-
React__default
|
|
7046
|
+
React__default.createElement(
|
|
7054
7047
|
'em',
|
|
7055
7048
|
null,
|
|
7056
7049
|
node.caption
|
|
@@ -7060,15 +7053,15 @@ var Audio = function Audio(_ref) {
|
|
|
7060
7053
|
} else if (node.audioFilePth) {
|
|
7061
7054
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7062
7055
|
if (hostname === 'embeds.audioboom.com') {
|
|
7063
|
-
return React__default
|
|
7056
|
+
return React__default.createElement(
|
|
7064
7057
|
'div',
|
|
7065
7058
|
null,
|
|
7066
|
-
React__default
|
|
7059
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7067
7060
|
' ',
|
|
7068
|
-
node.caption && React__default
|
|
7061
|
+
node.caption && React__default.createElement(
|
|
7069
7062
|
'p',
|
|
7070
7063
|
{ style: { fontSize: '.9rem' } },
|
|
7071
|
-
React__default
|
|
7064
|
+
React__default.createElement(
|
|
7072
7065
|
'em',
|
|
7073
7066
|
null,
|
|
7074
7067
|
node.caption
|
|
@@ -7076,14 +7069,14 @@ var Audio = function Audio(_ref) {
|
|
|
7076
7069
|
)
|
|
7077
7070
|
);
|
|
7078
7071
|
}
|
|
7079
|
-
return React__default
|
|
7072
|
+
return React__default.createElement(
|
|
7080
7073
|
'div',
|
|
7081
7074
|
{ className: 'audio' },
|
|
7082
|
-
React__default
|
|
7083
|
-
node.caption && React__default
|
|
7075
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7076
|
+
node.caption && React__default.createElement(
|
|
7084
7077
|
'p',
|
|
7085
7078
|
{ style: { fontSize: '.9rem' } },
|
|
7086
|
-
React__default
|
|
7079
|
+
React__default.createElement(
|
|
7087
7080
|
'em',
|
|
7088
7081
|
null,
|
|
7089
7082
|
node.caption
|
|
@@ -7101,34 +7094,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7101
7094
|
var profileImage = arguments[6];
|
|
7102
7095
|
|
|
7103
7096
|
if (authorName && authorURL) {
|
|
7104
|
-
return React__default
|
|
7097
|
+
return React__default.createElement(
|
|
7105
7098
|
'span',
|
|
7106
7099
|
null,
|
|
7107
|
-
React__default
|
|
7100
|
+
React__default.createElement(
|
|
7108
7101
|
'a',
|
|
7109
7102
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7110
7103
|
authorName
|
|
7111
7104
|
),
|
|
7112
|
-
React__default
|
|
7105
|
+
React__default.createElement(
|
|
7113
7106
|
reactBootstrap.Card,
|
|
7114
7107
|
{ className: 'author-details-card-' + index },
|
|
7115
|
-
React__default
|
|
7108
|
+
React__default.createElement(
|
|
7116
7109
|
reactBootstrap.Row,
|
|
7117
7110
|
null,
|
|
7118
|
-
profileImage && React__default
|
|
7111
|
+
profileImage && React__default.createElement(
|
|
7119
7112
|
reactBootstrap.Col,
|
|
7120
7113
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7121
|
-
React__default
|
|
7114
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7122
7115
|
),
|
|
7123
|
-
React__default
|
|
7116
|
+
React__default.createElement(
|
|
7124
7117
|
reactBootstrap.Col,
|
|
7125
7118
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7126
|
-
React__default
|
|
7119
|
+
React__default.createElement(
|
|
7127
7120
|
'div',
|
|
7128
7121
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7129
7122
|
authorName
|
|
7130
7123
|
),
|
|
7131
|
-
React__default
|
|
7124
|
+
React__default.createElement(
|
|
7132
7125
|
'p',
|
|
7133
7126
|
null,
|
|
7134
7127
|
biography
|
|
@@ -7136,7 +7129,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7136
7129
|
)
|
|
7137
7130
|
)
|
|
7138
7131
|
),
|
|
7139
|
-
React__default
|
|
7132
|
+
React__default.createElement(
|
|
7140
7133
|
'style',
|
|
7141
7134
|
{ jsx: 'true' },
|
|
7142
7135
|
'\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 '
|
|
@@ -7144,7 +7137,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7144
7137
|
length !== index + 1 && ' , '
|
|
7145
7138
|
);
|
|
7146
7139
|
} else if (authorName) {
|
|
7147
|
-
return React__default
|
|
7140
|
+
return React__default.createElement(
|
|
7148
7141
|
'span',
|
|
7149
7142
|
{ key: index },
|
|
7150
7143
|
authorName,
|
|
@@ -7246,7 +7239,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7246
7239
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7247
7240
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7248
7241
|
} else {
|
|
7249
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7242
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7250
7243
|
}
|
|
7251
7244
|
}
|
|
7252
7245
|
});
|
|
@@ -7306,7 +7299,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7306
7299
|
//Small pause before starting next video
|
|
7307
7300
|
setTimeout(function () {
|
|
7308
7301
|
//Youtube API to start video playing automatically
|
|
7309
|
-
var id = index$
|
|
7302
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7310
7303
|
event.target.loadVideoById(id);
|
|
7311
7304
|
}, 1500);
|
|
7312
7305
|
};
|
|
@@ -7416,44 +7409,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7416
7409
|
}
|
|
7417
7410
|
};
|
|
7418
7411
|
|
|
7419
|
-
return React__default
|
|
7412
|
+
return React__default.createElement(
|
|
7420
7413
|
'div',
|
|
7421
7414
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7422
|
-
React__default
|
|
7415
|
+
React__default.createElement(
|
|
7423
7416
|
'div',
|
|
7424
7417
|
{ className: 'mt-2 mb-5' },
|
|
7425
|
-
series && React__default
|
|
7418
|
+
series && React__default.createElement(
|
|
7426
7419
|
'div',
|
|
7427
7420
|
{ style: { fontSize: '0.9rem' } },
|
|
7428
7421
|
article.title,
|
|
7429
7422
|
' - Episode ',
|
|
7430
7423
|
series
|
|
7431
7424
|
),
|
|
7432
|
-
Videos[series - 1] && React__default
|
|
7425
|
+
Videos[series - 1] && React__default.createElement(
|
|
7433
7426
|
'h1',
|
|
7434
7427
|
{ className: 'mb-3' },
|
|
7435
7428
|
Videos[series - 1].title
|
|
7436
7429
|
),
|
|
7437
|
-
React__default
|
|
7430
|
+
React__default.createElement(
|
|
7438
7431
|
'div',
|
|
7439
7432
|
null,
|
|
7440
7433
|
moment.moment(article.published).format('LL')
|
|
7441
7434
|
),
|
|
7442
|
-
React__default
|
|
7435
|
+
React__default.createElement(
|
|
7443
7436
|
'div',
|
|
7444
7437
|
{ className: 'mb-3' },
|
|
7445
7438
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7446
|
-
return React__default
|
|
7439
|
+
return React__default.createElement(
|
|
7447
7440
|
'span',
|
|
7448
7441
|
{ key: index },
|
|
7449
7442
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7450
7443
|
);
|
|
7451
7444
|
})
|
|
7452
7445
|
),
|
|
7453
|
-
React__default
|
|
7446
|
+
React__default.createElement(
|
|
7454
7447
|
'p',
|
|
7455
7448
|
null,
|
|
7456
|
-
React__default
|
|
7449
|
+
React__default.createElement(SocialShare, {
|
|
7457
7450
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7458
7451
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7459
7452
|
shareVia: meta.shareVia,
|
|
@@ -7468,22 +7461,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7468
7461
|
hideFacebook: meta.hideFBShare
|
|
7469
7462
|
})
|
|
7470
7463
|
),
|
|
7471
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7464
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7472
7465
|
'p',
|
|
7473
7466
|
{ className: 'mb-3' },
|
|
7474
|
-
React__default
|
|
7467
|
+
React__default.createElement(
|
|
7475
7468
|
'em',
|
|
7476
7469
|
null,
|
|
7477
7470
|
Videos[series - 1].intro
|
|
7478
7471
|
)
|
|
7479
7472
|
)
|
|
7480
7473
|
),
|
|
7481
|
-
React__default
|
|
7474
|
+
React__default.createElement(
|
|
7482
7475
|
'div',
|
|
7483
7476
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7484
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7477
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7485
7478
|
className: 'fluid-iframe',
|
|
7486
|
-
videoId: index$
|
|
7479
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7487
7480
|
opts: opts,
|
|
7488
7481
|
onReady: handleOnReady,
|
|
7489
7482
|
onPlay: handleOnPlay,
|
|
@@ -7492,10 +7485,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7492
7485
|
return handleOnEnd(e);
|
|
7493
7486
|
}
|
|
7494
7487
|
}),
|
|
7495
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7496
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7497
|
-
React__default
|
|
7498
|
-
series && React__default
|
|
7488
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7489
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7490
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7491
|
+
series && React__default.createElement(
|
|
7499
7492
|
'div',
|
|
7500
7493
|
{
|
|
7501
7494
|
className: 'vid-series',
|
|
@@ -7505,10 +7498,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7505
7498
|
maxHeight: '100%',
|
|
7506
7499
|
paddingBottom: '0'
|
|
7507
7500
|
} },
|
|
7508
|
-
React__default
|
|
7501
|
+
React__default.createElement(
|
|
7509
7502
|
'p',
|
|
7510
7503
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7511
|
-
React__default
|
|
7504
|
+
React__default.createElement(
|
|
7512
7505
|
'b',
|
|
7513
7506
|
{ style: { fontSize: '1.25em' } },
|
|
7514
7507
|
'Now Playing:'
|
|
@@ -7516,16 +7509,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7516
7509
|
' ',
|
|
7517
7510
|
seriesData[series ? series - 1 : 0].title
|
|
7518
7511
|
),
|
|
7519
|
-
vidUrl && React__default
|
|
7512
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7520
7513
|
)
|
|
7521
7514
|
),
|
|
7522
|
-
React__default
|
|
7523
|
-
React__default
|
|
7515
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7516
|
+
React__default.createElement(
|
|
7524
7517
|
'div',
|
|
7525
7518
|
{ className: 'vid-text' },
|
|
7526
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7519
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7527
7520
|
),
|
|
7528
|
-
React__default
|
|
7521
|
+
React__default.createElement(
|
|
7529
7522
|
'style',
|
|
7530
7523
|
{ jsx: 'true' },
|
|
7531
7524
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7578,67 +7571,67 @@ var Poll = function Poll(_ref) {
|
|
|
7578
7571
|
return acc;
|
|
7579
7572
|
}
|
|
7580
7573
|
}, 0);
|
|
7581
|
-
return React__default
|
|
7582
|
-
React__default
|
|
7574
|
+
return React__default.createElement(
|
|
7575
|
+
React__default.Fragment,
|
|
7583
7576
|
null,
|
|
7584
|
-
question && React__default
|
|
7577
|
+
question && React__default.createElement(
|
|
7585
7578
|
'p',
|
|
7586
7579
|
{ className: 'font-weight-bold' },
|
|
7587
7580
|
question
|
|
7588
7581
|
),
|
|
7589
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7582
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7590
7583
|
'form',
|
|
7591
7584
|
{ onSubmit: function onSubmit(e) {
|
|
7592
7585
|
return onSubmitPoll(e);
|
|
7593
7586
|
} },
|
|
7594
7587
|
choices && choices.map(function (choice) {
|
|
7595
|
-
return React__default
|
|
7588
|
+
return React__default.createElement(
|
|
7596
7589
|
'div',
|
|
7597
7590
|
{ key: choice._key },
|
|
7598
|
-
React__default
|
|
7591
|
+
React__default.createElement(
|
|
7599
7592
|
'label',
|
|
7600
7593
|
{ className: 'pl-2' },
|
|
7601
|
-
React__default
|
|
7594
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7602
7595
|
return setSelectedChoice(e.target.value);
|
|
7603
7596
|
} }),
|
|
7604
7597
|
' ' + choice.choiceText
|
|
7605
7598
|
)
|
|
7606
7599
|
);
|
|
7607
7600
|
}),
|
|
7608
|
-
React__default
|
|
7601
|
+
React__default.createElement(
|
|
7609
7602
|
reactBootstrap.Button,
|
|
7610
7603
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7611
7604
|
'Vote'
|
|
7612
7605
|
)
|
|
7613
7606
|
),
|
|
7614
|
-
React__default
|
|
7607
|
+
React__default.createElement(
|
|
7615
7608
|
'div',
|
|
7616
7609
|
{ className: 'progress-container' },
|
|
7617
7610
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7618
7611
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7619
|
-
return React__default
|
|
7612
|
+
return React__default.createElement(
|
|
7620
7613
|
'div',
|
|
7621
7614
|
{ key: choice._key, className: 'mb-3' },
|
|
7622
|
-
React__default
|
|
7615
|
+
React__default.createElement(
|
|
7623
7616
|
'div',
|
|
7624
7617
|
{ className: 'correct-answer' },
|
|
7625
|
-
React__default
|
|
7618
|
+
React__default.createElement(
|
|
7626
7619
|
'div',
|
|
7627
7620
|
null,
|
|
7628
7621
|
choice.choiceText
|
|
7629
7622
|
),
|
|
7630
|
-
choice.choiceAnswer === true && React__default
|
|
7623
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7631
7624
|
'div',
|
|
7632
7625
|
null,
|
|
7633
|
-
React__default
|
|
7626
|
+
React__default.createElement(
|
|
7634
7627
|
'span',
|
|
7635
7628
|
{ style: { color: 'limegreen' } },
|
|
7636
7629
|
'Correct!'
|
|
7637
7630
|
)
|
|
7638
7631
|
)
|
|
7639
7632
|
),
|
|
7640
|
-
React__default
|
|
7641
|
-
React__default
|
|
7633
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7634
|
+
React__default.createElement(
|
|
7642
7635
|
'span',
|
|
7643
7636
|
{ className: 'float-right' },
|
|
7644
7637
|
percentage,
|
|
@@ -7649,14 +7642,14 @@ var Poll = function Poll(_ref) {
|
|
|
7649
7642
|
);
|
|
7650
7643
|
})
|
|
7651
7644
|
),
|
|
7652
|
-
showAnswer && React__default
|
|
7645
|
+
showAnswer && React__default.createElement(
|
|
7653
7646
|
'h4',
|
|
7654
7647
|
{ className: 'text-center small p-3' },
|
|
7655
7648
|
'Total Votes: ',
|
|
7656
7649
|
choicesTotalCount
|
|
7657
7650
|
),
|
|
7658
|
-
showAnswer && response && React__default
|
|
7659
|
-
React__default
|
|
7651
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7652
|
+
React__default.createElement(
|
|
7660
7653
|
'style',
|
|
7661
7654
|
{ jsx: 'true' },
|
|
7662
7655
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7668,13 +7661,13 @@ var Poll = function Poll(_ref) {
|
|
|
7668
7661
|
|
|
7669
7662
|
var $values = _objectToArray._objectToArray(false);
|
|
7670
7663
|
|
|
7671
|
-
|
|
7664
|
+
core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
7672
7665
|
values: function values(it) {
|
|
7673
7666
|
return $values(it);
|
|
7674
7667
|
}
|
|
7675
7668
|
});
|
|
7676
7669
|
|
|
7677
|
-
var values =
|
|
7670
|
+
var values = core_getIteratorMethod._core.Object.values;
|
|
7678
7671
|
|
|
7679
7672
|
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7680
7673
|
module.exports = { "default": values, __esModule: true };
|
|
@@ -7755,67 +7748,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7755
7748
|
return acc;
|
|
7756
7749
|
}
|
|
7757
7750
|
}, 0);
|
|
7758
|
-
return React__default
|
|
7759
|
-
React__default
|
|
7751
|
+
return React__default.createElement(
|
|
7752
|
+
React__default.Fragment,
|
|
7760
7753
|
null,
|
|
7761
|
-
question && React__default
|
|
7754
|
+
question && React__default.createElement(
|
|
7762
7755
|
'p',
|
|
7763
7756
|
{ className: 'font-weight-bold' },
|
|
7764
7757
|
question
|
|
7765
7758
|
),
|
|
7766
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7759
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7767
7760
|
'form',
|
|
7768
7761
|
{ onSubmit: function onSubmit(e) {
|
|
7769
7762
|
return onSubmitPoll(e);
|
|
7770
7763
|
} },
|
|
7771
7764
|
choices && choices.map(function (choice) {
|
|
7772
|
-
return React__default
|
|
7765
|
+
return React__default.createElement(
|
|
7773
7766
|
'div',
|
|
7774
7767
|
{ key: choice._key },
|
|
7775
|
-
React__default
|
|
7768
|
+
React__default.createElement(
|
|
7776
7769
|
'label',
|
|
7777
7770
|
{ className: 'pl-2' },
|
|
7778
|
-
React__default
|
|
7771
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7779
7772
|
return setSelectedChoice(e.target.value);
|
|
7780
7773
|
} }),
|
|
7781
7774
|
' ' + choice.choiceText
|
|
7782
7775
|
)
|
|
7783
7776
|
);
|
|
7784
7777
|
}),
|
|
7785
|
-
React__default
|
|
7778
|
+
React__default.createElement(
|
|
7786
7779
|
reactBootstrap.Button,
|
|
7787
7780
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7788
7781
|
'Vote'
|
|
7789
7782
|
)
|
|
7790
7783
|
),
|
|
7791
|
-
React__default
|
|
7784
|
+
React__default.createElement(
|
|
7792
7785
|
'div',
|
|
7793
7786
|
{ className: 'progress-container' },
|
|
7794
7787
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7795
7788
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7796
|
-
return React__default
|
|
7789
|
+
return React__default.createElement(
|
|
7797
7790
|
'div',
|
|
7798
7791
|
{ key: choice._key, className: 'mb-3' },
|
|
7799
|
-
React__default
|
|
7792
|
+
React__default.createElement(
|
|
7800
7793
|
'div',
|
|
7801
7794
|
{ className: 'correct-answer' },
|
|
7802
|
-
React__default
|
|
7795
|
+
React__default.createElement(
|
|
7803
7796
|
'div',
|
|
7804
7797
|
null,
|
|
7805
7798
|
choice.choiceText
|
|
7806
7799
|
),
|
|
7807
|
-
choice.choiceAnswer === true && React__default
|
|
7800
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7808
7801
|
'div',
|
|
7809
7802
|
null,
|
|
7810
|
-
React__default
|
|
7803
|
+
React__default.createElement(
|
|
7811
7804
|
'span',
|
|
7812
7805
|
{ style: { color: 'limegreen' } },
|
|
7813
7806
|
'Correct!'
|
|
7814
7807
|
)
|
|
7815
7808
|
)
|
|
7816
7809
|
),
|
|
7817
|
-
React__default
|
|
7818
|
-
React__default
|
|
7810
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7811
|
+
React__default.createElement(
|
|
7819
7812
|
'span',
|
|
7820
7813
|
{ className: 'float-right' },
|
|
7821
7814
|
percentage,
|
|
@@ -7826,14 +7819,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7826
7819
|
);
|
|
7827
7820
|
})
|
|
7828
7821
|
),
|
|
7829
|
-
showAnswer && React__default
|
|
7822
|
+
showAnswer && React__default.createElement(
|
|
7830
7823
|
'h4',
|
|
7831
7824
|
{ className: 'text-center small p-3' },
|
|
7832
7825
|
'Total Votes: ',
|
|
7833
7826
|
choicesTotalCount
|
|
7834
7827
|
),
|
|
7835
|
-
showAnswer && response && React__default
|
|
7836
|
-
React__default
|
|
7828
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7829
|
+
React__default.createElement(
|
|
7837
7830
|
'style',
|
|
7838
7831
|
{ jsx: 'true' },
|
|
7839
7832
|
'\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 '
|
|
@@ -7841,7 +7834,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7841
7834
|
);
|
|
7842
7835
|
};
|
|
7843
7836
|
|
|
7844
|
-
var numberOfPaginations = main.
|
|
7837
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7845
7838
|
|
|
7846
7839
|
var Quiz = function Quiz(_ref) {
|
|
7847
7840
|
var quizzes = _ref.quizzes,
|
|
@@ -7959,34 +7952,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7959
7952
|
};
|
|
7960
7953
|
|
|
7961
7954
|
var renderPagination = function renderPagination() {
|
|
7962
|
-
return React__default
|
|
7963
|
-
|
|
7964
|
-
{ className: 'p-0 m-0', size: main.
|
|
7965
|
-
React__default
|
|
7955
|
+
return React__default.createElement(
|
|
7956
|
+
Pagination,
|
|
7957
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7958
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7966
7959
|
return changePage('first');
|
|
7967
7960
|
}, disabled: currentPage === 1 }),
|
|
7968
|
-
React__default
|
|
7961
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7969
7962
|
return changePage('prev');
|
|
7970
7963
|
}, disabled: currentPage === 1 }),
|
|
7971
|
-
React__default
|
|
7964
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7972
7965
|
return renderNewPages('prev');
|
|
7973
7966
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7974
7967
|
pages.map(function (page) {
|
|
7975
|
-
return React__default
|
|
7976
|
-
|
|
7968
|
+
return React__default.createElement(
|
|
7969
|
+
Pagination.Item,
|
|
7977
7970
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7978
7971
|
return changePage(page);
|
|
7979
7972
|
} },
|
|
7980
7973
|
page
|
|
7981
7974
|
);
|
|
7982
7975
|
}),
|
|
7983
|
-
React__default
|
|
7976
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7984
7977
|
return renderNewPages('next');
|
|
7985
7978
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7986
|
-
React__default
|
|
7979
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7987
7980
|
return changePage('next');
|
|
7988
7981
|
}, disabled: currentPage === pageCount }),
|
|
7989
|
-
React__default
|
|
7982
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7990
7983
|
return changePage('last');
|
|
7991
7984
|
}, disabled: currentPage === pageCount })
|
|
7992
7985
|
);
|
|
@@ -8069,51 +8062,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8069
8062
|
}
|
|
8070
8063
|
};
|
|
8071
8064
|
|
|
8072
|
-
return React__default
|
|
8073
|
-
React__default
|
|
8065
|
+
return React__default.createElement(
|
|
8066
|
+
React__default.Fragment,
|
|
8074
8067
|
null,
|
|
8075
|
-
quizzes[currentPage - 1] && React__default
|
|
8076
|
-
React__default
|
|
8068
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8069
|
+
React__default.Fragment,
|
|
8077
8070
|
null,
|
|
8078
|
-
React__default
|
|
8079
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8071
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8072
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8080
8073
|
'form',
|
|
8081
8074
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8082
8075
|
return e.preventDefault();
|
|
8083
8076
|
} },
|
|
8084
8077
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8085
|
-
return React__default
|
|
8078
|
+
return React__default.createElement(
|
|
8086
8079
|
'div',
|
|
8087
8080
|
{ key: answer._key },
|
|
8088
|
-
React__default
|
|
8081
|
+
React__default.createElement(
|
|
8089
8082
|
'label',
|
|
8090
8083
|
{ className: 'pl-2' },
|
|
8091
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8084
|
+
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 }),
|
|
8092
8085
|
' ' + answer.answerText
|
|
8093
8086
|
)
|
|
8094
8087
|
);
|
|
8095
8088
|
})
|
|
8096
8089
|
)
|
|
8097
8090
|
),
|
|
8098
|
-
!showAnswer && React__default
|
|
8099
|
-
|
|
8091
|
+
!showAnswer && React__default.createElement(
|
|
8092
|
+
Button,
|
|
8100
8093
|
{ onClick: function onClick() {
|
|
8101
8094
|
return checkAnswers();
|
|
8102
8095
|
}, variant: 'info', block: true },
|
|
8103
8096
|
'Please click here for answer'
|
|
8104
8097
|
),
|
|
8105
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8106
|
-
React__default
|
|
8098
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8099
|
+
React__default.Fragment,
|
|
8107
8100
|
null,
|
|
8108
|
-
React__default
|
|
8101
|
+
React__default.createElement(
|
|
8109
8102
|
'h4',
|
|
8110
8103
|
null,
|
|
8111
8104
|
'Answer:'
|
|
8112
8105
|
),
|
|
8113
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8106
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8114
8107
|
),
|
|
8115
|
-
React__default
|
|
8116
|
-
pageCount > 1 && React__default
|
|
8108
|
+
React__default.createElement('br', null),
|
|
8109
|
+
pageCount > 1 && React__default.createElement(
|
|
8117
8110
|
'div',
|
|
8118
8111
|
{ className: 'd-flex justify-content-center' },
|
|
8119
8112
|
renderPagination()
|
|
@@ -8124,10 +8117,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8124
8117
|
var Leads = function Leads(_ref) {
|
|
8125
8118
|
var url = _ref.url;
|
|
8126
8119
|
|
|
8127
|
-
return React__default
|
|
8120
|
+
return React__default.createElement(
|
|
8128
8121
|
'div',
|
|
8129
8122
|
{ className: 'd-block text-center mb-3' },
|
|
8130
|
-
url && React__default
|
|
8123
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8131
8124
|
);
|
|
8132
8125
|
};
|
|
8133
8126
|
|
|
@@ -8167,53 +8160,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8167
8160
|
setCarouselIndex(selectedIndex);
|
|
8168
8161
|
};
|
|
8169
8162
|
|
|
8170
|
-
return React__default
|
|
8163
|
+
return React__default.createElement(
|
|
8171
8164
|
'div',
|
|
8172
8165
|
{ className: 'mt-3 mb-4' },
|
|
8173
|
-
React__default
|
|
8166
|
+
React__default.createElement(
|
|
8174
8167
|
reactBootstrap.Carousel,
|
|
8175
8168
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8176
8169
|
slides && slides.map(function (slide) {
|
|
8177
8170
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8178
|
-
return React__default
|
|
8171
|
+
return React__default.createElement(
|
|
8179
8172
|
reactBootstrap.Carousel.Item,
|
|
8180
8173
|
{ key: slide._key },
|
|
8181
|
-
React__default
|
|
8174
|
+
React__default.createElement(
|
|
8182
8175
|
'a',
|
|
8183
8176
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8184
|
-
React__default
|
|
8177
|
+
React__default.createElement(
|
|
8185
8178
|
'div',
|
|
8186
8179
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8187
|
-
React__default
|
|
8180
|
+
React__default.createElement(
|
|
8188
8181
|
index$2.LazyLoad,
|
|
8189
8182
|
null,
|
|
8190
|
-
React__default
|
|
8183
|
+
React__default.createElement(
|
|
8191
8184
|
'picture',
|
|
8192
8185
|
null,
|
|
8193
|
-
React__default
|
|
8194
|
-
React__default
|
|
8195
|
-
React__default
|
|
8196
|
-
React__default
|
|
8186
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8187
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8188
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8189
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8197
8190
|
)
|
|
8198
8191
|
)
|
|
8199
8192
|
)
|
|
8200
8193
|
),
|
|
8201
|
-
React__default
|
|
8194
|
+
React__default.createElement(
|
|
8202
8195
|
'div',
|
|
8203
8196
|
{ className: 'p-2' },
|
|
8204
|
-
slide.slideshowImage.caption && React__default
|
|
8197
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8205
8198
|
'h3',
|
|
8206
8199
|
{ style: { padding: '0px' } },
|
|
8207
8200
|
slide.slideshowImage.caption
|
|
8208
8201
|
),
|
|
8209
|
-
slide.description && React__default
|
|
8202
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8210
8203
|
)
|
|
8211
8204
|
);
|
|
8212
8205
|
}
|
|
8213
8206
|
return null;
|
|
8214
8207
|
})
|
|
8215
8208
|
),
|
|
8216
|
-
React__default
|
|
8209
|
+
React__default.createElement(
|
|
8217
8210
|
'style',
|
|
8218
8211
|
{ jsx: 'true' },
|
|
8219
8212
|
'\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 '
|
|
@@ -8232,10 +8225,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8232
8225
|
sizes = _props$node.sizes,
|
|
8233
8226
|
sizeMapping = _props$node.sizeMapping;
|
|
8234
8227
|
|
|
8235
|
-
return React__default
|
|
8228
|
+
return React__default.createElement(
|
|
8236
8229
|
'div',
|
|
8237
8230
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8238
|
-
React__default
|
|
8231
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8239
8232
|
);
|
|
8240
8233
|
};
|
|
8241
8234
|
|
|
@@ -8246,15 +8239,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8246
8239
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8247
8240
|
|
|
8248
8241
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8249
|
-
return React__default
|
|
8242
|
+
return React__default.createElement(
|
|
8250
8243
|
'section',
|
|
8251
8244
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8252
|
-
Caption && React__default
|
|
8245
|
+
Caption && React__default.createElement(
|
|
8253
8246
|
'h4',
|
|
8254
8247
|
{ className: 'formstack-caption' },
|
|
8255
8248
|
Caption
|
|
8256
8249
|
),
|
|
8257
|
-
React__default
|
|
8250
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8258
8251
|
);
|
|
8259
8252
|
};
|
|
8260
8253
|
|
|
@@ -8270,36 +8263,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8270
8263
|
}
|
|
8271
8264
|
});
|
|
8272
8265
|
if (medias && medias.length > 0) {
|
|
8273
|
-
return React__default
|
|
8266
|
+
return React__default.createElement(
|
|
8274
8267
|
'div',
|
|
8275
8268
|
{ className: 'multi-media-container' },
|
|
8276
|
-
React__default
|
|
8277
|
-
|
|
8269
|
+
React__default.createElement(
|
|
8270
|
+
Row,
|
|
8278
8271
|
{ noGutters: true },
|
|
8279
8272
|
medias.map(function (media) {
|
|
8280
|
-
return React__default
|
|
8281
|
-
|
|
8273
|
+
return React__default.createElement(
|
|
8274
|
+
Col,
|
|
8282
8275
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8283
|
-
React__default
|
|
8276
|
+
React__default.createElement(
|
|
8284
8277
|
'a',
|
|
8285
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8278
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8286
8279
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8287
|
-
React__default
|
|
8280
|
+
React__default.createElement(
|
|
8288
8281
|
'div',
|
|
8289
8282
|
{ className: 'multi-media-image-container' },
|
|
8290
|
-
imageBox && React__default
|
|
8283
|
+
imageBox && React__default.createElement(
|
|
8291
8284
|
index$2.LazyLoad,
|
|
8292
8285
|
{ once: true },
|
|
8293
|
-
React__default
|
|
8286
|
+
React__default.createElement(
|
|
8294
8287
|
'picture',
|
|
8295
8288
|
null,
|
|
8296
|
-
React__default
|
|
8297
|
-
React__default
|
|
8298
|
-
React__default
|
|
8299
|
-
React__default
|
|
8289
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8290
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8291
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8292
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8300
8293
|
)
|
|
8301
8294
|
),
|
|
8302
|
-
media.caption && React__default
|
|
8295
|
+
media.caption && React__default.createElement(
|
|
8303
8296
|
'span',
|
|
8304
8297
|
{ className: 'multi-media-caption' },
|
|
8305
8298
|
media.caption
|
|
@@ -8309,7 +8302,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8309
8302
|
);
|
|
8310
8303
|
})
|
|
8311
8304
|
),
|
|
8312
|
-
React__default
|
|
8305
|
+
React__default.createElement(
|
|
8313
8306
|
'style',
|
|
8314
8307
|
{ jsx: 'true' },
|
|
8315
8308
|
'\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 '
|
|
@@ -8320,12 +8313,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8320
8313
|
};
|
|
8321
8314
|
|
|
8322
8315
|
var InscreenSensor = function (_React$Component) {
|
|
8323
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8316
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8324
8317
|
|
|
8325
8318
|
function InscreenSensor(props) {
|
|
8326
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8319
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8327
8320
|
|
|
8328
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8321
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8329
8322
|
|
|
8330
8323
|
_this.scrollHandler = function () {
|
|
8331
8324
|
var visible = _this.checkInside();
|
|
@@ -8356,12 +8349,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8356
8349
|
}
|
|
8357
8350
|
};
|
|
8358
8351
|
|
|
8359
|
-
_this.wraperRef = React__default
|
|
8352
|
+
_this.wraperRef = React__default.createRef();
|
|
8360
8353
|
_this.visible = false;
|
|
8361
8354
|
return _this;
|
|
8362
8355
|
}
|
|
8363
8356
|
|
|
8364
|
-
inherits._createClass(InscreenSensor, [{
|
|
8357
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8365
8358
|
key: 'componentDidMount',
|
|
8366
8359
|
value: function componentDidMount() {
|
|
8367
8360
|
this.visible = this.checkInside();
|
|
@@ -8384,7 +8377,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8384
8377
|
_props$id = _props.id,
|
|
8385
8378
|
id = _props$id === undefined ? '' : _props$id;
|
|
8386
8379
|
|
|
8387
|
-
return React__default
|
|
8380
|
+
return React__default.createElement(
|
|
8388
8381
|
'div',
|
|
8389
8382
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8390
8383
|
this.props.children
|
|
@@ -8393,7 +8386,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8393
8386
|
}]);
|
|
8394
8387
|
|
|
8395
8388
|
return InscreenSensor;
|
|
8396
|
-
}(React__default
|
|
8389
|
+
}(React__default.Component);
|
|
8397
8390
|
|
|
8398
8391
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8399
8392
|
var nodes = _ref.nodes,
|
|
@@ -8502,33 +8495,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8502
8495
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8503
8496
|
var showReading = show ? 'showReading' : '';
|
|
8504
8497
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8505
|
-
return React__default
|
|
8498
|
+
return React__default.createElement(
|
|
8506
8499
|
'div',
|
|
8507
8500
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8508
|
-
React__default
|
|
8501
|
+
React__default.createElement(
|
|
8509
8502
|
'a',
|
|
8510
8503
|
{ onClick: function onClick(e) {
|
|
8511
8504
|
return articleCardClickHandler(e);
|
|
8512
8505
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8513
|
-
React__default
|
|
8506
|
+
React__default.createElement(
|
|
8514
8507
|
'div',
|
|
8515
8508
|
{ className: 'prevNext-thumbnail' },
|
|
8516
|
-
React__default
|
|
8517
|
-
React__default
|
|
8509
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8510
|
+
React__default.createElement(
|
|
8518
8511
|
'div',
|
|
8519
8512
|
{ className: 'prevNext-reading ' + showReading },
|
|
8520
8513
|
articleLabel
|
|
8521
8514
|
)
|
|
8522
8515
|
),
|
|
8523
|
-
React__default
|
|
8516
|
+
React__default.createElement(
|
|
8524
8517
|
'div',
|
|
8525
8518
|
{ className: 'prevNext-summary' },
|
|
8526
|
-
React__default
|
|
8519
|
+
React__default.createElement(
|
|
8527
8520
|
'div',
|
|
8528
8521
|
{ className: 'prevNext-publishDate' },
|
|
8529
8522
|
moment.moment(article.published).format('LL')
|
|
8530
8523
|
),
|
|
8531
|
-
React__default
|
|
8524
|
+
React__default.createElement(
|
|
8532
8525
|
'h2',
|
|
8533
8526
|
{ className: 'prevNext-title' },
|
|
8534
8527
|
article.title
|
|
@@ -8577,7 +8570,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8577
8570
|
|
|
8578
8571
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8579
8572
|
if (biography) {
|
|
8580
|
-
return React__default
|
|
8573
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8581
8574
|
}
|
|
8582
8575
|
};
|
|
8583
8576
|
|
|
@@ -8663,7 +8656,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8663
8656
|
//console.log('useLayoutEffect')
|
|
8664
8657
|
if (!firstLoad) {
|
|
8665
8658
|
setUpArrowClicked(false);
|
|
8666
|
-
if (main.
|
|
8659
|
+
if (main.main_36) {
|
|
8667
8660
|
grabLoadedAds();
|
|
8668
8661
|
} else {
|
|
8669
8662
|
scrollToArticle();
|
|
@@ -8687,7 +8680,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8687
8680
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8688
8681
|
if (pageview) pageview(path);
|
|
8689
8682
|
|
|
8690
|
-
if (!main.
|
|
8683
|
+
if (!main.main_36) {
|
|
8691
8684
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8692
8685
|
if (window.googletag && googletag.pubadsReady) {
|
|
8693
8686
|
index.lib_3.refresh();
|
|
@@ -8695,7 +8688,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8695
8688
|
});
|
|
8696
8689
|
}
|
|
8697
8690
|
//Refresh leaderboard ad on mobile
|
|
8698
|
-
if (main.
|
|
8691
|
+
if (main.main_36) {
|
|
8699
8692
|
var leaderboardSlotId = '';
|
|
8700
8693
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8701
8694
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8735,38 +8728,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8735
8728
|
setSensorVisible(false);
|
|
8736
8729
|
};
|
|
8737
8730
|
|
|
8738
|
-
return React__default
|
|
8739
|
-
React__default
|
|
8731
|
+
return React__default.createElement(
|
|
8732
|
+
React__default.Fragment,
|
|
8740
8733
|
null,
|
|
8741
|
-
React__default
|
|
8734
|
+
React__default.createElement(
|
|
8742
8735
|
'div',
|
|
8743
8736
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8744
|
-
React__default
|
|
8737
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8745
8738
|
return handleArrowClick();
|
|
8746
8739
|
} })
|
|
8747
8740
|
),
|
|
8748
|
-
React__default
|
|
8749
|
-
React__default
|
|
8741
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8742
|
+
React__default.createElement(
|
|
8750
8743
|
'div',
|
|
8751
8744
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8752
|
-
React__default
|
|
8745
|
+
React__default.createElement(
|
|
8753
8746
|
'h5',
|
|
8754
8747
|
{ className: 'objective-title' },
|
|
8755
8748
|
nodes.seriesTitle
|
|
8756
8749
|
),
|
|
8757
|
-
React__default
|
|
8750
|
+
React__default.createElement(
|
|
8758
8751
|
'div',
|
|
8759
8752
|
{ className: 'prevNextWrapper' },
|
|
8760
8753
|
PrevNextCards(false, -1)
|
|
8761
8754
|
)
|
|
8762
8755
|
),
|
|
8763
|
-
React__default
|
|
8764
|
-
React__default
|
|
8756
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8757
|
+
React__default.createElement(
|
|
8765
8758
|
'div',
|
|
8766
8759
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8767
|
-
main.
|
|
8760
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8768
8761
|
if (index === 0) {
|
|
8769
|
-
return React__default
|
|
8762
|
+
return React__default.createElement(
|
|
8770
8763
|
'div',
|
|
8771
8764
|
{
|
|
8772
8765
|
key: 'addid-1',
|
|
@@ -8786,14 +8779,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8786
8779
|
}
|
|
8787
8780
|
})
|
|
8788
8781
|
),
|
|
8789
|
-
React__default
|
|
8782
|
+
React__default.createElement(
|
|
8790
8783
|
'div',
|
|
8791
8784
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8792
8785
|
Articles.map(function (article, index) {
|
|
8793
|
-
return React__default
|
|
8786
|
+
return React__default.createElement(
|
|
8794
8787
|
'div',
|
|
8795
8788
|
{ key: article.title },
|
|
8796
|
-
React__default
|
|
8789
|
+
React__default.createElement(
|
|
8797
8790
|
InscreenSensor,
|
|
8798
8791
|
{
|
|
8799
8792
|
visible: sensorVisible,
|
|
@@ -8811,84 +8804,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8811
8804
|
}
|
|
8812
8805
|
}
|
|
8813
8806
|
} },
|
|
8814
|
-
React__default
|
|
8815
|
-
|
|
8807
|
+
React__default.createElement(
|
|
8808
|
+
Head,
|
|
8816
8809
|
null,
|
|
8817
|
-
currentTitle !== null && React__default
|
|
8810
|
+
currentTitle !== null && React__default.createElement(
|
|
8818
8811
|
'title',
|
|
8819
8812
|
{ key: 'title' },
|
|
8820
8813
|
currentTitle
|
|
8821
8814
|
),
|
|
8822
|
-
currentSummary !== null && React__default
|
|
8823
|
-
currentURL !== null && React__default
|
|
8824
|
-
currentTitle !== null && React__default
|
|
8825
|
-
currentThumbnail !== null && React__default
|
|
8826
|
-
currentSummary !== null && React__default
|
|
8827
|
-
currentTitle !== null && React__default
|
|
8828
|
-
currentThumbnail !== null && React__default
|
|
8829
|
-
currentSummary !== null && React__default
|
|
8815
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8816
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8817
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8818
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8819
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8820
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8821
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8822
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8830
8823
|
),
|
|
8831
|
-
React__default
|
|
8824
|
+
React__default.createElement(
|
|
8832
8825
|
'article',
|
|
8833
8826
|
{ className: 'article-wrapper' },
|
|
8834
|
-
React__default
|
|
8827
|
+
React__default.createElement(
|
|
8835
8828
|
'div',
|
|
8836
8829
|
{ className: 'article-publishDate' },
|
|
8837
8830
|
moment.moment(article.published).format('LL')
|
|
8838
8831
|
),
|
|
8839
|
-
React__default
|
|
8832
|
+
React__default.createElement(
|
|
8840
8833
|
'div',
|
|
8841
8834
|
{ className: 'author-details-wrapper' },
|
|
8842
8835
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8843
|
-
return React__default
|
|
8836
|
+
return React__default.createElement(
|
|
8844
8837
|
'span',
|
|
8845
8838
|
{ key: index },
|
|
8846
8839
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8847
8840
|
);
|
|
8848
8841
|
})
|
|
8849
8842
|
),
|
|
8850
|
-
React__default
|
|
8843
|
+
React__default.createElement(
|
|
8851
8844
|
'h2',
|
|
8852
8845
|
{ className: 'article-title' },
|
|
8853
8846
|
article.title
|
|
8854
8847
|
),
|
|
8855
|
-
React__default
|
|
8848
|
+
React__default.createElement(
|
|
8856
8849
|
'div',
|
|
8857
8850
|
{ className: 'mt-2 mb-2' },
|
|
8858
|
-
React__default
|
|
8851
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8859
8852
|
serializers: getSerializers,
|
|
8860
8853
|
videoAccountIDs: accountIDs,
|
|
8861
8854
|
blocks: article.text,
|
|
8862
8855
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8863
8856
|
}, client.config())),
|
|
8864
|
-
React__default
|
|
8857
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8865
8858
|
),
|
|
8866
|
-
Articles.length > 1 && React__default
|
|
8867
|
-
React__default
|
|
8859
|
+
Articles.length > 1 && React__default.createElement(
|
|
8860
|
+
React__default.Fragment,
|
|
8868
8861
|
null,
|
|
8869
|
-
React__default
|
|
8862
|
+
React__default.createElement(
|
|
8870
8863
|
'div',
|
|
8871
8864
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8872
|
-
React__default
|
|
8865
|
+
React__default.createElement(
|
|
8873
8866
|
'h5',
|
|
8874
8867
|
{ className: 'objective-title' },
|
|
8875
8868
|
nodes.seriesTitle
|
|
8876
8869
|
),
|
|
8877
|
-
React__default
|
|
8870
|
+
React__default.createElement(
|
|
8878
8871
|
'div',
|
|
8879
8872
|
{ className: 'prevNextWrapper' },
|
|
8880
8873
|
PrevNextCards(true, index)
|
|
8881
8874
|
)
|
|
8882
8875
|
),
|
|
8883
|
-
React__default
|
|
8876
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8884
8877
|
)
|
|
8885
8878
|
),
|
|
8886
|
-
React__default
|
|
8879
|
+
React__default.createElement(
|
|
8887
8880
|
'div',
|
|
8888
8881
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8889
|
-
main.
|
|
8882
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8890
8883
|
if (innerIndex === 0) {
|
|
8891
|
-
return React__default
|
|
8884
|
+
return React__default.createElement(
|
|
8892
8885
|
'div',
|
|
8893
8886
|
{
|
|
8894
8887
|
key: 'addid-' + (index + 2),
|
|
@@ -8911,7 +8904,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8911
8904
|
)
|
|
8912
8905
|
);
|
|
8913
8906
|
}),
|
|
8914
|
-
React__default
|
|
8907
|
+
React__default.createElement(
|
|
8915
8908
|
'style',
|
|
8916
8909
|
{ jsx: 'true' },
|
|
8917
8910
|
'\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 '
|
|
@@ -8941,11 +8934,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8941
8934
|
};
|
|
8942
8935
|
}, [handleClickOutside]);
|
|
8943
8936
|
|
|
8944
|
-
return React__default
|
|
8937
|
+
return React__default.createElement(
|
|
8945
8938
|
'div',
|
|
8946
8939
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8947
|
-
React__default
|
|
8948
|
-
React__default
|
|
8940
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8941
|
+
React__default.createElement(
|
|
8949
8942
|
'style',
|
|
8950
8943
|
{ jsx: 'true' },
|
|
8951
8944
|
'\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 '
|
|
@@ -8959,7 +8952,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8959
8952
|
}
|
|
8960
8953
|
};
|
|
8961
8954
|
|
|
8962
|
-
var FigureImage = React__default
|
|
8955
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8963
8956
|
var node = _ref2.node,
|
|
8964
8957
|
client = _ref2.client,
|
|
8965
8958
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8967,13 +8960,13 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8967
8960
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8968
8961
|
|
|
8969
8962
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8970
|
-
return React__default
|
|
8963
|
+
return React__default.createElement(
|
|
8971
8964
|
'picture',
|
|
8972
8965
|
null,
|
|
8973
|
-
React__default
|
|
8974
|
-
React__default
|
|
8975
|
-
React__default
|
|
8976
|
-
React__default
|
|
8966
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8967
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8968
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8969
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8977
8970
|
style: figureImageStyle,
|
|
8978
8971
|
className: 'figure-image',
|
|
8979
8972
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9024,30 +9017,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9024
9017
|
|
|
9025
9018
|
var renderTooltip = function renderTooltip(props) {
|
|
9026
9019
|
if (infoBox[0].title) {
|
|
9027
|
-
return React__default
|
|
9028
|
-
|
|
9020
|
+
return React__default.createElement(
|
|
9021
|
+
Popover,
|
|
9029
9022
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9030
|
-
React__default
|
|
9031
|
-
|
|
9023
|
+
React__default.createElement(
|
|
9024
|
+
Popover.Title,
|
|
9032
9025
|
{ as: 'h3' },
|
|
9033
9026
|
infoBox[0].title
|
|
9034
9027
|
),
|
|
9035
|
-
React__default
|
|
9036
|
-
|
|
9028
|
+
React__default.createElement(
|
|
9029
|
+
Popover.Content,
|
|
9037
9030
|
null,
|
|
9038
|
-
React__default
|
|
9031
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9039
9032
|
)
|
|
9040
9033
|
);
|
|
9041
9034
|
} else {
|
|
9042
|
-
return React__default
|
|
9043
|
-
|
|
9044
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9045
|
-
React__default
|
|
9035
|
+
return React__default.createElement(
|
|
9036
|
+
Tooltip,
|
|
9037
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9038
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9046
9039
|
);
|
|
9047
9040
|
}
|
|
9048
9041
|
};
|
|
9049
9042
|
|
|
9050
|
-
var FigureImageWOverLay = React__default
|
|
9043
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9051
9044
|
var node = _ref3.node,
|
|
9052
9045
|
client = _ref3.client,
|
|
9053
9046
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9055,32 +9048,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9055
9048
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9056
9049
|
|
|
9057
9050
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9058
|
-
var triggerAction = main.
|
|
9059
|
-
var placementLocation = main.
|
|
9060
|
-
return React__default
|
|
9051
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9052
|
+
var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9053
|
+
return React__default.createElement(
|
|
9061
9054
|
'picture',
|
|
9062
9055
|
null,
|
|
9063
|
-
React__default
|
|
9064
|
-
React__default
|
|
9065
|
-
React__default
|
|
9066
|
-
main.
|
|
9056
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9057
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9058
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9059
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9067
9060
|
style: figureImageStyle,
|
|
9068
9061
|
className: 'figure-image',
|
|
9069
9062
|
src: urlFor({ source: node, client: client }),
|
|
9070
9063
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9071
|
-
}, !link && !main.
|
|
9064
|
+
}, !link && !main.main_35 && {
|
|
9072
9065
|
onClick: function onClick() {
|
|
9073
9066
|
return handleClickFigure(node, client);
|
|
9074
9067
|
}
|
|
9075
|
-
})) : React__default
|
|
9076
|
-
|
|
9068
|
+
})) : React__default.createElement(
|
|
9069
|
+
OverlayTrigger,
|
|
9077
9070
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9078
|
-
React__default
|
|
9071
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9079
9072
|
style: figureImageStyle,
|
|
9080
9073
|
className: 'figure-image',
|
|
9081
9074
|
src: urlFor({ source: node, client: client }),
|
|
9082
9075
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9083
|
-
}, !link && !main.
|
|
9076
|
+
}, !link && !main.main_35 && {
|
|
9084
9077
|
onClick: function onClick() {
|
|
9085
9078
|
return handleClickFigure(node, client);
|
|
9086
9079
|
}
|
|
@@ -9129,13 +9122,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9129
9122
|
|
|
9130
9123
|
var FigureCaption = React.useCallback(function () {
|
|
9131
9124
|
if (imgcaption && imgcaption.length > 0) {
|
|
9132
|
-
return React__default
|
|
9125
|
+
return React__default.createElement(
|
|
9133
9126
|
'div',
|
|
9134
9127
|
{ className: 'figure-caption' },
|
|
9135
|
-
React__default
|
|
9128
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9136
9129
|
);
|
|
9137
9130
|
} else if (caption) {
|
|
9138
|
-
return React__default
|
|
9131
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9139
9132
|
} else return null;
|
|
9140
9133
|
}, [caption, imgcaption]);
|
|
9141
9134
|
|
|
@@ -9152,24 +9145,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9152
9145
|
setShowLightbox(true);
|
|
9153
9146
|
}, [node, client]);
|
|
9154
9147
|
|
|
9155
|
-
return React__default
|
|
9156
|
-
React__default
|
|
9148
|
+
return React__default.createElement(
|
|
9149
|
+
React__default.Fragment,
|
|
9157
9150
|
null,
|
|
9158
|
-
infoBox.length >= 1 ? React__default
|
|
9159
|
-
|
|
9151
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9152
|
+
Figure$1,
|
|
9160
9153
|
{ className: '' + class_name, style: figureStyle },
|
|
9161
|
-
link ? React__default
|
|
9154
|
+
link ? React__default.createElement(
|
|
9162
9155
|
'a',
|
|
9163
9156
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9164
|
-
React__default
|
|
9165
|
-
React__default
|
|
9166
|
-
) : React__default
|
|
9167
|
-
React__default
|
|
9157
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9158
|
+
React__default.createElement(FigureCaption, null)
|
|
9159
|
+
) : React__default.createElement(
|
|
9160
|
+
React__default.Fragment,
|
|
9168
9161
|
null,
|
|
9169
|
-
React__default
|
|
9170
|
-
React__default
|
|
9162
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9163
|
+
React__default.createElement(FigureCaption, null)
|
|
9171
9164
|
),
|
|
9172
|
-
React__default
|
|
9165
|
+
React__default.createElement(LightBox, {
|
|
9173
9166
|
showLightbox: showLightbox,
|
|
9174
9167
|
lightboxImgSrc: lightboxImgSrc,
|
|
9175
9168
|
closeLightbox: function closeLightbox() {
|
|
@@ -9177,21 +9170,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9177
9170
|
setShowLightbox(false);
|
|
9178
9171
|
}
|
|
9179
9172
|
})
|
|
9180
|
-
) : React__default
|
|
9181
|
-
|
|
9173
|
+
) : React__default.createElement(
|
|
9174
|
+
Figure$1,
|
|
9182
9175
|
{ className: '' + class_name, style: figureStyle },
|
|
9183
|
-
link ? React__default
|
|
9176
|
+
link ? React__default.createElement(
|
|
9184
9177
|
'a',
|
|
9185
9178
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9186
|
-
React__default
|
|
9187
|
-
React__default
|
|
9188
|
-
) : React__default
|
|
9189
|
-
React__default
|
|
9179
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9180
|
+
React__default.createElement(FigureCaption, null)
|
|
9181
|
+
) : React__default.createElement(
|
|
9182
|
+
React__default.Fragment,
|
|
9190
9183
|
null,
|
|
9191
|
-
React__default
|
|
9192
|
-
React__default
|
|
9184
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9185
|
+
React__default.createElement(FigureCaption, null)
|
|
9193
9186
|
),
|
|
9194
|
-
React__default
|
|
9187
|
+
React__default.createElement(LightBox, {
|
|
9195
9188
|
showLightbox: showLightbox,
|
|
9196
9189
|
lightboxImgSrc: lightboxImgSrc,
|
|
9197
9190
|
closeLightbox: function closeLightbox() {
|
|
@@ -9200,7 +9193,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9200
9193
|
}
|
|
9201
9194
|
})
|
|
9202
9195
|
),
|
|
9203
|
-
React__default
|
|
9196
|
+
React__default.createElement(
|
|
9204
9197
|
'style',
|
|
9205
9198
|
{ jsx: 'true' },
|
|
9206
9199
|
'\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 '
|
|
@@ -9208,7 +9201,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9208
9201
|
);
|
|
9209
9202
|
};
|
|
9210
9203
|
|
|
9211
|
-
var Figure = React__default
|
|
9204
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9212
9205
|
|
|
9213
9206
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9214
9207
|
React.useEffect(function () {
|
|
@@ -9225,7 +9218,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9225
9218
|
}, [ref]);
|
|
9226
9219
|
}
|
|
9227
9220
|
|
|
9228
|
-
var FigureImage$1 = React__default
|
|
9221
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9229
9222
|
var imagesCount = _ref.imagesCount,
|
|
9230
9223
|
image = _ref.image,
|
|
9231
9224
|
client = _ref.client,
|
|
@@ -9233,13 +9226,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref) {
|
|
|
9233
9226
|
link = _ref.link,
|
|
9234
9227
|
handleClickFigure = _ref.handleClickFigure;
|
|
9235
9228
|
|
|
9236
|
-
return React__default
|
|
9229
|
+
return React__default.createElement(
|
|
9237
9230
|
'picture',
|
|
9238
9231
|
null,
|
|
9239
|
-
React__default
|
|
9240
|
-
React__default
|
|
9241
|
-
React__default
|
|
9242
|
-
React__default
|
|
9232
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9233
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9234
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9235
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9243
9236
|
'images-count': imagesCount,
|
|
9244
9237
|
className: 'multi-figure-image',
|
|
9245
9238
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9276,13 +9269,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9276
9269
|
imgcaption = _ref2.imgcaption;
|
|
9277
9270
|
|
|
9278
9271
|
if (imgcaption && imgcaption.length > 0) {
|
|
9279
|
-
return React__default
|
|
9272
|
+
return React__default.createElement(
|
|
9280
9273
|
'div',
|
|
9281
9274
|
{ className: 'multi-figure-caption' },
|
|
9282
|
-
React__default
|
|
9275
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9283
9276
|
);
|
|
9284
9277
|
} else if (caption) {
|
|
9285
|
-
return React__default
|
|
9278
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9286
9279
|
} else return null;
|
|
9287
9280
|
};
|
|
9288
9281
|
|
|
@@ -9291,7 +9284,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9291
9284
|
setOpenImg(true);
|
|
9292
9285
|
}, [client]);
|
|
9293
9286
|
|
|
9294
|
-
var FigureImageWOverLay = React__default
|
|
9287
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9295
9288
|
var imagesCount = _ref3.imagesCount,
|
|
9296
9289
|
image = _ref3.image,
|
|
9297
9290
|
client = _ref3.client,
|
|
@@ -9299,32 +9292,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9299
9292
|
link = _ref3.link,
|
|
9300
9293
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9301
9294
|
|
|
9302
|
-
var triggerAction = main.
|
|
9303
|
-
var placementLocation = main.
|
|
9304
|
-
return React__default
|
|
9295
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9296
|
+
var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9297
|
+
return React__default.createElement(
|
|
9305
9298
|
'picture',
|
|
9306
9299
|
null,
|
|
9307
|
-
React__default
|
|
9308
|
-
React__default
|
|
9309
|
-
React__default
|
|
9310
|
-
main.
|
|
9300
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9301
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9302
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9303
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9311
9304
|
'images-count': imagesCount,
|
|
9312
9305
|
className: 'multi-figure-image',
|
|
9313
9306
|
src: urlFor({ source: image, client: client }),
|
|
9314
9307
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9315
|
-
}, !link && !main.
|
|
9308
|
+
}, !link && !main.main_35 && {
|
|
9316
9309
|
onClick: function onClick() {
|
|
9317
9310
|
return handleClickFigure(image, client);
|
|
9318
9311
|
}
|
|
9319
|
-
})) : React__default
|
|
9320
|
-
|
|
9312
|
+
})) : React__default.createElement(
|
|
9313
|
+
OverlayTrigger,
|
|
9321
9314
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9322
|
-
React__default
|
|
9315
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9323
9316
|
'images-count': imagesCount,
|
|
9324
9317
|
className: 'multi-figure-image',
|
|
9325
9318
|
src: urlFor({ source: image, client: client }),
|
|
9326
9319
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9327
|
-
}, !link && !main.
|
|
9320
|
+
}, !link && !main.main_35 && {
|
|
9328
9321
|
onClick: function onClick() {
|
|
9329
9322
|
return handleClickFigure(image, client);
|
|
9330
9323
|
}
|
|
@@ -9335,102 +9328,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9335
9328
|
|
|
9336
9329
|
var renderTooltip = function renderTooltip(image) {
|
|
9337
9330
|
if (image.infoBox[0].title) {
|
|
9338
|
-
return React__default
|
|
9339
|
-
|
|
9331
|
+
return React__default.createElement(
|
|
9332
|
+
Popover,
|
|
9340
9333
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9341
|
-
React__default
|
|
9342
|
-
|
|
9334
|
+
React__default.createElement(
|
|
9335
|
+
Popover.Title,
|
|
9343
9336
|
{ as: 'h3' },
|
|
9344
9337
|
image.infoBox[0].title
|
|
9345
9338
|
),
|
|
9346
|
-
React__default
|
|
9347
|
-
|
|
9339
|
+
React__default.createElement(
|
|
9340
|
+
Popover.Content,
|
|
9348
9341
|
null,
|
|
9349
|
-
React__default
|
|
9342
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9350
9343
|
)
|
|
9351
9344
|
);
|
|
9352
9345
|
} else {
|
|
9353
|
-
return React__default
|
|
9354
|
-
|
|
9355
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9356
|
-
React__default
|
|
9346
|
+
return React__default.createElement(
|
|
9347
|
+
Tooltip,
|
|
9348
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9349
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9357
9350
|
);
|
|
9358
9351
|
}
|
|
9359
9352
|
};
|
|
9360
9353
|
|
|
9361
9354
|
if (images && images.length > 0) {
|
|
9362
|
-
return React__default
|
|
9355
|
+
return React__default.createElement(
|
|
9363
9356
|
'div',
|
|
9364
9357
|
{ className: 'multi-figure-container' },
|
|
9365
|
-
React__default
|
|
9366
|
-
|
|
9358
|
+
React__default.createElement(
|
|
9359
|
+
Row,
|
|
9367
9360
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9368
9361
|
images.map(function (image, index) {
|
|
9369
9362
|
if (image.infoBox) {
|
|
9370
|
-
return React__default
|
|
9371
|
-
|
|
9363
|
+
return React__default.createElement(
|
|
9364
|
+
Col,
|
|
9372
9365
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9373
|
-
image.link ? React__default
|
|
9366
|
+
image.link ? React__default.createElement(
|
|
9374
9367
|
'a',
|
|
9375
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9376
|
-
React__default
|
|
9368
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9369
|
+
React__default.createElement(
|
|
9377
9370
|
'div',
|
|
9378
9371
|
{ className: 'multi-figure-image-container' },
|
|
9379
|
-
React__default
|
|
9372
|
+
React__default.createElement(
|
|
9380
9373
|
index$2.LazyLoad,
|
|
9381
9374
|
{ once: true },
|
|
9382
|
-
React__default
|
|
9375
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9383
9376
|
),
|
|
9384
|
-
React__default
|
|
9377
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9385
9378
|
)
|
|
9386
|
-
) : React__default
|
|
9379
|
+
) : React__default.createElement(
|
|
9387
9380
|
'div',
|
|
9388
9381
|
{ className: 'multi-figure-image-container' },
|
|
9389
|
-
React__default
|
|
9382
|
+
React__default.createElement(
|
|
9390
9383
|
index$2.LazyLoad,
|
|
9391
9384
|
{ once: true },
|
|
9392
|
-
React__default
|
|
9385
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9393
9386
|
),
|
|
9394
|
-
React__default
|
|
9387
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9395
9388
|
)
|
|
9396
9389
|
);
|
|
9397
9390
|
} else {
|
|
9398
|
-
return React__default
|
|
9399
|
-
|
|
9391
|
+
return React__default.createElement(
|
|
9392
|
+
Col,
|
|
9400
9393
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9401
|
-
image.link ? React__default
|
|
9394
|
+
image.link ? React__default.createElement(
|
|
9402
9395
|
'a',
|
|
9403
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9404
|
-
React__default
|
|
9396
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9397
|
+
React__default.createElement(
|
|
9405
9398
|
'div',
|
|
9406
9399
|
{ className: 'multi-figure-image-container' },
|
|
9407
|
-
React__default
|
|
9400
|
+
React__default.createElement(
|
|
9408
9401
|
index$2.LazyLoad,
|
|
9409
9402
|
{ once: true },
|
|
9410
|
-
React__default
|
|
9403
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9411
9404
|
),
|
|
9412
|
-
React__default
|
|
9405
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9413
9406
|
)
|
|
9414
|
-
) : React__default
|
|
9407
|
+
) : React__default.createElement(
|
|
9415
9408
|
'div',
|
|
9416
9409
|
{ className: 'multi-figure-image-container' },
|
|
9417
|
-
React__default
|
|
9410
|
+
React__default.createElement(
|
|
9418
9411
|
index$2.LazyLoad,
|
|
9419
9412
|
{ once: true },
|
|
9420
|
-
React__default
|
|
9413
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9421
9414
|
),
|
|
9422
|
-
React__default
|
|
9415
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9423
9416
|
)
|
|
9424
9417
|
);
|
|
9425
9418
|
}
|
|
9426
9419
|
})
|
|
9427
9420
|
),
|
|
9428
|
-
React__default
|
|
9421
|
+
React__default.createElement(
|
|
9429
9422
|
'div',
|
|
9430
9423
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9431
|
-
React__default
|
|
9424
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9432
9425
|
),
|
|
9433
|
-
React__default
|
|
9426
|
+
React__default.createElement(
|
|
9434
9427
|
'style',
|
|
9435
9428
|
{ jsx: 'true' },
|
|
9436
9429
|
'\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 '
|
|
@@ -9479,23 +9472,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9479
9472
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9480
9473
|
}, []);
|
|
9481
9474
|
|
|
9482
|
-
return React__default
|
|
9483
|
-
React__default
|
|
9475
|
+
return React__default.createElement(
|
|
9476
|
+
React__default.Fragment,
|
|
9484
9477
|
null,
|
|
9485
|
-
React__default
|
|
9486
|
-
|
|
9478
|
+
React__default.createElement(
|
|
9479
|
+
Head,
|
|
9487
9480
|
null,
|
|
9488
|
-
React__default
|
|
9481
|
+
React__default.createElement('script', {
|
|
9489
9482
|
dangerouslySetInnerHTML: {
|
|
9490
9483
|
__html: 'history.scrollRestoration = "manual"'
|
|
9491
9484
|
}
|
|
9492
9485
|
})
|
|
9493
9486
|
),
|
|
9494
|
-
React__default
|
|
9487
|
+
React__default.createElement(
|
|
9495
9488
|
'div',
|
|
9496
9489
|
{ id: elementId },
|
|
9497
|
-
React__default
|
|
9498
|
-
React__default
|
|
9490
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9491
|
+
React__default.createElement(
|
|
9499
9492
|
'style',
|
|
9500
9493
|
{ jsx: 'true' },
|
|
9501
9494
|
'\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 '
|
|
@@ -9504,6 +9497,258 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9504
9497
|
);
|
|
9505
9498
|
};
|
|
9506
9499
|
|
|
9500
|
+
var objectWithoutProperties = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9501
|
+
|
|
9502
|
+
exports.__esModule = true;
|
|
9503
|
+
|
|
9504
|
+
exports.default = function (obj, keys) {
|
|
9505
|
+
var target = {};
|
|
9506
|
+
|
|
9507
|
+
for (var i in obj) {
|
|
9508
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9509
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9510
|
+
target[i] = obj[i];
|
|
9511
|
+
}
|
|
9512
|
+
|
|
9513
|
+
return target;
|
|
9514
|
+
};
|
|
9515
|
+
});
|
|
9516
|
+
|
|
9517
|
+
_commonjsHelpers.unwrapExports(objectWithoutProperties);
|
|
9518
|
+
|
|
9519
|
+
var ScriptTag_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9520
|
+
|
|
9521
|
+
exports.__esModule = true;
|
|
9522
|
+
|
|
9523
|
+
|
|
9524
|
+
|
|
9525
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9526
|
+
|
|
9527
|
+
|
|
9528
|
+
|
|
9529
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9530
|
+
|
|
9531
|
+
|
|
9532
|
+
|
|
9533
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9534
|
+
|
|
9535
|
+
|
|
9536
|
+
|
|
9537
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9538
|
+
|
|
9539
|
+
|
|
9540
|
+
|
|
9541
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9542
|
+
|
|
9543
|
+
|
|
9544
|
+
|
|
9545
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9546
|
+
|
|
9547
|
+
|
|
9548
|
+
|
|
9549
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9550
|
+
|
|
9551
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9552
|
+
var noop = function noop() {};
|
|
9553
|
+
|
|
9554
|
+
var ScriptTag = function (_Component) {
|
|
9555
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9556
|
+
|
|
9557
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9558
|
+
if (node) {
|
|
9559
|
+
node.parentNode.removeChild(node);
|
|
9560
|
+
}
|
|
9561
|
+
};
|
|
9562
|
+
|
|
9563
|
+
function ScriptTag(props, context) {
|
|
9564
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9565
|
+
|
|
9566
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9567
|
+
|
|
9568
|
+
_this.domRef = null;
|
|
9569
|
+
_this.state = {
|
|
9570
|
+
isHydrated: props.isHydrating,
|
|
9571
|
+
additionalNode: null,
|
|
9572
|
+
removeAdditionalNode: null
|
|
9573
|
+
};
|
|
9574
|
+
return _this;
|
|
9575
|
+
}
|
|
9576
|
+
|
|
9577
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9578
|
+
var _props = this.props,
|
|
9579
|
+
onError = _props.onError,
|
|
9580
|
+
onLoad = _props.onLoad,
|
|
9581
|
+
nonce = _props.nonce;
|
|
9582
|
+
|
|
9583
|
+
// Create a new HTML script element
|
|
9584
|
+
|
|
9585
|
+
var newElement = document.createElement("script");
|
|
9586
|
+
|
|
9587
|
+
// Copy all attribute values
|
|
9588
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9589
|
+
var attr = this.domRef.attributes[i];
|
|
9590
|
+
if (attr.nodeName === 'nonce') {
|
|
9591
|
+
// The browser clears the nonce value - grab from props
|
|
9592
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9593
|
+
} else {
|
|
9594
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9595
|
+
}
|
|
9596
|
+
}
|
|
9597
|
+
|
|
9598
|
+
// Copy the inner script
|
|
9599
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9600
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9601
|
+
}
|
|
9602
|
+
|
|
9603
|
+
// Bind event listeners
|
|
9604
|
+
newElement.addEventListener('load', onLoad);
|
|
9605
|
+
newElement.addEventListener('error', onError);
|
|
9606
|
+
|
|
9607
|
+
// Append the new script tag
|
|
9608
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9609
|
+
return newElement;
|
|
9610
|
+
};
|
|
9611
|
+
|
|
9612
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9613
|
+
var isHydrated = this.state.isHydrated;
|
|
9614
|
+
|
|
9615
|
+
if (isHydrated) {
|
|
9616
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9617
|
+
return;
|
|
9618
|
+
}
|
|
9619
|
+
|
|
9620
|
+
this.setState({
|
|
9621
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9622
|
+
removeAdditionalNode: null
|
|
9623
|
+
});
|
|
9624
|
+
};
|
|
9625
|
+
|
|
9626
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9627
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9628
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9629
|
+
|
|
9630
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9631
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9632
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9633
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9634
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9635
|
+
var _props2 = this.props,
|
|
9636
|
+
src = _props2.src,
|
|
9637
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9638
|
+
|
|
9639
|
+
if (src && src === nextProps.src) {
|
|
9640
|
+
// The 'src' attribute has not changed
|
|
9641
|
+
return;
|
|
9642
|
+
}
|
|
9643
|
+
|
|
9644
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9645
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9646
|
+
return;
|
|
9647
|
+
}
|
|
9648
|
+
|
|
9649
|
+
this.setState({
|
|
9650
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9651
|
+
additionalNode: null
|
|
9652
|
+
});
|
|
9653
|
+
};
|
|
9654
|
+
|
|
9655
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9656
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9657
|
+
};
|
|
9658
|
+
|
|
9659
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9660
|
+
var _state = this.state,
|
|
9661
|
+
additionalNode = _state.additionalNode,
|
|
9662
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9663
|
+
|
|
9664
|
+
if (additionalNode === null) {
|
|
9665
|
+
this.setState({
|
|
9666
|
+
additionalNode: this.appendAdditionalElement()
|
|
9667
|
+
});
|
|
9668
|
+
}
|
|
9669
|
+
|
|
9670
|
+
if (removeAdditionalNode !== null) {
|
|
9671
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9672
|
+
this.setState({
|
|
9673
|
+
removeAdditionalNode: null
|
|
9674
|
+
});
|
|
9675
|
+
}
|
|
9676
|
+
};
|
|
9677
|
+
|
|
9678
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9679
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9680
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9681
|
+
};
|
|
9682
|
+
|
|
9683
|
+
ScriptTag.prototype.render = function render() {
|
|
9684
|
+
var _this2 = this;
|
|
9685
|
+
|
|
9686
|
+
var additionalNode = this.state.additionalNode;
|
|
9687
|
+
|
|
9688
|
+
if (additionalNode !== null) {
|
|
9689
|
+
return null;
|
|
9690
|
+
}
|
|
9691
|
+
|
|
9692
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9693
|
+
// eslint-disable-next-line no-unused-vars
|
|
9694
|
+
var _props3 = this.props,
|
|
9695
|
+
isHydrating = _props3.isHydrating,
|
|
9696
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9697
|
+
|
|
9698
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9699
|
+
return _this2.domRef = tag;
|
|
9700
|
+
} }));
|
|
9701
|
+
};
|
|
9702
|
+
|
|
9703
|
+
return ScriptTag;
|
|
9704
|
+
}(React__default.Component);
|
|
9705
|
+
|
|
9706
|
+
ScriptTag.propTypes = {
|
|
9707
|
+
/**
|
|
9708
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9709
|
+
*/
|
|
9710
|
+
isHydrating: _propTypes2.default.bool,
|
|
9711
|
+
|
|
9712
|
+
// Standard <script> tag props
|
|
9713
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9714
|
+
crossOrigin: _propTypes2.default.string,
|
|
9715
|
+
defer: _propTypes2.default.bool,
|
|
9716
|
+
integrity: _propTypes2.default.string,
|
|
9717
|
+
nonce: _propTypes2.default.string,
|
|
9718
|
+
src: _propTypes2.default.string,
|
|
9719
|
+
text: _propTypes2.default.string,
|
|
9720
|
+
type: _propTypes2.default.string,
|
|
9721
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9722
|
+
|
|
9723
|
+
// globals
|
|
9724
|
+
onError: _propTypes2.default.func,
|
|
9725
|
+
onLoad: _propTypes2.default.func
|
|
9726
|
+
};
|
|
9727
|
+
ScriptTag.defaultProps = {
|
|
9728
|
+
isHydrating: false,
|
|
9729
|
+
onError: noop,
|
|
9730
|
+
onLoad: noop
|
|
9731
|
+
};
|
|
9732
|
+
exports.default = ScriptTag;
|
|
9733
|
+
});
|
|
9734
|
+
|
|
9735
|
+
_commonjsHelpers.unwrapExports(ScriptTag_1);
|
|
9736
|
+
|
|
9737
|
+
var lib = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9738
|
+
|
|
9739
|
+
exports.__esModule = true;
|
|
9740
|
+
|
|
9741
|
+
|
|
9742
|
+
|
|
9743
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9744
|
+
|
|
9745
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9746
|
+
|
|
9747
|
+
exports.default = _ScriptTag2.default;
|
|
9748
|
+
});
|
|
9749
|
+
|
|
9750
|
+
var ScriptTag = _commonjsHelpers.unwrapExports(lib);
|
|
9751
|
+
|
|
9507
9752
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9508
9753
|
|
|
9509
9754
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9535,11 +9780,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9535
9780
|
}, []);
|
|
9536
9781
|
|
|
9537
9782
|
if (iframeSrc) {
|
|
9538
|
-
return React__default
|
|
9783
|
+
return React__default.createElement(
|
|
9539
9784
|
'section',
|
|
9540
9785
|
{ className: 'form-assembly' },
|
|
9541
|
-
React__default
|
|
9542
|
-
React__default
|
|
9786
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9787
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9543
9788
|
);
|
|
9544
9789
|
}
|
|
9545
9790
|
|
|
@@ -9576,27 +9821,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9576
9821
|
return window.removeEventListener('resize', handleResize);
|
|
9577
9822
|
};
|
|
9578
9823
|
}, []);
|
|
9579
|
-
return React__default
|
|
9824
|
+
return React__default.createElement(
|
|
9580
9825
|
'div',
|
|
9581
9826
|
{ className: 'blockTableHolder', ref: holder },
|
|
9582
|
-
React__default
|
|
9827
|
+
React__default.createElement(
|
|
9583
9828
|
'div',
|
|
9584
9829
|
{ className: 'blockTable' },
|
|
9585
9830
|
rows && rows.map(function (row) {
|
|
9586
|
-
return React__default
|
|
9831
|
+
return React__default.createElement(
|
|
9587
9832
|
'div',
|
|
9588
9833
|
{ className: 'blockTableRow' },
|
|
9589
9834
|
row.cells && row.cells.map(function (cell) {
|
|
9590
|
-
return React__default
|
|
9835
|
+
return React__default.createElement(
|
|
9591
9836
|
'div',
|
|
9592
9837
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9593
|
-
React__default
|
|
9838
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9594
9839
|
);
|
|
9595
9840
|
})
|
|
9596
9841
|
);
|
|
9597
9842
|
})
|
|
9598
9843
|
),
|
|
9599
|
-
React__default
|
|
9844
|
+
React__default.createElement(
|
|
9600
9845
|
'style',
|
|
9601
9846
|
{ jsx: true },
|
|
9602
9847
|
'\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 '
|
|
@@ -9675,12 +9920,12 @@ var getSerializers = function getSerializers() {
|
|
|
9675
9920
|
var node = _ref.node;
|
|
9676
9921
|
var url = node.url;
|
|
9677
9922
|
|
|
9678
|
-
return React__default
|
|
9923
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9679
9924
|
},
|
|
9680
9925
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9681
9926
|
var node = _ref2.node;
|
|
9682
9927
|
|
|
9683
|
-
return React__default
|
|
9928
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9684
9929
|
nodes: node,
|
|
9685
9930
|
article: article,
|
|
9686
9931
|
meta: meta,
|
|
@@ -9694,7 +9939,7 @@ var getSerializers = function getSerializers() {
|
|
|
9694
9939
|
articleSeries: function articleSeries(_ref3) {
|
|
9695
9940
|
var node = _ref3.node;
|
|
9696
9941
|
|
|
9697
|
-
return React__default
|
|
9942
|
+
return React__default.createElement(ArticleSeries, {
|
|
9698
9943
|
nodes: node,
|
|
9699
9944
|
accountIDs: videoAccountIDs || {},
|
|
9700
9945
|
pageview: pageview,
|
|
@@ -9707,61 +9952,61 @@ var getSerializers = function getSerializers() {
|
|
|
9707
9952
|
figure: function figure(_ref4) {
|
|
9708
9953
|
var node = _ref4.node;
|
|
9709
9954
|
|
|
9710
|
-
return React__default
|
|
9955
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9711
9956
|
},
|
|
9712
9957
|
multifigure: function multifigure(_ref5) {
|
|
9713
9958
|
var node = _ref5.node;
|
|
9714
9959
|
|
|
9715
|
-
return React__default
|
|
9960
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9716
9961
|
},
|
|
9717
9962
|
slideshow: function slideshow(_ref6) {
|
|
9718
9963
|
var node = _ref6.node;
|
|
9719
9964
|
var slides = node.slides;
|
|
9720
9965
|
|
|
9721
|
-
return React__default
|
|
9966
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9722
9967
|
},
|
|
9723
9968
|
sidebar: function sidebar(_ref7) {
|
|
9724
9969
|
var node = _ref7.node;
|
|
9725
9970
|
var caption = node.caption,
|
|
9726
9971
|
content = node.content;
|
|
9727
9972
|
|
|
9728
|
-
return React__default
|
|
9973
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9729
9974
|
},
|
|
9730
9975
|
datatable: function datatable(_ref8) {
|
|
9731
9976
|
var node = _ref8.node;
|
|
9732
9977
|
var table = node.table;
|
|
9733
9978
|
|
|
9734
|
-
return React__default
|
|
9979
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9735
9980
|
},
|
|
9736
9981
|
media: function media(_ref9) {
|
|
9737
9982
|
var node = _ref9.node;
|
|
9738
9983
|
|
|
9739
|
-
return React__default
|
|
9984
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9740
9985
|
},
|
|
9741
9986
|
iframe: function iframe(_ref10) {
|
|
9742
9987
|
var node = _ref10.node;
|
|
9743
9988
|
|
|
9744
|
-
return React__default
|
|
9989
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9745
9990
|
},
|
|
9746
9991
|
video: function video(_ref11) {
|
|
9747
9992
|
var node = _ref11.node;
|
|
9748
9993
|
|
|
9749
|
-
return React__default
|
|
9994
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9750
9995
|
},
|
|
9751
9996
|
audio: function audio(_ref12) {
|
|
9752
9997
|
var node = _ref12.node;
|
|
9753
9998
|
|
|
9754
|
-
return React__default
|
|
9999
|
+
return React__default.createElement(Audio, { node: node });
|
|
9755
10000
|
},
|
|
9756
10001
|
poll: function poll(_ref13) {
|
|
9757
10002
|
var node = _ref13.node;
|
|
9758
10003
|
|
|
9759
|
-
return React__default
|
|
10004
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9760
10005
|
},
|
|
9761
10006
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9762
10007
|
var node = _ref14.node;
|
|
9763
10008
|
|
|
9764
|
-
return React__default
|
|
10009
|
+
return React__default.createElement(Poll$1, {
|
|
9765
10010
|
node: node,
|
|
9766
10011
|
client: client,
|
|
9767
10012
|
pageview: pageview,
|
|
@@ -9775,35 +10020,35 @@ var getSerializers = function getSerializers() {
|
|
|
9775
10020
|
var node = _ref15.node;
|
|
9776
10021
|
var quizzes = node.quizzes;
|
|
9777
10022
|
|
|
9778
|
-
return React__default
|
|
10023
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9779
10024
|
},
|
|
9780
10025
|
leads: function leads(_ref16) {
|
|
9781
10026
|
var node = _ref16.node;
|
|
9782
10027
|
var leadID = node.leadID;
|
|
9783
10028
|
|
|
9784
10029
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9785
|
-
return React__default
|
|
10030
|
+
return React__default.createElement(Leads, { url: url });
|
|
9786
10031
|
},
|
|
9787
10032
|
slideshows: function slideshows(_ref17) {
|
|
9788
10033
|
var node = _ref17.node;
|
|
9789
10034
|
|
|
9790
|
-
return React__default
|
|
10035
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9791
10036
|
},
|
|
9792
10037
|
nativeAd: function nativeAd(_ref18) {
|
|
9793
10038
|
var node = _ref18.node;
|
|
9794
10039
|
|
|
9795
|
-
return React__default
|
|
10040
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9796
10041
|
},
|
|
9797
10042
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9798
10043
|
var node = _ref19.node;
|
|
9799
10044
|
|
|
9800
|
-
return React__default
|
|
10045
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9801
10046
|
},
|
|
9802
10047
|
hrtag: function hrtag() {
|
|
9803
|
-
return React__default
|
|
10048
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9804
10049
|
},
|
|
9805
10050
|
brtag: function brtag() {
|
|
9806
|
-
return React__default
|
|
10051
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9807
10052
|
},
|
|
9808
10053
|
formstack: function formstack(_ref20) {
|
|
9809
10054
|
var node = _ref20.node;
|
|
@@ -9811,29 +10056,29 @@ var getSerializers = function getSerializers() {
|
|
|
9811
10056
|
Caption = node.Caption,
|
|
9812
10057
|
needSegmentSupport = node.needSegmentSupport;
|
|
9813
10058
|
|
|
9814
|
-
return React__default
|
|
10059
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9815
10060
|
},
|
|
9816
10061
|
formassembly: FormAssembly,
|
|
9817
10062
|
multimedia: function multimedia(_ref21) {
|
|
9818
10063
|
var node = _ref21.node;
|
|
9819
10064
|
|
|
9820
|
-
return React__default
|
|
10065
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9821
10066
|
},
|
|
9822
10067
|
blockTable: function blockTable(_ref22) {
|
|
9823
10068
|
var node = _ref22.node;
|
|
9824
|
-
return React__default
|
|
10069
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9825
10070
|
}
|
|
9826
10071
|
},
|
|
9827
10072
|
marks: {
|
|
9828
10073
|
superscript: function superscript(props) {
|
|
9829
|
-
return React__default
|
|
10074
|
+
return React__default.createElement(
|
|
9830
10075
|
'sup',
|
|
9831
10076
|
null,
|
|
9832
10077
|
props.children
|
|
9833
10078
|
);
|
|
9834
10079
|
},
|
|
9835
10080
|
subscript: function subscript(props) {
|
|
9836
|
-
return React__default
|
|
10081
|
+
return React__default.createElement(
|
|
9837
10082
|
'sub',
|
|
9838
10083
|
null,
|
|
9839
10084
|
props.children
|
|
@@ -9850,7 +10095,7 @@ var getSerializers = function getSerializers() {
|
|
|
9850
10095
|
if (href && href.charAt(0) === '#') {
|
|
9851
10096
|
var elementId = href.slice(1);
|
|
9852
10097
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9853
|
-
return React__default
|
|
10098
|
+
return React__default.createElement(
|
|
9854
10099
|
'a',
|
|
9855
10100
|
{ onClick: function onClick() {
|
|
9856
10101
|
return ScrollToElement(elementId);
|
|
@@ -9860,15 +10105,15 @@ var getSerializers = function getSerializers() {
|
|
|
9860
10105
|
}
|
|
9861
10106
|
|
|
9862
10107
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9863
|
-
return React__default
|
|
10108
|
+
return href ? React__default.createElement(
|
|
9864
10109
|
'a',
|
|
9865
|
-
_extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10110
|
+
_extends$1._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
9866
10111
|
children
|
|
9867
|
-
);
|
|
10112
|
+
) : children;
|
|
9868
10113
|
},
|
|
9869
10114
|
alignleft: function alignleft(_ref23) {
|
|
9870
10115
|
var children = _ref23.children;
|
|
9871
|
-
return React__default
|
|
10116
|
+
return React__default.createElement(
|
|
9872
10117
|
'div',
|
|
9873
10118
|
{ style: { textAlign: 'left' } },
|
|
9874
10119
|
children
|
|
@@ -9876,7 +10121,7 @@ var getSerializers = function getSerializers() {
|
|
|
9876
10121
|
},
|
|
9877
10122
|
alignright: function alignright(_ref24) {
|
|
9878
10123
|
var children = _ref24.children;
|
|
9879
|
-
return React__default
|
|
10124
|
+
return React__default.createElement(
|
|
9880
10125
|
'div',
|
|
9881
10126
|
{ style: { textAlign: 'right' } },
|
|
9882
10127
|
children
|
|
@@ -9884,7 +10129,7 @@ var getSerializers = function getSerializers() {
|
|
|
9884
10129
|
},
|
|
9885
10130
|
aligncenter: function aligncenter(_ref25) {
|
|
9886
10131
|
var children = _ref25.children;
|
|
9887
|
-
return React__default
|
|
10132
|
+
return React__default.createElement(
|
|
9888
10133
|
'div',
|
|
9889
10134
|
{ style: { textAlign: 'center' } },
|
|
9890
10135
|
children
|
|
@@ -9892,7 +10137,7 @@ var getSerializers = function getSerializers() {
|
|
|
9892
10137
|
},
|
|
9893
10138
|
alignjustify: function alignjustify(_ref26) {
|
|
9894
10139
|
var children = _ref26.children;
|
|
9895
|
-
return React__default
|
|
10140
|
+
return React__default.createElement(
|
|
9896
10141
|
'div',
|
|
9897
10142
|
{ style: { textAlign: 'justify' } },
|
|
9898
10143
|
children
|
|
@@ -9902,7 +10147,7 @@ var getSerializers = function getSerializers() {
|
|
|
9902
10147
|
var children = props.children,
|
|
9903
10148
|
color = props.mark.color;
|
|
9904
10149
|
|
|
9905
|
-
return React__default
|
|
10150
|
+
return React__default.createElement(
|
|
9906
10151
|
'span',
|
|
9907
10152
|
{ style: { color: color ? color.hex : null } },
|
|
9908
10153
|
children
|