@mjhls/mjh-framework 1.0.777 → 1.0.779-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +26 -28
- package/dist/cjs/AD300x250x600.js +26 -28
- package/dist/cjs/AD728x90.js +29 -31
- package/dist/cjs/ADFloatingFooter.js +28 -30
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +28 -30
- package/dist/cjs/{ADInfeed-d1eceaf2.js → ADInfeed-5b042ade.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +28 -30
- package/dist/cjs/ADSponsoredResources.js +28 -30
- package/dist/cjs/ADWebcast.js +28 -30
- package/dist/cjs/ADWelcome.js +29 -31
- package/dist/cjs/{ADlgInfeed-24c693d8.js → ADlgInfeed-e92b6f9f.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -33
- package/dist/cjs/AdSlotsProvider.js +15 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +55 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +37 -39
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +333 -820
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +82 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -36
- package/dist/cjs/Column3.js +54 -58
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +93 -98
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-a17e00fa.js → Dfp-b807d8fa.js} +31 -32
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +77 -79
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -182
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +130 -136
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +69 -71
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +39 -41
- package/dist/cjs/LeftNav.js +35 -38
- package/dist/cjs/MasterDeck.js +69 -71
- package/dist/cjs/MediaSeriesLanding.js +38 -41
- package/dist/cjs/NavDvm.js +74 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +137 -143
- package/dist/cjs/NavNative.js +126 -135
- package/dist/cjs/NavNormal.js +47 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -107
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +38 -40
- package/dist/cjs/PubToc.js +15 -17
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +175 -105
- package/dist/cjs/QueueDeckExpanded.js +291 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -7
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-f662f1f5.js} +37 -38
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +52 -54
- package/dist/cjs/TemplateNormal.js +72 -74
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +71 -76
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -19
- package/dist/cjs/VideoSeriesLandingPage.js +45 -47
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +266 -269
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-140e5f89.js} +61 -13
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +75 -138
- package/dist/cjs/getRootDocGroup.js +6 -7
- package/dist/cjs/getSerializers.js +43 -44
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-1846058a.js → index-76417d82.js} +991 -941
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +160 -164
- package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -24
- package/dist/esm/AD300x250x600.js +23 -24
- package/dist/esm/AD728x90.js +26 -27
- package/dist/esm/ADFloatingFooter.js +25 -26
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +25 -26
- package/dist/esm/{ADInfeed-c12cd1ce.js → ADInfeed-eb7bdd41.js} +9 -9
- package/dist/esm/ADSkyscraper.js +25 -26
- package/dist/esm/ADSponsoredResources.js +25 -26
- package/dist/esm/ADWebcast.js +25 -26
- package/dist/esm/ADWelcome.js +26 -27
- package/dist/esm/{ADlgInfeed-246a8787.js → ADlgInfeed-f2ac31d1.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +12 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +52 -53
- package/dist/esm/ArticleSeriesLandingPage.js +34 -35
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +316 -799
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +78 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -27
- package/dist/esm/Column3.js +47 -48
- package/dist/esm/ConferenceArticleCard.js +19 -19
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +75 -76
- package/dist/esm/DeckQueue.js +65 -65
- package/dist/esm/{Dfp-988dbcaa.js → Dfp-ebc4b22f.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +71 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -140
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -105
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +66 -67
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +36 -37
- package/dist/esm/LeftNav.js +31 -32
- package/dist/esm/MasterDeck.js +63 -64
- package/dist/esm/MediaSeriesLanding.js +31 -32
- package/dist/esm/NavDvm.js +56 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -114
- package/dist/esm/NavNative.js +99 -100
- package/dist/esm/NavNormal.js +35 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -102
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +35 -36
- package/dist/esm/PubToc.js +12 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +139 -65
- package/dist/esm/QueueDeckExpanded.js +271 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -7
- package/dist/esm/SeriesListingDeck.js +31 -31
- package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-9245785f.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +47 -48
- package/dist/esm/TemplateNormal.js +66 -67
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +61 -62
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +15 -16
- package/dist/esm/VideoSeriesLandingPage.js +38 -39
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +250 -249
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-fc1c2e29.js} +53 -9
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +70 -133
- package/dist/esm/getRootDocGroup.js +6 -7
- package/dist/esm/getSerializers.js +43 -44
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-f9cda735.js → index-c1374f98.js} +933 -876
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +129 -130
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_set-species-a8cfdb84.js +0 -57
- package/dist/esm/_set-species-494ed292.js +0 -52
|
@@ -1,51 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-60837c34.js');
|
|
9
|
+
var inherits = require('./inherits-c9f99d47.js');
|
|
10
|
+
var _typeof = require('./typeof-725500bc.js');
|
|
3
11
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var index = require('./index-d48b231c.js');
|
|
7
|
-
var index$1 = require('./index-0e4427c8.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var index$2 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-8bf6c863.js');
|
|
10
14
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
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');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var index$1 = require('./index-be0c82be.js');
|
|
22
|
+
var index$2 = require('./index-da796b8c.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
24
|
+
var entities = require('./entities-310b46ee.js');
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
14
26
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var index$3 = require('./index-
|
|
19
|
-
var _typeof$1 = require('./typeof-97065d40.js');
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
27
|
+
var Beam = require('./Beam.js');
|
|
28
|
+
var AdSlot = require('./AdSlot.js');
|
|
29
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
30
|
+
var index$3 = require('./index-187c967e.js');
|
|
21
31
|
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var
|
|
32
|
+
var reactBootstrap = require('react-bootstrap');
|
|
33
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
34
|
+
var util = require('./util-f2c1b65b.js');
|
|
35
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
36
|
+
var Head = _interopDefault(require('next/head'));
|
|
23
37
|
var SocialShare = require('./SocialShare.js');
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var Button = require('react-bootstrap/Button');
|
|
29
|
-
var entities = require('./entities-3f9d0f2f.js');
|
|
30
|
-
var AdSlot = require('./AdSlot.js');
|
|
31
|
-
var Row = require('react-bootstrap/Row');
|
|
32
|
-
var Col = require('react-bootstrap/Col');
|
|
33
|
-
var Head = require('next/head');
|
|
34
|
-
var inherits = require('./inherits-2eb23889.js');
|
|
35
|
-
var index_esm = require('./index.esm-974f47d9.js');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
|
|
38
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
39
|
-
|
|
40
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
41
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
42
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
43
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
44
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
45
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
46
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
47
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
48
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
38
|
+
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
39
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
40
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
49
42
|
|
|
50
43
|
var urlFor = function urlFor(source, builder) {
|
|
51
44
|
return builder.image(source).auto('format');
|
|
@@ -54,7 +47,7 @@ var urlFor = function urlFor(source, builder) {
|
|
|
54
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
55
48
|
var pageNumber = selectedIndex + 1;
|
|
56
49
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
57
|
-
Router__default
|
|
50
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
58
51
|
};
|
|
59
52
|
|
|
60
53
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -69,7 +62,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
62
|
carouselIndex = _useState2[0],
|
|
70
63
|
setCarouselIndex = _useState2[1];
|
|
71
64
|
|
|
72
|
-
var builder = index.imageUrlBuilder(client);
|
|
65
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
73
66
|
|
|
74
67
|
React.useEffect(function () {
|
|
75
68
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -82,24 +75,24 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
82
75
|
}, [router]);
|
|
83
76
|
|
|
84
77
|
React.useEffect(function () {
|
|
85
|
-
index
|
|
78
|
+
index.lib_3.refresh();
|
|
86
79
|
if (pageview) pageview(router.asPath);
|
|
87
80
|
}, [router]);
|
|
88
81
|
|
|
89
|
-
return React__default
|
|
82
|
+
return React__default.createElement(
|
|
90
83
|
'div',
|
|
91
84
|
{ className: 'mt-3 mb-3' },
|
|
92
|
-
React__default
|
|
85
|
+
React__default.createElement(
|
|
93
86
|
reactBootstrap.Carousel,
|
|
94
87
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
95
88
|
return onChangeSlide(selectedIndex, router);
|
|
96
89
|
}, interval: null },
|
|
97
90
|
slides && slides.map(function (slide) {
|
|
98
|
-
return React__default
|
|
91
|
+
return React__default.createElement(
|
|
99
92
|
reactBootstrap.Carousel.Item,
|
|
100
93
|
{ key: slide._key },
|
|
101
|
-
React__default
|
|
102
|
-
slide.caption && React__default
|
|
94
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
95
|
+
slide.caption && React__default.createElement(
|
|
103
96
|
'p',
|
|
104
97
|
{ className: 'p-2' },
|
|
105
98
|
slide.caption
|
|
@@ -110,18 +103,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
110
103
|
);
|
|
111
104
|
};
|
|
112
105
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
var isArray = Array.isArray;
|
|
107
|
+
var keyList = Object.keys;
|
|
108
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
116
109
|
|
|
117
110
|
var fastDeepEqual = function equal(a, b) {
|
|
118
111
|
if (a === b) return true;
|
|
119
112
|
|
|
120
113
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
121
|
-
|
|
114
|
+
var arrA = isArray(a)
|
|
115
|
+
, arrB = isArray(b)
|
|
116
|
+
, i
|
|
117
|
+
, length
|
|
118
|
+
, key;
|
|
122
119
|
|
|
123
|
-
|
|
124
|
-
if (Array.isArray(a)) {
|
|
120
|
+
if (arrA && arrB) {
|
|
125
121
|
length = a.length;
|
|
126
122
|
if (length != b.length) return false;
|
|
127
123
|
for (i = length; i-- !== 0;)
|
|
@@ -129,29 +125,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
129
125
|
return true;
|
|
130
126
|
}
|
|
131
127
|
|
|
128
|
+
if (arrA != arrB) return false;
|
|
132
129
|
|
|
130
|
+
var dateA = a instanceof Date
|
|
131
|
+
, dateB = b instanceof Date;
|
|
132
|
+
if (dateA != dateB) return false;
|
|
133
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (
|
|
135
|
+
var regexpA = a instanceof RegExp
|
|
136
|
+
, regexpB = b instanceof RegExp;
|
|
137
|
+
if (regexpA != regexpB) return false;
|
|
138
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
137
139
|
|
|
138
|
-
keys =
|
|
140
|
+
var keys = keyList(a);
|
|
139
141
|
length = keys.length;
|
|
140
|
-
|
|
142
|
+
|
|
143
|
+
if (length !== keyList(b).length)
|
|
144
|
+
return false;
|
|
141
145
|
|
|
142
146
|
for (i = length; i-- !== 0;)
|
|
143
|
-
if (!
|
|
147
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
144
148
|
|
|
145
149
|
for (i = length; i-- !== 0;) {
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
key = keys[i];
|
|
148
151
|
if (!equal(a[key], b[key])) return false;
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
return true;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
|
-
// true if both NaN, false otherwise
|
|
155
157
|
return a!==a && b!==b;
|
|
156
158
|
};
|
|
157
159
|
|
|
@@ -689,14 +691,14 @@ function coerce(val) {
|
|
|
689
691
|
return val;
|
|
690
692
|
}
|
|
691
693
|
});
|
|
692
|
-
debug.coerce;
|
|
693
|
-
debug.disable;
|
|
694
|
-
debug.enable;
|
|
695
|
-
debug.enabled;
|
|
696
|
-
debug.humanize;
|
|
697
|
-
debug.names;
|
|
698
|
-
debug.skips;
|
|
699
|
-
debug.formatters;
|
|
694
|
+
var debug_1 = debug.coerce;
|
|
695
|
+
var debug_2 = debug.disable;
|
|
696
|
+
var debug_3 = debug.enable;
|
|
697
|
+
var debug_4 = debug.enabled;
|
|
698
|
+
var debug_5 = debug.humanize;
|
|
699
|
+
var debug_6 = debug.names;
|
|
700
|
+
var debug_7 = debug.skips;
|
|
701
|
+
var debug_8 = debug.formatters;
|
|
700
702
|
|
|
701
703
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
702
704
|
/**
|
|
@@ -885,13 +887,13 @@ function localstorage() {
|
|
|
885
887
|
} catch (e) {}
|
|
886
888
|
}
|
|
887
889
|
});
|
|
888
|
-
browser.log;
|
|
889
|
-
browser.formatArgs;
|
|
890
|
-
browser.save;
|
|
891
|
-
browser.load;
|
|
892
|
-
browser.useColors;
|
|
893
|
-
browser.storage;
|
|
894
|
-
browser.colors;
|
|
890
|
+
var browser_1 = browser.log;
|
|
891
|
+
var browser_2 = browser.formatArgs;
|
|
892
|
+
var browser_3 = browser.save;
|
|
893
|
+
var browser_4 = browser.load;
|
|
894
|
+
var browser_5 = browser.useColors;
|
|
895
|
+
var browser_6 = browser.storage;
|
|
896
|
+
var browser_7 = browser.colors;
|
|
895
897
|
|
|
896
898
|
// MIT lisence
|
|
897
899
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1166,14 +1168,14 @@ function init (debug) {
|
|
|
1166
1168
|
|
|
1167
1169
|
exports.enable(load());
|
|
1168
1170
|
});
|
|
1169
|
-
node.init;
|
|
1170
|
-
node.log;
|
|
1171
|
-
node.formatArgs;
|
|
1172
|
-
node.save;
|
|
1173
|
-
node.load;
|
|
1174
|
-
node.useColors;
|
|
1175
|
-
node.colors;
|
|
1176
|
-
node.inspectOpts;
|
|
1171
|
+
var node_1 = node.init;
|
|
1172
|
+
var node_2 = node.log;
|
|
1173
|
+
var node_3 = node.formatArgs;
|
|
1174
|
+
var node_4 = node.save;
|
|
1175
|
+
var node_5 = node.load;
|
|
1176
|
+
var node_6 = node.useColors;
|
|
1177
|
+
var node_7 = node.colors;
|
|
1178
|
+
var node_8 = node.inspectOpts;
|
|
1177
1179
|
|
|
1178
1180
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1179
1181
|
/**
|
|
@@ -1574,239 +1576,199 @@ module.exports = exports['default'];
|
|
|
1574
1576
|
|
|
1575
1577
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1576
1578
|
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1579
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1580
|
-
|
|
1581
|
-
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); } }
|
|
1582
|
-
|
|
1583
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1579
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1584
1580
|
|
|
1585
|
-
function
|
|
1581
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1586
1582
|
|
|
1587
|
-
function
|
|
1588
|
-
|
|
1589
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1590
|
-
|
|
1591
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1592
|
-
|
|
1593
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1594
|
-
|
|
1595
|
-
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; } }
|
|
1596
|
-
|
|
1597
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1583
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1598
1584
|
|
|
1599
|
-
function
|
|
1585
|
+
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; }
|
|
1600
1586
|
|
|
1601
|
-
function
|
|
1587
|
+
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; }
|
|
1602
1588
|
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param {Object}
|
|
1608
|
-
* @param {Object} props
|
|
1589
|
+
/**
|
|
1590
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1591
|
+
*
|
|
1592
|
+
* @param {Object} prevProps
|
|
1593
|
+
* @param {Object} props
|
|
1609
1594
|
*/
|
|
1610
|
-
|
|
1611
1595
|
function shouldUpdateVideo(prevProps, props) {
|
|
1612
1596
|
// A changing video should always trigger an update
|
|
1613
1597
|
if (prevProps.videoId !== props.videoId) {
|
|
1614
1598
|
return true;
|
|
1615
|
-
}
|
|
1616
|
-
// update.
|
|
1617
|
-
|
|
1599
|
+
}
|
|
1618
1600
|
|
|
1601
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
// update.
|
|
1619
1603
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1620
1604
|
var vars = props.opts.playerVars || {};
|
|
1605
|
+
|
|
1621
1606
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1622
1607
|
}
|
|
1623
|
-
/**
|
|
1624
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1625
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1626
|
-
* player reset is necessary.
|
|
1627
|
-
*
|
|
1628
|
-
* @param {Object} opts
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
1608
|
|
|
1609
|
+
/**
|
|
1610
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1611
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1612
|
+
* player reset is necessary.
|
|
1613
|
+
*
|
|
1614
|
+
* @param {Object} opts
|
|
1615
|
+
*/
|
|
1632
1616
|
function filterResetOptions(opts) {
|
|
1633
|
-
return
|
|
1634
|
-
playerVars:
|
|
1617
|
+
return _extends({}, opts, {
|
|
1618
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1635
1619
|
autoplay: 0,
|
|
1636
1620
|
start: 0,
|
|
1637
1621
|
end: 0
|
|
1638
|
-
}
|
|
1622
|
+
})
|
|
1639
1623
|
});
|
|
1640
1624
|
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1643
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1644
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1645
|
-
* those.
|
|
1646
|
-
*
|
|
1647
|
-
* @param {Object} prevProps
|
|
1648
|
-
* @param {Object} props
|
|
1649
|
-
*/
|
|
1650
|
-
|
|
1651
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1628
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1629
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1630
|
+
* those.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {Object} prevProps
|
|
1633
|
+
* @param {Object} props
|
|
1634
|
+
*/
|
|
1652
1635
|
function shouldResetPlayer(prevProps, props) {
|
|
1653
1636
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1654
1637
|
}
|
|
1655
|
-
/**
|
|
1656
|
-
* Check whether a props change should result in an id or className update.
|
|
1657
|
-
*
|
|
1658
|
-
* @param {Object} prevProps
|
|
1659
|
-
* @param {Object} props
|
|
1660
|
-
*/
|
|
1661
|
-
|
|
1662
1638
|
|
|
1639
|
+
/**
|
|
1640
|
+
* Check whether a props change should result in an id or className update.
|
|
1641
|
+
*
|
|
1642
|
+
* @param {Object} prevProps
|
|
1643
|
+
* @param {Object} props
|
|
1644
|
+
*/
|
|
1663
1645
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1664
1646
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1665
1647
|
}
|
|
1666
1648
|
|
|
1667
|
-
var YouTube =
|
|
1649
|
+
var YouTube = function (_React$Component) {
|
|
1668
1650
|
_inherits(YouTube, _React$Component);
|
|
1669
1651
|
|
|
1670
|
-
var _super = _createSuper(YouTube);
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1674
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1675
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1676
|
-
*/
|
|
1677
1652
|
function YouTube(props) {
|
|
1678
|
-
var _this;
|
|
1679
|
-
|
|
1680
1653
|
_classCallCheck(this, YouTube);
|
|
1681
1654
|
|
|
1682
|
-
_this =
|
|
1655
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1683
1656
|
|
|
1684
|
-
|
|
1657
|
+
_this.onPlayerReady = function (event) {
|
|
1685
1658
|
return _this.props.onReady(event);
|
|
1686
|
-
}
|
|
1659
|
+
};
|
|
1687
1660
|
|
|
1688
|
-
|
|
1661
|
+
_this.onPlayerError = function (event) {
|
|
1689
1662
|
return _this.props.onError(event);
|
|
1690
|
-
}
|
|
1663
|
+
};
|
|
1691
1664
|
|
|
1692
|
-
|
|
1665
|
+
_this.onPlayerStateChange = function (event) {
|
|
1693
1666
|
_this.props.onStateChange(event);
|
|
1694
|
-
|
|
1695
1667
|
switch (event.data) {
|
|
1668
|
+
|
|
1696
1669
|
case YouTube.PlayerState.ENDED:
|
|
1697
1670
|
_this.props.onEnd(event);
|
|
1698
|
-
|
|
1699
1671
|
break;
|
|
1700
1672
|
|
|
1701
1673
|
case YouTube.PlayerState.PLAYING:
|
|
1702
1674
|
_this.props.onPlay(event);
|
|
1703
|
-
|
|
1704
1675
|
break;
|
|
1705
1676
|
|
|
1706
1677
|
case YouTube.PlayerState.PAUSED:
|
|
1707
1678
|
_this.props.onPause(event);
|
|
1708
|
-
|
|
1709
1679
|
break;
|
|
1710
1680
|
}
|
|
1711
|
-
}
|
|
1681
|
+
};
|
|
1712
1682
|
|
|
1713
|
-
|
|
1683
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1714
1684
|
return _this.props.onPlaybackRateChange(event);
|
|
1715
|
-
}
|
|
1685
|
+
};
|
|
1716
1686
|
|
|
1717
|
-
|
|
1687
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1718
1688
|
return _this.props.onPlaybackQualityChange(event);
|
|
1719
|
-
}
|
|
1689
|
+
};
|
|
1720
1690
|
|
|
1721
|
-
|
|
1691
|
+
_this.createPlayer = function () {
|
|
1722
1692
|
// do not attempt to create a player server-side, it won't work
|
|
1723
|
-
if (typeof document === 'undefined') return;
|
|
1724
|
-
|
|
1725
|
-
var playerOpts =
|
|
1693
|
+
if (typeof document === 'undefined') return;
|
|
1694
|
+
// create player
|
|
1695
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1726
1696
|
// preload the `videoId` video if one is already given
|
|
1727
1697
|
videoId: _this.props.videoId
|
|
1728
1698
|
});
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1699
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1700
|
+
// attach event handlers
|
|
1732
1701
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1733
|
-
|
|
1734
1702
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1735
|
-
|
|
1736
1703
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1737
|
-
|
|
1738
1704
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1739
|
-
|
|
1740
1705
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1741
|
-
}
|
|
1706
|
+
};
|
|
1742
1707
|
|
|
1743
|
-
|
|
1708
|
+
_this.resetPlayer = function () {
|
|
1744
1709
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1745
|
-
}
|
|
1710
|
+
};
|
|
1746
1711
|
|
|
1747
|
-
|
|
1712
|
+
_this.updatePlayer = function () {
|
|
1748
1713
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1749
1714
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1750
1715
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1751
1716
|
});
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1755
|
-
return _this.internalPlayer;
|
|
1756
|
-
});
|
|
1717
|
+
};
|
|
1757
1718
|
|
|
1758
|
-
|
|
1719
|
+
_this.updateVideo = function () {
|
|
1759
1720
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1760
1721
|
_this.internalPlayer.stopVideo();
|
|
1761
|
-
|
|
1762
1722
|
return;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1723
|
+
}
|
|
1765
1724
|
|
|
1725
|
+
// set queueing options
|
|
1766
1726
|
var autoplay = false;
|
|
1767
1727
|
var opts = {
|
|
1768
1728
|
videoId: _this.props.videoId
|
|
1769
1729
|
};
|
|
1770
|
-
|
|
1771
1730
|
if ('playerVars' in _this.props.opts) {
|
|
1772
1731
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1773
|
-
|
|
1774
1732
|
if ('start' in _this.props.opts.playerVars) {
|
|
1775
1733
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1776
1734
|
}
|
|
1777
|
-
|
|
1778
1735
|
if ('end' in _this.props.opts.playerVars) {
|
|
1779
1736
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1780
1737
|
}
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1738
|
+
}
|
|
1783
1739
|
|
|
1740
|
+
// if autoplay is enabled loadVideoById
|
|
1784
1741
|
if (autoplay) {
|
|
1785
1742
|
_this.internalPlayer.loadVideoById(opts);
|
|
1786
|
-
|
|
1787
1743
|
return;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1744
|
+
}
|
|
1745
|
+
// default behaviour just cues the video
|
|
1791
1746
|
_this.internalPlayer.cueVideoById(opts);
|
|
1792
|
-
}
|
|
1747
|
+
};
|
|
1793
1748
|
|
|
1794
|
-
|
|
1749
|
+
_this.refContainer = function (container) {
|
|
1795
1750
|
_this.container = container;
|
|
1796
|
-
}
|
|
1751
|
+
};
|
|
1797
1752
|
|
|
1798
1753
|
_this.container = null;
|
|
1799
1754
|
_this.internalPlayer = null;
|
|
1800
1755
|
return _this;
|
|
1801
1756
|
}
|
|
1802
1757
|
|
|
1758
|
+
/**
|
|
1759
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1760
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1761
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1762
|
+
*/
|
|
1763
|
+
|
|
1764
|
+
|
|
1803
1765
|
_createClass(YouTube, [{
|
|
1804
|
-
key:
|
|
1766
|
+
key: 'componentDidMount',
|
|
1805
1767
|
value: function componentDidMount() {
|
|
1806
1768
|
this.createPlayer();
|
|
1807
1769
|
}
|
|
1808
1770
|
}, {
|
|
1809
|
-
key:
|
|
1771
|
+
key: 'componentDidUpdate',
|
|
1810
1772
|
value: function componentDidUpdate(prevProps) {
|
|
1811
1773
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1812
1774
|
this.updatePlayer();
|
|
@@ -1821,70 +1783,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1821
1783
|
}
|
|
1822
1784
|
}
|
|
1823
1785
|
}, {
|
|
1824
|
-
key:
|
|
1786
|
+
key: 'componentWillUnmount',
|
|
1825
1787
|
value: function componentWillUnmount() {
|
|
1826
|
-
/**
|
|
1827
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1828
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1829
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1830
|
-
* this method isn't quick enough to reset the container element.
|
|
1788
|
+
/**
|
|
1789
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1790
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1791
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1792
|
+
* this method isn't quick enough to reset the container element.
|
|
1831
1793
|
*/
|
|
1832
1794
|
this.internalPlayer.destroy();
|
|
1833
1795
|
}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1799
|
+
*
|
|
1800
|
+
* @param {Object} event
|
|
1801
|
+
* @param {Object} target - player object
|
|
1802
|
+
*/
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1807
|
+
*
|
|
1808
|
+
* @param {Object} event
|
|
1809
|
+
* @param {Integer} data - error type
|
|
1810
|
+
* @param {Object} target - player object
|
|
1811
|
+
*/
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Integer} data - status change type
|
|
1819
|
+
* @param {Object} target - actual YT player
|
|
1820
|
+
*/
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1825
|
+
*
|
|
1826
|
+
* @param {Object} event
|
|
1827
|
+
* @param {Float} data - playback rate
|
|
1828
|
+
* @param {Object} target - actual YT player
|
|
1829
|
+
*/
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1834
|
+
*
|
|
1835
|
+
* @param {Object} event
|
|
1836
|
+
* @param {String} data - playback quality
|
|
1837
|
+
* @param {Object} target - actual YT player
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1853
|
+
* React should update this automatically but since the Youtube Player API
|
|
1854
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1855
|
+
*/
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1860
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1861
|
+
* Youtube Player API methods to update the video.
|
|
1839
1862
|
*/
|
|
1840
1863
|
|
|
1841
1864
|
}, {
|
|
1842
|
-
key:
|
|
1865
|
+
key: 'render',
|
|
1843
1866
|
value: function render() {
|
|
1844
|
-
return
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
id: this.props.id,
|
|
1848
|
-
|
|
1849
|
-
ref: this.refContainer
|
|
1850
|
-
}));
|
|
1867
|
+
return React__default.createElement(
|
|
1868
|
+
'div',
|
|
1869
|
+
{ className: this.props.containerClassName },
|
|
1870
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1871
|
+
);
|
|
1851
1872
|
}
|
|
1852
1873
|
}]);
|
|
1853
1874
|
|
|
1854
1875
|
return YouTube;
|
|
1855
|
-
}(React__default
|
|
1856
|
-
|
|
1857
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1858
|
-
UNSTARTED: -1,
|
|
1859
|
-
ENDED: 0,
|
|
1860
|
-
PLAYING: 1,
|
|
1861
|
-
PAUSED: 2,
|
|
1862
|
-
BUFFERING: 3,
|
|
1863
|
-
CUED: 5
|
|
1864
|
-
});
|
|
1876
|
+
}(React__default.Component);
|
|
1865
1877
|
|
|
1866
1878
|
YouTube.propTypes = {
|
|
1867
|
-
videoId: PropTypes__default
|
|
1879
|
+
videoId: PropTypes__default.string,
|
|
1880
|
+
|
|
1868
1881
|
// custom ID for player element
|
|
1869
|
-
id: PropTypes__default
|
|
1882
|
+
id: PropTypes__default.string,
|
|
1883
|
+
|
|
1870
1884
|
// custom class name for player element
|
|
1871
|
-
className: PropTypes__default
|
|
1885
|
+
className: PropTypes__default.string,
|
|
1872
1886
|
// custom class name for player container element
|
|
1873
|
-
containerClassName: PropTypes__default
|
|
1887
|
+
containerClassName: PropTypes__default.string,
|
|
1888
|
+
|
|
1874
1889
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1875
|
-
opts: PropTypes__default
|
|
1890
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1891
|
+
|
|
1876
1892
|
// event subscriptions
|
|
1877
|
-
onReady: PropTypes__default
|
|
1878
|
-
onError: PropTypes__default
|
|
1879
|
-
onPlay: PropTypes__default
|
|
1880
|
-
onPause: PropTypes__default
|
|
1881
|
-
onEnd: PropTypes__default
|
|
1882
|
-
onStateChange: PropTypes__default
|
|
1883
|
-
onPlaybackRateChange: PropTypes__default
|
|
1884
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1893
|
+
onReady: PropTypes__default.func,
|
|
1894
|
+
onError: PropTypes__default.func,
|
|
1895
|
+
onPlay: PropTypes__default.func,
|
|
1896
|
+
onPause: PropTypes__default.func,
|
|
1897
|
+
onEnd: PropTypes__default.func,
|
|
1898
|
+
onStateChange: PropTypes__default.func,
|
|
1899
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1900
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1885
1901
|
};
|
|
1886
1902
|
YouTube.defaultProps = {
|
|
1887
|
-
videoId: null,
|
|
1888
1903
|
id: null,
|
|
1889
1904
|
className: null,
|
|
1890
1905
|
opts: {},
|
|
@@ -1898,11 +1913,20 @@ YouTube.defaultProps = {
|
|
|
1898
1913
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1899
1914
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1900
1915
|
};
|
|
1916
|
+
YouTube.PlayerState = {
|
|
1917
|
+
UNSTARTED: -1,
|
|
1918
|
+
ENDED: 0,
|
|
1919
|
+
PLAYING: 1,
|
|
1920
|
+
PAUSED: 2,
|
|
1921
|
+
BUFFERING: 3,
|
|
1922
|
+
CUED: 5
|
|
1923
|
+
};
|
|
1901
1924
|
|
|
1902
1925
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1903
|
-
var url = _ref.url
|
|
1926
|
+
var url = _ref.url,
|
|
1927
|
+
autoplay = _ref.autoplay;
|
|
1904
1928
|
|
|
1905
|
-
var id = index$
|
|
1929
|
+
var id = index$3.getYoutubeId(url);
|
|
1906
1930
|
|
|
1907
1931
|
var _useState = React.useState(false),
|
|
1908
1932
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1924,7 +1948,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1924
1948
|
var opts = {
|
|
1925
1949
|
width: '100%',
|
|
1926
1950
|
playerVars: {
|
|
1927
|
-
rel: 0
|
|
1951
|
+
rel: 0,
|
|
1952
|
+
autoplay: autoplay
|
|
1928
1953
|
}
|
|
1929
1954
|
};
|
|
1930
1955
|
|
|
@@ -1997,11 +2022,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1997
2022
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1998
2023
|
};
|
|
1999
2024
|
|
|
2000
|
-
return React__default
|
|
2025
|
+
return React__default.createElement(
|
|
2001
2026
|
'div',
|
|
2002
2027
|
{ id: 'fluid-video-container' },
|
|
2003
|
-
React__default
|
|
2004
|
-
React__default
|
|
2028
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2029
|
+
React__default.createElement(
|
|
2005
2030
|
'style',
|
|
2006
2031
|
{ jsx: 'true' },
|
|
2007
2032
|
'\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 '
|
|
@@ -2014,20 +2039,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2014
2039
|
content = _ref.content,
|
|
2015
2040
|
getSerializers = _ref.getSerializers;
|
|
2016
2041
|
|
|
2017
|
-
return React__default
|
|
2042
|
+
return React__default.createElement(
|
|
2018
2043
|
'article',
|
|
2019
2044
|
{ className: 'sidebar' },
|
|
2020
|
-
React__default
|
|
2045
|
+
React__default.createElement(
|
|
2021
2046
|
'div',
|
|
2022
2047
|
null,
|
|
2023
|
-
React__default
|
|
2048
|
+
React__default.createElement(
|
|
2024
2049
|
'h3',
|
|
2025
2050
|
null,
|
|
2026
2051
|
caption
|
|
2027
2052
|
),
|
|
2028
|
-
React__default
|
|
2053
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2029
2054
|
),
|
|
2030
|
-
React__default
|
|
2055
|
+
React__default.createElement(
|
|
2031
2056
|
'style',
|
|
2032
2057
|
{ jsx: 'true' },
|
|
2033
2058
|
'\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 '
|
|
@@ -2038,18 +2063,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2038
2063
|
var TableShow = function TableShow(_ref) {
|
|
2039
2064
|
var rows = _ref.rows;
|
|
2040
2065
|
|
|
2041
|
-
return React__default
|
|
2066
|
+
return React__default.createElement(
|
|
2042
2067
|
reactBootstrap.Table,
|
|
2043
2068
|
{ bordered: true, hover: true, responsive: true },
|
|
2044
|
-
React__default
|
|
2069
|
+
React__default.createElement(
|
|
2045
2070
|
'tbody',
|
|
2046
2071
|
null,
|
|
2047
2072
|
rows && rows.map(function (row) {
|
|
2048
|
-
return React__default
|
|
2073
|
+
return React__default.createElement(
|
|
2049
2074
|
'tr',
|
|
2050
2075
|
{ key: row._key },
|
|
2051
2076
|
row.cells && row.cells.map(function (cell, index) {
|
|
2052
|
-
return cell && React__default
|
|
2077
|
+
return cell && React__default.createElement(
|
|
2053
2078
|
'td',
|
|
2054
2079
|
{ key: index },
|
|
2055
2080
|
cell
|
|
@@ -2077,7 +2102,7 @@ var Media = function Media(_ref) {
|
|
|
2077
2102
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2078
2103
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2079
2104
|
|
|
2080
|
-
var builder = index.imageUrlBuilder(client);
|
|
2105
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2081
2106
|
|
|
2082
2107
|
var urlFor = function urlFor(source) {
|
|
2083
2108
|
return builder.image(source).auto('format');
|
|
@@ -2152,18 +2177,18 @@ var Media = function Media(_ref) {
|
|
|
2152
2177
|
margin: imageMargin
|
|
2153
2178
|
};
|
|
2154
2179
|
|
|
2155
|
-
return React__default
|
|
2180
|
+
return React__default.createElement(
|
|
2156
2181
|
reactBootstrap.Figure,
|
|
2157
2182
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2158
|
-
React__default
|
|
2183
|
+
React__default.createElement(
|
|
2159
2184
|
'a',
|
|
2160
2185
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2161
|
-
React__default
|
|
2162
|
-
index$
|
|
2186
|
+
React__default.createElement(
|
|
2187
|
+
index$2.LazyLoad,
|
|
2163
2188
|
{ once: true },
|
|
2164
|
-
React__default
|
|
2189
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2165
2190
|
),
|
|
2166
|
-
caption && React__default
|
|
2191
|
+
caption && React__default.createElement(
|
|
2167
2192
|
reactBootstrap.Figure.Caption,
|
|
2168
2193
|
{ className: 'media-caption' },
|
|
2169
2194
|
caption
|
|
@@ -2171,9 +2196,9 @@ var Media = function Media(_ref) {
|
|
|
2171
2196
|
)
|
|
2172
2197
|
);
|
|
2173
2198
|
} else if (caption && caption !== '') {
|
|
2174
|
-
return React__default
|
|
2199
|
+
return React__default.createElement(
|
|
2175
2200
|
'a',
|
|
2176
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2201
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2177
2202
|
href: uploadDoc.asset.url + '?dl='
|
|
2178
2203
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2179
2204
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2191,10 +2216,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2191
2216
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2192
2217
|
|
|
2193
2218
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2194
|
-
return React__default
|
|
2219
|
+
return React__default.createElement(
|
|
2195
2220
|
'div',
|
|
2196
2221
|
{ className: 'd-block text-center mb-3' },
|
|
2197
|
-
React__default
|
|
2222
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2198
2223
|
);
|
|
2199
2224
|
};
|
|
2200
2225
|
|
|
@@ -2289,10 +2314,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2289
2314
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2290
2315
|
};
|
|
2291
2316
|
|
|
2292
|
-
return React__default
|
|
2317
|
+
return React__default.createElement(
|
|
2293
2318
|
'div',
|
|
2294
2319
|
null,
|
|
2295
|
-
vidLoaded && React__default
|
|
2320
|
+
vidLoaded && React__default.createElement(
|
|
2296
2321
|
'video',
|
|
2297
2322
|
{
|
|
2298
2323
|
poster: thumbnail || '',
|
|
@@ -2310,7 +2335,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2310
2335
|
onPlay: function onPlay(e) {
|
|
2311
2336
|
return handleOnPlay(e);
|
|
2312
2337
|
} },
|
|
2313
|
-
React__default
|
|
2338
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2314
2339
|
'Your browser does not support the video tag.'
|
|
2315
2340
|
)
|
|
2316
2341
|
);
|
|
@@ -2347,7 +2372,7 @@ var Video = function Video(_ref) {
|
|
|
2347
2372
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2348
2373
|
//console.log('success:', success.ref)
|
|
2349
2374
|
var player = success.ref;
|
|
2350
|
-
if (_typeof
|
|
2375
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2351
2376
|
player.ima3.settings.debug = true;
|
|
2352
2377
|
if (targeting.content_placement && targeting.document_url) {
|
|
2353
2378
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2445,53 +2470,53 @@ var Video = function Video(_ref) {
|
|
|
2445
2470
|
|
|
2446
2471
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2447
2472
|
if (videoID) {
|
|
2448
|
-
return React__default
|
|
2473
|
+
return React__default.createElement(
|
|
2449
2474
|
'div',
|
|
2450
2475
|
null,
|
|
2451
|
-
React__default
|
|
2476
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2452
2477
|
onSuccess: onVideoSuccess,
|
|
2453
2478
|
accountId: accountIDs.brightcove.accountId,
|
|
2454
2479
|
videoId: videoID,
|
|
2455
2480
|
playerId: accountIDs.brightcove.playerId,
|
|
2456
2481
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2457
2482
|
}),
|
|
2458
|
-
React__default
|
|
2483
|
+
React__default.createElement(
|
|
2459
2484
|
'style',
|
|
2460
2485
|
{ jsx: 'true' },
|
|
2461
2486
|
'\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 '
|
|
2462
2487
|
)
|
|
2463
2488
|
);
|
|
2464
2489
|
} else if (playlistID) {
|
|
2465
|
-
return React__default
|
|
2490
|
+
return React__default.createElement(
|
|
2466
2491
|
'div',
|
|
2467
2492
|
null,
|
|
2468
|
-
React__default
|
|
2493
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2469
2494
|
accountId: accountIDs.brightcove.accountId,
|
|
2470
2495
|
playlistId: playlistID,
|
|
2471
2496
|
playerId: accountIDs.brightcove.playerId,
|
|
2472
2497
|
onSuccess: onVideoSuccess,
|
|
2473
2498
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2474
2499
|
}),
|
|
2475
|
-
React__default
|
|
2500
|
+
React__default.createElement(
|
|
2476
2501
|
'style',
|
|
2477
2502
|
{ jsx: 'true' },
|
|
2478
2503
|
'\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 '
|
|
2479
2504
|
)
|
|
2480
2505
|
);
|
|
2481
2506
|
} else if (experienceID) {
|
|
2482
|
-
return React__default
|
|
2507
|
+
return React__default.createElement(
|
|
2483
2508
|
'div',
|
|
2484
2509
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2485
|
-
videoLoaded && React__default
|
|
2510
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2486
2511
|
);
|
|
2487
2512
|
}
|
|
2488
2513
|
return null;
|
|
2489
2514
|
}
|
|
2490
2515
|
if (source === 'mp4') {
|
|
2491
|
-
return React__default
|
|
2516
|
+
return React__default.createElement(
|
|
2492
2517
|
'div',
|
|
2493
2518
|
null,
|
|
2494
|
-
React__default
|
|
2519
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2495
2520
|
);
|
|
2496
2521
|
}
|
|
2497
2522
|
|
|
@@ -2506,7 +2531,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2506
2531
|
});
|
|
2507
2532
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2508
2533
|
|
|
2509
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2534
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2510
2535
|
|
|
2511
2536
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2512
2537
|
|
|
@@ -2702,9 +2727,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2702
2727
|
});
|
|
2703
2728
|
|
|
2704
2729
|
_commonjsHelpers.unwrapExports(props);
|
|
2705
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2706
|
-
props.defaultProps;
|
|
2707
|
-
props.propTypes;
|
|
2730
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2731
|
+
var props_2 = props.defaultProps;
|
|
2732
|
+
var props_3 = props.propTypes;
|
|
2708
2733
|
|
|
2709
2734
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2710
2735
|
return isNonNullObject(value)
|
|
@@ -2869,17 +2894,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2869
2894
|
|
|
2870
2895
|
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; }
|
|
2871
2896
|
|
|
2872
|
-
function
|
|
2873
|
-
|
|
2874
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2875
|
-
|
|
2876
|
-
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."); }
|
|
2877
|
-
|
|
2878
|
-
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); }
|
|
2897
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2879
2898
|
|
|
2880
|
-
function
|
|
2899
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2881
2900
|
|
|
2882
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
2901
|
+
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; }
|
|
2883
2902
|
|
|
2884
2903
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2885
2904
|
|
|
@@ -3009,12 +3028,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3009
3028
|
|
|
3010
3029
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3011
3030
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3012
|
-
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3031
|
+
var _iteratorNormalCompletion = true;
|
|
3032
|
+
var _didIteratorError = false;
|
|
3033
|
+
var _iteratorError = undefined;
|
|
3015
3034
|
|
|
3016
3035
|
try {
|
|
3017
|
-
for (_iterator.
|
|
3036
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3018
3037
|
var p = _step.value;
|
|
3019
3038
|
|
|
3020
3039
|
if (props$1[p]) {
|
|
@@ -3029,9 +3048,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3029
3048
|
}
|
|
3030
3049
|
}
|
|
3031
3050
|
} catch (err) {
|
|
3032
|
-
|
|
3051
|
+
_didIteratorError = true;
|
|
3052
|
+
_iteratorError = err;
|
|
3033
3053
|
} finally {
|
|
3034
|
-
|
|
3054
|
+
try {
|
|
3055
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3056
|
+
_iterator["return"]();
|
|
3057
|
+
}
|
|
3058
|
+
} finally {
|
|
3059
|
+
if (_didIteratorError) {
|
|
3060
|
+
throw _iteratorError;
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3035
3063
|
}
|
|
3036
3064
|
|
|
3037
3065
|
return config;
|
|
@@ -3096,7 +3124,7 @@ function isEqual(a, b) {
|
|
|
3096
3124
|
return true;
|
|
3097
3125
|
}
|
|
3098
3126
|
|
|
3099
|
-
if ((0, React__default
|
|
3127
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3100
3128
|
return true;
|
|
3101
3129
|
}
|
|
3102
3130
|
|
|
@@ -3139,17 +3167,17 @@ function isMediaStream(url) {
|
|
|
3139
3167
|
});
|
|
3140
3168
|
|
|
3141
3169
|
_commonjsHelpers.unwrapExports(utils);
|
|
3142
|
-
utils.parseStartTime;
|
|
3143
|
-
utils.parseEndTime;
|
|
3144
|
-
utils.randomString;
|
|
3145
|
-
utils.queryString;
|
|
3146
|
-
utils.getSDK;
|
|
3147
|
-
utils.getConfig;
|
|
3148
|
-
utils.omit;
|
|
3149
|
-
utils.callPlayer;
|
|
3150
|
-
utils.isObject;
|
|
3151
|
-
utils.isEqual;
|
|
3152
|
-
utils.isMediaStream;
|
|
3170
|
+
var utils_1 = utils.parseStartTime;
|
|
3171
|
+
var utils_2 = utils.parseEndTime;
|
|
3172
|
+
var utils_3 = utils.randomString;
|
|
3173
|
+
var utils_4 = utils.queryString;
|
|
3174
|
+
var utils_5 = utils.getSDK;
|
|
3175
|
+
var utils_6 = utils.getConfig;
|
|
3176
|
+
var utils_7 = utils.omit;
|
|
3177
|
+
var utils_8 = utils.callPlayer;
|
|
3178
|
+
var utils_9 = utils.isObject;
|
|
3179
|
+
var utils_10 = utils.isEqual;
|
|
3180
|
+
var utils_11 = utils.isMediaStream;
|
|
3153
3181
|
|
|
3154
3182
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3155
3183
|
|
|
@@ -3158,7 +3186,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3158
3186
|
});
|
|
3159
3187
|
exports["default"] = void 0;
|
|
3160
3188
|
|
|
3161
|
-
var _react = _interopRequireWildcard(React__default
|
|
3189
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3162
3190
|
|
|
3163
3191
|
|
|
3164
3192
|
|
|
@@ -3178,16 +3206,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3178
3206
|
|
|
3179
3207
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3180
3208
|
|
|
3181
|
-
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); }; }
|
|
3182
|
-
|
|
3183
3209
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3184
3210
|
|
|
3185
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3186
|
-
|
|
3187
|
-
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; } }
|
|
3188
|
-
|
|
3189
3211
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3190
3212
|
|
|
3213
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3214
|
+
|
|
3191
3215
|
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); }
|
|
3192
3216
|
|
|
3193
3217
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3196,12 +3220,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3196
3220
|
|
|
3197
3221
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3198
3222
|
|
|
3199
|
-
var Player =
|
|
3223
|
+
var Player =
|
|
3224
|
+
/*#__PURE__*/
|
|
3225
|
+
function (_Component) {
|
|
3200
3226
|
_inherits(Player, _Component);
|
|
3201
3227
|
|
|
3202
|
-
var _super = _createSuper(Player);
|
|
3203
|
-
|
|
3204
3228
|
function Player() {
|
|
3229
|
+
var _getPrototypeOf2;
|
|
3230
|
+
|
|
3205
3231
|
var _this;
|
|
3206
3232
|
|
|
3207
3233
|
_classCallCheck(this, Player);
|
|
@@ -3210,7 +3236,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3210
3236
|
_args[_key] = arguments[_key];
|
|
3211
3237
|
}
|
|
3212
3238
|
|
|
3213
|
-
_this =
|
|
3239
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3214
3240
|
|
|
3215
3241
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3216
3242
|
|
|
@@ -3535,7 +3561,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3535
3561
|
return null;
|
|
3536
3562
|
}
|
|
3537
3563
|
|
|
3538
|
-
return
|
|
3564
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3539
3565
|
ref: this.ref,
|
|
3540
3566
|
onReady: this.handleReady,
|
|
3541
3567
|
onPlay: this.handlePlay,
|
|
@@ -3568,7 +3594,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3568
3594
|
});
|
|
3569
3595
|
exports["default"] = createSinglePlayer;
|
|
3570
3596
|
|
|
3571
|
-
var _react = _interopRequireWildcard(React__default
|
|
3597
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3572
3598
|
|
|
3573
3599
|
|
|
3574
3600
|
|
|
@@ -3596,16 +3622,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3596
3622
|
|
|
3597
3623
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3598
3624
|
|
|
3599
|
-
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); }; }
|
|
3600
|
-
|
|
3601
3625
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3602
3626
|
|
|
3603
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3604
|
-
|
|
3605
|
-
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; } }
|
|
3606
|
-
|
|
3607
3627
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3608
3628
|
|
|
3629
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3630
|
+
|
|
3609
3631
|
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); }
|
|
3610
3632
|
|
|
3611
3633
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3617,12 +3639,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3617
3639
|
function createSinglePlayer(activePlayer) {
|
|
3618
3640
|
var _class, _temp;
|
|
3619
3641
|
|
|
3620
|
-
return _temp = _class =
|
|
3642
|
+
return _temp = _class =
|
|
3643
|
+
/*#__PURE__*/
|
|
3644
|
+
function (_Component) {
|
|
3621
3645
|
_inherits(SinglePlayer, _Component);
|
|
3622
3646
|
|
|
3623
|
-
var _super = _createSuper(SinglePlayer);
|
|
3624
|
-
|
|
3625
3647
|
function SinglePlayer() {
|
|
3648
|
+
var _getPrototypeOf2;
|
|
3649
|
+
|
|
3626
3650
|
var _this;
|
|
3627
3651
|
|
|
3628
3652
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3631,7 +3655,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3631
3655
|
args[_key] = arguments[_key];
|
|
3632
3656
|
}
|
|
3633
3657
|
|
|
3634
|
-
_this =
|
|
3658
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3635
3659
|
|
|
3636
3660
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3637
3661
|
|
|
@@ -3699,12 +3723,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3699
3723
|
height = _this$props.height,
|
|
3700
3724
|
Wrapper = _this$props.wrapper;
|
|
3701
3725
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3702
|
-
return
|
|
3726
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3703
3727
|
style: _objectSpread({}, style, {
|
|
3704
3728
|
width: width,
|
|
3705
3729
|
height: height
|
|
3706
3730
|
})
|
|
3707
|
-
}, otherProps),
|
|
3731
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3708
3732
|
ref: this.ref,
|
|
3709
3733
|
activePlayer: activePlayer,
|
|
3710
3734
|
config: this.config
|
|
@@ -3726,7 +3750,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3726
3750
|
});
|
|
3727
3751
|
exports["default"] = exports.YouTube = void 0;
|
|
3728
3752
|
|
|
3729
|
-
var _react = _interopRequireWildcard(React__default
|
|
3753
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3730
3754
|
|
|
3731
3755
|
|
|
3732
3756
|
|
|
@@ -3750,31 +3774,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3750
3774
|
|
|
3751
3775
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3752
3776
|
|
|
3753
|
-
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); }; }
|
|
3754
|
-
|
|
3755
3777
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3756
3778
|
|
|
3757
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3758
|
-
|
|
3759
|
-
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; } }
|
|
3760
|
-
|
|
3761
3779
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3762
3780
|
|
|
3781
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3782
|
+
|
|
3763
3783
|
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); }
|
|
3764
3784
|
|
|
3765
3785
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3766
3786
|
|
|
3767
3787
|
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; }
|
|
3768
3788
|
|
|
3769
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3789
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3770
3790
|
|
|
3771
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3791
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3772
3792
|
|
|
3773
|
-
function
|
|
3774
|
-
|
|
3775
|
-
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; }
|
|
3776
|
-
|
|
3777
|
-
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; }
|
|
3793
|
+
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; }
|
|
3778
3794
|
|
|
3779
3795
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3780
3796
|
|
|
@@ -3799,12 +3815,14 @@ function parsePlaylist(url) {
|
|
|
3799
3815
|
return {};
|
|
3800
3816
|
}
|
|
3801
3817
|
|
|
3802
|
-
var YouTube =
|
|
3818
|
+
var YouTube =
|
|
3819
|
+
/*#__PURE__*/
|
|
3820
|
+
function (_Component) {
|
|
3803
3821
|
_inherits(YouTube, _Component);
|
|
3804
3822
|
|
|
3805
|
-
var _super = _createSuper(YouTube);
|
|
3806
|
-
|
|
3807
3823
|
function YouTube() {
|
|
3824
|
+
var _getPrototypeOf2;
|
|
3825
|
+
|
|
3808
3826
|
var _this;
|
|
3809
3827
|
|
|
3810
3828
|
_classCallCheck(this, YouTube);
|
|
@@ -3813,7 +3831,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3813
3831
|
args[_key] = arguments[_key];
|
|
3814
3832
|
}
|
|
3815
3833
|
|
|
3816
|
-
_this =
|
|
3834
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3817
3835
|
|
|
3818
3836
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3819
3837
|
|
|
@@ -4001,9 +4019,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4001
4019
|
height: '100%',
|
|
4002
4020
|
display: display
|
|
4003
4021
|
};
|
|
4004
|
-
return
|
|
4022
|
+
return _react["default"].createElement("div", {
|
|
4005
4023
|
style: style
|
|
4006
|
-
},
|
|
4024
|
+
}, _react["default"].createElement("div", {
|
|
4007
4025
|
ref: this.ref
|
|
4008
4026
|
}));
|
|
4009
4027
|
}
|
|
@@ -4026,7 +4044,7 @@ exports["default"] = _default;
|
|
|
4026
4044
|
});
|
|
4027
4045
|
|
|
4028
4046
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4029
|
-
YouTube_1.YouTube;
|
|
4047
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4030
4048
|
|
|
4031
4049
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4032
4050
|
|
|
@@ -4035,7 +4053,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4035
4053
|
});
|
|
4036
4054
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4037
4055
|
|
|
4038
|
-
var _react = _interopRequireWildcard(React__default
|
|
4056
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4039
4057
|
|
|
4040
4058
|
|
|
4041
4059
|
|
|
@@ -4059,16 +4077,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4059
4077
|
|
|
4060
4078
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4061
4079
|
|
|
4062
|
-
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); }; }
|
|
4063
|
-
|
|
4064
4080
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4065
4081
|
|
|
4066
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4067
|
-
|
|
4068
|
-
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; } }
|
|
4069
|
-
|
|
4070
4082
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4071
4083
|
|
|
4084
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4085
|
+
|
|
4072
4086
|
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); }
|
|
4073
4087
|
|
|
4074
4088
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4077,14 +4091,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4077
4091
|
|
|
4078
4092
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4079
4093
|
var SDK_GLOBAL = 'SC';
|
|
4080
|
-
var MATCH_URL = /(
|
|
4094
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4081
4095
|
|
|
4082
|
-
var SoundCloud =
|
|
4096
|
+
var SoundCloud =
|
|
4097
|
+
/*#__PURE__*/
|
|
4098
|
+
function (_Component) {
|
|
4083
4099
|
_inherits(SoundCloud, _Component);
|
|
4084
4100
|
|
|
4085
|
-
var _super = _createSuper(SoundCloud);
|
|
4086
|
-
|
|
4087
4101
|
function SoundCloud() {
|
|
4102
|
+
var _getPrototypeOf2;
|
|
4103
|
+
|
|
4088
4104
|
var _this;
|
|
4089
4105
|
|
|
4090
4106
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4093,7 +4109,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4093
4109
|
args[_key] = arguments[_key];
|
|
4094
4110
|
}
|
|
4095
4111
|
|
|
4096
|
-
_this =
|
|
4112
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4097
4113
|
|
|
4098
4114
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4099
4115
|
|
|
@@ -4214,7 +4230,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4214
4230
|
height: '100%',
|
|
4215
4231
|
display: display
|
|
4216
4232
|
};
|
|
4217
|
-
return
|
|
4233
|
+
return _react["default"].createElement("iframe", {
|
|
4218
4234
|
ref: this.ref,
|
|
4219
4235
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4220
4236
|
style: style,
|
|
@@ -4243,7 +4259,7 @@ exports["default"] = _default;
|
|
|
4243
4259
|
});
|
|
4244
4260
|
|
|
4245
4261
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4246
|
-
SoundCloud_1.SoundCloud;
|
|
4262
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4247
4263
|
|
|
4248
4264
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4249
4265
|
|
|
@@ -4252,7 +4268,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4252
4268
|
});
|
|
4253
4269
|
exports["default"] = exports.Vimeo = void 0;
|
|
4254
4270
|
|
|
4255
|
-
var _react = _interopRequireWildcard(React__default
|
|
4271
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4256
4272
|
|
|
4257
4273
|
|
|
4258
4274
|
|
|
@@ -4276,16 +4292,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4276
4292
|
|
|
4277
4293
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4278
4294
|
|
|
4279
|
-
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); }; }
|
|
4280
|
-
|
|
4281
4295
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4282
4296
|
|
|
4283
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4284
|
-
|
|
4285
|
-
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; } }
|
|
4286
|
-
|
|
4287
4297
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4288
4298
|
|
|
4299
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4300
|
+
|
|
4289
4301
|
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); }
|
|
4290
4302
|
|
|
4291
4303
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4297,12 +4309,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4297
4309
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4298
4310
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4299
4311
|
|
|
4300
|
-
var Vimeo =
|
|
4312
|
+
var Vimeo =
|
|
4313
|
+
/*#__PURE__*/
|
|
4314
|
+
function (_Component) {
|
|
4301
4315
|
_inherits(Vimeo, _Component);
|
|
4302
4316
|
|
|
4303
|
-
var _super = _createSuper(Vimeo);
|
|
4304
|
-
|
|
4305
4317
|
function Vimeo() {
|
|
4318
|
+
var _getPrototypeOf2;
|
|
4319
|
+
|
|
4306
4320
|
var _this;
|
|
4307
4321
|
|
|
4308
4322
|
_classCallCheck(this, Vimeo);
|
|
@@ -4311,7 +4325,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4311
4325
|
args[_key] = arguments[_key];
|
|
4312
4326
|
}
|
|
4313
4327
|
|
|
4314
|
-
_this =
|
|
4328
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4315
4329
|
|
|
4316
4330
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4317
4331
|
|
|
@@ -4468,7 +4482,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4468
4482
|
overflow: 'hidden',
|
|
4469
4483
|
display: display
|
|
4470
4484
|
};
|
|
4471
|
-
return
|
|
4485
|
+
return _react["default"].createElement("div", {
|
|
4472
4486
|
key: this.props.url,
|
|
4473
4487
|
ref: this.ref,
|
|
4474
4488
|
style: style
|
|
@@ -4499,7 +4513,7 @@ exports["default"] = _default;
|
|
|
4499
4513
|
});
|
|
4500
4514
|
|
|
4501
4515
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4502
|
-
Vimeo_1.Vimeo;
|
|
4516
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4503
4517
|
|
|
4504
4518
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4505
4519
|
|
|
@@ -4508,7 +4522,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4508
4522
|
});
|
|
4509
4523
|
exports["default"] = exports.Facebook = void 0;
|
|
4510
4524
|
|
|
4511
|
-
var _react = _interopRequireWildcard(React__default
|
|
4525
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4512
4526
|
|
|
4513
4527
|
|
|
4514
4528
|
|
|
@@ -4528,16 +4542,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4528
4542
|
|
|
4529
4543
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4530
4544
|
|
|
4531
|
-
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); }; }
|
|
4532
|
-
|
|
4533
4545
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4534
4546
|
|
|
4535
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4536
|
-
|
|
4537
|
-
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; } }
|
|
4538
|
-
|
|
4539
4547
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4540
4548
|
|
|
4549
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4550
|
+
|
|
4541
4551
|
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); }
|
|
4542
4552
|
|
|
4543
4553
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4550,12 +4560,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4550
4560
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4551
4561
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4552
4562
|
|
|
4553
|
-
var Facebook =
|
|
4563
|
+
var Facebook =
|
|
4564
|
+
/*#__PURE__*/
|
|
4565
|
+
function (_Component) {
|
|
4554
4566
|
_inherits(Facebook, _Component);
|
|
4555
4567
|
|
|
4556
|
-
var _super = _createSuper(Facebook);
|
|
4557
|
-
|
|
4558
4568
|
function Facebook() {
|
|
4569
|
+
var _getPrototypeOf2;
|
|
4570
|
+
|
|
4559
4571
|
var _this;
|
|
4560
4572
|
|
|
4561
4573
|
_classCallCheck(this, Facebook);
|
|
@@ -4564,7 +4576,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4564
4576
|
args[_key] = arguments[_key];
|
|
4565
4577
|
}
|
|
4566
4578
|
|
|
4567
|
-
_this =
|
|
4579
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4568
4580
|
|
|
4569
4581
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4570
4582
|
|
|
@@ -4680,7 +4692,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4680
4692
|
width: '100%',
|
|
4681
4693
|
height: '100%'
|
|
4682
4694
|
};
|
|
4683
|
-
return
|
|
4695
|
+
return _react["default"].createElement("div", {
|
|
4684
4696
|
style: style,
|
|
4685
4697
|
id: this.playerID,
|
|
4686
4698
|
className: "fb-video",
|
|
@@ -4711,7 +4723,7 @@ exports["default"] = _default;
|
|
|
4711
4723
|
});
|
|
4712
4724
|
|
|
4713
4725
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4714
|
-
Facebook_1.Facebook;
|
|
4726
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4715
4727
|
|
|
4716
4728
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4717
4729
|
|
|
@@ -4720,7 +4732,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4720
4732
|
});
|
|
4721
4733
|
exports["default"] = exports.Streamable = void 0;
|
|
4722
4734
|
|
|
4723
|
-
var _react = _interopRequireWildcard(React__default
|
|
4735
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4724
4736
|
|
|
4725
4737
|
|
|
4726
4738
|
|
|
@@ -4740,16 +4752,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4740
4752
|
|
|
4741
4753
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4742
4754
|
|
|
4743
|
-
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); }; }
|
|
4744
|
-
|
|
4745
4755
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4746
4756
|
|
|
4747
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4748
|
-
|
|
4749
|
-
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; } }
|
|
4750
|
-
|
|
4751
4757
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4752
4758
|
|
|
4759
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4760
|
+
|
|
4753
4761
|
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); }
|
|
4754
4762
|
|
|
4755
4763
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4760,12 +4768,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4760
4768
|
var SDK_GLOBAL = 'playerjs';
|
|
4761
4769
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4762
4770
|
|
|
4763
|
-
var Streamable =
|
|
4771
|
+
var Streamable =
|
|
4772
|
+
/*#__PURE__*/
|
|
4773
|
+
function (_Component) {
|
|
4764
4774
|
_inherits(Streamable, _Component);
|
|
4765
4775
|
|
|
4766
|
-
var _super = _createSuper(Streamable);
|
|
4767
|
-
|
|
4768
4776
|
function Streamable() {
|
|
4777
|
+
var _getPrototypeOf2;
|
|
4778
|
+
|
|
4769
4779
|
var _this;
|
|
4770
4780
|
|
|
4771
4781
|
_classCallCheck(this, Streamable);
|
|
@@ -4774,7 +4784,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4774
4784
|
args[_key] = arguments[_key];
|
|
4775
4785
|
}
|
|
4776
4786
|
|
|
4777
|
-
_this =
|
|
4787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4778
4788
|
|
|
4779
4789
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4780
4790
|
|
|
@@ -4894,7 +4904,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4894
4904
|
width: '100%',
|
|
4895
4905
|
height: '100%'
|
|
4896
4906
|
};
|
|
4897
|
-
return
|
|
4907
|
+
return _react["default"].createElement("iframe", {
|
|
4898
4908
|
ref: this.ref,
|
|
4899
4909
|
src: "https://streamable.com/o/".concat(id),
|
|
4900
4910
|
frameBorder: "0",
|
|
@@ -4922,7 +4932,7 @@ exports["default"] = _default;
|
|
|
4922
4932
|
});
|
|
4923
4933
|
|
|
4924
4934
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4925
|
-
Streamable_1.Streamable;
|
|
4935
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4926
4936
|
|
|
4927
4937
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4928
4938
|
|
|
@@ -4931,7 +4941,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4931
4941
|
});
|
|
4932
4942
|
exports["default"] = exports.Wistia = void 0;
|
|
4933
4943
|
|
|
4934
|
-
var _react = _interopRequireWildcard(React__default
|
|
4944
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4935
4945
|
|
|
4936
4946
|
|
|
4937
4947
|
|
|
@@ -4955,16 +4965,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4955
4965
|
|
|
4956
4966
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4957
4967
|
|
|
4958
|
-
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); }; }
|
|
4959
|
-
|
|
4960
4968
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4961
4969
|
|
|
4962
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4963
|
-
|
|
4964
|
-
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; } }
|
|
4965
|
-
|
|
4966
4970
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4967
4971
|
|
|
4972
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4973
|
+
|
|
4968
4974
|
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); }
|
|
4969
4975
|
|
|
4970
4976
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4975,48 +4981,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4975
4981
|
var SDK_GLOBAL = 'Wistia';
|
|
4976
4982
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4977
4983
|
|
|
4978
|
-
var Wistia =
|
|
4984
|
+
var Wistia =
|
|
4985
|
+
/*#__PURE__*/
|
|
4986
|
+
function (_Component) {
|
|
4979
4987
|
_inherits(Wistia, _Component);
|
|
4980
4988
|
|
|
4981
|
-
var _super = _createSuper(Wistia);
|
|
4982
|
-
|
|
4983
4989
|
function Wistia() {
|
|
4990
|
+
var _getPrototypeOf2;
|
|
4991
|
+
|
|
4984
4992
|
var _this;
|
|
4985
4993
|
|
|
4986
4994
|
_classCallCheck(this, Wistia);
|
|
4987
4995
|
|
|
4988
|
-
for (var _len = arguments.length,
|
|
4989
|
-
|
|
4996
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4997
|
+
args[_key] = arguments[_key];
|
|
4990
4998
|
}
|
|
4991
4999
|
|
|
4992
|
-
_this =
|
|
5000
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4993
5001
|
|
|
4994
5002
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4995
5003
|
|
|
4996
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4997
|
-
var _this$props;
|
|
4998
|
-
|
|
4999
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5000
|
-
});
|
|
5001
|
-
|
|
5002
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5003
|
-
var _this$props2;
|
|
5004
|
-
|
|
5005
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5006
|
-
});
|
|
5007
|
-
|
|
5008
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5009
|
-
var _this$props3;
|
|
5010
|
-
|
|
5011
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5012
|
-
});
|
|
5013
|
-
|
|
5014
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5015
|
-
var _this$props4;
|
|
5016
|
-
|
|
5017
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5018
|
-
});
|
|
5019
|
-
|
|
5020
5004
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5021
5005
|
_this.callPlayer('mute');
|
|
5022
5006
|
});
|
|
@@ -5038,13 +5022,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5038
5022
|
value: function load(url) {
|
|
5039
5023
|
var _this2 = this;
|
|
5040
5024
|
|
|
5041
|
-
var _this$
|
|
5042
|
-
playing = _this$
|
|
5043
|
-
muted = _this$
|
|
5044
|
-
controls = _this$
|
|
5045
|
-
_onReady = _this$
|
|
5046
|
-
|
|
5047
|
-
|
|
5025
|
+
var _this$props = this.props,
|
|
5026
|
+
playing = _this$props.playing,
|
|
5027
|
+
muted = _this$props.muted,
|
|
5028
|
+
controls = _this$props.controls,
|
|
5029
|
+
_onReady = _this$props.onReady,
|
|
5030
|
+
onPlay = _this$props.onPlay,
|
|
5031
|
+
onPause = _this$props.onPause,
|
|
5032
|
+
onSeek = _this$props.onSeek,
|
|
5033
|
+
onEnded = _this$props.onEnded,
|
|
5034
|
+
config = _this$props.config,
|
|
5035
|
+
onError = _this$props.onError;
|
|
5048
5036
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5049
5037
|
window._wq = window._wq || [];
|
|
5050
5038
|
|
|
@@ -5061,28 +5049,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5061
5049
|
|
|
5062
5050
|
_this2.unbind();
|
|
5063
5051
|
|
|
5064
|
-
_this2.player.bind('play',
|
|
5052
|
+
_this2.player.bind('play', onPlay);
|
|
5065
5053
|
|
|
5066
|
-
_this2.player.bind('pause',
|
|
5054
|
+
_this2.player.bind('pause', onPause);
|
|
5067
5055
|
|
|
5068
|
-
_this2.player.bind('seek',
|
|
5056
|
+
_this2.player.bind('seek', onSeek);
|
|
5069
5057
|
|
|
5070
|
-
_this2.player.bind('end',
|
|
5058
|
+
_this2.player.bind('end', onEnded);
|
|
5071
5059
|
|
|
5072
5060
|
_onReady();
|
|
5073
5061
|
}
|
|
5074
5062
|
});
|
|
5075
5063
|
}, onError);
|
|
5076
5064
|
}
|
|
5077
|
-
}, {
|
|
5078
|
-
key: "unbind",
|
|
5079
|
-
value: function unbind() {
|
|
5080
|
-
this.player.unbind('play', this.onPlay);
|
|
5081
|
-
this.player.unbind('pause', this.onPause);
|
|
5082
|
-
this.player.unbind('seek', this.onSeek);
|
|
5083
|
-
this.player.unbind('end', this.onEnded);
|
|
5084
|
-
} // Proxy methods to prevent listener leaks
|
|
5085
|
-
|
|
5086
5065
|
}, {
|
|
5087
5066
|
key: "play",
|
|
5088
5067
|
value: function play() {
|
|
@@ -5093,6 +5072,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5093
5072
|
value: function pause() {
|
|
5094
5073
|
this.callPlayer('pause');
|
|
5095
5074
|
}
|
|
5075
|
+
}, {
|
|
5076
|
+
key: "unbind",
|
|
5077
|
+
value: function unbind() {
|
|
5078
|
+
var _this$props2 = this.props,
|
|
5079
|
+
onPlay = _this$props2.onPlay,
|
|
5080
|
+
onPause = _this$props2.onPause,
|
|
5081
|
+
onSeek = _this$props2.onSeek,
|
|
5082
|
+
onEnded = _this$props2.onEnded;
|
|
5083
|
+
this.player.unbind('play', onPlay);
|
|
5084
|
+
this.player.unbind('pause', onPause);
|
|
5085
|
+
this.player.unbind('seek', onSeek);
|
|
5086
|
+
this.player.unbind('end', onEnded);
|
|
5087
|
+
}
|
|
5096
5088
|
}, {
|
|
5097
5089
|
key: "stop",
|
|
5098
5090
|
value: function stop() {
|
|
@@ -5138,7 +5130,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5138
5130
|
width: '100%',
|
|
5139
5131
|
height: '100%'
|
|
5140
5132
|
};
|
|
5141
|
-
return
|
|
5133
|
+
return _react["default"].createElement("div", {
|
|
5142
5134
|
key: id,
|
|
5143
5135
|
className: className,
|
|
5144
5136
|
style: style
|
|
@@ -5165,7 +5157,7 @@ exports["default"] = _default;
|
|
|
5165
5157
|
});
|
|
5166
5158
|
|
|
5167
5159
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5168
|
-
Wistia_1.Wistia;
|
|
5160
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5169
5161
|
|
|
5170
5162
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5171
5163
|
|
|
@@ -5174,7 +5166,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5174
5166
|
});
|
|
5175
5167
|
exports["default"] = exports.Twitch = void 0;
|
|
5176
5168
|
|
|
5177
|
-
var _react = _interopRequireWildcard(React__default
|
|
5169
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5178
5170
|
|
|
5179
5171
|
|
|
5180
5172
|
|
|
@@ -5198,16 +5190,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5198
5190
|
|
|
5199
5191
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5200
5192
|
|
|
5201
|
-
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); }; }
|
|
5202
|
-
|
|
5203
5193
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5204
5194
|
|
|
5205
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5206
|
-
|
|
5207
|
-
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; } }
|
|
5208
|
-
|
|
5209
5195
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5210
5196
|
|
|
5197
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5198
|
+
|
|
5211
5199
|
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); }
|
|
5212
5200
|
|
|
5213
5201
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5220,12 +5208,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5220
5208
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5221
5209
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5222
5210
|
|
|
5223
|
-
var Twitch =
|
|
5211
|
+
var Twitch =
|
|
5212
|
+
/*#__PURE__*/
|
|
5213
|
+
function (_Component) {
|
|
5224
5214
|
_inherits(Twitch, _Component);
|
|
5225
5215
|
|
|
5226
|
-
var _super = _createSuper(Twitch);
|
|
5227
|
-
|
|
5228
5216
|
function Twitch() {
|
|
5217
|
+
var _getPrototypeOf2;
|
|
5218
|
+
|
|
5229
5219
|
var _this;
|
|
5230
5220
|
|
|
5231
5221
|
_classCallCheck(this, Twitch);
|
|
@@ -5234,7 +5224,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5234
5224
|
args[_key] = arguments[_key];
|
|
5235
5225
|
}
|
|
5236
5226
|
|
|
5237
|
-
_this =
|
|
5227
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5238
5228
|
|
|
5239
5229
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5240
5230
|
|
|
@@ -5355,7 +5345,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5355
5345
|
width: '100%',
|
|
5356
5346
|
height: '100%'
|
|
5357
5347
|
};
|
|
5358
|
-
return
|
|
5348
|
+
return _react["default"].createElement("div", {
|
|
5359
5349
|
style: style,
|
|
5360
5350
|
id: this.playerID
|
|
5361
5351
|
});
|
|
@@ -5381,7 +5371,7 @@ exports["default"] = _default;
|
|
|
5381
5371
|
});
|
|
5382
5372
|
|
|
5383
5373
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5384
|
-
Twitch_1.Twitch;
|
|
5374
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5385
5375
|
|
|
5386
5376
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5387
5377
|
|
|
@@ -5390,7 +5380,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5390
5380
|
});
|
|
5391
5381
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5392
5382
|
|
|
5393
|
-
var _react = _interopRequireWildcard(React__default
|
|
5383
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5394
5384
|
|
|
5395
5385
|
|
|
5396
5386
|
|
|
@@ -5408,15 +5398,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5408
5398
|
|
|
5409
5399
|
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; }
|
|
5410
5400
|
|
|
5411
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5401
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5412
5402
|
|
|
5413
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5403
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5414
5404
|
|
|
5415
|
-
function
|
|
5416
|
-
|
|
5417
|
-
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; }
|
|
5418
|
-
|
|
5419
|
-
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; }
|
|
5405
|
+
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; }
|
|
5420
5406
|
|
|
5421
5407
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5422
5408
|
|
|
@@ -5426,16 +5412,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5426
5412
|
|
|
5427
5413
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5428
5414
|
|
|
5429
|
-
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); }; }
|
|
5430
|
-
|
|
5431
5415
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5432
5416
|
|
|
5433
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5434
|
-
|
|
5435
|
-
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; } }
|
|
5436
|
-
|
|
5437
5417
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5438
5418
|
|
|
5419
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5420
|
+
|
|
5439
5421
|
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); }
|
|
5440
5422
|
|
|
5441
5423
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5447,12 +5429,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5447
5429
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5448
5430
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5449
5431
|
|
|
5450
|
-
var DailyMotion =
|
|
5432
|
+
var DailyMotion =
|
|
5433
|
+
/*#__PURE__*/
|
|
5434
|
+
function (_Component) {
|
|
5451
5435
|
_inherits(DailyMotion, _Component);
|
|
5452
5436
|
|
|
5453
|
-
var _super = _createSuper(DailyMotion);
|
|
5454
|
-
|
|
5455
5437
|
function DailyMotion() {
|
|
5438
|
+
var _getPrototypeOf2;
|
|
5439
|
+
|
|
5456
5440
|
var _this;
|
|
5457
5441
|
|
|
5458
5442
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5461,7 +5445,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5461
5445
|
args[_key] = arguments[_key];
|
|
5462
5446
|
}
|
|
5463
5447
|
|
|
5464
|
-
_this =
|
|
5448
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5465
5449
|
|
|
5466
5450
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5467
5451
|
|
|
@@ -5590,9 +5574,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5590
5574
|
height: '100%',
|
|
5591
5575
|
display: display
|
|
5592
5576
|
};
|
|
5593
|
-
return
|
|
5577
|
+
return _react["default"].createElement("div", {
|
|
5594
5578
|
style: style
|
|
5595
|
-
},
|
|
5579
|
+
}, _react["default"].createElement("div", {
|
|
5596
5580
|
ref: this.ref
|
|
5597
5581
|
}));
|
|
5598
5582
|
}
|
|
@@ -5617,7 +5601,7 @@ exports["default"] = _default;
|
|
|
5617
5601
|
});
|
|
5618
5602
|
|
|
5619
5603
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5620
|
-
DailyMotion_1.DailyMotion;
|
|
5604
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5621
5605
|
|
|
5622
5606
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5623
5607
|
|
|
@@ -5626,7 +5610,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5626
5610
|
});
|
|
5627
5611
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5628
5612
|
|
|
5629
|
-
var _react = _interopRequireWildcard(React__default
|
|
5613
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5630
5614
|
|
|
5631
5615
|
|
|
5632
5616
|
|
|
@@ -5650,16 +5634,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5650
5634
|
|
|
5651
5635
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5652
5636
|
|
|
5653
|
-
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); }; }
|
|
5654
|
-
|
|
5655
5637
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5656
5638
|
|
|
5657
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5658
|
-
|
|
5659
|
-
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; } }
|
|
5660
|
-
|
|
5661
5639
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5662
5640
|
|
|
5641
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5642
|
+
|
|
5663
5643
|
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); }
|
|
5664
5644
|
|
|
5665
5645
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5670,12 +5650,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5670
5650
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5671
5651
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5672
5652
|
|
|
5673
|
-
var Mixcloud =
|
|
5653
|
+
var Mixcloud =
|
|
5654
|
+
/*#__PURE__*/
|
|
5655
|
+
function (_Component) {
|
|
5674
5656
|
_inherits(Mixcloud, _Component);
|
|
5675
5657
|
|
|
5676
|
-
var _super = _createSuper(Mixcloud);
|
|
5677
|
-
|
|
5678
5658
|
function Mixcloud() {
|
|
5659
|
+
var _getPrototypeOf2;
|
|
5660
|
+
|
|
5679
5661
|
var _this;
|
|
5680
5662
|
|
|
5681
5663
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5684,7 +5666,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5684
5666
|
args[_key] = arguments[_key];
|
|
5685
5667
|
}
|
|
5686
5668
|
|
|
5687
|
-
_this =
|
|
5669
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5688
5670
|
|
|
5689
5671
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5690
5672
|
|
|
@@ -5787,7 +5769,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5787
5769
|
})); // We have to give the iframe a key here to prevent a
|
|
5788
5770
|
// weird dialog appearing when loading a new track
|
|
5789
5771
|
|
|
5790
|
-
return
|
|
5772
|
+
return _react["default"].createElement("iframe", {
|
|
5791
5773
|
key: id,
|
|
5792
5774
|
ref: this.ref,
|
|
5793
5775
|
style: style,
|
|
@@ -5816,7 +5798,7 @@ exports["default"] = _default;
|
|
|
5816
5798
|
});
|
|
5817
5799
|
|
|
5818
5800
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5819
|
-
Mixcloud_1.Mixcloud;
|
|
5801
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5820
5802
|
|
|
5821
5803
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5822
5804
|
|
|
@@ -5825,7 +5807,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5825
5807
|
});
|
|
5826
5808
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5827
5809
|
|
|
5828
|
-
var _react = _interopRequireWildcard(React__default
|
|
5810
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5829
5811
|
|
|
5830
5812
|
|
|
5831
5813
|
|
|
@@ -5847,33 +5829,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5847
5829
|
|
|
5848
5830
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5849
5831
|
|
|
5850
|
-
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); }; }
|
|
5851
|
-
|
|
5852
5832
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5853
5833
|
|
|
5854
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5855
|
-
|
|
5856
|
-
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; } }
|
|
5857
|
-
|
|
5858
5834
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5859
5835
|
|
|
5836
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5837
|
+
|
|
5860
5838
|
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); }
|
|
5861
5839
|
|
|
5862
5840
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5863
5841
|
|
|
5864
5842
|
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; }
|
|
5865
5843
|
|
|
5866
|
-
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; } } }; }
|
|
5867
|
-
|
|
5868
|
-
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); }
|
|
5869
|
-
|
|
5870
|
-
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; }
|
|
5871
|
-
|
|
5872
5844
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5873
5845
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5874
5846
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5875
5847
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5876
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5848
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5877
5849
|
var HLS_GLOBAL = 'Hls';
|
|
5878
5850
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5879
5851
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5882,11 +5854,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5882
5854
|
|
|
5883
5855
|
function canPlay(url) {
|
|
5884
5856
|
if (url instanceof Array) {
|
|
5885
|
-
var
|
|
5886
|
-
|
|
5857
|
+
var _iteratorNormalCompletion = true;
|
|
5858
|
+
var _didIteratorError = false;
|
|
5859
|
+
var _iteratorError = undefined;
|
|
5887
5860
|
|
|
5888
5861
|
try {
|
|
5889
|
-
for (_iterator.
|
|
5862
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5890
5863
|
var item = _step.value;
|
|
5891
5864
|
|
|
5892
5865
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5898,9 +5871,18 @@ function canPlay(url) {
|
|
|
5898
5871
|
}
|
|
5899
5872
|
}
|
|
5900
5873
|
} catch (err) {
|
|
5901
|
-
|
|
5874
|
+
_didIteratorError = true;
|
|
5875
|
+
_iteratorError = err;
|
|
5902
5876
|
} finally {
|
|
5903
|
-
|
|
5877
|
+
try {
|
|
5878
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5879
|
+
_iterator["return"]();
|
|
5880
|
+
}
|
|
5881
|
+
} finally {
|
|
5882
|
+
if (_didIteratorError) {
|
|
5883
|
+
throw _iteratorError;
|
|
5884
|
+
}
|
|
5885
|
+
}
|
|
5904
5886
|
}
|
|
5905
5887
|
|
|
5906
5888
|
return false;
|
|
@@ -5924,12 +5906,14 @@ function canEnablePIP(url) {
|
|
|
5924
5906
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5925
5907
|
}
|
|
5926
5908
|
|
|
5927
|
-
var FilePlayer =
|
|
5909
|
+
var FilePlayer =
|
|
5910
|
+
/*#__PURE__*/
|
|
5911
|
+
function (_Component) {
|
|
5928
5912
|
_inherits(FilePlayer, _Component);
|
|
5929
5913
|
|
|
5930
|
-
var _super = _createSuper(FilePlayer);
|
|
5931
|
-
|
|
5932
5914
|
function FilePlayer() {
|
|
5915
|
+
var _getPrototypeOf2;
|
|
5916
|
+
|
|
5933
5917
|
var _this;
|
|
5934
5918
|
|
|
5935
5919
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5938,7 +5922,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5938
5922
|
_args[_key] = arguments[_key];
|
|
5939
5923
|
}
|
|
5940
5924
|
|
|
5941
|
-
_this =
|
|
5925
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5942
5926
|
|
|
5943
5927
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5944
5928
|
var _this$props;
|
|
@@ -6025,19 +6009,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6025
6009
|
|
|
6026
6010
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6027
6011
|
if (typeof source === 'string') {
|
|
6028
|
-
return
|
|
6012
|
+
return _react["default"].createElement("source", {
|
|
6029
6013
|
key: index,
|
|
6030
6014
|
src: source
|
|
6031
6015
|
});
|
|
6032
6016
|
}
|
|
6033
6017
|
|
|
6034
|
-
return
|
|
6018
|
+
return _react["default"].createElement("source", _extends({
|
|
6035
6019
|
key: index
|
|
6036
6020
|
}, source));
|
|
6037
6021
|
});
|
|
6038
6022
|
|
|
6039
6023
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6040
|
-
return
|
|
6024
|
+
return _react["default"].createElement("track", _extends({
|
|
6041
6025
|
key: index
|
|
6042
6026
|
}, track));
|
|
6043
6027
|
});
|
|
@@ -6075,10 +6059,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6075
6059
|
key: "componentWillUnmount",
|
|
6076
6060
|
value: function componentWillUnmount() {
|
|
6077
6061
|
this.removeListeners(this.player);
|
|
6078
|
-
|
|
6079
|
-
if (this.hls) {
|
|
6080
|
-
this.hls.destroy();
|
|
6081
|
-
}
|
|
6082
6062
|
}
|
|
6083
6063
|
}, {
|
|
6084
6064
|
key: "addListeners",
|
|
@@ -6209,6 +6189,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6209
6189
|
value: function stop() {
|
|
6210
6190
|
this.player.removeAttribute('src');
|
|
6211
6191
|
|
|
6192
|
+
if (this.hls) {
|
|
6193
|
+
this.hls.destroy();
|
|
6194
|
+
}
|
|
6195
|
+
|
|
6212
6196
|
if (this.dash) {
|
|
6213
6197
|
this.dash.reset();
|
|
6214
6198
|
}
|
|
@@ -6320,7 +6304,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6320
6304
|
width: width === 'auto' ? width : '100%',
|
|
6321
6305
|
height: height === 'auto' ? height : '100%'
|
|
6322
6306
|
};
|
|
6323
|
-
return
|
|
6307
|
+
return _react["default"].createElement(Element, _extends({
|
|
6324
6308
|
ref: this.ref,
|
|
6325
6309
|
src: this.getSource(url),
|
|
6326
6310
|
style: style,
|
|
@@ -6350,7 +6334,7 @@ exports["default"] = _default;
|
|
|
6350
6334
|
});
|
|
6351
6335
|
|
|
6352
6336
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6353
|
-
FilePlayer_1.FilePlayer;
|
|
6337
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6354
6338
|
|
|
6355
6339
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6356
6340
|
|
|
@@ -6392,7 +6376,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6392
6376
|
});
|
|
6393
6377
|
exports["default"] = void 0;
|
|
6394
6378
|
|
|
6395
|
-
var _react = _interopRequireWildcard(React__default
|
|
6379
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6396
6380
|
|
|
6397
6381
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6398
6382
|
|
|
@@ -6410,16 +6394,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6410
6394
|
|
|
6411
6395
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6412
6396
|
|
|
6413
|
-
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); }; }
|
|
6414
|
-
|
|
6415
6397
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6416
6398
|
|
|
6417
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6418
|
-
|
|
6419
|
-
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; } }
|
|
6420
|
-
|
|
6421
6399
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6422
6400
|
|
|
6401
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6402
|
+
|
|
6423
6403
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6424
6404
|
|
|
6425
6405
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6428,12 +6408,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6428
6408
|
|
|
6429
6409
|
var ICON_SIZE = '64px';
|
|
6430
6410
|
|
|
6431
|
-
var Preview =
|
|
6411
|
+
var Preview =
|
|
6412
|
+
/*#__PURE__*/
|
|
6413
|
+
function (_Component) {
|
|
6432
6414
|
_inherits(Preview, _Component);
|
|
6433
6415
|
|
|
6434
|
-
var _super = _createSuper(Preview);
|
|
6435
|
-
|
|
6436
6416
|
function Preview() {
|
|
6417
|
+
var _getPrototypeOf2;
|
|
6418
|
+
|
|
6437
6419
|
var _this;
|
|
6438
6420
|
|
|
6439
6421
|
_classCallCheck(this, Preview);
|
|
@@ -6442,7 +6424,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6442
6424
|
args[_key] = arguments[_key];
|
|
6443
6425
|
}
|
|
6444
6426
|
|
|
6445
|
-
_this =
|
|
6427
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6446
6428
|
|
|
6447
6429
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6448
6430
|
|
|
@@ -6540,15 +6522,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6540
6522
|
}
|
|
6541
6523
|
};
|
|
6542
6524
|
|
|
6543
|
-
var defaultPlayIcon =
|
|
6525
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6544
6526
|
style: styles.shadow,
|
|
6545
6527
|
className: "react-player__shadow"
|
|
6546
|
-
},
|
|
6528
|
+
}, _react["default"].createElement("div", {
|
|
6547
6529
|
style: styles.playIcon,
|
|
6548
6530
|
className: "react-player__play-icon"
|
|
6549
6531
|
}));
|
|
6550
6532
|
|
|
6551
|
-
return
|
|
6533
|
+
return _react["default"].createElement("div", {
|
|
6552
6534
|
style: styles.preview,
|
|
6553
6535
|
className: "react-player__preview",
|
|
6554
6536
|
onClick: onClick
|
|
@@ -6571,7 +6553,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6571
6553
|
});
|
|
6572
6554
|
exports["default"] = renderPreloadPlayers;
|
|
6573
6555
|
|
|
6574
|
-
var _react = _interopRequireDefault(React__default
|
|
6556
|
+
var _react = _interopRequireDefault(React__default);
|
|
6575
6557
|
|
|
6576
6558
|
var _Player = _interopRequireDefault(Player_1);
|
|
6577
6559
|
|
|
@@ -6585,12 +6567,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6585
6567
|
|
|
6586
6568
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6587
6569
|
|
|
6588
|
-
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; } } }; }
|
|
6589
|
-
|
|
6590
|
-
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); }
|
|
6591
|
-
|
|
6592
|
-
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; }
|
|
6593
|
-
|
|
6594
6570
|
var PRELOAD_PLAYERS = [{
|
|
6595
6571
|
Player: YouTube_1.YouTube,
|
|
6596
6572
|
configKey: 'youtube',
|
|
@@ -6611,16 +6587,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6611
6587
|
|
|
6612
6588
|
function renderPreloadPlayers(url, controls, config) {
|
|
6613
6589
|
var players = [];
|
|
6614
|
-
|
|
6615
|
-
var
|
|
6616
|
-
|
|
6590
|
+
var _iteratorNormalCompletion = true;
|
|
6591
|
+
var _didIteratorError = false;
|
|
6592
|
+
var _iteratorError = undefined;
|
|
6617
6593
|
|
|
6618
6594
|
try {
|
|
6619
|
-
for (_iterator.
|
|
6595
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6620
6596
|
var player = _step.value;
|
|
6621
6597
|
|
|
6622
6598
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6623
|
-
players.push(
|
|
6599
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6624
6600
|
key: player.Player.displayName,
|
|
6625
6601
|
activePlayer: player.Player,
|
|
6626
6602
|
url: player.url,
|
|
@@ -6632,9 +6608,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6632
6608
|
}
|
|
6633
6609
|
}
|
|
6634
6610
|
} catch (err) {
|
|
6635
|
-
|
|
6611
|
+
_didIteratorError = true;
|
|
6612
|
+
_iteratorError = err;
|
|
6636
6613
|
} finally {
|
|
6637
|
-
|
|
6614
|
+
try {
|
|
6615
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6616
|
+
_iterator["return"]();
|
|
6617
|
+
}
|
|
6618
|
+
} finally {
|
|
6619
|
+
if (_didIteratorError) {
|
|
6620
|
+
throw _iteratorError;
|
|
6621
|
+
}
|
|
6622
|
+
}
|
|
6638
6623
|
}
|
|
6639
6624
|
|
|
6640
6625
|
return players;
|
|
@@ -6710,7 +6695,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6710
6695
|
});
|
|
6711
6696
|
exports["default"] = void 0;
|
|
6712
6697
|
|
|
6713
|
-
var _react = _interopRequireWildcard(React__default
|
|
6698
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6714
6699
|
|
|
6715
6700
|
|
|
6716
6701
|
|
|
@@ -6758,17 +6743,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6758
6743
|
|
|
6759
6744
|
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); }
|
|
6760
6745
|
|
|
6761
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6762
|
-
|
|
6763
|
-
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."); }
|
|
6764
|
-
|
|
6765
|
-
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); }
|
|
6746
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6766
6747
|
|
|
6767
|
-
function
|
|
6748
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6768
6749
|
|
|
6769
|
-
function
|
|
6750
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6770
6751
|
|
|
6771
|
-
function
|
|
6752
|
+
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; } }
|
|
6772
6753
|
|
|
6773
6754
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6774
6755
|
|
|
@@ -6776,16 +6757,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6776
6757
|
|
|
6777
6758
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6778
6759
|
|
|
6779
|
-
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); }; }
|
|
6780
|
-
|
|
6781
6760
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6782
6761
|
|
|
6783
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6784
|
-
|
|
6785
|
-
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; } }
|
|
6786
|
-
|
|
6787
6762
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6788
6763
|
|
|
6764
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6765
|
+
|
|
6789
6766
|
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); }
|
|
6790
6767
|
|
|
6791
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6795,12 +6772,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6795
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6796
6773
|
var customPlayers = [];
|
|
6797
6774
|
|
|
6798
|
-
var ReactPlayer =
|
|
6775
|
+
var ReactPlayer =
|
|
6776
|
+
/*#__PURE__*/
|
|
6777
|
+
function (_Component) {
|
|
6799
6778
|
_inherits(ReactPlayer, _Component);
|
|
6800
6779
|
|
|
6801
|
-
var _super = _createSuper(ReactPlayer);
|
|
6802
|
-
|
|
6803
6780
|
function ReactPlayer() {
|
|
6781
|
+
var _getPrototypeOf2;
|
|
6782
|
+
|
|
6804
6783
|
var _this;
|
|
6805
6784
|
|
|
6806
6785
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6809,7 +6788,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6809
6788
|
args[_key] = arguments[_key];
|
|
6810
6789
|
}
|
|
6811
6790
|
|
|
6812
|
-
_this =
|
|
6791
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6813
6792
|
|
|
6814
6793
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6815
6794
|
|
|
@@ -6920,7 +6899,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6920
6899
|
key: "renderActivePlayer",
|
|
6921
6900
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6922
6901
|
if (!url) return null;
|
|
6923
|
-
return
|
|
6902
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6924
6903
|
key: activePlayer.displayName,
|
|
6925
6904
|
ref: this.activePlayerRef,
|
|
6926
6905
|
config: this.config,
|
|
@@ -6957,14 +6936,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6957
6936
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6958
6937
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6959
6938
|
|
|
6960
|
-
var preview =
|
|
6939
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6961
6940
|
url: url,
|
|
6962
6941
|
light: light,
|
|
6963
6942
|
playIcon: playIcon,
|
|
6964
6943
|
onClick: this.handleClickPreview
|
|
6965
6944
|
});
|
|
6966
6945
|
|
|
6967
|
-
return
|
|
6946
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6968
6947
|
ref: this.wrapperRef,
|
|
6969
6948
|
style: _objectSpread({}, style, {
|
|
6970
6949
|
width: width,
|
|
@@ -7024,20 +7003,20 @@ var Audio = function Audio(_ref) {
|
|
|
7024
7003
|
var node = _ref.node;
|
|
7025
7004
|
|
|
7026
7005
|
if (node.uploadAudio) {
|
|
7027
|
-
return React__default
|
|
7006
|
+
return React__default.createElement(
|
|
7028
7007
|
'div',
|
|
7029
7008
|
{ className: 'audio d-block text-center mb-3' },
|
|
7030
|
-
React__default
|
|
7009
|
+
React__default.createElement(
|
|
7031
7010
|
'audio',
|
|
7032
7011
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7033
|
-
React__default
|
|
7034
|
-
React__default
|
|
7012
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7013
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7035
7014
|
'Your browser does not support the audio element.'
|
|
7036
7015
|
),
|
|
7037
|
-
node.caption && React__default
|
|
7016
|
+
node.caption && React__default.createElement(
|
|
7038
7017
|
'p',
|
|
7039
7018
|
{ style: { fontSize: '.9rem' } },
|
|
7040
|
-
React__default
|
|
7019
|
+
React__default.createElement(
|
|
7041
7020
|
'em',
|
|
7042
7021
|
null,
|
|
7043
7022
|
node.caption
|
|
@@ -7047,15 +7026,15 @@ var Audio = function Audio(_ref) {
|
|
|
7047
7026
|
} else if (node.audioFilePth) {
|
|
7048
7027
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7049
7028
|
if (hostname === 'embeds.audioboom.com') {
|
|
7050
|
-
return React__default
|
|
7029
|
+
return React__default.createElement(
|
|
7051
7030
|
'div',
|
|
7052
7031
|
null,
|
|
7053
|
-
React__default
|
|
7032
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7054
7033
|
' ',
|
|
7055
|
-
node.caption && React__default
|
|
7034
|
+
node.caption && React__default.createElement(
|
|
7056
7035
|
'p',
|
|
7057
7036
|
{ style: { fontSize: '.9rem' } },
|
|
7058
|
-
React__default
|
|
7037
|
+
React__default.createElement(
|
|
7059
7038
|
'em',
|
|
7060
7039
|
null,
|
|
7061
7040
|
node.caption
|
|
@@ -7063,14 +7042,14 @@ var Audio = function Audio(_ref) {
|
|
|
7063
7042
|
)
|
|
7064
7043
|
);
|
|
7065
7044
|
}
|
|
7066
|
-
return React__default
|
|
7045
|
+
return React__default.createElement(
|
|
7067
7046
|
'div',
|
|
7068
7047
|
{ className: 'audio' },
|
|
7069
|
-
React__default
|
|
7070
|
-
node.caption && React__default
|
|
7048
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7049
|
+
node.caption && React__default.createElement(
|
|
7071
7050
|
'p',
|
|
7072
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7073
|
-
React__default
|
|
7052
|
+
React__default.createElement(
|
|
7074
7053
|
'em',
|
|
7075
7054
|
null,
|
|
7076
7055
|
node.caption
|
|
@@ -7088,34 +7067,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7088
7067
|
var profileImage = arguments[6];
|
|
7089
7068
|
|
|
7090
7069
|
if (authorName && authorURL) {
|
|
7091
|
-
return React__default
|
|
7070
|
+
return React__default.createElement(
|
|
7092
7071
|
'span',
|
|
7093
7072
|
null,
|
|
7094
|
-
React__default
|
|
7073
|
+
React__default.createElement(
|
|
7095
7074
|
'a',
|
|
7096
7075
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7097
7076
|
authorName
|
|
7098
7077
|
),
|
|
7099
|
-
React__default
|
|
7078
|
+
React__default.createElement(
|
|
7100
7079
|
reactBootstrap.Card,
|
|
7101
7080
|
{ className: 'author-details-card-' + index },
|
|
7102
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7103
7082
|
reactBootstrap.Row,
|
|
7104
7083
|
null,
|
|
7105
|
-
profileImage && React__default
|
|
7084
|
+
profileImage && React__default.createElement(
|
|
7106
7085
|
reactBootstrap.Col,
|
|
7107
7086
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7108
|
-
React__default
|
|
7087
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7109
7088
|
),
|
|
7110
|
-
React__default
|
|
7089
|
+
React__default.createElement(
|
|
7111
7090
|
reactBootstrap.Col,
|
|
7112
7091
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7113
|
-
React__default
|
|
7092
|
+
React__default.createElement(
|
|
7114
7093
|
'div',
|
|
7115
7094
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7116
7095
|
authorName
|
|
7117
7096
|
),
|
|
7118
|
-
React__default
|
|
7097
|
+
React__default.createElement(
|
|
7119
7098
|
'p',
|
|
7120
7099
|
null,
|
|
7121
7100
|
biography
|
|
@@ -7123,7 +7102,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7123
7102
|
)
|
|
7124
7103
|
)
|
|
7125
7104
|
),
|
|
7126
|
-
React__default
|
|
7105
|
+
React__default.createElement(
|
|
7127
7106
|
'style',
|
|
7128
7107
|
{ jsx: 'true' },
|
|
7129
7108
|
'\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 '
|
|
@@ -7131,7 +7110,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7131
7110
|
length !== index + 1 && ' , '
|
|
7132
7111
|
);
|
|
7133
7112
|
} else if (authorName) {
|
|
7134
|
-
return React__default
|
|
7113
|
+
return React__default.createElement(
|
|
7135
7114
|
'span',
|
|
7136
7115
|
{ key: index },
|
|
7137
7116
|
authorName,
|
|
@@ -7163,7 +7142,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7163
7142
|
}
|
|
7164
7143
|
});
|
|
7165
7144
|
|
|
7166
|
-
var builder = index.imageUrlBuilder(client);
|
|
7145
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7167
7146
|
function urlFor(source) {
|
|
7168
7147
|
return builder.image(source);
|
|
7169
7148
|
}
|
|
@@ -7238,7 +7217,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7238
7217
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7239
7218
|
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
|
|
7240
7219
|
} else {
|
|
7241
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7220
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7242
7221
|
}
|
|
7243
7222
|
}
|
|
7244
7223
|
});
|
|
@@ -7298,7 +7277,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7298
7277
|
//Small pause before starting next video
|
|
7299
7278
|
setTimeout(function () {
|
|
7300
7279
|
//Youtube API to start video playing automatically
|
|
7301
|
-
var id = index$
|
|
7280
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7302
7281
|
event.target.loadVideoById(id);
|
|
7303
7282
|
}, 1500);
|
|
7304
7283
|
};
|
|
@@ -7408,44 +7387,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7408
7387
|
}
|
|
7409
7388
|
};
|
|
7410
7389
|
|
|
7411
|
-
return React__default
|
|
7390
|
+
return React__default.createElement(
|
|
7412
7391
|
'div',
|
|
7413
7392
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7414
|
-
React__default
|
|
7393
|
+
React__default.createElement(
|
|
7415
7394
|
'div',
|
|
7416
7395
|
{ className: 'mt-2 mb-5' },
|
|
7417
|
-
series && React__default
|
|
7396
|
+
series && React__default.createElement(
|
|
7418
7397
|
'div',
|
|
7419
7398
|
{ style: { fontSize: '0.9rem' } },
|
|
7420
7399
|
article.title,
|
|
7421
7400
|
' - Episode ',
|
|
7422
7401
|
series
|
|
7423
7402
|
),
|
|
7424
|
-
Videos[series - 1] && React__default
|
|
7403
|
+
Videos[series - 1] && React__default.createElement(
|
|
7425
7404
|
'h1',
|
|
7426
7405
|
{ className: 'mb-3' },
|
|
7427
7406
|
Videos[series - 1].title
|
|
7428
7407
|
),
|
|
7429
|
-
React__default
|
|
7408
|
+
React__default.createElement(
|
|
7430
7409
|
'div',
|
|
7431
7410
|
null,
|
|
7432
7411
|
moment.moment(article.published).format('LL')
|
|
7433
7412
|
),
|
|
7434
|
-
React__default
|
|
7413
|
+
React__default.createElement(
|
|
7435
7414
|
'div',
|
|
7436
7415
|
{ className: 'mb-3' },
|
|
7437
7416
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7438
|
-
return React__default
|
|
7417
|
+
return React__default.createElement(
|
|
7439
7418
|
'span',
|
|
7440
7419
|
{ key: index },
|
|
7441
7420
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7442
7421
|
);
|
|
7443
7422
|
})
|
|
7444
7423
|
),
|
|
7445
|
-
React__default
|
|
7424
|
+
React__default.createElement(
|
|
7446
7425
|
'p',
|
|
7447
7426
|
null,
|
|
7448
|
-
React__default
|
|
7427
|
+
React__default.createElement(SocialShare, {
|
|
7449
7428
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7450
7429
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7451
7430
|
shareVia: meta.shareVia,
|
|
@@ -7460,22 +7439,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7460
7439
|
hideFacebook: meta.hideFBShare
|
|
7461
7440
|
})
|
|
7462
7441
|
),
|
|
7463
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7442
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7464
7443
|
'p',
|
|
7465
7444
|
{ className: 'mb-3' },
|
|
7466
|
-
React__default
|
|
7445
|
+
React__default.createElement(
|
|
7467
7446
|
'em',
|
|
7468
7447
|
null,
|
|
7469
7448
|
Videos[series - 1].intro
|
|
7470
7449
|
)
|
|
7471
7450
|
)
|
|
7472
7451
|
),
|
|
7473
|
-
React__default
|
|
7452
|
+
React__default.createElement(
|
|
7474
7453
|
'div',
|
|
7475
7454
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7476
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7455
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7477
7456
|
className: 'fluid-iframe',
|
|
7478
|
-
videoId: index$
|
|
7457
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7479
7458
|
opts: opts,
|
|
7480
7459
|
onReady: handleOnReady,
|
|
7481
7460
|
onPlay: handleOnPlay,
|
|
@@ -7484,10 +7463,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7484
7463
|
return handleOnEnd(e);
|
|
7485
7464
|
}
|
|
7486
7465
|
}),
|
|
7487
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7488
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7489
|
-
React__default
|
|
7490
|
-
series && React__default
|
|
7466
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7467
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7468
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7469
|
+
series && React__default.createElement(
|
|
7491
7470
|
'div',
|
|
7492
7471
|
{
|
|
7493
7472
|
className: 'vid-series',
|
|
@@ -7497,10 +7476,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7476
|
maxHeight: '100%',
|
|
7498
7477
|
paddingBottom: '0'
|
|
7499
7478
|
} },
|
|
7500
|
-
React__default
|
|
7479
|
+
React__default.createElement(
|
|
7501
7480
|
'p',
|
|
7502
7481
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7503
|
-
React__default
|
|
7482
|
+
React__default.createElement(
|
|
7504
7483
|
'b',
|
|
7505
7484
|
{ style: { fontSize: '1.25em' } },
|
|
7506
7485
|
'Now Playing:'
|
|
@@ -7508,16 +7487,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7508
7487
|
' ',
|
|
7509
7488
|
seriesData[series ? series - 1 : 0].title
|
|
7510
7489
|
),
|
|
7511
|
-
vidUrl && React__default
|
|
7490
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7512
7491
|
)
|
|
7513
7492
|
),
|
|
7514
|
-
React__default
|
|
7515
|
-
React__default
|
|
7493
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7494
|
+
React__default.createElement(
|
|
7516
7495
|
'div',
|
|
7517
7496
|
{ className: 'vid-text' },
|
|
7518
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7497
|
+
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()))
|
|
7519
7498
|
),
|
|
7520
|
-
React__default
|
|
7499
|
+
React__default.createElement(
|
|
7521
7500
|
'style',
|
|
7522
7501
|
{ jsx: 'true' },
|
|
7523
7502
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7526,13 +7505,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7526
7505
|
};
|
|
7527
7506
|
|
|
7528
7507
|
var Poll = function Poll(_ref) {
|
|
7529
|
-
var node = _ref.node
|
|
7530
|
-
_ref.client
|
|
7531
|
-
_ref.pageview
|
|
7532
|
-
_ref.videoAccountIDs
|
|
7533
|
-
|
|
7534
|
-
_ref.showVotes
|
|
7535
|
-
|
|
7508
|
+
var node = _ref.node,
|
|
7509
|
+
client = _ref.client,
|
|
7510
|
+
pageview = _ref.pageview,
|
|
7511
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7512
|
+
onVote = _ref.onVote,
|
|
7513
|
+
_ref$showVotes = _ref.showVotes,
|
|
7514
|
+
getSerializers = _ref.getSerializers;
|
|
7536
7515
|
|
|
7537
7516
|
var _useState = React.useState(null),
|
|
7538
7517
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7570,67 +7549,67 @@ var Poll = function Poll(_ref) {
|
|
|
7570
7549
|
return acc;
|
|
7571
7550
|
}
|
|
7572
7551
|
}, 0);
|
|
7573
|
-
return React__default
|
|
7574
|
-
React__default
|
|
7552
|
+
return React__default.createElement(
|
|
7553
|
+
React__default.Fragment,
|
|
7575
7554
|
null,
|
|
7576
|
-
question && React__default
|
|
7555
|
+
question && React__default.createElement(
|
|
7577
7556
|
'p',
|
|
7578
7557
|
{ className: 'font-weight-bold' },
|
|
7579
7558
|
question
|
|
7580
7559
|
),
|
|
7581
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7560
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7582
7561
|
'form',
|
|
7583
7562
|
{ onSubmit: function onSubmit(e) {
|
|
7584
7563
|
return onSubmitPoll(e);
|
|
7585
7564
|
} },
|
|
7586
7565
|
choices && choices.map(function (choice) {
|
|
7587
|
-
return React__default
|
|
7566
|
+
return React__default.createElement(
|
|
7588
7567
|
'div',
|
|
7589
7568
|
{ key: choice._key },
|
|
7590
|
-
React__default
|
|
7569
|
+
React__default.createElement(
|
|
7591
7570
|
'label',
|
|
7592
7571
|
{ className: 'pl-2' },
|
|
7593
|
-
React__default
|
|
7572
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7594
7573
|
return setSelectedChoice(e.target.value);
|
|
7595
7574
|
} }),
|
|
7596
7575
|
' ' + choice.choiceText
|
|
7597
7576
|
)
|
|
7598
7577
|
);
|
|
7599
7578
|
}),
|
|
7600
|
-
React__default
|
|
7579
|
+
React__default.createElement(
|
|
7601
7580
|
reactBootstrap.Button,
|
|
7602
7581
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7603
7582
|
'Vote'
|
|
7604
7583
|
)
|
|
7605
7584
|
),
|
|
7606
|
-
React__default
|
|
7585
|
+
React__default.createElement(
|
|
7607
7586
|
'div',
|
|
7608
7587
|
{ className: 'progress-container' },
|
|
7609
7588
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7610
7589
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7611
|
-
return React__default
|
|
7590
|
+
return React__default.createElement(
|
|
7612
7591
|
'div',
|
|
7613
7592
|
{ key: choice._key, className: 'mb-3' },
|
|
7614
|
-
React__default
|
|
7593
|
+
React__default.createElement(
|
|
7615
7594
|
'div',
|
|
7616
7595
|
{ className: 'correct-answer' },
|
|
7617
|
-
React__default
|
|
7596
|
+
React__default.createElement(
|
|
7618
7597
|
'div',
|
|
7619
7598
|
null,
|
|
7620
7599
|
choice.choiceText
|
|
7621
7600
|
),
|
|
7622
|
-
choice.choiceAnswer === true && React__default
|
|
7601
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7623
7602
|
'div',
|
|
7624
7603
|
null,
|
|
7625
|
-
React__default
|
|
7604
|
+
React__default.createElement(
|
|
7626
7605
|
'span',
|
|
7627
7606
|
{ style: { color: 'limegreen' } },
|
|
7628
7607
|
'Correct!'
|
|
7629
7608
|
)
|
|
7630
7609
|
)
|
|
7631
7610
|
),
|
|
7632
|
-
React__default
|
|
7633
|
-
React__default
|
|
7611
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7612
|
+
React__default.createElement(
|
|
7634
7613
|
'span',
|
|
7635
7614
|
{ className: 'float-right' },
|
|
7636
7615
|
percentage,
|
|
@@ -7641,14 +7620,14 @@ var Poll = function Poll(_ref) {
|
|
|
7641
7620
|
);
|
|
7642
7621
|
})
|
|
7643
7622
|
),
|
|
7644
|
-
showAnswer && React__default
|
|
7623
|
+
showAnswer && React__default.createElement(
|
|
7645
7624
|
'h4',
|
|
7646
7625
|
{ className: 'text-center small p-3' },
|
|
7647
7626
|
'Total Votes: ',
|
|
7648
7627
|
choicesTotalCount
|
|
7649
7628
|
),
|
|
7650
|
-
showAnswer && response && React__default
|
|
7651
|
-
React__default
|
|
7629
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7630
|
+
React__default.createElement(
|
|
7652
7631
|
'style',
|
|
7653
7632
|
{ jsx: 'true' },
|
|
7654
7633
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7675,13 +7654,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7675
7654
|
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7676
7655
|
|
|
7677
7656
|
var Poll$1 = function Poll(_ref) {
|
|
7678
|
-
var node = _ref.node
|
|
7679
|
-
_ref.client
|
|
7680
|
-
_ref.pageview
|
|
7681
|
-
_ref.videoAccountIDs
|
|
7682
|
-
|
|
7683
|
-
_ref.showVotes
|
|
7684
|
-
|
|
7657
|
+
var node = _ref.node,
|
|
7658
|
+
client = _ref.client,
|
|
7659
|
+
pageview = _ref.pageview,
|
|
7660
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7661
|
+
onVote = _ref.onVote,
|
|
7662
|
+
_ref$showVotes = _ref.showVotes,
|
|
7663
|
+
getSerializers = _ref.getSerializers;
|
|
7685
7664
|
|
|
7686
7665
|
var _useState = React.useState(null),
|
|
7687
7666
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7747,67 +7726,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7747
7726
|
return acc;
|
|
7748
7727
|
}
|
|
7749
7728
|
}, 0);
|
|
7750
|
-
return React__default
|
|
7751
|
-
React__default
|
|
7729
|
+
return React__default.createElement(
|
|
7730
|
+
React__default.Fragment,
|
|
7752
7731
|
null,
|
|
7753
|
-
question && React__default
|
|
7732
|
+
question && React__default.createElement(
|
|
7754
7733
|
'p',
|
|
7755
7734
|
{ className: 'font-weight-bold' },
|
|
7756
7735
|
question
|
|
7757
7736
|
),
|
|
7758
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7737
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7759
7738
|
'form',
|
|
7760
7739
|
{ onSubmit: function onSubmit(e) {
|
|
7761
7740
|
return onSubmitPoll(e);
|
|
7762
7741
|
} },
|
|
7763
7742
|
choices && choices.map(function (choice) {
|
|
7764
|
-
return React__default
|
|
7743
|
+
return React__default.createElement(
|
|
7765
7744
|
'div',
|
|
7766
7745
|
{ key: choice._key },
|
|
7767
|
-
React__default
|
|
7746
|
+
React__default.createElement(
|
|
7768
7747
|
'label',
|
|
7769
7748
|
{ className: 'pl-2' },
|
|
7770
|
-
React__default
|
|
7749
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7771
7750
|
return setSelectedChoice(e.target.value);
|
|
7772
7751
|
} }),
|
|
7773
7752
|
' ' + choice.choiceText
|
|
7774
7753
|
)
|
|
7775
7754
|
);
|
|
7776
7755
|
}),
|
|
7777
|
-
React__default
|
|
7756
|
+
React__default.createElement(
|
|
7778
7757
|
reactBootstrap.Button,
|
|
7779
7758
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7780
7759
|
'Vote'
|
|
7781
7760
|
)
|
|
7782
7761
|
),
|
|
7783
|
-
React__default
|
|
7762
|
+
React__default.createElement(
|
|
7784
7763
|
'div',
|
|
7785
7764
|
{ className: 'progress-container' },
|
|
7786
7765
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7787
7766
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7788
|
-
return React__default
|
|
7767
|
+
return React__default.createElement(
|
|
7789
7768
|
'div',
|
|
7790
7769
|
{ key: choice._key, className: 'mb-3' },
|
|
7791
|
-
React__default
|
|
7770
|
+
React__default.createElement(
|
|
7792
7771
|
'div',
|
|
7793
7772
|
{ className: 'correct-answer' },
|
|
7794
|
-
React__default
|
|
7773
|
+
React__default.createElement(
|
|
7795
7774
|
'div',
|
|
7796
7775
|
null,
|
|
7797
7776
|
choice.choiceText
|
|
7798
7777
|
),
|
|
7799
|
-
choice.choiceAnswer === true && React__default
|
|
7778
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7800
7779
|
'div',
|
|
7801
7780
|
null,
|
|
7802
|
-
React__default
|
|
7781
|
+
React__default.createElement(
|
|
7803
7782
|
'span',
|
|
7804
7783
|
{ style: { color: 'limegreen' } },
|
|
7805
7784
|
'Correct!'
|
|
7806
7785
|
)
|
|
7807
7786
|
)
|
|
7808
7787
|
),
|
|
7809
|
-
React__default
|
|
7810
|
-
React__default
|
|
7788
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7789
|
+
React__default.createElement(
|
|
7811
7790
|
'span',
|
|
7812
7791
|
{ className: 'float-right' },
|
|
7813
7792
|
percentage,
|
|
@@ -7818,14 +7797,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7818
7797
|
);
|
|
7819
7798
|
})
|
|
7820
7799
|
),
|
|
7821
|
-
showAnswer && React__default
|
|
7800
|
+
showAnswer && React__default.createElement(
|
|
7822
7801
|
'h4',
|
|
7823
7802
|
{ className: 'text-center small p-3' },
|
|
7824
7803
|
'Total Votes: ',
|
|
7825
7804
|
choicesTotalCount
|
|
7826
7805
|
),
|
|
7827
|
-
showAnswer && response && React__default
|
|
7828
|
-
React__default
|
|
7806
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7807
|
+
React__default.createElement(
|
|
7829
7808
|
'style',
|
|
7830
7809
|
{ jsx: 'true' },
|
|
7831
7810
|
'\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 '
|
|
@@ -7833,7 +7812,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7833
7812
|
);
|
|
7834
7813
|
};
|
|
7835
7814
|
|
|
7836
|
-
var numberOfPaginations = main.
|
|
7815
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7837
7816
|
|
|
7838
7817
|
var Quiz = function Quiz(_ref) {
|
|
7839
7818
|
var quizzes = _ref.quizzes,
|
|
@@ -7897,7 +7876,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7897
7876
|
setEndIndex(numberOfPaginations - 1);
|
|
7898
7877
|
newPath = window.location.pathname;
|
|
7899
7878
|
window.history.pushState(null, null, newPath);
|
|
7900
|
-
index
|
|
7879
|
+
index.lib_3.refresh();
|
|
7901
7880
|
if (pageview) pageview(newPath);
|
|
7902
7881
|
break;
|
|
7903
7882
|
case 'last':
|
|
@@ -7906,7 +7885,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7906
7885
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7907
7886
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7908
7887
|
window.history.pushState(null, null, newPath);
|
|
7909
|
-
index
|
|
7888
|
+
index.lib_3.refresh();
|
|
7910
7889
|
if (pageview) pageview(newPath);
|
|
7911
7890
|
break;
|
|
7912
7891
|
case 'next':
|
|
@@ -7917,7 +7896,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7917
7896
|
}
|
|
7918
7897
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7919
7898
|
window.history.pushState(null, null, newPath);
|
|
7920
|
-
index
|
|
7899
|
+
index.lib_3.refresh();
|
|
7921
7900
|
if (pageview) pageview(newPath);
|
|
7922
7901
|
break;
|
|
7923
7902
|
case 'prev':
|
|
@@ -7928,14 +7907,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7928
7907
|
}
|
|
7929
7908
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7930
7909
|
window.history.pushState(null, null, newPath);
|
|
7931
|
-
index
|
|
7910
|
+
index.lib_3.refresh();
|
|
7932
7911
|
if (pageview) pageview(newPath);
|
|
7933
7912
|
break;
|
|
7934
7913
|
default:
|
|
7935
7914
|
setCurrentPage(control);
|
|
7936
7915
|
newPath = window.location.pathname + '?page=' + control;
|
|
7937
7916
|
window.history.pushState(null, null, newPath);
|
|
7938
|
-
index
|
|
7917
|
+
index.lib_3.refresh();
|
|
7939
7918
|
if (pageview) pageview(newPath);
|
|
7940
7919
|
}
|
|
7941
7920
|
};
|
|
@@ -7951,34 +7930,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7951
7930
|
};
|
|
7952
7931
|
|
|
7953
7932
|
var renderPagination = function renderPagination() {
|
|
7954
|
-
return React__default
|
|
7955
|
-
|
|
7956
|
-
{ className: 'p-0 m-0', size: main.
|
|
7957
|
-
React__default
|
|
7933
|
+
return React__default.createElement(
|
|
7934
|
+
Pagination,
|
|
7935
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7936
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7958
7937
|
return changePage('first');
|
|
7959
7938
|
}, disabled: currentPage === 1 }),
|
|
7960
|
-
React__default
|
|
7939
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7961
7940
|
return changePage('prev');
|
|
7962
7941
|
}, disabled: currentPage === 1 }),
|
|
7963
|
-
React__default
|
|
7942
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7964
7943
|
return renderNewPages('prev');
|
|
7965
7944
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7966
7945
|
pages.map(function (page) {
|
|
7967
|
-
return React__default
|
|
7968
|
-
|
|
7946
|
+
return React__default.createElement(
|
|
7947
|
+
Pagination.Item,
|
|
7969
7948
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7970
7949
|
return changePage(page);
|
|
7971
7950
|
} },
|
|
7972
7951
|
page
|
|
7973
7952
|
);
|
|
7974
7953
|
}),
|
|
7975
|
-
React__default
|
|
7954
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7976
7955
|
return renderNewPages('next');
|
|
7977
7956
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7978
|
-
React__default
|
|
7957
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7979
7958
|
return changePage('next');
|
|
7980
7959
|
}, disabled: currentPage === pageCount }),
|
|
7981
|
-
React__default
|
|
7960
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7982
7961
|
return changePage('last');
|
|
7983
7962
|
}, disabled: currentPage === pageCount })
|
|
7984
7963
|
);
|
|
@@ -8061,51 +8040,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8061
8040
|
}
|
|
8062
8041
|
};
|
|
8063
8042
|
|
|
8064
|
-
return React__default
|
|
8065
|
-
React__default
|
|
8043
|
+
return React__default.createElement(
|
|
8044
|
+
React__default.Fragment,
|
|
8066
8045
|
null,
|
|
8067
|
-
quizzes[currentPage - 1] && React__default
|
|
8068
|
-
React__default
|
|
8046
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8047
|
+
React__default.Fragment,
|
|
8069
8048
|
null,
|
|
8070
|
-
React__default
|
|
8071
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8049
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8050
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8072
8051
|
'form',
|
|
8073
8052
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8074
8053
|
return e.preventDefault();
|
|
8075
8054
|
} },
|
|
8076
8055
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8077
|
-
return React__default
|
|
8056
|
+
return React__default.createElement(
|
|
8078
8057
|
'div',
|
|
8079
8058
|
{ key: answer._key },
|
|
8080
|
-
React__default
|
|
8059
|
+
React__default.createElement(
|
|
8081
8060
|
'label',
|
|
8082
8061
|
{ className: 'pl-2' },
|
|
8083
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8062
|
+
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 }),
|
|
8084
8063
|
' ' + answer.answerText
|
|
8085
8064
|
)
|
|
8086
8065
|
);
|
|
8087
8066
|
})
|
|
8088
8067
|
)
|
|
8089
8068
|
),
|
|
8090
|
-
!showAnswer && React__default
|
|
8091
|
-
|
|
8069
|
+
!showAnswer && React__default.createElement(
|
|
8070
|
+
Button,
|
|
8092
8071
|
{ onClick: function onClick() {
|
|
8093
8072
|
return checkAnswers();
|
|
8094
8073
|
}, variant: 'info', block: true },
|
|
8095
8074
|
'Please click here for answer'
|
|
8096
8075
|
),
|
|
8097
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8098
|
-
React__default
|
|
8076
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8077
|
+
React__default.Fragment,
|
|
8099
8078
|
null,
|
|
8100
|
-
React__default
|
|
8079
|
+
React__default.createElement(
|
|
8101
8080
|
'h4',
|
|
8102
8081
|
null,
|
|
8103
8082
|
'Answer:'
|
|
8104
8083
|
),
|
|
8105
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8084
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8106
8085
|
),
|
|
8107
|
-
React__default
|
|
8108
|
-
pageCount > 1 && React__default
|
|
8086
|
+
React__default.createElement('br', null),
|
|
8087
|
+
pageCount > 1 && React__default.createElement(
|
|
8109
8088
|
'div',
|
|
8110
8089
|
{ className: 'd-flex justify-content-center' },
|
|
8111
8090
|
renderPagination()
|
|
@@ -8116,15 +8095,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8116
8095
|
var Leads = function Leads(_ref) {
|
|
8117
8096
|
var url = _ref.url;
|
|
8118
8097
|
|
|
8119
|
-
return React__default
|
|
8098
|
+
return React__default.createElement(
|
|
8120
8099
|
'div',
|
|
8121
8100
|
{ className: 'd-block text-center mb-3' },
|
|
8122
|
-
url && React__default
|
|
8101
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8123
8102
|
);
|
|
8124
8103
|
};
|
|
8125
8104
|
|
|
8126
8105
|
var urlFor$1 = function urlFor(source, client) {
|
|
8127
|
-
var builder = index.imageUrlBuilder(client);
|
|
8106
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8128
8107
|
return builder.image(source).auto('format');
|
|
8129
8108
|
};
|
|
8130
8109
|
|
|
@@ -8140,8 +8119,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8140
8119
|
|
|
8141
8120
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8142
8121
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8143
|
-
carouselIndex = _useState2[0]
|
|
8144
|
-
_useState2[1];
|
|
8122
|
+
carouselIndex = _useState2[0],
|
|
8123
|
+
setCarouselIndex = _useState2[1];
|
|
8145
8124
|
|
|
8146
8125
|
// useEffect(() => {
|
|
8147
8126
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8154,7 +8133,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8154
8133
|
// }, [router])
|
|
8155
8134
|
|
|
8156
8135
|
React.useEffect(function () {
|
|
8157
|
-
index
|
|
8136
|
+
index.lib_3.refresh();
|
|
8158
8137
|
if (pageview) pageview(router.asPath);
|
|
8159
8138
|
}, [router]);
|
|
8160
8139
|
|
|
@@ -8167,42 +8146,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8167
8146
|
}
|
|
8168
8147
|
};
|
|
8169
8148
|
|
|
8170
|
-
return React__default
|
|
8149
|
+
return React__default.createElement(
|
|
8171
8150
|
'div',
|
|
8172
8151
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8173
|
-
React__default
|
|
8152
|
+
React__default.createElement(
|
|
8174
8153
|
reactBootstrap.Carousel,
|
|
8175
8154
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8176
8155
|
slides && slides.map(function (slide) {
|
|
8177
8156
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8178
|
-
return React__default
|
|
8157
|
+
return React__default.createElement(
|
|
8179
8158
|
reactBootstrap.Carousel.Item,
|
|
8180
8159
|
{ key: slide._key },
|
|
8181
|
-
React__default
|
|
8160
|
+
React__default.createElement(
|
|
8182
8161
|
'a',
|
|
8183
8162
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8184
|
-
React__default
|
|
8185
|
-
index$
|
|
8163
|
+
React__default.createElement(
|
|
8164
|
+
index$2.LazyLoad,
|
|
8186
8165
|
null,
|
|
8187
|
-
React__default
|
|
8166
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8188
8167
|
)
|
|
8189
8168
|
),
|
|
8190
|
-
React__default
|
|
8169
|
+
React__default.createElement(
|
|
8191
8170
|
'div',
|
|
8192
8171
|
{ className: 'p-2' },
|
|
8193
|
-
slide.slideshowImage.caption && React__default
|
|
8172
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8194
8173
|
'h3',
|
|
8195
8174
|
{ style: { padding: '0px' } },
|
|
8196
8175
|
slide.slideshowImage.caption
|
|
8197
8176
|
),
|
|
8198
|
-
slide.description && React__default
|
|
8177
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8199
8178
|
)
|
|
8200
8179
|
);
|
|
8201
8180
|
}
|
|
8202
8181
|
return null;
|
|
8203
8182
|
})
|
|
8204
8183
|
),
|
|
8205
|
-
React__default
|
|
8184
|
+
React__default.createElement(
|
|
8206
8185
|
'style',
|
|
8207
8186
|
{ jsx: 'true' },
|
|
8208
8187
|
'\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 '
|
|
@@ -8221,10 +8200,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8221
8200
|
sizes = _props$node.sizes,
|
|
8222
8201
|
sizeMapping = _props$node.sizeMapping;
|
|
8223
8202
|
|
|
8224
|
-
return React__default
|
|
8203
|
+
return React__default.createElement(
|
|
8225
8204
|
'div',
|
|
8226
8205
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8227
|
-
React__default
|
|
8206
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8228
8207
|
);
|
|
8229
8208
|
};
|
|
8230
8209
|
|
|
@@ -8235,20 +8214,20 @@ var Formstack = function Formstack(_ref) {
|
|
|
8235
8214
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8236
8215
|
|
|
8237
8216
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8238
|
-
return React__default
|
|
8217
|
+
return React__default.createElement(
|
|
8239
8218
|
'section',
|
|
8240
8219
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8241
|
-
Caption && React__default
|
|
8220
|
+
Caption && React__default.createElement(
|
|
8242
8221
|
'h4',
|
|
8243
8222
|
{ className: 'formstack-caption' },
|
|
8244
8223
|
Caption
|
|
8245
8224
|
),
|
|
8246
|
-
React__default
|
|
8225
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8247
8226
|
);
|
|
8248
8227
|
};
|
|
8249
8228
|
|
|
8250
8229
|
var urlFor$2 = function urlFor(source, client) {
|
|
8251
|
-
var builder = index.imageUrlBuilder(client);
|
|
8230
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8252
8231
|
return builder.image(source).auto('format');
|
|
8253
8232
|
};
|
|
8254
8233
|
var MultiMedia = function MultiMedia(props) {
|
|
@@ -8263,29 +8242,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8263
8242
|
}
|
|
8264
8243
|
});
|
|
8265
8244
|
if (medias && medias.length > 0) {
|
|
8266
|
-
return React__default
|
|
8245
|
+
return React__default.createElement(
|
|
8267
8246
|
'div',
|
|
8268
8247
|
{ className: 'multi-media-container' },
|
|
8269
|
-
React__default
|
|
8270
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8249
|
+
Row,
|
|
8271
8250
|
{ noGutters: true },
|
|
8272
8251
|
medias.map(function (media) {
|
|
8273
|
-
return React__default
|
|
8274
|
-
|
|
8252
|
+
return React__default.createElement(
|
|
8253
|
+
Col,
|
|
8275
8254
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8276
|
-
React__default
|
|
8255
|
+
React__default.createElement(
|
|
8277
8256
|
'a',
|
|
8278
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8257
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8279
8258
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8280
|
-
React__default
|
|
8259
|
+
React__default.createElement(
|
|
8281
8260
|
'div',
|
|
8282
8261
|
{ className: 'multi-media-image-container' },
|
|
8283
|
-
imageBox && React__default
|
|
8284
|
-
index$
|
|
8262
|
+
imageBox && React__default.createElement(
|
|
8263
|
+
index$2.LazyLoad,
|
|
8285
8264
|
{ once: true },
|
|
8286
|
-
React__default
|
|
8265
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8287
8266
|
),
|
|
8288
|
-
media.caption && React__default
|
|
8267
|
+
media.caption && React__default.createElement(
|
|
8289
8268
|
'span',
|
|
8290
8269
|
{ className: 'multi-media-caption' },
|
|
8291
8270
|
media.caption
|
|
@@ -8295,7 +8274,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8295
8274
|
);
|
|
8296
8275
|
})
|
|
8297
8276
|
),
|
|
8298
|
-
React__default
|
|
8277
|
+
React__default.createElement(
|
|
8299
8278
|
'style',
|
|
8300
8279
|
{ jsx: 'true' },
|
|
8301
8280
|
'\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 '
|
|
@@ -8342,7 +8321,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8321
|
}
|
|
8343
8322
|
};
|
|
8344
8323
|
|
|
8345
|
-
_this.wraperRef = React__default
|
|
8324
|
+
_this.wraperRef = React__default.createRef();
|
|
8346
8325
|
_this.visible = false;
|
|
8347
8326
|
return _this;
|
|
8348
8327
|
}
|
|
@@ -8370,7 +8349,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8370
8349
|
_props$id = _props.id,
|
|
8371
8350
|
id = _props$id === undefined ? '' : _props$id;
|
|
8372
8351
|
|
|
8373
|
-
return React__default
|
|
8352
|
+
return React__default.createElement(
|
|
8374
8353
|
'div',
|
|
8375
8354
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8376
8355
|
this.props.children
|
|
@@ -8379,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8379
8358
|
}]);
|
|
8380
8359
|
|
|
8381
8360
|
return InscreenSensor;
|
|
8382
|
-
}(React__default
|
|
8361
|
+
}(React__default.Component);
|
|
8383
8362
|
|
|
8384
8363
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8385
8364
|
var nodes = _ref.nodes,
|
|
@@ -8397,7 +8376,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8397
8376
|
var today = moment.moment().utc().format();
|
|
8398
8377
|
|
|
8399
8378
|
var authorPrefix = 'authors';
|
|
8400
|
-
var builder = index.imageUrlBuilder(client);
|
|
8379
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8401
8380
|
function urlFor(source) {
|
|
8402
8381
|
return builder.image(source);
|
|
8403
8382
|
}
|
|
@@ -8492,33 +8471,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8492
8471
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8493
8472
|
var showReading = show ? 'showReading' : '';
|
|
8494
8473
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8495
|
-
return React__default
|
|
8474
|
+
return React__default.createElement(
|
|
8496
8475
|
'div',
|
|
8497
8476
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8498
|
-
React__default
|
|
8477
|
+
React__default.createElement(
|
|
8499
8478
|
'a',
|
|
8500
8479
|
{ onClick: function onClick(e) {
|
|
8501
8480
|
return articleCardClickHandler(e);
|
|
8502
8481
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8503
|
-
React__default
|
|
8482
|
+
React__default.createElement(
|
|
8504
8483
|
'div',
|
|
8505
8484
|
{ className: 'prevNext-thumbnail' },
|
|
8506
|
-
React__default
|
|
8507
|
-
React__default
|
|
8485
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8486
|
+
React__default.createElement(
|
|
8508
8487
|
'div',
|
|
8509
8488
|
{ className: 'prevNext-reading ' + showReading },
|
|
8510
8489
|
articleLabel
|
|
8511
8490
|
)
|
|
8512
8491
|
),
|
|
8513
|
-
React__default
|
|
8492
|
+
React__default.createElement(
|
|
8514
8493
|
'div',
|
|
8515
8494
|
{ className: 'prevNext-summary' },
|
|
8516
|
-
React__default
|
|
8495
|
+
React__default.createElement(
|
|
8517
8496
|
'div',
|
|
8518
8497
|
{ className: 'prevNext-publishDate' },
|
|
8519
8498
|
moment.moment(article.published).format('LL')
|
|
8520
8499
|
),
|
|
8521
|
-
React__default
|
|
8500
|
+
React__default.createElement(
|
|
8522
8501
|
'h2',
|
|
8523
8502
|
{ className: 'prevNext-title' },
|
|
8524
8503
|
article.title
|
|
@@ -8567,7 +8546,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8567
8546
|
|
|
8568
8547
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8569
8548
|
if (biography) {
|
|
8570
|
-
return React__default
|
|
8549
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8571
8550
|
}
|
|
8572
8551
|
};
|
|
8573
8552
|
|
|
@@ -8653,7 +8632,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8653
8632
|
//console.log('useLayoutEffect')
|
|
8654
8633
|
if (!firstLoad) {
|
|
8655
8634
|
setUpArrowClicked(false);
|
|
8656
|
-
if (main.
|
|
8635
|
+
if (main.main_36) {
|
|
8657
8636
|
grabLoadedAds();
|
|
8658
8637
|
} else {
|
|
8659
8638
|
scrollToArticle();
|
|
@@ -8662,7 +8641,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8662
8641
|
});
|
|
8663
8642
|
|
|
8664
8643
|
var grabLoadedAds = function grabLoadedAds() {
|
|
8665
|
-
index
|
|
8644
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8666
8645
|
var checkIfReady = window.setInterval(function () {
|
|
8667
8646
|
if (window.googletag && googletag.pubadsReady) {
|
|
8668
8647
|
clearInterval(checkIfReady);
|
|
@@ -8677,19 +8656,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8677
8656
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8678
8657
|
if (pageview) pageview(path);
|
|
8679
8658
|
|
|
8680
|
-
if (!main.
|
|
8681
|
-
index
|
|
8659
|
+
if (!main.main_36) {
|
|
8660
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8682
8661
|
if (window.googletag && googletag.pubadsReady) {
|
|
8683
|
-
index
|
|
8662
|
+
index.lib_3.refresh();
|
|
8684
8663
|
}
|
|
8685
8664
|
});
|
|
8686
8665
|
}
|
|
8687
8666
|
//Refresh leaderboard ad on mobile
|
|
8688
|
-
if (main.
|
|
8667
|
+
if (main.main_36) {
|
|
8689
8668
|
var leaderboardSlotId = '';
|
|
8690
|
-
index
|
|
8669
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8691
8670
|
if (window.googletag && googletag.pubadsReady) {
|
|
8692
|
-
index
|
|
8671
|
+
index.lib_3.refresh(leaderboardSlotId);
|
|
8693
8672
|
}
|
|
8694
8673
|
});
|
|
8695
8674
|
}
|
|
@@ -8725,38 +8704,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8725
8704
|
setSensorVisible(false);
|
|
8726
8705
|
};
|
|
8727
8706
|
|
|
8728
|
-
return React__default
|
|
8729
|
-
React__default
|
|
8707
|
+
return React__default.createElement(
|
|
8708
|
+
React__default.Fragment,
|
|
8730
8709
|
null,
|
|
8731
|
-
React__default
|
|
8710
|
+
React__default.createElement(
|
|
8732
8711
|
'div',
|
|
8733
8712
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8734
|
-
React__default
|
|
8713
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8735
8714
|
return handleArrowClick();
|
|
8736
8715
|
} })
|
|
8737
8716
|
),
|
|
8738
|
-
React__default
|
|
8739
|
-
React__default
|
|
8717
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8718
|
+
React__default.createElement(
|
|
8740
8719
|
'div',
|
|
8741
8720
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8742
|
-
React__default
|
|
8721
|
+
React__default.createElement(
|
|
8743
8722
|
'h5',
|
|
8744
8723
|
{ className: 'objective-title' },
|
|
8745
8724
|
nodes.seriesTitle
|
|
8746
8725
|
),
|
|
8747
|
-
React__default
|
|
8726
|
+
React__default.createElement(
|
|
8748
8727
|
'div',
|
|
8749
8728
|
{ className: 'prevNextWrapper' },
|
|
8750
8729
|
PrevNextCards(false, -1)
|
|
8751
8730
|
)
|
|
8752
8731
|
),
|
|
8753
|
-
React__default
|
|
8754
|
-
React__default
|
|
8732
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8733
|
+
React__default.createElement(
|
|
8755
8734
|
'div',
|
|
8756
8735
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8757
|
-
main.
|
|
8736
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8758
8737
|
if (index === 0) {
|
|
8759
|
-
return React__default
|
|
8738
|
+
return React__default.createElement(
|
|
8760
8739
|
'div',
|
|
8761
8740
|
{
|
|
8762
8741
|
key: 'addid-1',
|
|
@@ -8776,14 +8755,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8776
8755
|
}
|
|
8777
8756
|
})
|
|
8778
8757
|
),
|
|
8779
|
-
React__default
|
|
8758
|
+
React__default.createElement(
|
|
8780
8759
|
'div',
|
|
8781
8760
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8782
8761
|
Articles.map(function (article, index) {
|
|
8783
|
-
return React__default
|
|
8762
|
+
return React__default.createElement(
|
|
8784
8763
|
'div',
|
|
8785
8764
|
{ key: article.title },
|
|
8786
|
-
React__default
|
|
8765
|
+
React__default.createElement(
|
|
8787
8766
|
InscreenSensor,
|
|
8788
8767
|
{
|
|
8789
8768
|
visible: sensorVisible,
|
|
@@ -8801,84 +8780,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8801
8780
|
}
|
|
8802
8781
|
}
|
|
8803
8782
|
} },
|
|
8804
|
-
React__default
|
|
8805
|
-
|
|
8783
|
+
React__default.createElement(
|
|
8784
|
+
Head,
|
|
8806
8785
|
null,
|
|
8807
|
-
currentTitle !== null && React__default
|
|
8786
|
+
currentTitle !== null && React__default.createElement(
|
|
8808
8787
|
'title',
|
|
8809
8788
|
{ key: 'title' },
|
|
8810
8789
|
currentTitle
|
|
8811
8790
|
),
|
|
8812
|
-
currentSummary !== null && React__default
|
|
8813
|
-
currentURL !== null && React__default
|
|
8814
|
-
currentTitle !== null && React__default
|
|
8815
|
-
currentThumbnail !== null && React__default
|
|
8816
|
-
currentSummary !== null && React__default
|
|
8817
|
-
currentTitle !== null && React__default
|
|
8818
|
-
currentThumbnail !== null && React__default
|
|
8819
|
-
currentSummary !== null && React__default
|
|
8791
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8792
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8793
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8794
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8795
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8796
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8797
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8798
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8820
8799
|
),
|
|
8821
|
-
React__default
|
|
8800
|
+
React__default.createElement(
|
|
8822
8801
|
'article',
|
|
8823
8802
|
{ className: 'article-wrapper' },
|
|
8824
|
-
React__default
|
|
8803
|
+
React__default.createElement(
|
|
8825
8804
|
'div',
|
|
8826
8805
|
{ className: 'article-publishDate' },
|
|
8827
8806
|
moment.moment(article.published).format('LL')
|
|
8828
8807
|
),
|
|
8829
|
-
React__default
|
|
8808
|
+
React__default.createElement(
|
|
8830
8809
|
'div',
|
|
8831
8810
|
{ className: 'author-details-wrapper' },
|
|
8832
8811
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8833
|
-
return React__default
|
|
8812
|
+
return React__default.createElement(
|
|
8834
8813
|
'span',
|
|
8835
8814
|
{ key: index },
|
|
8836
8815
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8837
8816
|
);
|
|
8838
8817
|
})
|
|
8839
8818
|
),
|
|
8840
|
-
React__default
|
|
8819
|
+
React__default.createElement(
|
|
8841
8820
|
'h2',
|
|
8842
8821
|
{ className: 'article-title' },
|
|
8843
8822
|
article.title
|
|
8844
8823
|
),
|
|
8845
|
-
React__default
|
|
8824
|
+
React__default.createElement(
|
|
8846
8825
|
'div',
|
|
8847
8826
|
{ className: 'mt-2 mb-2' },
|
|
8848
|
-
React__default
|
|
8827
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8849
8828
|
serializers: getSerializers,
|
|
8850
8829
|
videoAccountIDs: accountIDs,
|
|
8851
8830
|
blocks: article.text,
|
|
8852
8831
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8853
8832
|
}, client.config())),
|
|
8854
|
-
React__default
|
|
8833
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8855
8834
|
),
|
|
8856
|
-
Articles.length > 1 && React__default
|
|
8857
|
-
React__default
|
|
8835
|
+
Articles.length > 1 && React__default.createElement(
|
|
8836
|
+
React__default.Fragment,
|
|
8858
8837
|
null,
|
|
8859
|
-
React__default
|
|
8838
|
+
React__default.createElement(
|
|
8860
8839
|
'div',
|
|
8861
8840
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8862
|
-
React__default
|
|
8841
|
+
React__default.createElement(
|
|
8863
8842
|
'h5',
|
|
8864
8843
|
{ className: 'objective-title' },
|
|
8865
8844
|
nodes.seriesTitle
|
|
8866
8845
|
),
|
|
8867
|
-
React__default
|
|
8846
|
+
React__default.createElement(
|
|
8868
8847
|
'div',
|
|
8869
8848
|
{ className: 'prevNextWrapper' },
|
|
8870
8849
|
PrevNextCards(true, index)
|
|
8871
8850
|
)
|
|
8872
8851
|
),
|
|
8873
|
-
React__default
|
|
8852
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8874
8853
|
)
|
|
8875
8854
|
),
|
|
8876
|
-
React__default
|
|
8855
|
+
React__default.createElement(
|
|
8877
8856
|
'div',
|
|
8878
8857
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8879
|
-
main.
|
|
8858
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8880
8859
|
if (innerIndex === 0) {
|
|
8881
|
-
return React__default
|
|
8860
|
+
return React__default.createElement(
|
|
8882
8861
|
'div',
|
|
8883
8862
|
{
|
|
8884
8863
|
key: 'addid-' + (index + 2),
|
|
@@ -8901,7 +8880,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8901
8880
|
)
|
|
8902
8881
|
);
|
|
8903
8882
|
}),
|
|
8904
|
-
React__default
|
|
8883
|
+
React__default.createElement(
|
|
8905
8884
|
'style',
|
|
8906
8885
|
{ jsx: 'true' },
|
|
8907
8886
|
'\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 '
|
|
@@ -8931,11 +8910,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8931
8910
|
};
|
|
8932
8911
|
}, [handleClickOutside]);
|
|
8933
8912
|
|
|
8934
|
-
return React__default
|
|
8913
|
+
return React__default.createElement(
|
|
8935
8914
|
'div',
|
|
8936
8915
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8937
|
-
React__default
|
|
8938
|
-
React__default
|
|
8916
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8917
|
+
React__default.createElement(
|
|
8939
8918
|
'style',
|
|
8940
8919
|
{ jsx: 'true' },
|
|
8941
8920
|
'\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 '
|
|
@@ -8944,7 +8923,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8944
8923
|
};
|
|
8945
8924
|
|
|
8946
8925
|
var urlFor$3 = function urlFor(source, client) {
|
|
8947
|
-
var builder = index.imageUrlBuilder(client);
|
|
8926
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8948
8927
|
return builder.image(source).auto('format');
|
|
8949
8928
|
};
|
|
8950
8929
|
|
|
@@ -9029,13 +9008,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9029
9008
|
|
|
9030
9009
|
var FigureCaption = React.useCallback(function () {
|
|
9031
9010
|
if (imgcaption && imgcaption.length > 0) {
|
|
9032
|
-
return React__default
|
|
9011
|
+
return React__default.createElement(
|
|
9033
9012
|
'div',
|
|
9034
9013
|
{ className: 'figure-caption' },
|
|
9035
|
-
React__default
|
|
9014
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9036
9015
|
);
|
|
9037
9016
|
} else if (caption) {
|
|
9038
|
-
return React__default
|
|
9017
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9039
9018
|
} else return null;
|
|
9040
9019
|
}, [caption, imgcaption]);
|
|
9041
9020
|
|
|
@@ -9047,21 +9026,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9047
9026
|
margin: figureMargin
|
|
9048
9027
|
};
|
|
9049
9028
|
|
|
9050
|
-
return React__default
|
|
9051
|
-
React__default
|
|
9029
|
+
return React__default.createElement(
|
|
9030
|
+
React__default.Fragment,
|
|
9052
9031
|
null,
|
|
9053
|
-
React__default
|
|
9054
|
-
|
|
9032
|
+
React__default.createElement(
|
|
9033
|
+
Figure$1,
|
|
9055
9034
|
{ className: '' + class_name, style: figureStyle },
|
|
9056
|
-
link ? React__default
|
|
9035
|
+
link ? React__default.createElement(
|
|
9057
9036
|
'a',
|
|
9058
9037
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9059
|
-
React__default
|
|
9060
|
-
React__default
|
|
9061
|
-
) : React__default
|
|
9062
|
-
React__default
|
|
9038
|
+
React__default.createElement(Figure$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9039
|
+
React__default.createElement(FigureCaption, null)
|
|
9040
|
+
) : React__default.createElement(
|
|
9041
|
+
React__default.Fragment,
|
|
9063
9042
|
null,
|
|
9064
|
-
React__default
|
|
9043
|
+
React__default.createElement(Figure$1.Image, {
|
|
9065
9044
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9066
9045
|
className: 'figure-image',
|
|
9067
9046
|
src: urlFor$3(node, client).url(),
|
|
@@ -9071,9 +9050,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9071
9050
|
setShowLightbox(true);
|
|
9072
9051
|
}
|
|
9073
9052
|
}),
|
|
9074
|
-
React__default
|
|
9053
|
+
React__default.createElement(FigureCaption, null)
|
|
9075
9054
|
),
|
|
9076
|
-
React__default
|
|
9055
|
+
React__default.createElement(LightBox, {
|
|
9077
9056
|
showLightbox: showLightbox,
|
|
9078
9057
|
lightboxImgSrc: lightboxImgSrc,
|
|
9079
9058
|
closeLightbox: function closeLightbox() {
|
|
@@ -9082,7 +9061,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9082
9061
|
}
|
|
9083
9062
|
})
|
|
9084
9063
|
),
|
|
9085
|
-
React__default
|
|
9064
|
+
React__default.createElement(
|
|
9086
9065
|
'style',
|
|
9087
9066
|
{ jsx: 'true' },
|
|
9088
9067
|
'\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 '
|
|
@@ -9090,10 +9069,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9090
9069
|
);
|
|
9091
9070
|
};
|
|
9092
9071
|
|
|
9093
|
-
var Figure = React__default
|
|
9072
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9094
9073
|
|
|
9095
9074
|
var urlFor$4 = function urlFor(source, client) {
|
|
9096
|
-
var builder = index.imageUrlBuilder(client);
|
|
9075
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
9097
9076
|
return builder.image(source).auto('format');
|
|
9098
9077
|
};
|
|
9099
9078
|
|
|
@@ -9136,47 +9115,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9136
9115
|
imgcaption = _ref.imgcaption;
|
|
9137
9116
|
|
|
9138
9117
|
if (imgcaption && imgcaption.length > 0) {
|
|
9139
|
-
return React__default
|
|
9118
|
+
return React__default.createElement(
|
|
9140
9119
|
'div',
|
|
9141
9120
|
{ className: 'multi-figure-caption' },
|
|
9142
|
-
React__default
|
|
9121
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9143
9122
|
);
|
|
9144
9123
|
} else if (caption) {
|
|
9145
|
-
return React__default
|
|
9124
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9146
9125
|
} else return null;
|
|
9147
9126
|
};
|
|
9148
9127
|
|
|
9149
9128
|
if (images && images.length > 0) {
|
|
9150
|
-
return React__default
|
|
9129
|
+
return React__default.createElement(
|
|
9151
9130
|
'div',
|
|
9152
9131
|
{ className: 'multi-figure-container' },
|
|
9153
|
-
React__default
|
|
9154
|
-
|
|
9132
|
+
React__default.createElement(
|
|
9133
|
+
Row,
|
|
9155
9134
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9156
9135
|
images.map(function (image, index) {
|
|
9157
|
-
return React__default
|
|
9158
|
-
|
|
9136
|
+
return React__default.createElement(
|
|
9137
|
+
Col,
|
|
9159
9138
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9160
|
-
image.link ? React__default
|
|
9139
|
+
image.link ? React__default.createElement(
|
|
9161
9140
|
'a',
|
|
9162
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9163
|
-
React__default
|
|
9141
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9142
|
+
React__default.createElement(
|
|
9164
9143
|
'div',
|
|
9165
9144
|
{ className: 'multi-figure-image-container' },
|
|
9166
|
-
React__default
|
|
9167
|
-
index$
|
|
9145
|
+
React__default.createElement(
|
|
9146
|
+
index$2.LazyLoad,
|
|
9168
9147
|
{ once: true },
|
|
9169
|
-
React__default
|
|
9148
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9170
9149
|
),
|
|
9171
|
-
React__default
|
|
9150
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9172
9151
|
)
|
|
9173
|
-
) : React__default
|
|
9152
|
+
) : React__default.createElement(
|
|
9174
9153
|
'div',
|
|
9175
9154
|
{ className: 'multi-figure-image-container' },
|
|
9176
|
-
React__default
|
|
9177
|
-
index$
|
|
9155
|
+
React__default.createElement(
|
|
9156
|
+
index$2.LazyLoad,
|
|
9178
9157
|
{ once: true },
|
|
9179
|
-
React__default
|
|
9158
|
+
React__default.createElement('img', {
|
|
9180
9159
|
'images-count': images.length,
|
|
9181
9160
|
className: 'multi-figure-image',
|
|
9182
9161
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9187,17 +9166,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9187
9166
|
}
|
|
9188
9167
|
})
|
|
9189
9168
|
),
|
|
9190
|
-
React__default
|
|
9169
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9191
9170
|
)
|
|
9192
9171
|
);
|
|
9193
9172
|
})
|
|
9194
9173
|
),
|
|
9195
|
-
React__default
|
|
9174
|
+
React__default.createElement(
|
|
9196
9175
|
'div',
|
|
9197
9176
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9198
|
-
React__default
|
|
9177
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9199
9178
|
),
|
|
9200
|
-
React__default
|
|
9179
|
+
React__default.createElement(
|
|
9201
9180
|
'style',
|
|
9202
9181
|
{ jsx: 'true' },
|
|
9203
9182
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9219,10 +9198,68 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9219
9198
|
|
|
9220
9199
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9221
9200
|
|
|
9222
|
-
return React__default
|
|
9201
|
+
return React__default.createElement(
|
|
9223
9202
|
'div',
|
|
9224
9203
|
{ id: elementId },
|
|
9225
|
-
React__default
|
|
9204
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9205
|
+
);
|
|
9206
|
+
};
|
|
9207
|
+
|
|
9208
|
+
var BlockTable = function BlockTable(props) {
|
|
9209
|
+
var _props$node = props.node,
|
|
9210
|
+
rows = _props$node.rows,
|
|
9211
|
+
_props$node$showBorde = _props$node.showBorders,
|
|
9212
|
+
showBorders = _props$node$showBorde === undefined ? true : _props$node$showBorde,
|
|
9213
|
+
borderColor = _props$node.borderColor,
|
|
9214
|
+
_props$node$borderWid = _props$node.borderWidth,
|
|
9215
|
+
borderWidth = _props$node$borderWid === undefined ? 1 : _props$node$borderWid,
|
|
9216
|
+
_props$node$minTableW = _props$node.minTableWidth,
|
|
9217
|
+
minTableWidth = _props$node$minTableW === undefined ? 500 : _props$node$minTableW,
|
|
9218
|
+
getSerializers = props.getSerializers,
|
|
9219
|
+
client = props.client;
|
|
9220
|
+
|
|
9221
|
+
var _borderColor = borderColor ? borderColor.hex : '#000000';
|
|
9222
|
+
var holder = React.useRef();
|
|
9223
|
+
React.useEffect(function () {
|
|
9224
|
+
var handleResize = function handleResize() {
|
|
9225
|
+
var holderWidth = holder.current.offsetWidth;
|
|
9226
|
+
if (holderWidth < minTableWidth) {
|
|
9227
|
+
holder.current.style.overflow = 'scroll';
|
|
9228
|
+
} else {
|
|
9229
|
+
holder.current.style.overflow = 'hidden';
|
|
9230
|
+
}
|
|
9231
|
+
};
|
|
9232
|
+
handleResize();
|
|
9233
|
+
window.addEventListener('resize', handleResize);
|
|
9234
|
+
return function () {
|
|
9235
|
+
return window.removeEventListener('resize', handleResize);
|
|
9236
|
+
};
|
|
9237
|
+
}, []);
|
|
9238
|
+
return React__default.createElement(
|
|
9239
|
+
'div',
|
|
9240
|
+
{ className: 'blockTableHolder', ref: holder },
|
|
9241
|
+
React__default.createElement(
|
|
9242
|
+
'div',
|
|
9243
|
+
{ className: 'blockTable' },
|
|
9244
|
+
rows && rows.map(function (row) {
|
|
9245
|
+
return React__default.createElement(
|
|
9246
|
+
'div',
|
|
9247
|
+
{ className: 'blockTableRow' },
|
|
9248
|
+
row.cells && row.cells.map(function (cell) {
|
|
9249
|
+
return React__default.createElement(
|
|
9250
|
+
'div',
|
|
9251
|
+
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9252
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9253
|
+
);
|
|
9254
|
+
})
|
|
9255
|
+
);
|
|
9256
|
+
})
|
|
9257
|
+
),
|
|
9258
|
+
React__default.createElement(
|
|
9259
|
+
'style',
|
|
9260
|
+
{ jsx: true },
|
|
9261
|
+
'\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 '
|
|
9262
|
+
)
|
|
9226
9263
|
);
|
|
9227
9264
|
};
|
|
9228
9265
|
|
|
@@ -9275,10 +9312,9 @@ var getSerializers = function getSerializers() {
|
|
|
9275
9312
|
showVotes = props[4],
|
|
9276
9313
|
drupalLeadSettings = props[5],
|
|
9277
9314
|
currentPage = props[6],
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
_props$
|
|
9281
|
-
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
9315
|
+
autoplay = props[7],
|
|
9316
|
+
_props$ = props[8],
|
|
9317
|
+
contextualADFlag = _props$ === undefined ? false : _props$,
|
|
9282
9318
|
articleId = props[9],
|
|
9283
9319
|
Ads = props[10],
|
|
9284
9320
|
targeting = props[11],
|
|
@@ -9287,6 +9323,7 @@ var getSerializers = function getSerializers() {
|
|
|
9287
9323
|
authorPrefix = props[14],
|
|
9288
9324
|
authorImgHeight = props[15];
|
|
9289
9325
|
|
|
9326
|
+
|
|
9290
9327
|
return {
|
|
9291
9328
|
types: {
|
|
9292
9329
|
block: function block(props) {
|
|
@@ -9297,17 +9334,26 @@ var getSerializers = function getSerializers() {
|
|
|
9297
9334
|
var node = _ref.node;
|
|
9298
9335
|
var url = node.url;
|
|
9299
9336
|
|
|
9300
|
-
return React__default
|
|
9337
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9301
9338
|
},
|
|
9302
9339
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9303
9340
|
var node = _ref2.node;
|
|
9304
9341
|
|
|
9305
|
-
return React__default
|
|
9342
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9343
|
+
nodes: node,
|
|
9344
|
+
article: article,
|
|
9345
|
+
meta: meta,
|
|
9346
|
+
authorPrefix: authorPrefix,
|
|
9347
|
+
authorImgHeight: authorImgHeight,
|
|
9348
|
+
accountIDs: videoAccountIDs || {},
|
|
9349
|
+
client: client,
|
|
9350
|
+
getSerializers: getSerializers(client)
|
|
9351
|
+
});
|
|
9306
9352
|
},
|
|
9307
9353
|
articleSeries: function articleSeries(_ref3) {
|
|
9308
9354
|
var node = _ref3.node;
|
|
9309
9355
|
|
|
9310
|
-
return React__default
|
|
9356
|
+
return React__default.createElement(ArticleSeries, {
|
|
9311
9357
|
nodes: node,
|
|
9312
9358
|
accountIDs: videoAccountIDs || {},
|
|
9313
9359
|
pageview: pageview,
|
|
@@ -9320,61 +9366,61 @@ var getSerializers = function getSerializers() {
|
|
|
9320
9366
|
figure: function figure(_ref4) {
|
|
9321
9367
|
var node = _ref4.node;
|
|
9322
9368
|
|
|
9323
|
-
return React__default
|
|
9369
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9324
9370
|
},
|
|
9325
9371
|
multifigure: function multifigure(_ref5) {
|
|
9326
9372
|
var node = _ref5.node;
|
|
9327
9373
|
|
|
9328
|
-
return React__default
|
|
9374
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9329
9375
|
},
|
|
9330
9376
|
slideshow: function slideshow(_ref6) {
|
|
9331
9377
|
var node = _ref6.node;
|
|
9332
9378
|
var slides = node.slides;
|
|
9333
9379
|
|
|
9334
|
-
return React__default
|
|
9380
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9335
9381
|
},
|
|
9336
9382
|
sidebar: function sidebar(_ref7) {
|
|
9337
9383
|
var node = _ref7.node;
|
|
9338
9384
|
var caption = node.caption,
|
|
9339
9385
|
content = node.content;
|
|
9340
9386
|
|
|
9341
|
-
return React__default
|
|
9387
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9342
9388
|
},
|
|
9343
9389
|
datatable: function datatable(_ref8) {
|
|
9344
9390
|
var node = _ref8.node;
|
|
9345
9391
|
var table = node.table;
|
|
9346
9392
|
|
|
9347
|
-
return React__default
|
|
9393
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9348
9394
|
},
|
|
9349
9395
|
media: function media(_ref9) {
|
|
9350
9396
|
var node = _ref9.node;
|
|
9351
9397
|
|
|
9352
|
-
return React__default
|
|
9398
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9353
9399
|
},
|
|
9354
9400
|
iframe: function iframe(_ref10) {
|
|
9355
9401
|
var node = _ref10.node;
|
|
9356
9402
|
|
|
9357
|
-
return React__default
|
|
9403
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9358
9404
|
},
|
|
9359
9405
|
video: function video(_ref11) {
|
|
9360
9406
|
var node = _ref11.node;
|
|
9361
9407
|
|
|
9362
|
-
return React__default
|
|
9408
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9363
9409
|
},
|
|
9364
9410
|
audio: function audio(_ref12) {
|
|
9365
9411
|
var node = _ref12.node;
|
|
9366
9412
|
|
|
9367
|
-
return React__default
|
|
9413
|
+
return React__default.createElement(Audio, { node: node });
|
|
9368
9414
|
},
|
|
9369
9415
|
poll: function poll(_ref13) {
|
|
9370
9416
|
var node = _ref13.node;
|
|
9371
9417
|
|
|
9372
|
-
return React__default
|
|
9418
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9373
9419
|
},
|
|
9374
9420
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9375
9421
|
var node = _ref14.node;
|
|
9376
9422
|
|
|
9377
|
-
return React__default
|
|
9423
|
+
return React__default.createElement(Poll$1, {
|
|
9378
9424
|
node: node,
|
|
9379
9425
|
client: client,
|
|
9380
9426
|
pageview: pageview,
|
|
@@ -9388,35 +9434,35 @@ var getSerializers = function getSerializers() {
|
|
|
9388
9434
|
var node = _ref15.node;
|
|
9389
9435
|
var quizzes = node.quizzes;
|
|
9390
9436
|
|
|
9391
|
-
return React__default
|
|
9437
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9392
9438
|
},
|
|
9393
9439
|
leads: function leads(_ref16) {
|
|
9394
9440
|
var node = _ref16.node;
|
|
9395
9441
|
var leadID = node.leadID;
|
|
9396
9442
|
|
|
9397
9443
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9398
|
-
return React__default
|
|
9444
|
+
return React__default.createElement(Leads, { url: url });
|
|
9399
9445
|
},
|
|
9400
9446
|
slideshows: function slideshows(_ref17) {
|
|
9401
9447
|
var node = _ref17.node;
|
|
9402
9448
|
|
|
9403
|
-
return React__default
|
|
9449
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9404
9450
|
},
|
|
9405
9451
|
nativeAd: function nativeAd(_ref18) {
|
|
9406
9452
|
var node = _ref18.node;
|
|
9407
9453
|
|
|
9408
|
-
return React__default
|
|
9454
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9409
9455
|
},
|
|
9410
9456
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9411
9457
|
var node = _ref19.node;
|
|
9412
9458
|
|
|
9413
|
-
return React__default
|
|
9459
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9414
9460
|
},
|
|
9415
9461
|
hrtag: function hrtag() {
|
|
9416
|
-
return React__default
|
|
9462
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9417
9463
|
},
|
|
9418
9464
|
brtag: function brtag() {
|
|
9419
|
-
return React__default
|
|
9465
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9420
9466
|
},
|
|
9421
9467
|
formstack: function formstack(_ref20) {
|
|
9422
9468
|
var node = _ref20.node;
|
|
@@ -9424,24 +9470,28 @@ var getSerializers = function getSerializers() {
|
|
|
9424
9470
|
Caption = node.Caption,
|
|
9425
9471
|
needSegmentSupport = node.needSegmentSupport;
|
|
9426
9472
|
|
|
9427
|
-
return React__default
|
|
9473
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9428
9474
|
},
|
|
9429
9475
|
multimedia: function multimedia(_ref21) {
|
|
9430
9476
|
var node = _ref21.node;
|
|
9431
9477
|
|
|
9432
|
-
return React__default
|
|
9478
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9479
|
+
},
|
|
9480
|
+
blockTable: function blockTable(_ref22) {
|
|
9481
|
+
var node = _ref22.node;
|
|
9482
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9433
9483
|
}
|
|
9434
9484
|
},
|
|
9435
9485
|
marks: {
|
|
9436
9486
|
superscript: function superscript(props) {
|
|
9437
|
-
return React__default
|
|
9487
|
+
return React__default.createElement(
|
|
9438
9488
|
'sup',
|
|
9439
9489
|
null,
|
|
9440
9490
|
props.children
|
|
9441
9491
|
);
|
|
9442
9492
|
},
|
|
9443
9493
|
subscript: function subscript(props) {
|
|
9444
|
-
return React__default
|
|
9494
|
+
return React__default.createElement(
|
|
9445
9495
|
'sub',
|
|
9446
9496
|
null,
|
|
9447
9497
|
props.children
|
|
@@ -9457,7 +9507,7 @@ var getSerializers = function getSerializers() {
|
|
|
9457
9507
|
if (href && href.charAt(0) === '#') {
|
|
9458
9508
|
var elementId = href.slice(1);
|
|
9459
9509
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9460
|
-
return React__default
|
|
9510
|
+
return React__default.createElement(
|
|
9461
9511
|
'a',
|
|
9462
9512
|
{ onClick: function onClick() {
|
|
9463
9513
|
return ScrollToElement(elementId);
|
|
@@ -9467,39 +9517,39 @@ var getSerializers = function getSerializers() {
|
|
|
9467
9517
|
}
|
|
9468
9518
|
|
|
9469
9519
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9470
|
-
return React__default
|
|
9520
|
+
return React__default.createElement(
|
|
9471
9521
|
'a',
|
|
9472
9522
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9473
9523
|
children
|
|
9474
9524
|
);
|
|
9475
9525
|
},
|
|
9476
|
-
alignleft: function alignleft(
|
|
9477
|
-
var children =
|
|
9478
|
-
return React__default
|
|
9526
|
+
alignleft: function alignleft(_ref23) {
|
|
9527
|
+
var children = _ref23.children;
|
|
9528
|
+
return React__default.createElement(
|
|
9479
9529
|
'div',
|
|
9480
9530
|
{ style: { textAlign: 'left' } },
|
|
9481
9531
|
children
|
|
9482
9532
|
);
|
|
9483
9533
|
},
|
|
9484
|
-
alignright: function alignright(
|
|
9485
|
-
var children =
|
|
9486
|
-
return React__default
|
|
9534
|
+
alignright: function alignright(_ref24) {
|
|
9535
|
+
var children = _ref24.children;
|
|
9536
|
+
return React__default.createElement(
|
|
9487
9537
|
'div',
|
|
9488
9538
|
{ style: { textAlign: 'right' } },
|
|
9489
9539
|
children
|
|
9490
9540
|
);
|
|
9491
9541
|
},
|
|
9492
|
-
aligncenter: function aligncenter(
|
|
9493
|
-
var children =
|
|
9494
|
-
return React__default
|
|
9542
|
+
aligncenter: function aligncenter(_ref25) {
|
|
9543
|
+
var children = _ref25.children;
|
|
9544
|
+
return React__default.createElement(
|
|
9495
9545
|
'div',
|
|
9496
9546
|
{ style: { textAlign: 'center' } },
|
|
9497
9547
|
children
|
|
9498
9548
|
);
|
|
9499
9549
|
},
|
|
9500
|
-
alignjustify: function alignjustify(
|
|
9501
|
-
var children =
|
|
9502
|
-
return React__default
|
|
9550
|
+
alignjustify: function alignjustify(_ref26) {
|
|
9551
|
+
var children = _ref26.children;
|
|
9552
|
+
return React__default.createElement(
|
|
9503
9553
|
'div',
|
|
9504
9554
|
{ style: { textAlign: 'justify' } },
|
|
9505
9555
|
children
|
|
@@ -9509,7 +9559,7 @@ var getSerializers = function getSerializers() {
|
|
|
9509
9559
|
var children = props.children,
|
|
9510
9560
|
color = props.mark.color;
|
|
9511
9561
|
|
|
9512
|
-
return React__default
|
|
9562
|
+
return React__default.createElement(
|
|
9513
9563
|
'span',
|
|
9514
9564
|
{ style: { color: color ? color.hex : null } },
|
|
9515
9565
|
children
|