@mjhls/mjh-framework 1.0.706 → 1.0.707-beta.1
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 +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-54ab0509.js → ADInfeed-30227d30.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-a1255904.js → ADlgInfeed-8432091c.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +8 -13
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +21 -22
- package/dist/cjs/ArticleSeriesListing.js +57 -58
- package/dist/cjs/Auth.js +534 -820
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/BrowseVideosListing.js +39 -40
- package/dist/cjs/CMEDeck.js +78 -78
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-ce7ac168.js} +30 -31
- package/dist/cjs/EventsDeck.js +129 -136
- package/dist/cjs/ExternalResources.js +74 -75
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +49 -50
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- 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 +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -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 +100 -111
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +21 -24
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-294bd0ea.js → SocialSearchComponent-56d49a1a.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +50 -51
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +72 -73
- package/dist/cjs/View.js +227 -230
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +64 -65
- 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/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- 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/getRelatedArticle.js +13 -424
- package/dist/cjs/getSerializers.js +41 -41
- 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-4d37a34d.js → index-427156b6.js} +849 -872
- package/dist/cjs/{index-5ad2b070.js → index-8bf6c863.js} +48 -30
- 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 +127 -128
- 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-eeffe77b.js → main-03ffa84c.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-1abb448e.js → smoothscroll-95231a70.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 +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-18cb6a8b.js → ADInfeed-afa3ab79.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-51d02f5d.js → ADlgInfeed-20c39d33.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +5 -9
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +52 -52
- package/dist/esm/Auth.js +517 -799
- package/dist/esm/{AuthorComponent-c29a0075.js → AuthorComponent-00f13201.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +36 -36
- package/dist/esm/CMEDeck.js +74 -74
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-db06d7dc.js → Dfp-14e866d7.js} +20 -20
- package/dist/esm/EventsDeck.js +82 -82
- package/dist/esm/ExternalResources.js +68 -68
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- 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 +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -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 +96 -106
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +13 -13
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c4a19bac.js → SocialSearchComponent-677ed3bd.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +45 -45
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +66 -66
- package/dist/esm/View.js +211 -210
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +49 -49
- package/dist/esm/{_is-array-9383b394.js → _is-array-49698029.js} +6 -6
- package/dist/esm/{_iter-detect-d4d262ee.js → _iter-detect-59409a32.js} +2 -2
- package/dist/esm/{_object-sap-6a003379.js → _object-sap-4d59d5bd.js} +1 -1
- package/dist/esm/{_set-species-0b056cff.js → _set-species-cede29f8.js} +4 -4
- package/dist/esm/{_to-object-9bef3b62.js → _to-object-ded78eb9.js} +5 -5
- package/dist/esm/{asyncToGenerator-acd1cc47.js → asyncToGenerator-7c654f36.js} +8 -8
- 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-1b116089.js → core.get-iterator-method-54d2e411.js} +2 -2
- package/dist/esm/{define-property-9a008401.js → define-property-de3fc946.js} +1 -1
- package/dist/esm/{defineProperty-ddd52c29.js → defineProperty-b798470d.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-b24a54f2.js → es6.string.iterator-9b2af4a5.js} +3 -3
- package/dist/esm/{extends-c2b1c9d7.js → extends-cc5da797.js} +1 -1
- package/dist/esm/getRelatedArticle.js +13 -424
- package/dist/esm/getSerializers.js +41 -41
- package/dist/esm/{getTargeting-b1a7be54.js → getTargeting-2acdec91.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-b2d06f45.js → index-20de5762.js} +800 -816
- 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-669ff425.js → index-a9e53f80.js} +43 -24
- 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 +105 -106
- package/dist/esm/{inherits-18d4a779.js → inherits-7ee3e0c1.js} +5 -5
- package/dist/esm/{keys-9bb7939c.js → keys-fc2d4c34.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-ad1ecb54.js → main-35ff7b4f.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-34468155.js → slicedToArray-7021e5df.js} +4 -4
- package/dist/esm/{smoothscroll-ab6e0238.js → smoothscroll-4b699764.js} +1 -1
- package/dist/esm/{stringify-8a4f19f7.js → stringify-008c8802.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-5212fee7.js → toConsumableArray-725434a0.js} +4 -4
- package/dist/esm/{typeof-64422756.js → typeof-08f2c380.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-ca37144a.js → web.dom.iterable-8956f9a5.js} +3 -3
- package/package.json +2 -2
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
|
@@ -1,48 +1,41 @@
|
|
|
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 toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
7
|
+
var _extends$1 = require('./extends-60837c34.js');
|
|
8
|
+
var inherits = require('./inherits-c9f99d47.js');
|
|
9
|
+
var _typeof = require('./typeof-725500bc.js');
|
|
3
10
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var index = require('./index-d48b231c.js');
|
|
7
|
-
var index$1 = require('./index-5ad2b070.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var smoothscroll = require('./smoothscroll-1abb448e.js');
|
|
11
|
+
var React__default = _interopDefault(React);
|
|
12
|
+
var index = require('./index-8bf6c863.js');
|
|
10
13
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
15
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
16
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
17
|
+
var moment = require('./moment-575fe24c.js');
|
|
18
|
+
var Router = require('next/router');
|
|
19
|
+
var Router__default = _interopDefault(Router);
|
|
20
|
+
var index$1 = require('./index-be0c82be.js');
|
|
21
|
+
var index$2 = require('./index-da796b8c.js');
|
|
22
|
+
var main = require('./main-03ffa84c.js');
|
|
23
|
+
var entities = require('./entities-310b46ee.js');
|
|
24
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
14
25
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
17
|
-
var _extends = require('./extends-1e24fc8d.js');
|
|
18
|
-
var index$2 = require('./index-80f57cff.js');
|
|
19
|
-
var _typeof$1 = require('./typeof-97065d40.js');
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
21
|
-
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var moment = require('./moment-aca40de1.js');
|
|
23
|
-
var toConsumableArray = require('./toConsumableArray-cf0865fc.js');
|
|
24
|
-
var Pagination = require('react-bootstrap/Pagination');
|
|
25
|
-
var Button = require('react-bootstrap/Button');
|
|
26
|
-
var entities = require('./entities-3f9d0f2f.js');
|
|
26
|
+
var Beam = require('./Beam.js');
|
|
27
27
|
var AdSlot = require('./AdSlot.js');
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var index_esm = require('./index.esm-
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
40
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
41
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
42
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
43
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
44
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
45
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
28
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
29
|
+
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
30
|
+
var GroupDeck = require('./GroupDeck.js');
|
|
31
|
+
var reactBootstrap = require('react-bootstrap');
|
|
32
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
33
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
34
|
+
var util = require('./util-f2c1b65b.js');
|
|
35
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
36
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
37
|
+
var Head = _interopDefault(require('next/head'));
|
|
38
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
46
39
|
|
|
47
40
|
var urlFor = function urlFor(source, builder) {
|
|
48
41
|
return builder.image(source).auto('format');
|
|
@@ -51,7 +44,7 @@ var urlFor = function urlFor(source, builder) {
|
|
|
51
44
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
52
45
|
var pageNumber = selectedIndex + 1;
|
|
53
46
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
54
|
-
Router__default
|
|
47
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
55
48
|
};
|
|
56
49
|
|
|
57
50
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -66,7 +59,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
66
59
|
carouselIndex = _useState2[0],
|
|
67
60
|
setCarouselIndex = _useState2[1];
|
|
68
61
|
|
|
69
|
-
var builder = index.imageUrlBuilder(client);
|
|
62
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
70
63
|
|
|
71
64
|
React.useEffect(function () {
|
|
72
65
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -79,24 +72,24 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
79
72
|
}, [router]);
|
|
80
73
|
|
|
81
74
|
React.useEffect(function () {
|
|
82
|
-
index
|
|
75
|
+
index.lib_3.refresh();
|
|
83
76
|
if (pageview) pageview(router.asPath);
|
|
84
77
|
}, [router]);
|
|
85
78
|
|
|
86
|
-
return React__default
|
|
79
|
+
return React__default.createElement(
|
|
87
80
|
'div',
|
|
88
81
|
{ className: 'mt-3 mb-3' },
|
|
89
|
-
React__default
|
|
82
|
+
React__default.createElement(
|
|
90
83
|
reactBootstrap.Carousel,
|
|
91
84
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
92
85
|
return onChangeSlide(selectedIndex, router);
|
|
93
86
|
}, interval: null },
|
|
94
87
|
slides && slides.map(function (slide) {
|
|
95
|
-
return React__default
|
|
88
|
+
return React__default.createElement(
|
|
96
89
|
reactBootstrap.Carousel.Item,
|
|
97
90
|
{ key: slide._key },
|
|
98
|
-
React__default
|
|
99
|
-
slide.caption && React__default
|
|
91
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
92
|
+
slide.caption && React__default.createElement(
|
|
100
93
|
'p',
|
|
101
94
|
{ className: 'p-2' },
|
|
102
95
|
slide.caption
|
|
@@ -107,18 +100,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
107
100
|
);
|
|
108
101
|
};
|
|
109
102
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
var isArray = Array.isArray;
|
|
104
|
+
var keyList = Object.keys;
|
|
105
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
113
106
|
|
|
114
107
|
var fastDeepEqual = function equal(a, b) {
|
|
115
108
|
if (a === b) return true;
|
|
116
109
|
|
|
117
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
118
|
-
|
|
111
|
+
var arrA = isArray(a)
|
|
112
|
+
, arrB = isArray(b)
|
|
113
|
+
, i
|
|
114
|
+
, length
|
|
115
|
+
, key;
|
|
119
116
|
|
|
120
|
-
|
|
121
|
-
if (Array.isArray(a)) {
|
|
117
|
+
if (arrA && arrB) {
|
|
122
118
|
length = a.length;
|
|
123
119
|
if (length != b.length) return false;
|
|
124
120
|
for (i = length; i-- !== 0;)
|
|
@@ -126,29 +122,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
126
122
|
return true;
|
|
127
123
|
}
|
|
128
124
|
|
|
125
|
+
if (arrA != arrB) return false;
|
|
129
126
|
|
|
127
|
+
var dateA = a instanceof Date
|
|
128
|
+
, dateB = b instanceof Date;
|
|
129
|
+
if (dateA != dateB) return false;
|
|
130
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (
|
|
132
|
+
var regexpA = a instanceof RegExp
|
|
133
|
+
, regexpB = b instanceof RegExp;
|
|
134
|
+
if (regexpA != regexpB) return false;
|
|
135
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
134
136
|
|
|
135
|
-
keys =
|
|
137
|
+
var keys = keyList(a);
|
|
136
138
|
length = keys.length;
|
|
137
|
-
|
|
139
|
+
|
|
140
|
+
if (length !== keyList(b).length)
|
|
141
|
+
return false;
|
|
138
142
|
|
|
139
143
|
for (i = length; i-- !== 0;)
|
|
140
|
-
if (!
|
|
144
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
141
145
|
|
|
142
146
|
for (i = length; i-- !== 0;) {
|
|
143
|
-
|
|
144
|
-
|
|
147
|
+
key = keys[i];
|
|
145
148
|
if (!equal(a[key], b[key])) return false;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
return true;
|
|
149
152
|
}
|
|
150
153
|
|
|
151
|
-
// true if both NaN, false otherwise
|
|
152
154
|
return a!==a && b!==b;
|
|
153
155
|
};
|
|
154
156
|
|
|
@@ -686,14 +688,14 @@ function coerce(val) {
|
|
|
686
688
|
return val;
|
|
687
689
|
}
|
|
688
690
|
});
|
|
689
|
-
debug.coerce;
|
|
690
|
-
debug.disable;
|
|
691
|
-
debug.enable;
|
|
692
|
-
debug.enabled;
|
|
693
|
-
debug.humanize;
|
|
694
|
-
debug.names;
|
|
695
|
-
debug.skips;
|
|
696
|
-
debug.formatters;
|
|
691
|
+
var debug_1 = debug.coerce;
|
|
692
|
+
var debug_2 = debug.disable;
|
|
693
|
+
var debug_3 = debug.enable;
|
|
694
|
+
var debug_4 = debug.enabled;
|
|
695
|
+
var debug_5 = debug.humanize;
|
|
696
|
+
var debug_6 = debug.names;
|
|
697
|
+
var debug_7 = debug.skips;
|
|
698
|
+
var debug_8 = debug.formatters;
|
|
697
699
|
|
|
698
700
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
699
701
|
/**
|
|
@@ -882,13 +884,13 @@ function localstorage() {
|
|
|
882
884
|
} catch (e) {}
|
|
883
885
|
}
|
|
884
886
|
});
|
|
885
|
-
browser.log;
|
|
886
|
-
browser.formatArgs;
|
|
887
|
-
browser.save;
|
|
888
|
-
browser.load;
|
|
889
|
-
browser.useColors;
|
|
890
|
-
browser.storage;
|
|
891
|
-
browser.colors;
|
|
887
|
+
var browser_1 = browser.log;
|
|
888
|
+
var browser_2 = browser.formatArgs;
|
|
889
|
+
var browser_3 = browser.save;
|
|
890
|
+
var browser_4 = browser.load;
|
|
891
|
+
var browser_5 = browser.useColors;
|
|
892
|
+
var browser_6 = browser.storage;
|
|
893
|
+
var browser_7 = browser.colors;
|
|
892
894
|
|
|
893
895
|
// MIT lisence
|
|
894
896
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1163,14 +1165,14 @@ function init (debug) {
|
|
|
1163
1165
|
|
|
1164
1166
|
exports.enable(load());
|
|
1165
1167
|
});
|
|
1166
|
-
node.init;
|
|
1167
|
-
node.log;
|
|
1168
|
-
node.formatArgs;
|
|
1169
|
-
node.save;
|
|
1170
|
-
node.load;
|
|
1171
|
-
node.useColors;
|
|
1172
|
-
node.colors;
|
|
1173
|
-
node.inspectOpts;
|
|
1168
|
+
var node_1 = node.init;
|
|
1169
|
+
var node_2 = node.log;
|
|
1170
|
+
var node_3 = node.formatArgs;
|
|
1171
|
+
var node_4 = node.save;
|
|
1172
|
+
var node_5 = node.load;
|
|
1173
|
+
var node_6 = node.useColors;
|
|
1174
|
+
var node_7 = node.colors;
|
|
1175
|
+
var node_8 = node.inspectOpts;
|
|
1174
1176
|
|
|
1175
1177
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1176
1178
|
/**
|
|
@@ -1571,239 +1573,199 @@ module.exports = exports['default'];
|
|
|
1571
1573
|
|
|
1572
1574
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1573
1575
|
|
|
1574
|
-
function
|
|
1575
|
-
|
|
1576
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1577
|
-
|
|
1578
|
-
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); } }
|
|
1579
|
-
|
|
1580
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1576
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1581
1577
|
|
|
1582
|
-
function
|
|
1578
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1583
1579
|
|
|
1584
|
-
function
|
|
1585
|
-
|
|
1586
|
-
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); }; }
|
|
1587
|
-
|
|
1588
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1589
|
-
|
|
1590
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1591
|
-
|
|
1592
|
-
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; } }
|
|
1593
|
-
|
|
1594
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1595
1581
|
|
|
1596
|
-
function
|
|
1582
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1597
1583
|
|
|
1598
|
-
function
|
|
1584
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1599
1585
|
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
* @param {Object}
|
|
1605
|
-
* @param {Object} props
|
|
1586
|
+
/**
|
|
1587
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1588
|
+
*
|
|
1589
|
+
* @param {Object} prevProps
|
|
1590
|
+
* @param {Object} props
|
|
1606
1591
|
*/
|
|
1607
|
-
|
|
1608
1592
|
function shouldUpdateVideo(prevProps, props) {
|
|
1609
1593
|
// A changing video should always trigger an update
|
|
1610
1594
|
if (prevProps.videoId !== props.videoId) {
|
|
1611
1595
|
return true;
|
|
1612
|
-
}
|
|
1613
|
-
// update.
|
|
1614
|
-
|
|
1596
|
+
}
|
|
1615
1597
|
|
|
1598
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
|
+
// update.
|
|
1616
1600
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1617
1601
|
var vars = props.opts.playerVars || {};
|
|
1602
|
+
|
|
1618
1603
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1619
1604
|
}
|
|
1620
|
-
/**
|
|
1621
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1622
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1623
|
-
* player reset is necessary.
|
|
1624
|
-
*
|
|
1625
|
-
* @param {Object} opts
|
|
1626
|
-
*/
|
|
1627
|
-
|
|
1628
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1608
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
+
* player reset is necessary.
|
|
1610
|
+
*
|
|
1611
|
+
* @param {Object} opts
|
|
1612
|
+
*/
|
|
1629
1613
|
function filterResetOptions(opts) {
|
|
1630
|
-
return
|
|
1631
|
-
playerVars:
|
|
1614
|
+
return _extends({}, opts, {
|
|
1615
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1632
1616
|
autoplay: 0,
|
|
1633
1617
|
start: 0,
|
|
1634
1618
|
end: 0
|
|
1635
|
-
}
|
|
1619
|
+
})
|
|
1636
1620
|
});
|
|
1637
1621
|
}
|
|
1638
|
-
/**
|
|
1639
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1640
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1641
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1642
|
-
* those.
|
|
1643
|
-
*
|
|
1644
|
-
* @param {Object} prevProps
|
|
1645
|
-
* @param {Object} props
|
|
1646
|
-
*/
|
|
1647
|
-
|
|
1648
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1625
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1626
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1627
|
+
* those.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Object} prevProps
|
|
1630
|
+
* @param {Object} props
|
|
1631
|
+
*/
|
|
1649
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1650
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1651
1634
|
}
|
|
1652
|
-
/**
|
|
1653
|
-
* Check whether a props change should result in an id or className update.
|
|
1654
|
-
*
|
|
1655
|
-
* @param {Object} prevProps
|
|
1656
|
-
* @param {Object} props
|
|
1657
|
-
*/
|
|
1658
|
-
|
|
1659
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Check whether a props change should result in an id or className update.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {Object} prevProps
|
|
1640
|
+
* @param {Object} props
|
|
1641
|
+
*/
|
|
1660
1642
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1661
1643
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1662
1644
|
}
|
|
1663
1645
|
|
|
1664
|
-
var YouTube =
|
|
1646
|
+
var YouTube = function (_React$Component) {
|
|
1665
1647
|
_inherits(YouTube, _React$Component);
|
|
1666
1648
|
|
|
1667
|
-
var _super = _createSuper(YouTube);
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1671
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1672
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1673
|
-
*/
|
|
1674
1649
|
function YouTube(props) {
|
|
1675
|
-
var _this;
|
|
1676
|
-
|
|
1677
1650
|
_classCallCheck(this, YouTube);
|
|
1678
1651
|
|
|
1679
|
-
_this =
|
|
1652
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1680
1653
|
|
|
1681
|
-
|
|
1654
|
+
_this.onPlayerReady = function (event) {
|
|
1682
1655
|
return _this.props.onReady(event);
|
|
1683
|
-
}
|
|
1656
|
+
};
|
|
1684
1657
|
|
|
1685
|
-
|
|
1658
|
+
_this.onPlayerError = function (event) {
|
|
1686
1659
|
return _this.props.onError(event);
|
|
1687
|
-
}
|
|
1660
|
+
};
|
|
1688
1661
|
|
|
1689
|
-
|
|
1662
|
+
_this.onPlayerStateChange = function (event) {
|
|
1690
1663
|
_this.props.onStateChange(event);
|
|
1691
|
-
|
|
1692
1664
|
switch (event.data) {
|
|
1665
|
+
|
|
1693
1666
|
case YouTube.PlayerState.ENDED:
|
|
1694
1667
|
_this.props.onEnd(event);
|
|
1695
|
-
|
|
1696
1668
|
break;
|
|
1697
1669
|
|
|
1698
1670
|
case YouTube.PlayerState.PLAYING:
|
|
1699
1671
|
_this.props.onPlay(event);
|
|
1700
|
-
|
|
1701
1672
|
break;
|
|
1702
1673
|
|
|
1703
1674
|
case YouTube.PlayerState.PAUSED:
|
|
1704
1675
|
_this.props.onPause(event);
|
|
1705
|
-
|
|
1706
1676
|
break;
|
|
1707
1677
|
}
|
|
1708
|
-
}
|
|
1678
|
+
};
|
|
1709
1679
|
|
|
1710
|
-
|
|
1680
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1711
1681
|
return _this.props.onPlaybackRateChange(event);
|
|
1712
|
-
}
|
|
1682
|
+
};
|
|
1713
1683
|
|
|
1714
|
-
|
|
1684
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1715
1685
|
return _this.props.onPlaybackQualityChange(event);
|
|
1716
|
-
}
|
|
1686
|
+
};
|
|
1717
1687
|
|
|
1718
|
-
|
|
1688
|
+
_this.createPlayer = function () {
|
|
1719
1689
|
// do not attempt to create a player server-side, it won't work
|
|
1720
|
-
if (typeof document === 'undefined') return;
|
|
1721
|
-
|
|
1722
|
-
var playerOpts =
|
|
1690
|
+
if (typeof document === 'undefined') return;
|
|
1691
|
+
// create player
|
|
1692
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1723
1693
|
// preload the `videoId` video if one is already given
|
|
1724
1694
|
videoId: _this.props.videoId
|
|
1725
1695
|
});
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1696
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1697
|
+
// attach event handlers
|
|
1729
1698
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1730
|
-
|
|
1731
1699
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1732
|
-
|
|
1733
1700
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1734
|
-
|
|
1735
1701
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1736
|
-
|
|
1737
1702
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1738
|
-
}
|
|
1703
|
+
};
|
|
1739
1704
|
|
|
1740
|
-
|
|
1705
|
+
_this.resetPlayer = function () {
|
|
1741
1706
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1742
|
-
}
|
|
1707
|
+
};
|
|
1743
1708
|
|
|
1744
|
-
|
|
1709
|
+
_this.updatePlayer = function () {
|
|
1745
1710
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1746
1711
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1747
1712
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1748
1713
|
});
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1752
|
-
return _this.internalPlayer;
|
|
1753
|
-
});
|
|
1714
|
+
};
|
|
1754
1715
|
|
|
1755
|
-
|
|
1716
|
+
_this.updateVideo = function () {
|
|
1756
1717
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1757
1718
|
_this.internalPlayer.stopVideo();
|
|
1758
|
-
|
|
1759
1719
|
return;
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1720
|
+
}
|
|
1762
1721
|
|
|
1722
|
+
// set queueing options
|
|
1763
1723
|
var autoplay = false;
|
|
1764
1724
|
var opts = {
|
|
1765
1725
|
videoId: _this.props.videoId
|
|
1766
1726
|
};
|
|
1767
|
-
|
|
1768
1727
|
if ('playerVars' in _this.props.opts) {
|
|
1769
1728
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1770
|
-
|
|
1771
1729
|
if ('start' in _this.props.opts.playerVars) {
|
|
1772
1730
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1773
1731
|
}
|
|
1774
|
-
|
|
1775
1732
|
if ('end' in _this.props.opts.playerVars) {
|
|
1776
1733
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1777
1734
|
}
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1735
|
+
}
|
|
1780
1736
|
|
|
1737
|
+
// if autoplay is enabled loadVideoById
|
|
1781
1738
|
if (autoplay) {
|
|
1782
1739
|
_this.internalPlayer.loadVideoById(opts);
|
|
1783
|
-
|
|
1784
1740
|
return;
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
|
|
1741
|
+
}
|
|
1742
|
+
// default behaviour just cues the video
|
|
1788
1743
|
_this.internalPlayer.cueVideoById(opts);
|
|
1789
|
-
}
|
|
1744
|
+
};
|
|
1790
1745
|
|
|
1791
|
-
|
|
1746
|
+
_this.refContainer = function (container) {
|
|
1792
1747
|
_this.container = container;
|
|
1793
|
-
}
|
|
1748
|
+
};
|
|
1794
1749
|
|
|
1795
1750
|
_this.container = null;
|
|
1796
1751
|
_this.internalPlayer = null;
|
|
1797
1752
|
return _this;
|
|
1798
1753
|
}
|
|
1799
1754
|
|
|
1755
|
+
/**
|
|
1756
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
+
*/
|
|
1760
|
+
|
|
1761
|
+
|
|
1800
1762
|
_createClass(YouTube, [{
|
|
1801
|
-
key:
|
|
1763
|
+
key: 'componentDidMount',
|
|
1802
1764
|
value: function componentDidMount() {
|
|
1803
1765
|
this.createPlayer();
|
|
1804
1766
|
}
|
|
1805
1767
|
}, {
|
|
1806
|
-
key:
|
|
1768
|
+
key: 'componentDidUpdate',
|
|
1807
1769
|
value: function componentDidUpdate(prevProps) {
|
|
1808
1770
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1809
1771
|
this.updatePlayer();
|
|
@@ -1818,70 +1780,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1818
1780
|
}
|
|
1819
1781
|
}
|
|
1820
1782
|
}, {
|
|
1821
|
-
key:
|
|
1783
|
+
key: 'componentWillUnmount',
|
|
1822
1784
|
value: function componentWillUnmount() {
|
|
1823
|
-
/**
|
|
1824
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1825
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1826
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1827
|
-
* this method isn't quick enough to reset the container element.
|
|
1785
|
+
/**
|
|
1786
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1787
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
+
* this method isn't quick enough to reset the container element.
|
|
1828
1790
|
*/
|
|
1829
1791
|
this.internalPlayer.destroy();
|
|
1830
1792
|
}
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
*
|
|
1834
|
-
*
|
|
1835
|
-
*
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1796
|
+
*
|
|
1797
|
+
* @param {Object} event
|
|
1798
|
+
* @param {Object} target - player object
|
|
1799
|
+
*/
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Integer} data - error type
|
|
1807
|
+
* @param {Object} target - player object
|
|
1808
|
+
*/
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
+
*
|
|
1814
|
+
* @param {Object} event
|
|
1815
|
+
* @param {Integer} data - status change type
|
|
1816
|
+
* @param {Object} target - actual YT player
|
|
1817
|
+
*/
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
+
*
|
|
1823
|
+
* @param {Object} event
|
|
1824
|
+
* @param {Float} data - playback rate
|
|
1825
|
+
* @param {Object} target - actual YT player
|
|
1826
|
+
*/
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
+
*
|
|
1832
|
+
* @param {Object} event
|
|
1833
|
+
* @param {String} data - playback quality
|
|
1834
|
+
* @param {Object} target - actual YT player
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
+
* React should update this automatically but since the Youtube Player API
|
|
1851
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
+
* Youtube Player API methods to update the video.
|
|
1836
1859
|
*/
|
|
1837
1860
|
|
|
1838
1861
|
}, {
|
|
1839
|
-
key:
|
|
1862
|
+
key: 'render',
|
|
1840
1863
|
value: function render() {
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
id: this.props.id,
|
|
1845
|
-
|
|
1846
|
-
ref: this.refContainer
|
|
1847
|
-
}));
|
|
1864
|
+
return React__default.createElement(
|
|
1865
|
+
'div',
|
|
1866
|
+
{ className: this.props.containerClassName },
|
|
1867
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1868
|
+
);
|
|
1848
1869
|
}
|
|
1849
1870
|
}]);
|
|
1850
1871
|
|
|
1851
1872
|
return YouTube;
|
|
1852
|
-
}(React__default
|
|
1853
|
-
|
|
1854
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1855
|
-
UNSTARTED: -1,
|
|
1856
|
-
ENDED: 0,
|
|
1857
|
-
PLAYING: 1,
|
|
1858
|
-
PAUSED: 2,
|
|
1859
|
-
BUFFERING: 3,
|
|
1860
|
-
CUED: 5
|
|
1861
|
-
});
|
|
1873
|
+
}(React__default.Component);
|
|
1862
1874
|
|
|
1863
1875
|
YouTube.propTypes = {
|
|
1864
|
-
videoId: PropTypes__default
|
|
1876
|
+
videoId: PropTypes__default.string,
|
|
1877
|
+
|
|
1865
1878
|
// custom ID for player element
|
|
1866
|
-
id: PropTypes__default
|
|
1879
|
+
id: PropTypes__default.string,
|
|
1880
|
+
|
|
1867
1881
|
// custom class name for player element
|
|
1868
|
-
className: PropTypes__default
|
|
1882
|
+
className: PropTypes__default.string,
|
|
1869
1883
|
// custom class name for player container element
|
|
1870
|
-
containerClassName: PropTypes__default
|
|
1884
|
+
containerClassName: PropTypes__default.string,
|
|
1885
|
+
|
|
1871
1886
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1872
|
-
opts: PropTypes__default
|
|
1887
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1888
|
+
|
|
1873
1889
|
// event subscriptions
|
|
1874
|
-
onReady: PropTypes__default
|
|
1875
|
-
onError: PropTypes__default
|
|
1876
|
-
onPlay: PropTypes__default
|
|
1877
|
-
onPause: PropTypes__default
|
|
1878
|
-
onEnd: PropTypes__default
|
|
1879
|
-
onStateChange: PropTypes__default
|
|
1880
|
-
onPlaybackRateChange: PropTypes__default
|
|
1881
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1890
|
+
onReady: PropTypes__default.func,
|
|
1891
|
+
onError: PropTypes__default.func,
|
|
1892
|
+
onPlay: PropTypes__default.func,
|
|
1893
|
+
onPause: PropTypes__default.func,
|
|
1894
|
+
onEnd: PropTypes__default.func,
|
|
1895
|
+
onStateChange: PropTypes__default.func,
|
|
1896
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1897
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1882
1898
|
};
|
|
1883
1899
|
YouTube.defaultProps = {
|
|
1884
|
-
videoId: null,
|
|
1885
1900
|
id: null,
|
|
1886
1901
|
className: null,
|
|
1887
1902
|
opts: {},
|
|
@@ -1895,6 +1910,14 @@ YouTube.defaultProps = {
|
|
|
1895
1910
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1896
1911
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1897
1912
|
};
|
|
1913
|
+
YouTube.PlayerState = {
|
|
1914
|
+
UNSTARTED: -1,
|
|
1915
|
+
ENDED: 0,
|
|
1916
|
+
PLAYING: 1,
|
|
1917
|
+
PAUSED: 2,
|
|
1918
|
+
BUFFERING: 3,
|
|
1919
|
+
CUED: 5
|
|
1920
|
+
};
|
|
1898
1921
|
|
|
1899
1922
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1900
1923
|
var url = _ref.url;
|
|
@@ -1994,11 +2017,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1994
2017
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1995
2018
|
};
|
|
1996
2019
|
|
|
1997
|
-
return React__default
|
|
2020
|
+
return React__default.createElement(
|
|
1998
2021
|
'div',
|
|
1999
2022
|
{ id: 'fluid-video-container' },
|
|
2000
|
-
React__default
|
|
2001
|
-
React__default
|
|
2023
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2024
|
+
React__default.createElement(
|
|
2002
2025
|
'style',
|
|
2003
2026
|
{ jsx: 'true' },
|
|
2004
2027
|
'\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 '
|
|
@@ -2011,20 +2034,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2011
2034
|
content = _ref.content,
|
|
2012
2035
|
getSerializers = _ref.getSerializers;
|
|
2013
2036
|
|
|
2014
|
-
return React__default
|
|
2037
|
+
return React__default.createElement(
|
|
2015
2038
|
'article',
|
|
2016
2039
|
{ className: 'sidebar' },
|
|
2017
|
-
React__default
|
|
2040
|
+
React__default.createElement(
|
|
2018
2041
|
'div',
|
|
2019
2042
|
null,
|
|
2020
|
-
React__default
|
|
2043
|
+
React__default.createElement(
|
|
2021
2044
|
'h3',
|
|
2022
2045
|
null,
|
|
2023
2046
|
caption
|
|
2024
2047
|
),
|
|
2025
|
-
React__default
|
|
2048
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2026
2049
|
),
|
|
2027
|
-
React__default
|
|
2050
|
+
React__default.createElement(
|
|
2028
2051
|
'style',
|
|
2029
2052
|
{ jsx: 'true' },
|
|
2030
2053
|
'\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 '
|
|
@@ -2035,18 +2058,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2035
2058
|
var TableShow = function TableShow(_ref) {
|
|
2036
2059
|
var rows = _ref.rows;
|
|
2037
2060
|
|
|
2038
|
-
return React__default
|
|
2061
|
+
return React__default.createElement(
|
|
2039
2062
|
reactBootstrap.Table,
|
|
2040
2063
|
{ bordered: true, hover: true, responsive: true },
|
|
2041
|
-
React__default
|
|
2064
|
+
React__default.createElement(
|
|
2042
2065
|
'tbody',
|
|
2043
2066
|
null,
|
|
2044
2067
|
rows && rows.map(function (row) {
|
|
2045
|
-
return React__default
|
|
2068
|
+
return React__default.createElement(
|
|
2046
2069
|
'tr',
|
|
2047
2070
|
{ key: row._key },
|
|
2048
2071
|
row.cells && row.cells.map(function (cell, index) {
|
|
2049
|
-
return cell && React__default
|
|
2072
|
+
return cell && React__default.createElement(
|
|
2050
2073
|
'td',
|
|
2051
2074
|
{ key: index },
|
|
2052
2075
|
cell
|
|
@@ -2074,7 +2097,7 @@ var Media = function Media(_ref) {
|
|
|
2074
2097
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2075
2098
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2076
2099
|
|
|
2077
|
-
var builder = index.imageUrlBuilder(client);
|
|
2100
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2078
2101
|
|
|
2079
2102
|
var urlFor = function urlFor(source) {
|
|
2080
2103
|
return builder.image(source).auto('format');
|
|
@@ -2149,18 +2172,18 @@ var Media = function Media(_ref) {
|
|
|
2149
2172
|
margin: imageMargin
|
|
2150
2173
|
};
|
|
2151
2174
|
|
|
2152
|
-
return React__default
|
|
2175
|
+
return React__default.createElement(
|
|
2153
2176
|
reactBootstrap.Figure,
|
|
2154
2177
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2155
|
-
React__default
|
|
2178
|
+
React__default.createElement(
|
|
2156
2179
|
'a',
|
|
2157
2180
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2158
|
-
React__default
|
|
2181
|
+
React__default.createElement(
|
|
2159
2182
|
index$2.LazyLoad,
|
|
2160
2183
|
{ once: true },
|
|
2161
|
-
React__default
|
|
2184
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2162
2185
|
),
|
|
2163
|
-
caption && React__default
|
|
2186
|
+
caption && React__default.createElement(
|
|
2164
2187
|
reactBootstrap.Figure.Caption,
|
|
2165
2188
|
{ className: 'media-caption' },
|
|
2166
2189
|
caption
|
|
@@ -2168,9 +2191,9 @@ var Media = function Media(_ref) {
|
|
|
2168
2191
|
)
|
|
2169
2192
|
);
|
|
2170
2193
|
} else if (caption && caption !== '') {
|
|
2171
|
-
return React__default
|
|
2194
|
+
return React__default.createElement(
|
|
2172
2195
|
'a',
|
|
2173
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2196
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2174
2197
|
href: uploadDoc.asset.url + '?dl='
|
|
2175
2198
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2176
2199
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2185,10 +2208,10 @@ var Media = function Media(_ref) {
|
|
|
2185
2208
|
var IFrame = function IFrame(_ref) {
|
|
2186
2209
|
var url = _ref.url;
|
|
2187
2210
|
|
|
2188
|
-
return React__default
|
|
2211
|
+
return React__default.createElement(
|
|
2189
2212
|
'div',
|
|
2190
2213
|
{ className: 'd-block text-center mb-3' },
|
|
2191
|
-
React__default
|
|
2214
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2192
2215
|
);
|
|
2193
2216
|
};
|
|
2194
2217
|
|
|
@@ -2223,7 +2246,7 @@ var Video = function Video(_ref) {
|
|
|
2223
2246
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2224
2247
|
//console.log('success:', success.ref)
|
|
2225
2248
|
var player = success.ref;
|
|
2226
|
-
if (_typeof
|
|
2249
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2227
2250
|
player.ima3.settings.debug = true;
|
|
2228
2251
|
if (targeting.content_placement && targeting.document_url) {
|
|
2229
2252
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2321,44 +2344,44 @@ var Video = function Video(_ref) {
|
|
|
2321
2344
|
|
|
2322
2345
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2323
2346
|
if (videoID) {
|
|
2324
|
-
return React__default
|
|
2347
|
+
return React__default.createElement(
|
|
2325
2348
|
'div',
|
|
2326
2349
|
null,
|
|
2327
|
-
React__default
|
|
2350
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2328
2351
|
onSuccess: onVideoSuccess,
|
|
2329
2352
|
accountId: accountIDs.brightcove.accountId,
|
|
2330
2353
|
videoId: videoID,
|
|
2331
2354
|
playerId: accountIDs.brightcove.playerId,
|
|
2332
2355
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2333
2356
|
}),
|
|
2334
|
-
React__default
|
|
2357
|
+
React__default.createElement(
|
|
2335
2358
|
'style',
|
|
2336
2359
|
{ jsx: 'true' },
|
|
2337
2360
|
'\n .brightcove {\n position: relative;\n margin-bottom: 1rem;\n height: 100%;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n min-height: 411px;\n }\n '
|
|
2338
2361
|
)
|
|
2339
2362
|
);
|
|
2340
2363
|
} else if (playlistID) {
|
|
2341
|
-
return React__default
|
|
2364
|
+
return React__default.createElement(
|
|
2342
2365
|
'div',
|
|
2343
2366
|
null,
|
|
2344
|
-
React__default
|
|
2367
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2345
2368
|
accountId: accountIDs.brightcove.accountId,
|
|
2346
2369
|
playlistId: playlistID,
|
|
2347
2370
|
playerId: accountIDs.brightcove.playerId,
|
|
2348
2371
|
onSuccess: onVideoSuccess,
|
|
2349
2372
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2350
2373
|
}),
|
|
2351
|
-
React__default
|
|
2374
|
+
React__default.createElement(
|
|
2352
2375
|
'style',
|
|
2353
2376
|
{ jsx: 'true' },
|
|
2354
2377
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .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 '
|
|
2355
2378
|
)
|
|
2356
2379
|
);
|
|
2357
2380
|
} else if (experienceID) {
|
|
2358
|
-
return React__default
|
|
2381
|
+
return React__default.createElement(
|
|
2359
2382
|
'div',
|
|
2360
2383
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2361
|
-
videoLoaded && React__default
|
|
2384
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2362
2385
|
);
|
|
2363
2386
|
}
|
|
2364
2387
|
return null;
|
|
@@ -2375,7 +2398,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2375
2398
|
});
|
|
2376
2399
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2377
2400
|
|
|
2378
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2401
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2379
2402
|
|
|
2380
2403
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2381
2404
|
|
|
@@ -2571,9 +2594,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2571
2594
|
});
|
|
2572
2595
|
|
|
2573
2596
|
_commonjsHelpers.unwrapExports(props);
|
|
2574
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2575
|
-
props.defaultProps;
|
|
2576
|
-
props.propTypes;
|
|
2597
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2598
|
+
var props_2 = props.defaultProps;
|
|
2599
|
+
var props_3 = props.propTypes;
|
|
2577
2600
|
|
|
2578
2601
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2579
2602
|
return isNonNullObject(value)
|
|
@@ -2738,17 +2761,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2738
2761
|
|
|
2739
2762
|
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; }
|
|
2740
2763
|
|
|
2741
|
-
function
|
|
2742
|
-
|
|
2743
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2744
|
-
|
|
2745
|
-
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."); }
|
|
2764
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2746
2765
|
|
|
2747
|
-
function
|
|
2766
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2748
2767
|
|
|
2749
|
-
function
|
|
2750
|
-
|
|
2751
|
-
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; }
|
|
2768
|
+
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; }
|
|
2752
2769
|
|
|
2753
2770
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2754
2771
|
|
|
@@ -2878,12 +2895,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2878
2895
|
|
|
2879
2896
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2880
2897
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2881
|
-
|
|
2882
|
-
var
|
|
2883
|
-
|
|
2898
|
+
var _iteratorNormalCompletion = true;
|
|
2899
|
+
var _didIteratorError = false;
|
|
2900
|
+
var _iteratorError = undefined;
|
|
2884
2901
|
|
|
2885
2902
|
try {
|
|
2886
|
-
for (_iterator.
|
|
2903
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2887
2904
|
var p = _step.value;
|
|
2888
2905
|
|
|
2889
2906
|
if (props$1[p]) {
|
|
@@ -2898,9 +2915,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2898
2915
|
}
|
|
2899
2916
|
}
|
|
2900
2917
|
} catch (err) {
|
|
2901
|
-
|
|
2918
|
+
_didIteratorError = true;
|
|
2919
|
+
_iteratorError = err;
|
|
2902
2920
|
} finally {
|
|
2903
|
-
|
|
2921
|
+
try {
|
|
2922
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2923
|
+
_iterator["return"]();
|
|
2924
|
+
}
|
|
2925
|
+
} finally {
|
|
2926
|
+
if (_didIteratorError) {
|
|
2927
|
+
throw _iteratorError;
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2904
2930
|
}
|
|
2905
2931
|
|
|
2906
2932
|
return config;
|
|
@@ -2965,7 +2991,7 @@ function isEqual(a, b) {
|
|
|
2965
2991
|
return true;
|
|
2966
2992
|
}
|
|
2967
2993
|
|
|
2968
|
-
if ((0, React__default
|
|
2994
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2969
2995
|
return true;
|
|
2970
2996
|
}
|
|
2971
2997
|
|
|
@@ -3008,17 +3034,17 @@ function isMediaStream(url) {
|
|
|
3008
3034
|
});
|
|
3009
3035
|
|
|
3010
3036
|
_commonjsHelpers.unwrapExports(utils);
|
|
3011
|
-
utils.parseStartTime;
|
|
3012
|
-
utils.parseEndTime;
|
|
3013
|
-
utils.randomString;
|
|
3014
|
-
utils.queryString;
|
|
3015
|
-
utils.getSDK;
|
|
3016
|
-
utils.getConfig;
|
|
3017
|
-
utils.omit;
|
|
3018
|
-
utils.callPlayer;
|
|
3019
|
-
utils.isObject;
|
|
3020
|
-
utils.isEqual;
|
|
3021
|
-
utils.isMediaStream;
|
|
3037
|
+
var utils_1 = utils.parseStartTime;
|
|
3038
|
+
var utils_2 = utils.parseEndTime;
|
|
3039
|
+
var utils_3 = utils.randomString;
|
|
3040
|
+
var utils_4 = utils.queryString;
|
|
3041
|
+
var utils_5 = utils.getSDK;
|
|
3042
|
+
var utils_6 = utils.getConfig;
|
|
3043
|
+
var utils_7 = utils.omit;
|
|
3044
|
+
var utils_8 = utils.callPlayer;
|
|
3045
|
+
var utils_9 = utils.isObject;
|
|
3046
|
+
var utils_10 = utils.isEqual;
|
|
3047
|
+
var utils_11 = utils.isMediaStream;
|
|
3022
3048
|
|
|
3023
3049
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3024
3050
|
|
|
@@ -3027,7 +3053,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3027
3053
|
});
|
|
3028
3054
|
exports["default"] = void 0;
|
|
3029
3055
|
|
|
3030
|
-
var _react = _interopRequireWildcard(React__default
|
|
3056
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3031
3057
|
|
|
3032
3058
|
|
|
3033
3059
|
|
|
@@ -3047,16 +3073,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3047
3073
|
|
|
3048
3074
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3049
3075
|
|
|
3050
|
-
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); }; }
|
|
3051
|
-
|
|
3052
3076
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3053
3077
|
|
|
3054
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3055
|
-
|
|
3056
|
-
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; } }
|
|
3057
|
-
|
|
3058
3078
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3059
3079
|
|
|
3080
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3081
|
+
|
|
3060
3082
|
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); }
|
|
3061
3083
|
|
|
3062
3084
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3065,12 +3087,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3065
3087
|
|
|
3066
3088
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3067
3089
|
|
|
3068
|
-
var Player =
|
|
3090
|
+
var Player =
|
|
3091
|
+
/*#__PURE__*/
|
|
3092
|
+
function (_Component) {
|
|
3069
3093
|
_inherits(Player, _Component);
|
|
3070
3094
|
|
|
3071
|
-
var _super = _createSuper(Player);
|
|
3072
|
-
|
|
3073
3095
|
function Player() {
|
|
3096
|
+
var _getPrototypeOf2;
|
|
3097
|
+
|
|
3074
3098
|
var _this;
|
|
3075
3099
|
|
|
3076
3100
|
_classCallCheck(this, Player);
|
|
@@ -3079,7 +3103,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3079
3103
|
_args[_key] = arguments[_key];
|
|
3080
3104
|
}
|
|
3081
3105
|
|
|
3082
|
-
_this =
|
|
3106
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3083
3107
|
|
|
3084
3108
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3085
3109
|
|
|
@@ -3404,7 +3428,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3404
3428
|
return null;
|
|
3405
3429
|
}
|
|
3406
3430
|
|
|
3407
|
-
return
|
|
3431
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3408
3432
|
ref: this.ref,
|
|
3409
3433
|
onReady: this.handleReady,
|
|
3410
3434
|
onPlay: this.handlePlay,
|
|
@@ -3437,7 +3461,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3437
3461
|
});
|
|
3438
3462
|
exports["default"] = createSinglePlayer;
|
|
3439
3463
|
|
|
3440
|
-
var _react = _interopRequireWildcard(React__default
|
|
3464
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3441
3465
|
|
|
3442
3466
|
|
|
3443
3467
|
|
|
@@ -3465,16 +3489,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3465
3489
|
|
|
3466
3490
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3467
3491
|
|
|
3468
|
-
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); }; }
|
|
3469
|
-
|
|
3470
3492
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3471
3493
|
|
|
3472
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3473
|
-
|
|
3474
|
-
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; } }
|
|
3475
|
-
|
|
3476
3494
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3477
3495
|
|
|
3496
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3497
|
+
|
|
3478
3498
|
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); }
|
|
3479
3499
|
|
|
3480
3500
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3486,12 +3506,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3486
3506
|
function createSinglePlayer(activePlayer) {
|
|
3487
3507
|
var _class, _temp;
|
|
3488
3508
|
|
|
3489
|
-
return _temp = _class =
|
|
3509
|
+
return _temp = _class =
|
|
3510
|
+
/*#__PURE__*/
|
|
3511
|
+
function (_Component) {
|
|
3490
3512
|
_inherits(SinglePlayer, _Component);
|
|
3491
3513
|
|
|
3492
|
-
var _super = _createSuper(SinglePlayer);
|
|
3493
|
-
|
|
3494
3514
|
function SinglePlayer() {
|
|
3515
|
+
var _getPrototypeOf2;
|
|
3516
|
+
|
|
3495
3517
|
var _this;
|
|
3496
3518
|
|
|
3497
3519
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3500,7 +3522,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3500
3522
|
args[_key] = arguments[_key];
|
|
3501
3523
|
}
|
|
3502
3524
|
|
|
3503
|
-
_this =
|
|
3525
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3504
3526
|
|
|
3505
3527
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3506
3528
|
|
|
@@ -3568,12 +3590,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3568
3590
|
height = _this$props.height,
|
|
3569
3591
|
Wrapper = _this$props.wrapper;
|
|
3570
3592
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3571
|
-
return
|
|
3593
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3572
3594
|
style: _objectSpread({}, style, {
|
|
3573
3595
|
width: width,
|
|
3574
3596
|
height: height
|
|
3575
3597
|
})
|
|
3576
|
-
}, otherProps),
|
|
3598
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3577
3599
|
ref: this.ref,
|
|
3578
3600
|
activePlayer: activePlayer,
|
|
3579
3601
|
config: this.config
|
|
@@ -3595,7 +3617,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3595
3617
|
});
|
|
3596
3618
|
exports["default"] = exports.YouTube = void 0;
|
|
3597
3619
|
|
|
3598
|
-
var _react = _interopRequireWildcard(React__default
|
|
3620
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3599
3621
|
|
|
3600
3622
|
|
|
3601
3623
|
|
|
@@ -3619,31 +3641,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3619
3641
|
|
|
3620
3642
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3621
3643
|
|
|
3622
|
-
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); }; }
|
|
3623
|
-
|
|
3624
3644
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3625
3645
|
|
|
3626
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3627
|
-
|
|
3628
|
-
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; } }
|
|
3629
|
-
|
|
3630
3646
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3631
3647
|
|
|
3648
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3649
|
+
|
|
3632
3650
|
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); }
|
|
3633
3651
|
|
|
3634
3652
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3635
3653
|
|
|
3636
3654
|
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; }
|
|
3637
3655
|
|
|
3638
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3656
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3639
3657
|
|
|
3640
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3658
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3641
3659
|
|
|
3642
|
-
function
|
|
3643
|
-
|
|
3644
|
-
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; }
|
|
3645
|
-
|
|
3646
|
-
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; }
|
|
3660
|
+
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; }
|
|
3647
3661
|
|
|
3648
3662
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3649
3663
|
|
|
@@ -3668,12 +3682,14 @@ function parsePlaylist(url) {
|
|
|
3668
3682
|
return {};
|
|
3669
3683
|
}
|
|
3670
3684
|
|
|
3671
|
-
var YouTube =
|
|
3685
|
+
var YouTube =
|
|
3686
|
+
/*#__PURE__*/
|
|
3687
|
+
function (_Component) {
|
|
3672
3688
|
_inherits(YouTube, _Component);
|
|
3673
3689
|
|
|
3674
|
-
var _super = _createSuper(YouTube);
|
|
3675
|
-
|
|
3676
3690
|
function YouTube() {
|
|
3691
|
+
var _getPrototypeOf2;
|
|
3692
|
+
|
|
3677
3693
|
var _this;
|
|
3678
3694
|
|
|
3679
3695
|
_classCallCheck(this, YouTube);
|
|
@@ -3682,7 +3698,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3682
3698
|
args[_key] = arguments[_key];
|
|
3683
3699
|
}
|
|
3684
3700
|
|
|
3685
|
-
_this =
|
|
3701
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3686
3702
|
|
|
3687
3703
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3688
3704
|
|
|
@@ -3870,9 +3886,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3870
3886
|
height: '100%',
|
|
3871
3887
|
display: display
|
|
3872
3888
|
};
|
|
3873
|
-
return
|
|
3889
|
+
return _react["default"].createElement("div", {
|
|
3874
3890
|
style: style
|
|
3875
|
-
},
|
|
3891
|
+
}, _react["default"].createElement("div", {
|
|
3876
3892
|
ref: this.ref
|
|
3877
3893
|
}));
|
|
3878
3894
|
}
|
|
@@ -3895,7 +3911,7 @@ exports["default"] = _default;
|
|
|
3895
3911
|
});
|
|
3896
3912
|
|
|
3897
3913
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
3898
|
-
YouTube_1.YouTube;
|
|
3914
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
3899
3915
|
|
|
3900
3916
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3901
3917
|
|
|
@@ -3904,7 +3920,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3904
3920
|
});
|
|
3905
3921
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3906
3922
|
|
|
3907
|
-
var _react = _interopRequireWildcard(React__default
|
|
3923
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3908
3924
|
|
|
3909
3925
|
|
|
3910
3926
|
|
|
@@ -3928,16 +3944,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3928
3944
|
|
|
3929
3945
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3930
3946
|
|
|
3931
|
-
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); }; }
|
|
3932
|
-
|
|
3933
3947
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3934
3948
|
|
|
3935
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3936
|
-
|
|
3937
|
-
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; } }
|
|
3938
|
-
|
|
3939
3949
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3940
3950
|
|
|
3951
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3952
|
+
|
|
3941
3953
|
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); }
|
|
3942
3954
|
|
|
3943
3955
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3946,14 +3958,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3946
3958
|
|
|
3947
3959
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3948
3960
|
var SDK_GLOBAL = 'SC';
|
|
3949
|
-
var MATCH_URL = /(
|
|
3961
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3950
3962
|
|
|
3951
|
-
var SoundCloud =
|
|
3963
|
+
var SoundCloud =
|
|
3964
|
+
/*#__PURE__*/
|
|
3965
|
+
function (_Component) {
|
|
3952
3966
|
_inherits(SoundCloud, _Component);
|
|
3953
3967
|
|
|
3954
|
-
var _super = _createSuper(SoundCloud);
|
|
3955
|
-
|
|
3956
3968
|
function SoundCloud() {
|
|
3969
|
+
var _getPrototypeOf2;
|
|
3970
|
+
|
|
3957
3971
|
var _this;
|
|
3958
3972
|
|
|
3959
3973
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3962,7 +3976,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3962
3976
|
args[_key] = arguments[_key];
|
|
3963
3977
|
}
|
|
3964
3978
|
|
|
3965
|
-
_this =
|
|
3979
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3966
3980
|
|
|
3967
3981
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3968
3982
|
|
|
@@ -4083,7 +4097,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4083
4097
|
height: '100%',
|
|
4084
4098
|
display: display
|
|
4085
4099
|
};
|
|
4086
|
-
return
|
|
4100
|
+
return _react["default"].createElement("iframe", {
|
|
4087
4101
|
ref: this.ref,
|
|
4088
4102
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4089
4103
|
style: style,
|
|
@@ -4112,7 +4126,7 @@ exports["default"] = _default;
|
|
|
4112
4126
|
});
|
|
4113
4127
|
|
|
4114
4128
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4115
|
-
SoundCloud_1.SoundCloud;
|
|
4129
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4116
4130
|
|
|
4117
4131
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4118
4132
|
|
|
@@ -4121,7 +4135,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4121
4135
|
});
|
|
4122
4136
|
exports["default"] = exports.Vimeo = void 0;
|
|
4123
4137
|
|
|
4124
|
-
var _react = _interopRequireWildcard(React__default
|
|
4138
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4125
4139
|
|
|
4126
4140
|
|
|
4127
4141
|
|
|
@@ -4145,16 +4159,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4145
4159
|
|
|
4146
4160
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4147
4161
|
|
|
4148
|
-
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); }; }
|
|
4149
|
-
|
|
4150
4162
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4151
4163
|
|
|
4152
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4153
|
-
|
|
4154
|
-
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; } }
|
|
4155
|
-
|
|
4156
4164
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4157
4165
|
|
|
4166
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4167
|
+
|
|
4158
4168
|
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); }
|
|
4159
4169
|
|
|
4160
4170
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4166,12 +4176,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4166
4176
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4167
4177
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4168
4178
|
|
|
4169
|
-
var Vimeo =
|
|
4179
|
+
var Vimeo =
|
|
4180
|
+
/*#__PURE__*/
|
|
4181
|
+
function (_Component) {
|
|
4170
4182
|
_inherits(Vimeo, _Component);
|
|
4171
4183
|
|
|
4172
|
-
var _super = _createSuper(Vimeo);
|
|
4173
|
-
|
|
4174
4184
|
function Vimeo() {
|
|
4185
|
+
var _getPrototypeOf2;
|
|
4186
|
+
|
|
4175
4187
|
var _this;
|
|
4176
4188
|
|
|
4177
4189
|
_classCallCheck(this, Vimeo);
|
|
@@ -4180,7 +4192,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4180
4192
|
args[_key] = arguments[_key];
|
|
4181
4193
|
}
|
|
4182
4194
|
|
|
4183
|
-
_this =
|
|
4195
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4184
4196
|
|
|
4185
4197
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4186
4198
|
|
|
@@ -4337,7 +4349,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4337
4349
|
overflow: 'hidden',
|
|
4338
4350
|
display: display
|
|
4339
4351
|
};
|
|
4340
|
-
return
|
|
4352
|
+
return _react["default"].createElement("div", {
|
|
4341
4353
|
key: this.props.url,
|
|
4342
4354
|
ref: this.ref,
|
|
4343
4355
|
style: style
|
|
@@ -4368,7 +4380,7 @@ exports["default"] = _default;
|
|
|
4368
4380
|
});
|
|
4369
4381
|
|
|
4370
4382
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4371
|
-
Vimeo_1.Vimeo;
|
|
4383
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4372
4384
|
|
|
4373
4385
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4374
4386
|
|
|
@@ -4377,7 +4389,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4377
4389
|
});
|
|
4378
4390
|
exports["default"] = exports.Facebook = void 0;
|
|
4379
4391
|
|
|
4380
|
-
var _react = _interopRequireWildcard(React__default
|
|
4392
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4381
4393
|
|
|
4382
4394
|
|
|
4383
4395
|
|
|
@@ -4397,16 +4409,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4397
4409
|
|
|
4398
4410
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4399
4411
|
|
|
4400
|
-
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); }; }
|
|
4401
|
-
|
|
4402
4412
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4403
4413
|
|
|
4404
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4405
|
-
|
|
4406
|
-
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; } }
|
|
4407
|
-
|
|
4408
4414
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4409
4415
|
|
|
4416
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4417
|
+
|
|
4410
4418
|
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); }
|
|
4411
4419
|
|
|
4412
4420
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4419,12 +4427,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4419
4427
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4420
4428
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4421
4429
|
|
|
4422
|
-
var Facebook =
|
|
4430
|
+
var Facebook =
|
|
4431
|
+
/*#__PURE__*/
|
|
4432
|
+
function (_Component) {
|
|
4423
4433
|
_inherits(Facebook, _Component);
|
|
4424
4434
|
|
|
4425
|
-
var _super = _createSuper(Facebook);
|
|
4426
|
-
|
|
4427
4435
|
function Facebook() {
|
|
4436
|
+
var _getPrototypeOf2;
|
|
4437
|
+
|
|
4428
4438
|
var _this;
|
|
4429
4439
|
|
|
4430
4440
|
_classCallCheck(this, Facebook);
|
|
@@ -4433,7 +4443,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4433
4443
|
args[_key] = arguments[_key];
|
|
4434
4444
|
}
|
|
4435
4445
|
|
|
4436
|
-
_this =
|
|
4446
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4437
4447
|
|
|
4438
4448
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4439
4449
|
|
|
@@ -4549,7 +4559,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4549
4559
|
width: '100%',
|
|
4550
4560
|
height: '100%'
|
|
4551
4561
|
};
|
|
4552
|
-
return
|
|
4562
|
+
return _react["default"].createElement("div", {
|
|
4553
4563
|
style: style,
|
|
4554
4564
|
id: this.playerID,
|
|
4555
4565
|
className: "fb-video",
|
|
@@ -4580,7 +4590,7 @@ exports["default"] = _default;
|
|
|
4580
4590
|
});
|
|
4581
4591
|
|
|
4582
4592
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4583
|
-
Facebook_1.Facebook;
|
|
4593
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4584
4594
|
|
|
4585
4595
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4586
4596
|
|
|
@@ -4589,7 +4599,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4589
4599
|
});
|
|
4590
4600
|
exports["default"] = exports.Streamable = void 0;
|
|
4591
4601
|
|
|
4592
|
-
var _react = _interopRequireWildcard(React__default
|
|
4602
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4593
4603
|
|
|
4594
4604
|
|
|
4595
4605
|
|
|
@@ -4609,16 +4619,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4609
4619
|
|
|
4610
4620
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4611
4621
|
|
|
4612
|
-
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); }; }
|
|
4613
|
-
|
|
4614
4622
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4615
4623
|
|
|
4616
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4617
|
-
|
|
4618
|
-
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; } }
|
|
4619
|
-
|
|
4620
4624
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4621
4625
|
|
|
4626
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4627
|
+
|
|
4622
4628
|
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); }
|
|
4623
4629
|
|
|
4624
4630
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4629,12 +4635,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4629
4635
|
var SDK_GLOBAL = 'playerjs';
|
|
4630
4636
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4631
4637
|
|
|
4632
|
-
var Streamable =
|
|
4638
|
+
var Streamable =
|
|
4639
|
+
/*#__PURE__*/
|
|
4640
|
+
function (_Component) {
|
|
4633
4641
|
_inherits(Streamable, _Component);
|
|
4634
4642
|
|
|
4635
|
-
var _super = _createSuper(Streamable);
|
|
4636
|
-
|
|
4637
4643
|
function Streamable() {
|
|
4644
|
+
var _getPrototypeOf2;
|
|
4645
|
+
|
|
4638
4646
|
var _this;
|
|
4639
4647
|
|
|
4640
4648
|
_classCallCheck(this, Streamable);
|
|
@@ -4643,7 +4651,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4643
4651
|
args[_key] = arguments[_key];
|
|
4644
4652
|
}
|
|
4645
4653
|
|
|
4646
|
-
_this =
|
|
4654
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4647
4655
|
|
|
4648
4656
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4649
4657
|
|
|
@@ -4763,7 +4771,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4763
4771
|
width: '100%',
|
|
4764
4772
|
height: '100%'
|
|
4765
4773
|
};
|
|
4766
|
-
return
|
|
4774
|
+
return _react["default"].createElement("iframe", {
|
|
4767
4775
|
ref: this.ref,
|
|
4768
4776
|
src: "https://streamable.com/o/".concat(id),
|
|
4769
4777
|
frameBorder: "0",
|
|
@@ -4791,7 +4799,7 @@ exports["default"] = _default;
|
|
|
4791
4799
|
});
|
|
4792
4800
|
|
|
4793
4801
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4794
|
-
Streamable_1.Streamable;
|
|
4802
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4795
4803
|
|
|
4796
4804
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4797
4805
|
|
|
@@ -4800,7 +4808,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4800
4808
|
});
|
|
4801
4809
|
exports["default"] = exports.Wistia = void 0;
|
|
4802
4810
|
|
|
4803
|
-
var _react = _interopRequireWildcard(React__default
|
|
4811
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4804
4812
|
|
|
4805
4813
|
|
|
4806
4814
|
|
|
@@ -4824,16 +4832,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4824
4832
|
|
|
4825
4833
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4826
4834
|
|
|
4827
|
-
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); }; }
|
|
4828
|
-
|
|
4829
4835
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4830
4836
|
|
|
4831
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4832
|
-
|
|
4833
|
-
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; } }
|
|
4834
|
-
|
|
4835
4837
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4836
4838
|
|
|
4839
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4840
|
+
|
|
4837
4841
|
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); }
|
|
4838
4842
|
|
|
4839
4843
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4844,48 +4848,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4844
4848
|
var SDK_GLOBAL = 'Wistia';
|
|
4845
4849
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4846
4850
|
|
|
4847
|
-
var Wistia =
|
|
4851
|
+
var Wistia =
|
|
4852
|
+
/*#__PURE__*/
|
|
4853
|
+
function (_Component) {
|
|
4848
4854
|
_inherits(Wistia, _Component);
|
|
4849
4855
|
|
|
4850
|
-
var _super = _createSuper(Wistia);
|
|
4851
|
-
|
|
4852
4856
|
function Wistia() {
|
|
4857
|
+
var _getPrototypeOf2;
|
|
4858
|
+
|
|
4853
4859
|
var _this;
|
|
4854
4860
|
|
|
4855
4861
|
_classCallCheck(this, Wistia);
|
|
4856
4862
|
|
|
4857
|
-
for (var _len = arguments.length,
|
|
4858
|
-
|
|
4863
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4864
|
+
args[_key] = arguments[_key];
|
|
4859
4865
|
}
|
|
4860
4866
|
|
|
4861
|
-
_this =
|
|
4867
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4862
4868
|
|
|
4863
4869
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4864
4870
|
|
|
4865
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4866
|
-
var _this$props;
|
|
4867
|
-
|
|
4868
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4869
|
-
});
|
|
4870
|
-
|
|
4871
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4872
|
-
var _this$props2;
|
|
4873
|
-
|
|
4874
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4875
|
-
});
|
|
4876
|
-
|
|
4877
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4878
|
-
var _this$props3;
|
|
4879
|
-
|
|
4880
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4881
|
-
});
|
|
4882
|
-
|
|
4883
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4884
|
-
var _this$props4;
|
|
4885
|
-
|
|
4886
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4887
|
-
});
|
|
4888
|
-
|
|
4889
4871
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4890
4872
|
_this.callPlayer('mute');
|
|
4891
4873
|
});
|
|
@@ -4907,13 +4889,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4907
4889
|
value: function load(url) {
|
|
4908
4890
|
var _this2 = this;
|
|
4909
4891
|
|
|
4910
|
-
var _this$
|
|
4911
|
-
playing = _this$
|
|
4912
|
-
muted = _this$
|
|
4913
|
-
controls = _this$
|
|
4914
|
-
_onReady = _this$
|
|
4915
|
-
|
|
4916
|
-
|
|
4892
|
+
var _this$props = this.props,
|
|
4893
|
+
playing = _this$props.playing,
|
|
4894
|
+
muted = _this$props.muted,
|
|
4895
|
+
controls = _this$props.controls,
|
|
4896
|
+
_onReady = _this$props.onReady,
|
|
4897
|
+
onPlay = _this$props.onPlay,
|
|
4898
|
+
onPause = _this$props.onPause,
|
|
4899
|
+
onSeek = _this$props.onSeek,
|
|
4900
|
+
onEnded = _this$props.onEnded,
|
|
4901
|
+
config = _this$props.config,
|
|
4902
|
+
onError = _this$props.onError;
|
|
4917
4903
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4918
4904
|
window._wq = window._wq || [];
|
|
4919
4905
|
|
|
@@ -4930,28 +4916,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4930
4916
|
|
|
4931
4917
|
_this2.unbind();
|
|
4932
4918
|
|
|
4933
|
-
_this2.player.bind('play',
|
|
4919
|
+
_this2.player.bind('play', onPlay);
|
|
4934
4920
|
|
|
4935
|
-
_this2.player.bind('pause',
|
|
4921
|
+
_this2.player.bind('pause', onPause);
|
|
4936
4922
|
|
|
4937
|
-
_this2.player.bind('seek',
|
|
4923
|
+
_this2.player.bind('seek', onSeek);
|
|
4938
4924
|
|
|
4939
|
-
_this2.player.bind('end',
|
|
4925
|
+
_this2.player.bind('end', onEnded);
|
|
4940
4926
|
|
|
4941
4927
|
_onReady();
|
|
4942
4928
|
}
|
|
4943
4929
|
});
|
|
4944
4930
|
}, onError);
|
|
4945
4931
|
}
|
|
4946
|
-
}, {
|
|
4947
|
-
key: "unbind",
|
|
4948
|
-
value: function unbind() {
|
|
4949
|
-
this.player.unbind('play', this.onPlay);
|
|
4950
|
-
this.player.unbind('pause', this.onPause);
|
|
4951
|
-
this.player.unbind('seek', this.onSeek);
|
|
4952
|
-
this.player.unbind('end', this.onEnded);
|
|
4953
|
-
} // Proxy methods to prevent listener leaks
|
|
4954
|
-
|
|
4955
4932
|
}, {
|
|
4956
4933
|
key: "play",
|
|
4957
4934
|
value: function play() {
|
|
@@ -4962,6 +4939,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4962
4939
|
value: function pause() {
|
|
4963
4940
|
this.callPlayer('pause');
|
|
4964
4941
|
}
|
|
4942
|
+
}, {
|
|
4943
|
+
key: "unbind",
|
|
4944
|
+
value: function unbind() {
|
|
4945
|
+
var _this$props2 = this.props,
|
|
4946
|
+
onPlay = _this$props2.onPlay,
|
|
4947
|
+
onPause = _this$props2.onPause,
|
|
4948
|
+
onSeek = _this$props2.onSeek,
|
|
4949
|
+
onEnded = _this$props2.onEnded;
|
|
4950
|
+
this.player.unbind('play', onPlay);
|
|
4951
|
+
this.player.unbind('pause', onPause);
|
|
4952
|
+
this.player.unbind('seek', onSeek);
|
|
4953
|
+
this.player.unbind('end', onEnded);
|
|
4954
|
+
}
|
|
4965
4955
|
}, {
|
|
4966
4956
|
key: "stop",
|
|
4967
4957
|
value: function stop() {
|
|
@@ -5007,7 +4997,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5007
4997
|
width: '100%',
|
|
5008
4998
|
height: '100%'
|
|
5009
4999
|
};
|
|
5010
|
-
return
|
|
5000
|
+
return _react["default"].createElement("div", {
|
|
5011
5001
|
key: id,
|
|
5012
5002
|
className: className,
|
|
5013
5003
|
style: style
|
|
@@ -5034,7 +5024,7 @@ exports["default"] = _default;
|
|
|
5034
5024
|
});
|
|
5035
5025
|
|
|
5036
5026
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5037
|
-
Wistia_1.Wistia;
|
|
5027
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5038
5028
|
|
|
5039
5029
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5040
5030
|
|
|
@@ -5043,7 +5033,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5043
5033
|
});
|
|
5044
5034
|
exports["default"] = exports.Twitch = void 0;
|
|
5045
5035
|
|
|
5046
|
-
var _react = _interopRequireWildcard(React__default
|
|
5036
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5047
5037
|
|
|
5048
5038
|
|
|
5049
5039
|
|
|
@@ -5067,16 +5057,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5067
5057
|
|
|
5068
5058
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5069
5059
|
|
|
5070
|
-
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); }; }
|
|
5071
|
-
|
|
5072
5060
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5073
5061
|
|
|
5074
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5075
|
-
|
|
5076
|
-
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; } }
|
|
5077
|
-
|
|
5078
5062
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5079
5063
|
|
|
5064
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5065
|
+
|
|
5080
5066
|
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); }
|
|
5081
5067
|
|
|
5082
5068
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5089,12 +5075,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5089
5075
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5090
5076
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5091
5077
|
|
|
5092
|
-
var Twitch =
|
|
5078
|
+
var Twitch =
|
|
5079
|
+
/*#__PURE__*/
|
|
5080
|
+
function (_Component) {
|
|
5093
5081
|
_inherits(Twitch, _Component);
|
|
5094
5082
|
|
|
5095
|
-
var _super = _createSuper(Twitch);
|
|
5096
|
-
|
|
5097
5083
|
function Twitch() {
|
|
5084
|
+
var _getPrototypeOf2;
|
|
5085
|
+
|
|
5098
5086
|
var _this;
|
|
5099
5087
|
|
|
5100
5088
|
_classCallCheck(this, Twitch);
|
|
@@ -5103,7 +5091,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5103
5091
|
args[_key] = arguments[_key];
|
|
5104
5092
|
}
|
|
5105
5093
|
|
|
5106
|
-
_this =
|
|
5094
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5107
5095
|
|
|
5108
5096
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5109
5097
|
|
|
@@ -5224,7 +5212,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5224
5212
|
width: '100%',
|
|
5225
5213
|
height: '100%'
|
|
5226
5214
|
};
|
|
5227
|
-
return
|
|
5215
|
+
return _react["default"].createElement("div", {
|
|
5228
5216
|
style: style,
|
|
5229
5217
|
id: this.playerID
|
|
5230
5218
|
});
|
|
@@ -5250,7 +5238,7 @@ exports["default"] = _default;
|
|
|
5250
5238
|
});
|
|
5251
5239
|
|
|
5252
5240
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5253
|
-
Twitch_1.Twitch;
|
|
5241
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5254
5242
|
|
|
5255
5243
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5256
5244
|
|
|
@@ -5259,7 +5247,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5259
5247
|
});
|
|
5260
5248
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5261
5249
|
|
|
5262
|
-
var _react = _interopRequireWildcard(React__default
|
|
5250
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5263
5251
|
|
|
5264
5252
|
|
|
5265
5253
|
|
|
@@ -5277,15 +5265,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5277
5265
|
|
|
5278
5266
|
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; }
|
|
5279
5267
|
|
|
5280
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5268
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5281
5269
|
|
|
5282
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5270
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5283
5271
|
|
|
5284
|
-
function
|
|
5285
|
-
|
|
5286
|
-
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; }
|
|
5287
|
-
|
|
5288
|
-
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; }
|
|
5272
|
+
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; }
|
|
5289
5273
|
|
|
5290
5274
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5291
5275
|
|
|
@@ -5295,16 +5279,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5295
5279
|
|
|
5296
5280
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5297
5281
|
|
|
5298
|
-
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); }; }
|
|
5299
|
-
|
|
5300
5282
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5301
5283
|
|
|
5302
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5303
|
-
|
|
5304
|
-
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; } }
|
|
5305
|
-
|
|
5306
5284
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5307
5285
|
|
|
5286
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5287
|
+
|
|
5308
5288
|
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); }
|
|
5309
5289
|
|
|
5310
5290
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5316,12 +5296,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5316
5296
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5317
5297
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5318
5298
|
|
|
5319
|
-
var DailyMotion =
|
|
5299
|
+
var DailyMotion =
|
|
5300
|
+
/*#__PURE__*/
|
|
5301
|
+
function (_Component) {
|
|
5320
5302
|
_inherits(DailyMotion, _Component);
|
|
5321
5303
|
|
|
5322
|
-
var _super = _createSuper(DailyMotion);
|
|
5323
|
-
|
|
5324
5304
|
function DailyMotion() {
|
|
5305
|
+
var _getPrototypeOf2;
|
|
5306
|
+
|
|
5325
5307
|
var _this;
|
|
5326
5308
|
|
|
5327
5309
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5330,7 +5312,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5330
5312
|
args[_key] = arguments[_key];
|
|
5331
5313
|
}
|
|
5332
5314
|
|
|
5333
|
-
_this =
|
|
5315
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5334
5316
|
|
|
5335
5317
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5336
5318
|
|
|
@@ -5459,9 +5441,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5459
5441
|
height: '100%',
|
|
5460
5442
|
display: display
|
|
5461
5443
|
};
|
|
5462
|
-
return
|
|
5444
|
+
return _react["default"].createElement("div", {
|
|
5463
5445
|
style: style
|
|
5464
|
-
},
|
|
5446
|
+
}, _react["default"].createElement("div", {
|
|
5465
5447
|
ref: this.ref
|
|
5466
5448
|
}));
|
|
5467
5449
|
}
|
|
@@ -5486,7 +5468,7 @@ exports["default"] = _default;
|
|
|
5486
5468
|
});
|
|
5487
5469
|
|
|
5488
5470
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5489
|
-
DailyMotion_1.DailyMotion;
|
|
5471
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5490
5472
|
|
|
5491
5473
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5492
5474
|
|
|
@@ -5495,7 +5477,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5495
5477
|
});
|
|
5496
5478
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5497
5479
|
|
|
5498
|
-
var _react = _interopRequireWildcard(React__default
|
|
5480
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5499
5481
|
|
|
5500
5482
|
|
|
5501
5483
|
|
|
@@ -5519,16 +5501,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5519
5501
|
|
|
5520
5502
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5521
5503
|
|
|
5522
|
-
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); }; }
|
|
5523
|
-
|
|
5524
5504
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5525
5505
|
|
|
5526
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5527
|
-
|
|
5528
|
-
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; } }
|
|
5529
|
-
|
|
5530
5506
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5531
5507
|
|
|
5508
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5509
|
+
|
|
5532
5510
|
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); }
|
|
5533
5511
|
|
|
5534
5512
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5539,12 +5517,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5539
5517
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5540
5518
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5541
5519
|
|
|
5542
|
-
var Mixcloud =
|
|
5520
|
+
var Mixcloud =
|
|
5521
|
+
/*#__PURE__*/
|
|
5522
|
+
function (_Component) {
|
|
5543
5523
|
_inherits(Mixcloud, _Component);
|
|
5544
5524
|
|
|
5545
|
-
var _super = _createSuper(Mixcloud);
|
|
5546
|
-
|
|
5547
5525
|
function Mixcloud() {
|
|
5526
|
+
var _getPrototypeOf2;
|
|
5527
|
+
|
|
5548
5528
|
var _this;
|
|
5549
5529
|
|
|
5550
5530
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5553,7 +5533,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5553
5533
|
args[_key] = arguments[_key];
|
|
5554
5534
|
}
|
|
5555
5535
|
|
|
5556
|
-
_this =
|
|
5536
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5557
5537
|
|
|
5558
5538
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5559
5539
|
|
|
@@ -5656,7 +5636,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5656
5636
|
})); // We have to give the iframe a key here to prevent a
|
|
5657
5637
|
// weird dialog appearing when loading a new track
|
|
5658
5638
|
|
|
5659
|
-
return
|
|
5639
|
+
return _react["default"].createElement("iframe", {
|
|
5660
5640
|
key: id,
|
|
5661
5641
|
ref: this.ref,
|
|
5662
5642
|
style: style,
|
|
@@ -5685,7 +5665,7 @@ exports["default"] = _default;
|
|
|
5685
5665
|
});
|
|
5686
5666
|
|
|
5687
5667
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5688
|
-
Mixcloud_1.Mixcloud;
|
|
5668
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5689
5669
|
|
|
5690
5670
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5691
5671
|
|
|
@@ -5694,7 +5674,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5694
5674
|
});
|
|
5695
5675
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5696
5676
|
|
|
5697
|
-
var _react = _interopRequireWildcard(React__default
|
|
5677
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5698
5678
|
|
|
5699
5679
|
|
|
5700
5680
|
|
|
@@ -5716,33 +5696,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5716
5696
|
|
|
5717
5697
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5718
5698
|
|
|
5719
|
-
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); }; }
|
|
5720
|
-
|
|
5721
5699
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5722
5700
|
|
|
5723
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5724
|
-
|
|
5725
|
-
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; } }
|
|
5726
|
-
|
|
5727
5701
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5728
5702
|
|
|
5703
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5704
|
+
|
|
5729
5705
|
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); }
|
|
5730
5706
|
|
|
5731
5707
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5732
5708
|
|
|
5733
5709
|
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; }
|
|
5734
5710
|
|
|
5735
|
-
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; } } }; }
|
|
5736
|
-
|
|
5737
|
-
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); }
|
|
5738
|
-
|
|
5739
|
-
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; }
|
|
5740
|
-
|
|
5741
5711
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5742
5712
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5743
5713
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5744
5714
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5745
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5715
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5746
5716
|
var HLS_GLOBAL = 'Hls';
|
|
5747
5717
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5748
5718
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5751,11 +5721,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5751
5721
|
|
|
5752
5722
|
function canPlay(url) {
|
|
5753
5723
|
if (url instanceof Array) {
|
|
5754
|
-
var
|
|
5755
|
-
|
|
5724
|
+
var _iteratorNormalCompletion = true;
|
|
5725
|
+
var _didIteratorError = false;
|
|
5726
|
+
var _iteratorError = undefined;
|
|
5756
5727
|
|
|
5757
5728
|
try {
|
|
5758
|
-
for (_iterator.
|
|
5729
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5759
5730
|
var item = _step.value;
|
|
5760
5731
|
|
|
5761
5732
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5767,9 +5738,18 @@ function canPlay(url) {
|
|
|
5767
5738
|
}
|
|
5768
5739
|
}
|
|
5769
5740
|
} catch (err) {
|
|
5770
|
-
|
|
5741
|
+
_didIteratorError = true;
|
|
5742
|
+
_iteratorError = err;
|
|
5771
5743
|
} finally {
|
|
5772
|
-
|
|
5744
|
+
try {
|
|
5745
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5746
|
+
_iterator["return"]();
|
|
5747
|
+
}
|
|
5748
|
+
} finally {
|
|
5749
|
+
if (_didIteratorError) {
|
|
5750
|
+
throw _iteratorError;
|
|
5751
|
+
}
|
|
5752
|
+
}
|
|
5773
5753
|
}
|
|
5774
5754
|
|
|
5775
5755
|
return false;
|
|
@@ -5793,12 +5773,14 @@ function canEnablePIP(url) {
|
|
|
5793
5773
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5794
5774
|
}
|
|
5795
5775
|
|
|
5796
|
-
var FilePlayer =
|
|
5776
|
+
var FilePlayer =
|
|
5777
|
+
/*#__PURE__*/
|
|
5778
|
+
function (_Component) {
|
|
5797
5779
|
_inherits(FilePlayer, _Component);
|
|
5798
5780
|
|
|
5799
|
-
var _super = _createSuper(FilePlayer);
|
|
5800
|
-
|
|
5801
5781
|
function FilePlayer() {
|
|
5782
|
+
var _getPrototypeOf2;
|
|
5783
|
+
|
|
5802
5784
|
var _this;
|
|
5803
5785
|
|
|
5804
5786
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5807,7 +5789,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5807
5789
|
_args[_key] = arguments[_key];
|
|
5808
5790
|
}
|
|
5809
5791
|
|
|
5810
|
-
_this =
|
|
5792
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5811
5793
|
|
|
5812
5794
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5813
5795
|
var _this$props;
|
|
@@ -5894,19 +5876,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5894
5876
|
|
|
5895
5877
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5896
5878
|
if (typeof source === 'string') {
|
|
5897
|
-
return
|
|
5879
|
+
return _react["default"].createElement("source", {
|
|
5898
5880
|
key: index,
|
|
5899
5881
|
src: source
|
|
5900
5882
|
});
|
|
5901
5883
|
}
|
|
5902
5884
|
|
|
5903
|
-
return
|
|
5885
|
+
return _react["default"].createElement("source", _extends({
|
|
5904
5886
|
key: index
|
|
5905
5887
|
}, source));
|
|
5906
5888
|
});
|
|
5907
5889
|
|
|
5908
5890
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5909
|
-
return
|
|
5891
|
+
return _react["default"].createElement("track", _extends({
|
|
5910
5892
|
key: index
|
|
5911
5893
|
}, track));
|
|
5912
5894
|
});
|
|
@@ -5944,10 +5926,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5944
5926
|
key: "componentWillUnmount",
|
|
5945
5927
|
value: function componentWillUnmount() {
|
|
5946
5928
|
this.removeListeners(this.player);
|
|
5947
|
-
|
|
5948
|
-
if (this.hls) {
|
|
5949
|
-
this.hls.destroy();
|
|
5950
|
-
}
|
|
5951
5929
|
}
|
|
5952
5930
|
}, {
|
|
5953
5931
|
key: "addListeners",
|
|
@@ -6078,6 +6056,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6078
6056
|
value: function stop() {
|
|
6079
6057
|
this.player.removeAttribute('src');
|
|
6080
6058
|
|
|
6059
|
+
if (this.hls) {
|
|
6060
|
+
this.hls.destroy();
|
|
6061
|
+
}
|
|
6062
|
+
|
|
6081
6063
|
if (this.dash) {
|
|
6082
6064
|
this.dash.reset();
|
|
6083
6065
|
}
|
|
@@ -6189,7 +6171,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6189
6171
|
width: width === 'auto' ? width : '100%',
|
|
6190
6172
|
height: height === 'auto' ? height : '100%'
|
|
6191
6173
|
};
|
|
6192
|
-
return
|
|
6174
|
+
return _react["default"].createElement(Element, _extends({
|
|
6193
6175
|
ref: this.ref,
|
|
6194
6176
|
src: this.getSource(url),
|
|
6195
6177
|
style: style,
|
|
@@ -6219,7 +6201,7 @@ exports["default"] = _default;
|
|
|
6219
6201
|
});
|
|
6220
6202
|
|
|
6221
6203
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6222
|
-
FilePlayer_1.FilePlayer;
|
|
6204
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6223
6205
|
|
|
6224
6206
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6225
6207
|
|
|
@@ -6261,7 +6243,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6261
6243
|
});
|
|
6262
6244
|
exports["default"] = void 0;
|
|
6263
6245
|
|
|
6264
|
-
var _react = _interopRequireWildcard(React__default
|
|
6246
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6265
6247
|
|
|
6266
6248
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6267
6249
|
|
|
@@ -6279,16 +6261,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6279
6261
|
|
|
6280
6262
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6281
6263
|
|
|
6282
|
-
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); }; }
|
|
6283
|
-
|
|
6284
6264
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6285
6265
|
|
|
6286
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6287
|
-
|
|
6288
|
-
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; } }
|
|
6289
|
-
|
|
6290
6266
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6291
6267
|
|
|
6268
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6269
|
+
|
|
6292
6270
|
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); }
|
|
6293
6271
|
|
|
6294
6272
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6297,12 +6275,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6297
6275
|
|
|
6298
6276
|
var ICON_SIZE = '64px';
|
|
6299
6277
|
|
|
6300
|
-
var Preview =
|
|
6278
|
+
var Preview =
|
|
6279
|
+
/*#__PURE__*/
|
|
6280
|
+
function (_Component) {
|
|
6301
6281
|
_inherits(Preview, _Component);
|
|
6302
6282
|
|
|
6303
|
-
var _super = _createSuper(Preview);
|
|
6304
|
-
|
|
6305
6283
|
function Preview() {
|
|
6284
|
+
var _getPrototypeOf2;
|
|
6285
|
+
|
|
6306
6286
|
var _this;
|
|
6307
6287
|
|
|
6308
6288
|
_classCallCheck(this, Preview);
|
|
@@ -6311,7 +6291,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6311
6291
|
args[_key] = arguments[_key];
|
|
6312
6292
|
}
|
|
6313
6293
|
|
|
6314
|
-
_this =
|
|
6294
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6315
6295
|
|
|
6316
6296
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6317
6297
|
|
|
@@ -6409,15 +6389,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6409
6389
|
}
|
|
6410
6390
|
};
|
|
6411
6391
|
|
|
6412
|
-
var defaultPlayIcon =
|
|
6392
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6413
6393
|
style: styles.shadow,
|
|
6414
6394
|
className: "react-player__shadow"
|
|
6415
|
-
},
|
|
6395
|
+
}, _react["default"].createElement("div", {
|
|
6416
6396
|
style: styles.playIcon,
|
|
6417
6397
|
className: "react-player__play-icon"
|
|
6418
6398
|
}));
|
|
6419
6399
|
|
|
6420
|
-
return
|
|
6400
|
+
return _react["default"].createElement("div", {
|
|
6421
6401
|
style: styles.preview,
|
|
6422
6402
|
className: "react-player__preview",
|
|
6423
6403
|
onClick: onClick
|
|
@@ -6440,7 +6420,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6440
6420
|
});
|
|
6441
6421
|
exports["default"] = renderPreloadPlayers;
|
|
6442
6422
|
|
|
6443
|
-
var _react = _interopRequireDefault(React__default
|
|
6423
|
+
var _react = _interopRequireDefault(React__default);
|
|
6444
6424
|
|
|
6445
6425
|
var _Player = _interopRequireDefault(Player_1);
|
|
6446
6426
|
|
|
@@ -6454,12 +6434,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6454
6434
|
|
|
6455
6435
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6456
6436
|
|
|
6457
|
-
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; } } }; }
|
|
6458
|
-
|
|
6459
|
-
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); }
|
|
6460
|
-
|
|
6461
|
-
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; }
|
|
6462
|
-
|
|
6463
6437
|
var PRELOAD_PLAYERS = [{
|
|
6464
6438
|
Player: YouTube_1.YouTube,
|
|
6465
6439
|
configKey: 'youtube',
|
|
@@ -6480,16 +6454,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6480
6454
|
|
|
6481
6455
|
function renderPreloadPlayers(url, controls, config) {
|
|
6482
6456
|
var players = [];
|
|
6483
|
-
|
|
6484
|
-
var
|
|
6485
|
-
|
|
6457
|
+
var _iteratorNormalCompletion = true;
|
|
6458
|
+
var _didIteratorError = false;
|
|
6459
|
+
var _iteratorError = undefined;
|
|
6486
6460
|
|
|
6487
6461
|
try {
|
|
6488
|
-
for (_iterator.
|
|
6462
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6489
6463
|
var player = _step.value;
|
|
6490
6464
|
|
|
6491
6465
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6492
|
-
players.push(
|
|
6466
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6493
6467
|
key: player.Player.displayName,
|
|
6494
6468
|
activePlayer: player.Player,
|
|
6495
6469
|
url: player.url,
|
|
@@ -6501,9 +6475,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6501
6475
|
}
|
|
6502
6476
|
}
|
|
6503
6477
|
} catch (err) {
|
|
6504
|
-
|
|
6478
|
+
_didIteratorError = true;
|
|
6479
|
+
_iteratorError = err;
|
|
6505
6480
|
} finally {
|
|
6506
|
-
|
|
6481
|
+
try {
|
|
6482
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6483
|
+
_iterator["return"]();
|
|
6484
|
+
}
|
|
6485
|
+
} finally {
|
|
6486
|
+
if (_didIteratorError) {
|
|
6487
|
+
throw _iteratorError;
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
6507
6490
|
}
|
|
6508
6491
|
|
|
6509
6492
|
return players;
|
|
@@ -6579,7 +6562,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6579
6562
|
});
|
|
6580
6563
|
exports["default"] = void 0;
|
|
6581
6564
|
|
|
6582
|
-
var _react = _interopRequireWildcard(React__default
|
|
6565
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6583
6566
|
|
|
6584
6567
|
|
|
6585
6568
|
|
|
@@ -6627,17 +6610,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6627
6610
|
|
|
6628
6611
|
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); }
|
|
6629
6612
|
|
|
6630
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6631
|
-
|
|
6632
|
-
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."); }
|
|
6633
|
-
|
|
6634
|
-
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); }
|
|
6613
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6635
6614
|
|
|
6636
|
-
function
|
|
6615
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6637
6616
|
|
|
6638
|
-
function
|
|
6617
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6639
6618
|
|
|
6640
|
-
function
|
|
6619
|
+
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; } }
|
|
6641
6620
|
|
|
6642
6621
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6643
6622
|
|
|
@@ -6645,16 +6624,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6645
6624
|
|
|
6646
6625
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6647
6626
|
|
|
6648
|
-
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); }; }
|
|
6649
|
-
|
|
6650
6627
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6651
6628
|
|
|
6652
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6653
|
-
|
|
6654
|
-
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; } }
|
|
6655
|
-
|
|
6656
6629
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6657
6630
|
|
|
6631
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6632
|
+
|
|
6658
6633
|
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); }
|
|
6659
6634
|
|
|
6660
6635
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6664,12 +6639,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6664
6639
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6665
6640
|
var customPlayers = [];
|
|
6666
6641
|
|
|
6667
|
-
var ReactPlayer =
|
|
6642
|
+
var ReactPlayer =
|
|
6643
|
+
/*#__PURE__*/
|
|
6644
|
+
function (_Component) {
|
|
6668
6645
|
_inherits(ReactPlayer, _Component);
|
|
6669
6646
|
|
|
6670
|
-
var _super = _createSuper(ReactPlayer);
|
|
6671
|
-
|
|
6672
6647
|
function ReactPlayer() {
|
|
6648
|
+
var _getPrototypeOf2;
|
|
6649
|
+
|
|
6673
6650
|
var _this;
|
|
6674
6651
|
|
|
6675
6652
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6678,7 +6655,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6678
6655
|
args[_key] = arguments[_key];
|
|
6679
6656
|
}
|
|
6680
6657
|
|
|
6681
|
-
_this =
|
|
6658
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6682
6659
|
|
|
6683
6660
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6684
6661
|
|
|
@@ -6789,7 +6766,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6789
6766
|
key: "renderActivePlayer",
|
|
6790
6767
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6791
6768
|
if (!url) return null;
|
|
6792
|
-
return
|
|
6769
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6793
6770
|
key: activePlayer.displayName,
|
|
6794
6771
|
ref: this.activePlayerRef,
|
|
6795
6772
|
config: this.config,
|
|
@@ -6826,14 +6803,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6826
6803
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6827
6804
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6828
6805
|
|
|
6829
|
-
var preview =
|
|
6806
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6830
6807
|
url: url,
|
|
6831
6808
|
light: light,
|
|
6832
6809
|
playIcon: playIcon,
|
|
6833
6810
|
onClick: this.handleClickPreview
|
|
6834
6811
|
});
|
|
6835
6812
|
|
|
6836
|
-
return
|
|
6813
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6837
6814
|
ref: this.wrapperRef,
|
|
6838
6815
|
style: _objectSpread({}, style, {
|
|
6839
6816
|
width: width,
|
|
@@ -6893,20 +6870,20 @@ var Audio = function Audio(_ref) {
|
|
|
6893
6870
|
var node = _ref.node;
|
|
6894
6871
|
|
|
6895
6872
|
if (node.uploadAudio) {
|
|
6896
|
-
return React__default
|
|
6873
|
+
return React__default.createElement(
|
|
6897
6874
|
'div',
|
|
6898
6875
|
{ className: 'audio d-block text-center mb-3' },
|
|
6899
|
-
React__default
|
|
6876
|
+
React__default.createElement(
|
|
6900
6877
|
'audio',
|
|
6901
6878
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6902
|
-
React__default
|
|
6903
|
-
React__default
|
|
6879
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6880
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6904
6881
|
'Your browser does not support the audio element.'
|
|
6905
6882
|
),
|
|
6906
|
-
node.caption && React__default
|
|
6883
|
+
node.caption && React__default.createElement(
|
|
6907
6884
|
'p',
|
|
6908
6885
|
{ style: { fontSize: '.9rem' } },
|
|
6909
|
-
React__default
|
|
6886
|
+
React__default.createElement(
|
|
6910
6887
|
'em',
|
|
6911
6888
|
null,
|
|
6912
6889
|
node.caption
|
|
@@ -6916,15 +6893,15 @@ var Audio = function Audio(_ref) {
|
|
|
6916
6893
|
} else if (node.audioFilePth) {
|
|
6917
6894
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6918
6895
|
if (hostname === 'embeds.audioboom.com') {
|
|
6919
|
-
return React__default
|
|
6896
|
+
return React__default.createElement(
|
|
6920
6897
|
'div',
|
|
6921
6898
|
null,
|
|
6922
|
-
React__default
|
|
6899
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6923
6900
|
' ',
|
|
6924
|
-
node.caption && React__default
|
|
6901
|
+
node.caption && React__default.createElement(
|
|
6925
6902
|
'p',
|
|
6926
6903
|
{ style: { fontSize: '.9rem' } },
|
|
6927
|
-
React__default
|
|
6904
|
+
React__default.createElement(
|
|
6928
6905
|
'em',
|
|
6929
6906
|
null,
|
|
6930
6907
|
node.caption
|
|
@@ -6932,14 +6909,14 @@ var Audio = function Audio(_ref) {
|
|
|
6932
6909
|
)
|
|
6933
6910
|
);
|
|
6934
6911
|
}
|
|
6935
|
-
return React__default
|
|
6912
|
+
return React__default.createElement(
|
|
6936
6913
|
'div',
|
|
6937
6914
|
{ className: 'audio' },
|
|
6938
|
-
React__default
|
|
6939
|
-
node.caption && React__default
|
|
6915
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6916
|
+
node.caption && React__default.createElement(
|
|
6940
6917
|
'p',
|
|
6941
6918
|
{ style: { fontSize: '.9rem' } },
|
|
6942
|
-
React__default
|
|
6919
|
+
React__default.createElement(
|
|
6943
6920
|
'em',
|
|
6944
6921
|
null,
|
|
6945
6922
|
node.caption
|
|
@@ -7040,10 +7017,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7040
7017
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
7041
7018
|
};
|
|
7042
7019
|
|
|
7043
|
-
return React__default
|
|
7020
|
+
return React__default.createElement(
|
|
7044
7021
|
'div',
|
|
7045
7022
|
null,
|
|
7046
|
-
vidLoaded && React__default
|
|
7023
|
+
vidLoaded && React__default.createElement(
|
|
7047
7024
|
'video',
|
|
7048
7025
|
{
|
|
7049
7026
|
poster: thumbnail || '',
|
|
@@ -7061,7 +7038,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7061
7038
|
onPlay: function onPlay(e) {
|
|
7062
7039
|
return handleOnPlay(e);
|
|
7063
7040
|
} },
|
|
7064
|
-
React__default
|
|
7041
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7065
7042
|
'Your browser does not support the video tag.'
|
|
7066
7043
|
)
|
|
7067
7044
|
);
|
|
@@ -7086,7 +7063,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7086
7063
|
}
|
|
7087
7064
|
});
|
|
7088
7065
|
|
|
7089
|
-
var builder = index.imageUrlBuilder(client);
|
|
7066
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7090
7067
|
function urlFor(source) {
|
|
7091
7068
|
return builder.image(source);
|
|
7092
7069
|
}
|
|
@@ -7331,13 +7308,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7331
7308
|
}
|
|
7332
7309
|
};
|
|
7333
7310
|
|
|
7334
|
-
return React__default
|
|
7311
|
+
return React__default.createElement(
|
|
7335
7312
|
'div',
|
|
7336
7313
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7337
|
-
React__default
|
|
7314
|
+
React__default.createElement(
|
|
7338
7315
|
'div',
|
|
7339
7316
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7340
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7317
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7341
7318
|
className: 'fluid-iframe',
|
|
7342
7319
|
videoId: smoothscroll.getYoutubeId(vidUrl),
|
|
7343
7320
|
opts: opts,
|
|
@@ -7348,10 +7325,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7348
7325
|
return handleOnEnd(e);
|
|
7349
7326
|
}
|
|
7350
7327
|
}),
|
|
7351
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7352
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7353
|
-
React__default
|
|
7354
|
-
series && React__default
|
|
7328
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7329
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7330
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7331
|
+
series && React__default.createElement(
|
|
7355
7332
|
'div',
|
|
7356
7333
|
{
|
|
7357
7334
|
className: 'vid-series',
|
|
@@ -7361,10 +7338,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7361
7338
|
maxHeight: '100%',
|
|
7362
7339
|
paddingBottom: '0'
|
|
7363
7340
|
} },
|
|
7364
|
-
React__default
|
|
7341
|
+
React__default.createElement(
|
|
7365
7342
|
'p',
|
|
7366
7343
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7367
|
-
React__default
|
|
7344
|
+
React__default.createElement(
|
|
7368
7345
|
'b',
|
|
7369
7346
|
{ style: { fontSize: '1.25em' } },
|
|
7370
7347
|
'Now Playing:'
|
|
@@ -7372,36 +7349,36 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7372
7349
|
' ',
|
|
7373
7350
|
seriesData[series ? series - 1 : 0].title
|
|
7374
7351
|
),
|
|
7375
|
-
vidUrl && React__default
|
|
7352
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7376
7353
|
)
|
|
7377
7354
|
),
|
|
7378
|
-
React__default
|
|
7379
|
-
React__default
|
|
7355
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7356
|
+
React__default.createElement(
|
|
7380
7357
|
'div',
|
|
7381
7358
|
{ className: 'mt-2 mb-5' },
|
|
7382
|
-
series && React__default
|
|
7359
|
+
series && React__default.createElement(
|
|
7383
7360
|
'h3',
|
|
7384
7361
|
null,
|
|
7385
7362
|
'Episode ',
|
|
7386
7363
|
series
|
|
7387
7364
|
),
|
|
7388
|
-
Videos[series - 1] && React__default
|
|
7365
|
+
Videos[series - 1] && React__default.createElement(
|
|
7389
7366
|
'h2',
|
|
7390
7367
|
{ className: 'mb-3' },
|
|
7391
7368
|
Videos[series - 1].title
|
|
7392
7369
|
),
|
|
7393
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7370
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7394
7371
|
'p',
|
|
7395
7372
|
{ className: 'mb-3' },
|
|
7396
|
-
React__default
|
|
7373
|
+
React__default.createElement(
|
|
7397
7374
|
'em',
|
|
7398
7375
|
null,
|
|
7399
7376
|
Videos[series - 1].intro
|
|
7400
7377
|
)
|
|
7401
7378
|
),
|
|
7402
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7379
|
+
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()))
|
|
7403
7380
|
),
|
|
7404
|
-
React__default
|
|
7381
|
+
React__default.createElement(
|
|
7405
7382
|
'style',
|
|
7406
7383
|
{ jsx: 'true' },
|
|
7407
7384
|
'\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\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7410,13 +7387,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7410
7387
|
};
|
|
7411
7388
|
|
|
7412
7389
|
var Poll = function Poll(_ref) {
|
|
7413
|
-
var node = _ref.node
|
|
7414
|
-
_ref.client
|
|
7415
|
-
_ref.pageview
|
|
7416
|
-
_ref.videoAccountIDs
|
|
7417
|
-
|
|
7418
|
-
_ref.showVotes
|
|
7419
|
-
|
|
7390
|
+
var node = _ref.node,
|
|
7391
|
+
client = _ref.client,
|
|
7392
|
+
pageview = _ref.pageview,
|
|
7393
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7394
|
+
onVote = _ref.onVote,
|
|
7395
|
+
_ref$showVotes = _ref.showVotes,
|
|
7396
|
+
getSerializers = _ref.getSerializers;
|
|
7420
7397
|
|
|
7421
7398
|
var _useState = React.useState(null),
|
|
7422
7399
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7454,54 +7431,54 @@ var Poll = function Poll(_ref) {
|
|
|
7454
7431
|
return acc;
|
|
7455
7432
|
}
|
|
7456
7433
|
}, 0);
|
|
7457
|
-
return React__default
|
|
7458
|
-
React__default
|
|
7434
|
+
return React__default.createElement(
|
|
7435
|
+
React__default.Fragment,
|
|
7459
7436
|
null,
|
|
7460
|
-
question && React__default
|
|
7437
|
+
question && React__default.createElement(
|
|
7461
7438
|
'p',
|
|
7462
7439
|
{ className: 'font-weight-bold' },
|
|
7463
7440
|
question
|
|
7464
7441
|
),
|
|
7465
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7442
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7466
7443
|
'form',
|
|
7467
7444
|
{ onSubmit: function onSubmit(e) {
|
|
7468
7445
|
return onSubmitPoll(e);
|
|
7469
7446
|
} },
|
|
7470
7447
|
choices && choices.map(function (choice) {
|
|
7471
|
-
return React__default
|
|
7448
|
+
return React__default.createElement(
|
|
7472
7449
|
'div',
|
|
7473
7450
|
{ key: choice._key },
|
|
7474
|
-
React__default
|
|
7451
|
+
React__default.createElement(
|
|
7475
7452
|
'label',
|
|
7476
7453
|
{ className: 'pl-2' },
|
|
7477
|
-
React__default
|
|
7454
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7478
7455
|
return setSelectedChoice(e.target.value);
|
|
7479
7456
|
} }),
|
|
7480
7457
|
' ' + choice.choiceText
|
|
7481
7458
|
)
|
|
7482
7459
|
);
|
|
7483
7460
|
}),
|
|
7484
|
-
React__default
|
|
7461
|
+
React__default.createElement(
|
|
7485
7462
|
reactBootstrap.Button,
|
|
7486
7463
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7487
7464
|
'Vote'
|
|
7488
7465
|
)
|
|
7489
7466
|
),
|
|
7490
|
-
React__default
|
|
7467
|
+
React__default.createElement(
|
|
7491
7468
|
'div',
|
|
7492
7469
|
{ className: 'progress-container' },
|
|
7493
7470
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7494
7471
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7495
|
-
return React__default
|
|
7472
|
+
return React__default.createElement(
|
|
7496
7473
|
'div',
|
|
7497
7474
|
{ key: choice._key, className: 'mb-3' },
|
|
7498
|
-
React__default
|
|
7475
|
+
React__default.createElement(
|
|
7499
7476
|
'span',
|
|
7500
7477
|
null,
|
|
7501
7478
|
choice.choiceText
|
|
7502
7479
|
),
|
|
7503
|
-
React__default
|
|
7504
|
-
React__default
|
|
7480
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7481
|
+
React__default.createElement(
|
|
7505
7482
|
'span',
|
|
7506
7483
|
{ className: 'float-right' },
|
|
7507
7484
|
percentage,
|
|
@@ -7512,14 +7489,14 @@ var Poll = function Poll(_ref) {
|
|
|
7512
7489
|
);
|
|
7513
7490
|
})
|
|
7514
7491
|
),
|
|
7515
|
-
showAnswer && React__default
|
|
7492
|
+
showAnswer && React__default.createElement(
|
|
7516
7493
|
'h4',
|
|
7517
7494
|
{ className: 'text-center small p-3' },
|
|
7518
7495
|
'Total Votes: ',
|
|
7519
7496
|
choicesTotalCount
|
|
7520
7497
|
),
|
|
7521
|
-
showAnswer && response && React__default
|
|
7522
|
-
React__default
|
|
7498
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7499
|
+
React__default.createElement(
|
|
7523
7500
|
'style',
|
|
7524
7501
|
{ jsx: 'true' },
|
|
7525
7502
|
'\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7527,7 +7504,7 @@ var Poll = function Poll(_ref) {
|
|
|
7527
7504
|
);
|
|
7528
7505
|
};
|
|
7529
7506
|
|
|
7530
|
-
var numberOfPaginations = main.
|
|
7507
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7531
7508
|
|
|
7532
7509
|
var Quiz = function Quiz(_ref) {
|
|
7533
7510
|
var quizzes = _ref.quizzes,
|
|
@@ -7584,7 +7561,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7584
7561
|
setEndIndex(numberOfPaginations - 1);
|
|
7585
7562
|
newPath = window.location.pathname;
|
|
7586
7563
|
window.history.pushState(null, null, newPath);
|
|
7587
|
-
index
|
|
7564
|
+
index.lib_3.refresh();
|
|
7588
7565
|
if (pageview) pageview(newPath);
|
|
7589
7566
|
break;
|
|
7590
7567
|
case 'last':
|
|
@@ -7593,7 +7570,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7593
7570
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7594
7571
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7595
7572
|
window.history.pushState(null, null, newPath);
|
|
7596
|
-
index
|
|
7573
|
+
index.lib_3.refresh();
|
|
7597
7574
|
if (pageview) pageview(newPath);
|
|
7598
7575
|
break;
|
|
7599
7576
|
case 'next':
|
|
@@ -7604,7 +7581,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7604
7581
|
}
|
|
7605
7582
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7606
7583
|
window.history.pushState(null, null, newPath);
|
|
7607
|
-
index
|
|
7584
|
+
index.lib_3.refresh();
|
|
7608
7585
|
if (pageview) pageview(newPath);
|
|
7609
7586
|
break;
|
|
7610
7587
|
case 'prev':
|
|
@@ -7615,14 +7592,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7615
7592
|
}
|
|
7616
7593
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7617
7594
|
window.history.pushState(null, null, newPath);
|
|
7618
|
-
index
|
|
7595
|
+
index.lib_3.refresh();
|
|
7619
7596
|
if (pageview) pageview(newPath);
|
|
7620
7597
|
break;
|
|
7621
7598
|
default:
|
|
7622
7599
|
setCurrentPage(control);
|
|
7623
7600
|
newPath = window.location.pathname + '?page=' + control;
|
|
7624
7601
|
window.history.pushState(null, null, newPath);
|
|
7625
|
-
index
|
|
7602
|
+
index.lib_3.refresh();
|
|
7626
7603
|
if (pageview) pageview(newPath);
|
|
7627
7604
|
}
|
|
7628
7605
|
};
|
|
@@ -7638,62 +7615,62 @@ var Quiz = function Quiz(_ref) {
|
|
|
7638
7615
|
};
|
|
7639
7616
|
|
|
7640
7617
|
var renderPagination = function renderPagination() {
|
|
7641
|
-
return React__default
|
|
7642
|
-
|
|
7643
|
-
{ className: 'p-0 m-0', size: main.
|
|
7644
|
-
React__default
|
|
7618
|
+
return React__default.createElement(
|
|
7619
|
+
Pagination,
|
|
7620
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7621
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7645
7622
|
return changePage('first');
|
|
7646
7623
|
}, disabled: currentPage === 1 }),
|
|
7647
|
-
React__default
|
|
7624
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7648
7625
|
return changePage('prev');
|
|
7649
7626
|
}, disabled: currentPage === 1 }),
|
|
7650
|
-
React__default
|
|
7627
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7651
7628
|
return renderNewPages('prev');
|
|
7652
7629
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7653
7630
|
pages.map(function (page) {
|
|
7654
|
-
return React__default
|
|
7655
|
-
|
|
7631
|
+
return React__default.createElement(
|
|
7632
|
+
Pagination.Item,
|
|
7656
7633
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7657
7634
|
return changePage(page);
|
|
7658
7635
|
} },
|
|
7659
7636
|
page
|
|
7660
7637
|
);
|
|
7661
7638
|
}),
|
|
7662
|
-
React__default
|
|
7639
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7663
7640
|
return renderNewPages('next');
|
|
7664
7641
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7665
|
-
React__default
|
|
7642
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7666
7643
|
return changePage('next');
|
|
7667
7644
|
}, disabled: currentPage === pageCount }),
|
|
7668
|
-
React__default
|
|
7645
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7669
7646
|
return changePage('last');
|
|
7670
7647
|
}, disabled: currentPage === pageCount })
|
|
7671
7648
|
);
|
|
7672
7649
|
};
|
|
7673
7650
|
|
|
7674
|
-
return React__default
|
|
7675
|
-
React__default
|
|
7651
|
+
return React__default.createElement(
|
|
7652
|
+
React__default.Fragment,
|
|
7676
7653
|
null,
|
|
7677
|
-
quizzes[currentPage - 1] && React__default
|
|
7678
|
-
!showAnswer && React__default
|
|
7679
|
-
|
|
7654
|
+
quizzes[currentPage - 1] && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7655
|
+
!showAnswer && React__default.createElement(
|
|
7656
|
+
Button,
|
|
7680
7657
|
{ onClick: function onClick() {
|
|
7681
7658
|
return setShowAnswer(true);
|
|
7682
7659
|
}, variant: 'info', block: true },
|
|
7683
7660
|
'Please click here for answer'
|
|
7684
7661
|
),
|
|
7685
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
7686
|
-
React__default
|
|
7662
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
7663
|
+
React__default.Fragment,
|
|
7687
7664
|
null,
|
|
7688
|
-
React__default
|
|
7665
|
+
React__default.createElement(
|
|
7689
7666
|
'h4',
|
|
7690
7667
|
null,
|
|
7691
7668
|
'Answer:'
|
|
7692
7669
|
),
|
|
7693
|
-
React__default
|
|
7670
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7694
7671
|
),
|
|
7695
|
-
React__default
|
|
7696
|
-
pageCount > 1 && React__default
|
|
7672
|
+
React__default.createElement('br', null),
|
|
7673
|
+
pageCount > 1 && React__default.createElement(
|
|
7697
7674
|
'div',
|
|
7698
7675
|
{ className: 'd-flex justify-content-center' },
|
|
7699
7676
|
renderPagination()
|
|
@@ -7704,15 +7681,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
7704
7681
|
var Leads = function Leads(_ref) {
|
|
7705
7682
|
var url = _ref.url;
|
|
7706
7683
|
|
|
7707
|
-
return React__default
|
|
7684
|
+
return React__default.createElement(
|
|
7708
7685
|
'div',
|
|
7709
7686
|
{ className: 'd-block text-center mb-3' },
|
|
7710
|
-
url && React__default
|
|
7687
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7711
7688
|
);
|
|
7712
7689
|
};
|
|
7713
7690
|
|
|
7714
7691
|
var urlFor$1 = function urlFor(source, client) {
|
|
7715
|
-
var builder = index.imageUrlBuilder(client);
|
|
7692
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7716
7693
|
return builder.image(source).auto('format');
|
|
7717
7694
|
};
|
|
7718
7695
|
|
|
@@ -7728,8 +7705,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7728
7705
|
|
|
7729
7706
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
7730
7707
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
7731
|
-
carouselIndex = _useState2[0]
|
|
7732
|
-
_useState2[1];
|
|
7708
|
+
carouselIndex = _useState2[0],
|
|
7709
|
+
setCarouselIndex = _useState2[1];
|
|
7733
7710
|
|
|
7734
7711
|
// useEffect(() => {
|
|
7735
7712
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -7742,7 +7719,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7742
7719
|
// }, [router])
|
|
7743
7720
|
|
|
7744
7721
|
React.useEffect(function () {
|
|
7745
|
-
index
|
|
7722
|
+
index.lib_3.refresh();
|
|
7746
7723
|
if (pageview) pageview(router.asPath);
|
|
7747
7724
|
}, [router]);
|
|
7748
7725
|
|
|
@@ -7755,42 +7732,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7755
7732
|
}
|
|
7756
7733
|
};
|
|
7757
7734
|
|
|
7758
|
-
return React__default
|
|
7735
|
+
return React__default.createElement(
|
|
7759
7736
|
'div',
|
|
7760
7737
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
7761
|
-
React__default
|
|
7738
|
+
React__default.createElement(
|
|
7762
7739
|
reactBootstrap.Carousel,
|
|
7763
7740
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
7764
7741
|
slides && slides.map(function (slide) {
|
|
7765
7742
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
7766
|
-
return React__default
|
|
7743
|
+
return React__default.createElement(
|
|
7767
7744
|
reactBootstrap.Carousel.Item,
|
|
7768
7745
|
{ key: slide._key },
|
|
7769
|
-
React__default
|
|
7746
|
+
React__default.createElement(
|
|
7770
7747
|
'a',
|
|
7771
7748
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
7772
|
-
React__default
|
|
7749
|
+
React__default.createElement(
|
|
7773
7750
|
index$2.LazyLoad,
|
|
7774
7751
|
null,
|
|
7775
|
-
React__default
|
|
7752
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
7776
7753
|
)
|
|
7777
7754
|
),
|
|
7778
|
-
React__default
|
|
7755
|
+
React__default.createElement(
|
|
7779
7756
|
'div',
|
|
7780
7757
|
{ className: 'p-2' },
|
|
7781
|
-
slide.slideshowImage.caption && React__default
|
|
7758
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
7782
7759
|
'h3',
|
|
7783
7760
|
{ style: { padding: '0px' } },
|
|
7784
7761
|
slide.slideshowImage.caption
|
|
7785
7762
|
),
|
|
7786
|
-
slide.description && React__default
|
|
7763
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
7787
7764
|
)
|
|
7788
7765
|
);
|
|
7789
7766
|
}
|
|
7790
7767
|
return null;
|
|
7791
7768
|
})
|
|
7792
7769
|
),
|
|
7793
|
-
React__default
|
|
7770
|
+
React__default.createElement(
|
|
7794
7771
|
'style',
|
|
7795
7772
|
{ jsx: 'true' },
|
|
7796
7773
|
'\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 '
|
|
@@ -7809,10 +7786,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
7809
7786
|
sizes = _props$node.sizes,
|
|
7810
7787
|
sizeMapping = _props$node.sizeMapping;
|
|
7811
7788
|
|
|
7812
|
-
return React__default
|
|
7789
|
+
return React__default.createElement(
|
|
7813
7790
|
'div',
|
|
7814
7791
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
7815
|
-
React__default
|
|
7792
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
7816
7793
|
);
|
|
7817
7794
|
};
|
|
7818
7795
|
|
|
@@ -7833,20 +7810,20 @@ var Formstack = function Formstack(_ref) {
|
|
|
7833
7810
|
|
|
7834
7811
|
var htmlContent = '\n <script needsegmentsupport="true" type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
|
|
7835
7812
|
|
|
7836
|
-
return React__default
|
|
7813
|
+
return React__default.createElement(
|
|
7837
7814
|
'div',
|
|
7838
7815
|
{ ref: formstackRef },
|
|
7839
|
-
React__default
|
|
7816
|
+
React__default.createElement(
|
|
7840
7817
|
'h4',
|
|
7841
7818
|
{ className: 'formstack-caption' },
|
|
7842
7819
|
Caption
|
|
7843
7820
|
),
|
|
7844
|
-
React__default
|
|
7821
|
+
React__default.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
|
|
7845
7822
|
);
|
|
7846
7823
|
};
|
|
7847
7824
|
|
|
7848
7825
|
var urlFor$2 = function urlFor(source, client) {
|
|
7849
|
-
var builder = index.imageUrlBuilder(client);
|
|
7826
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7850
7827
|
return builder.image(source).auto('format');
|
|
7851
7828
|
};
|
|
7852
7829
|
var MultiMedia = function MultiMedia(props) {
|
|
@@ -7861,29 +7838,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7861
7838
|
}
|
|
7862
7839
|
});
|
|
7863
7840
|
if (medias && medias.length > 0) {
|
|
7864
|
-
return React__default
|
|
7841
|
+
return React__default.createElement(
|
|
7865
7842
|
'div',
|
|
7866
7843
|
{ className: 'multi-media-container' },
|
|
7867
|
-
React__default
|
|
7868
|
-
|
|
7844
|
+
React__default.createElement(
|
|
7845
|
+
Row,
|
|
7869
7846
|
{ noGutters: true },
|
|
7870
7847
|
medias.map(function (media) {
|
|
7871
|
-
return React__default
|
|
7872
|
-
|
|
7848
|
+
return React__default.createElement(
|
|
7849
|
+
Col,
|
|
7873
7850
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7874
|
-
React__default
|
|
7851
|
+
React__default.createElement(
|
|
7875
7852
|
'a',
|
|
7876
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7853
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7877
7854
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7878
|
-
React__default
|
|
7855
|
+
React__default.createElement(
|
|
7879
7856
|
'div',
|
|
7880
7857
|
{ className: 'multi-media-image-container' },
|
|
7881
|
-
imageBox && React__default
|
|
7858
|
+
imageBox && React__default.createElement(
|
|
7882
7859
|
index$2.LazyLoad,
|
|
7883
7860
|
{ once: true },
|
|
7884
|
-
React__default
|
|
7861
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
7885
7862
|
),
|
|
7886
|
-
media.caption && React__default
|
|
7863
|
+
media.caption && React__default.createElement(
|
|
7887
7864
|
'span',
|
|
7888
7865
|
{ className: 'multi-media-caption' },
|
|
7889
7866
|
media.caption
|
|
@@ -7893,7 +7870,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7893
7870
|
);
|
|
7894
7871
|
})
|
|
7895
7872
|
),
|
|
7896
|
-
React__default
|
|
7873
|
+
React__default.createElement(
|
|
7897
7874
|
'style',
|
|
7898
7875
|
{ jsx: 'true' },
|
|
7899
7876
|
'\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 '
|
|
@@ -7909,34 +7886,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7909
7886
|
var profileImage = arguments[6];
|
|
7910
7887
|
|
|
7911
7888
|
if (authorName && authorURL) {
|
|
7912
|
-
return React__default
|
|
7889
|
+
return React__default.createElement(
|
|
7913
7890
|
'span',
|
|
7914
7891
|
null,
|
|
7915
|
-
React__default
|
|
7892
|
+
React__default.createElement(
|
|
7916
7893
|
'a',
|
|
7917
7894
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7918
7895
|
authorName
|
|
7919
7896
|
),
|
|
7920
|
-
React__default
|
|
7897
|
+
React__default.createElement(
|
|
7921
7898
|
reactBootstrap.Card,
|
|
7922
7899
|
{ className: 'author-details-card-' + index },
|
|
7923
|
-
React__default
|
|
7900
|
+
React__default.createElement(
|
|
7924
7901
|
reactBootstrap.Row,
|
|
7925
7902
|
null,
|
|
7926
|
-
profileImage && React__default
|
|
7903
|
+
profileImage && React__default.createElement(
|
|
7927
7904
|
reactBootstrap.Col,
|
|
7928
7905
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7929
|
-
React__default
|
|
7906
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7930
7907
|
),
|
|
7931
|
-
React__default
|
|
7908
|
+
React__default.createElement(
|
|
7932
7909
|
reactBootstrap.Col,
|
|
7933
7910
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7934
|
-
React__default
|
|
7911
|
+
React__default.createElement(
|
|
7935
7912
|
'h5',
|
|
7936
7913
|
null,
|
|
7937
7914
|
authorName
|
|
7938
7915
|
),
|
|
7939
|
-
React__default
|
|
7916
|
+
React__default.createElement(
|
|
7940
7917
|
'p',
|
|
7941
7918
|
null,
|
|
7942
7919
|
biography
|
|
@@ -7944,7 +7921,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7944
7921
|
)
|
|
7945
7922
|
)
|
|
7946
7923
|
),
|
|
7947
|
-
React__default
|
|
7924
|
+
React__default.createElement(
|
|
7948
7925
|
'style',
|
|
7949
7926
|
{ jsx: 'true' },
|
|
7950
7927
|
'\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 '
|
|
@@ -7952,7 +7929,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7952
7929
|
length !== index + 1 && ' , '
|
|
7953
7930
|
);
|
|
7954
7931
|
} else if (authorName) {
|
|
7955
|
-
return React__default
|
|
7932
|
+
return React__default.createElement(
|
|
7956
7933
|
'span',
|
|
7957
7934
|
{ key: index },
|
|
7958
7935
|
authorName,
|
|
@@ -7998,7 +7975,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
7998
7975
|
}
|
|
7999
7976
|
};
|
|
8000
7977
|
|
|
8001
|
-
_this.wraperRef = React__default
|
|
7978
|
+
_this.wraperRef = React__default.createRef();
|
|
8002
7979
|
_this.visible = false;
|
|
8003
7980
|
return _this;
|
|
8004
7981
|
}
|
|
@@ -8026,7 +8003,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8026
8003
|
_props$id = _props.id,
|
|
8027
8004
|
id = _props$id === undefined ? '' : _props$id;
|
|
8028
8005
|
|
|
8029
|
-
return React__default
|
|
8006
|
+
return React__default.createElement(
|
|
8030
8007
|
'div',
|
|
8031
8008
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8032
8009
|
this.props.children
|
|
@@ -8035,7 +8012,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8035
8012
|
}]);
|
|
8036
8013
|
|
|
8037
8014
|
return InscreenSensor;
|
|
8038
|
-
}(React__default
|
|
8015
|
+
}(React__default.Component);
|
|
8039
8016
|
|
|
8040
8017
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8041
8018
|
var nodes = _ref.nodes,
|
|
@@ -8053,7 +8030,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8053
8030
|
var today = moment.moment().utc().format();
|
|
8054
8031
|
|
|
8055
8032
|
var authorPrefix = 'authors';
|
|
8056
|
-
var builder = index.imageUrlBuilder(client);
|
|
8033
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8057
8034
|
function urlFor(source) {
|
|
8058
8035
|
return builder.image(source);
|
|
8059
8036
|
}
|
|
@@ -8148,33 +8125,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8148
8125
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8149
8126
|
var showReading = show ? 'showReading' : '';
|
|
8150
8127
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8151
|
-
return React__default
|
|
8128
|
+
return React__default.createElement(
|
|
8152
8129
|
'div',
|
|
8153
8130
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8154
|
-
React__default
|
|
8131
|
+
React__default.createElement(
|
|
8155
8132
|
'a',
|
|
8156
8133
|
{ onClick: function onClick(e) {
|
|
8157
8134
|
return articleCardClickHandler(e);
|
|
8158
8135
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8159
|
-
React__default
|
|
8136
|
+
React__default.createElement(
|
|
8160
8137
|
'div',
|
|
8161
8138
|
{ className: 'prevNext-thumbnail' },
|
|
8162
|
-
React__default
|
|
8163
|
-
React__default
|
|
8139
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8140
|
+
React__default.createElement(
|
|
8164
8141
|
'div',
|
|
8165
8142
|
{ className: 'prevNext-reading ' + showReading },
|
|
8166
8143
|
articleLabel
|
|
8167
8144
|
)
|
|
8168
8145
|
),
|
|
8169
|
-
React__default
|
|
8146
|
+
React__default.createElement(
|
|
8170
8147
|
'div',
|
|
8171
8148
|
{ className: 'prevNext-summary' },
|
|
8172
|
-
React__default
|
|
8149
|
+
React__default.createElement(
|
|
8173
8150
|
'div',
|
|
8174
8151
|
{ className: 'prevNext-publishDate' },
|
|
8175
8152
|
moment.moment(article.published).format('LL')
|
|
8176
8153
|
),
|
|
8177
|
-
React__default
|
|
8154
|
+
React__default.createElement(
|
|
8178
8155
|
'h2',
|
|
8179
8156
|
{ className: 'prevNext-title' },
|
|
8180
8157
|
article.title
|
|
@@ -8223,7 +8200,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8223
8200
|
|
|
8224
8201
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8225
8202
|
if (biography) {
|
|
8226
|
-
return React__default
|
|
8203
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8227
8204
|
}
|
|
8228
8205
|
};
|
|
8229
8206
|
|
|
@@ -8309,7 +8286,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8309
8286
|
//console.log('useLayoutEffect')
|
|
8310
8287
|
if (!firstLoad) {
|
|
8311
8288
|
setUpArrowClicked(false);
|
|
8312
|
-
if (main.
|
|
8289
|
+
if (main.main_36) {
|
|
8313
8290
|
grabLoadedAds();
|
|
8314
8291
|
} else {
|
|
8315
8292
|
scrollToArticle();
|
|
@@ -8318,7 +8295,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8318
8295
|
});
|
|
8319
8296
|
|
|
8320
8297
|
var grabLoadedAds = function grabLoadedAds() {
|
|
8321
|
-
index
|
|
8298
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8322
8299
|
var checkIfReady = window.setInterval(function () {
|
|
8323
8300
|
if (window.googletag && googletag.pubadsReady) {
|
|
8324
8301
|
clearInterval(checkIfReady);
|
|
@@ -8333,19 +8310,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8333
8310
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8334
8311
|
if (pageview) pageview(path);
|
|
8335
8312
|
|
|
8336
|
-
if (!main.
|
|
8337
|
-
index
|
|
8313
|
+
if (!main.main_36) {
|
|
8314
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8338
8315
|
if (window.googletag && googletag.pubadsReady) {
|
|
8339
|
-
index
|
|
8316
|
+
index.lib_3.refresh();
|
|
8340
8317
|
}
|
|
8341
8318
|
});
|
|
8342
8319
|
}
|
|
8343
8320
|
//Refresh leaderboard ad on mobile
|
|
8344
|
-
if (main.
|
|
8321
|
+
if (main.main_36) {
|
|
8345
8322
|
var leaderboardSlotId = '';
|
|
8346
|
-
index
|
|
8323
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8347
8324
|
if (window.googletag && googletag.pubadsReady) {
|
|
8348
|
-
index
|
|
8325
|
+
index.lib_3.refresh(leaderboardSlotId);
|
|
8349
8326
|
}
|
|
8350
8327
|
});
|
|
8351
8328
|
}
|
|
@@ -8381,38 +8358,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8381
8358
|
setSensorVisible(false);
|
|
8382
8359
|
};
|
|
8383
8360
|
|
|
8384
|
-
return React__default
|
|
8385
|
-
React__default
|
|
8361
|
+
return React__default.createElement(
|
|
8362
|
+
React__default.Fragment,
|
|
8386
8363
|
null,
|
|
8387
|
-
React__default
|
|
8364
|
+
React__default.createElement(
|
|
8388
8365
|
'div',
|
|
8389
8366
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8390
|
-
React__default
|
|
8367
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8391
8368
|
return handleArrowClick();
|
|
8392
8369
|
} })
|
|
8393
8370
|
),
|
|
8394
|
-
React__default
|
|
8395
|
-
React__default
|
|
8371
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8372
|
+
React__default.createElement(
|
|
8396
8373
|
'div',
|
|
8397
8374
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8398
|
-
React__default
|
|
8375
|
+
React__default.createElement(
|
|
8399
8376
|
'h5',
|
|
8400
8377
|
{ className: 'objective-title' },
|
|
8401
8378
|
nodes.seriesTitle
|
|
8402
8379
|
),
|
|
8403
|
-
React__default
|
|
8380
|
+
React__default.createElement(
|
|
8404
8381
|
'div',
|
|
8405
8382
|
{ className: 'prevNextWrapper' },
|
|
8406
8383
|
PrevNextCards(false, -1)
|
|
8407
8384
|
)
|
|
8408
8385
|
),
|
|
8409
|
-
React__default
|
|
8410
|
-
React__default
|
|
8386
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8387
|
+
React__default.createElement(
|
|
8411
8388
|
'div',
|
|
8412
8389
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8413
|
-
main.
|
|
8390
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8414
8391
|
if (index === 0) {
|
|
8415
|
-
return React__default
|
|
8392
|
+
return React__default.createElement(
|
|
8416
8393
|
'div',
|
|
8417
8394
|
{
|
|
8418
8395
|
key: 'addid-1',
|
|
@@ -8432,14 +8409,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8432
8409
|
}
|
|
8433
8410
|
})
|
|
8434
8411
|
),
|
|
8435
|
-
React__default
|
|
8412
|
+
React__default.createElement(
|
|
8436
8413
|
'div',
|
|
8437
8414
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8438
8415
|
Articles.map(function (article, index) {
|
|
8439
|
-
return React__default
|
|
8416
|
+
return React__default.createElement(
|
|
8440
8417
|
'div',
|
|
8441
8418
|
{ key: article.title },
|
|
8442
|
-
React__default
|
|
8419
|
+
React__default.createElement(
|
|
8443
8420
|
InscreenSensor,
|
|
8444
8421
|
{
|
|
8445
8422
|
visible: sensorVisible,
|
|
@@ -8457,84 +8434,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8457
8434
|
}
|
|
8458
8435
|
}
|
|
8459
8436
|
} },
|
|
8460
|
-
React__default
|
|
8461
|
-
|
|
8437
|
+
React__default.createElement(
|
|
8438
|
+
Head,
|
|
8462
8439
|
null,
|
|
8463
|
-
currentTitle !== null && React__default
|
|
8440
|
+
currentTitle !== null && React__default.createElement(
|
|
8464
8441
|
'title',
|
|
8465
8442
|
{ key: 'title' },
|
|
8466
8443
|
currentTitle
|
|
8467
8444
|
),
|
|
8468
|
-
currentSummary !== null && React__default
|
|
8469
|
-
currentURL !== null && React__default
|
|
8470
|
-
currentTitle !== null && React__default
|
|
8471
|
-
currentThumbnail !== null && React__default
|
|
8472
|
-
currentSummary !== null && React__default
|
|
8473
|
-
currentTitle !== null && React__default
|
|
8474
|
-
currentThumbnail !== null && React__default
|
|
8475
|
-
currentSummary !== null && React__default
|
|
8445
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8446
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8447
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8448
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8449
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8450
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8451
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8452
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8476
8453
|
),
|
|
8477
|
-
React__default
|
|
8454
|
+
React__default.createElement(
|
|
8478
8455
|
'article',
|
|
8479
8456
|
{ className: 'article-wrapper' },
|
|
8480
|
-
React__default
|
|
8457
|
+
React__default.createElement(
|
|
8481
8458
|
'div',
|
|
8482
8459
|
{ className: 'article-publishDate' },
|
|
8483
8460
|
moment.moment(article.published).format('LL')
|
|
8484
8461
|
),
|
|
8485
|
-
React__default
|
|
8462
|
+
React__default.createElement(
|
|
8486
8463
|
'div',
|
|
8487
8464
|
{ className: 'author-details-wrapper' },
|
|
8488
8465
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8489
|
-
return React__default
|
|
8466
|
+
return React__default.createElement(
|
|
8490
8467
|
'span',
|
|
8491
8468
|
{ key: index },
|
|
8492
8469
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8493
8470
|
);
|
|
8494
8471
|
})
|
|
8495
8472
|
),
|
|
8496
|
-
React__default
|
|
8473
|
+
React__default.createElement(
|
|
8497
8474
|
'h2',
|
|
8498
8475
|
{ className: 'article-title' },
|
|
8499
8476
|
article.title
|
|
8500
8477
|
),
|
|
8501
|
-
React__default
|
|
8478
|
+
React__default.createElement(
|
|
8502
8479
|
'div',
|
|
8503
8480
|
{ className: 'mt-2 mb-2' },
|
|
8504
|
-
React__default
|
|
8481
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8505
8482
|
serializers: getSerializers,
|
|
8506
8483
|
videoAccountIDs: accountIDs,
|
|
8507
8484
|
blocks: article.text,
|
|
8508
8485
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8509
8486
|
}, client.config())),
|
|
8510
|
-
React__default
|
|
8487
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8511
8488
|
),
|
|
8512
|
-
Articles.length > 1 && React__default
|
|
8513
|
-
React__default
|
|
8489
|
+
Articles.length > 1 && React__default.createElement(
|
|
8490
|
+
React__default.Fragment,
|
|
8514
8491
|
null,
|
|
8515
|
-
React__default
|
|
8492
|
+
React__default.createElement(
|
|
8516
8493
|
'div',
|
|
8517
8494
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8518
|
-
React__default
|
|
8495
|
+
React__default.createElement(
|
|
8519
8496
|
'h5',
|
|
8520
8497
|
{ className: 'objective-title' },
|
|
8521
8498
|
nodes.seriesTitle
|
|
8522
8499
|
),
|
|
8523
|
-
React__default
|
|
8500
|
+
React__default.createElement(
|
|
8524
8501
|
'div',
|
|
8525
8502
|
{ className: 'prevNextWrapper' },
|
|
8526
8503
|
PrevNextCards(true, index)
|
|
8527
8504
|
)
|
|
8528
8505
|
),
|
|
8529
|
-
React__default
|
|
8506
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8530
8507
|
)
|
|
8531
8508
|
),
|
|
8532
|
-
React__default
|
|
8509
|
+
React__default.createElement(
|
|
8533
8510
|
'div',
|
|
8534
8511
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8535
|
-
main.
|
|
8512
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8536
8513
|
if (innerIndex === 0) {
|
|
8537
|
-
return React__default
|
|
8514
|
+
return React__default.createElement(
|
|
8538
8515
|
'div',
|
|
8539
8516
|
{
|
|
8540
8517
|
key: 'addid-' + (index + 2),
|
|
@@ -8557,7 +8534,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8557
8534
|
)
|
|
8558
8535
|
);
|
|
8559
8536
|
}),
|
|
8560
|
-
React__default
|
|
8537
|
+
React__default.createElement(
|
|
8561
8538
|
'style',
|
|
8562
8539
|
{ jsx: 'true' },
|
|
8563
8540
|
'\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 '
|
|
@@ -8587,11 +8564,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8587
8564
|
};
|
|
8588
8565
|
}, [handleClickOutside]);
|
|
8589
8566
|
|
|
8590
|
-
return React__default
|
|
8567
|
+
return React__default.createElement(
|
|
8591
8568
|
'div',
|
|
8592
8569
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8593
|
-
React__default
|
|
8594
|
-
React__default
|
|
8570
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8571
|
+
React__default.createElement(
|
|
8595
8572
|
'style',
|
|
8596
8573
|
{ jsx: 'true' },
|
|
8597
8574
|
'\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 '
|
|
@@ -8600,7 +8577,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8600
8577
|
};
|
|
8601
8578
|
|
|
8602
8579
|
var urlFor$3 = function urlFor(source, client) {
|
|
8603
|
-
var builder = index.imageUrlBuilder(client);
|
|
8580
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8604
8581
|
return builder.image(source).auto('format');
|
|
8605
8582
|
};
|
|
8606
8583
|
|
|
@@ -8685,13 +8662,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8685
8662
|
|
|
8686
8663
|
var FigureCaption = React.useCallback(function () {
|
|
8687
8664
|
if (imgcaption && imgcaption.length > 0) {
|
|
8688
|
-
return React__default
|
|
8665
|
+
return React__default.createElement(
|
|
8689
8666
|
'div',
|
|
8690
8667
|
{ className: 'figure-caption' },
|
|
8691
|
-
React__default
|
|
8668
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8692
8669
|
);
|
|
8693
8670
|
} else if (caption) {
|
|
8694
|
-
return React__default
|
|
8671
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
8695
8672
|
} else return null;
|
|
8696
8673
|
}, [caption, imgcaption]);
|
|
8697
8674
|
|
|
@@ -8703,21 +8680,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8703
8680
|
margin: figureMargin
|
|
8704
8681
|
};
|
|
8705
8682
|
|
|
8706
|
-
return React__default
|
|
8707
|
-
React__default
|
|
8683
|
+
return React__default.createElement(
|
|
8684
|
+
React__default.Fragment,
|
|
8708
8685
|
null,
|
|
8709
|
-
React__default
|
|
8710
|
-
|
|
8686
|
+
React__default.createElement(
|
|
8687
|
+
Figure$1,
|
|
8711
8688
|
{ className: '' + class_name, style: figureStyle },
|
|
8712
|
-
link ? React__default
|
|
8689
|
+
link ? React__default.createElement(
|
|
8713
8690
|
'a',
|
|
8714
8691
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
8715
|
-
React__default
|
|
8716
|
-
React__default
|
|
8717
|
-
) : React__default
|
|
8718
|
-
React__default
|
|
8692
|
+
React__default.createElement(Figure$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
8693
|
+
React__default.createElement(FigureCaption, null)
|
|
8694
|
+
) : React__default.createElement(
|
|
8695
|
+
React__default.Fragment,
|
|
8719
8696
|
null,
|
|
8720
|
-
React__default
|
|
8697
|
+
React__default.createElement(Figure$1.Image, {
|
|
8721
8698
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
8722
8699
|
className: 'figure-image',
|
|
8723
8700
|
src: urlFor$3(node, client).url(),
|
|
@@ -8727,9 +8704,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8727
8704
|
setShowLightbox(true);
|
|
8728
8705
|
}
|
|
8729
8706
|
}),
|
|
8730
|
-
React__default
|
|
8707
|
+
React__default.createElement(FigureCaption, null)
|
|
8731
8708
|
),
|
|
8732
|
-
React__default
|
|
8709
|
+
React__default.createElement(LightBox, {
|
|
8733
8710
|
showLightbox: showLightbox,
|
|
8734
8711
|
lightboxImgSrc: lightboxImgSrc,
|
|
8735
8712
|
closeLightbox: function closeLightbox() {
|
|
@@ -8738,7 +8715,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8738
8715
|
}
|
|
8739
8716
|
})
|
|
8740
8717
|
),
|
|
8741
|
-
React__default
|
|
8718
|
+
React__default.createElement(
|
|
8742
8719
|
'style',
|
|
8743
8720
|
{ jsx: 'true' },
|
|
8744
8721
|
'\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 '
|
|
@@ -8746,10 +8723,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8746
8723
|
);
|
|
8747
8724
|
};
|
|
8748
8725
|
|
|
8749
|
-
var Figure = React__default
|
|
8726
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
8750
8727
|
|
|
8751
8728
|
var urlFor$4 = function urlFor(source, client) {
|
|
8752
|
-
var builder = index.imageUrlBuilder(client);
|
|
8729
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8753
8730
|
return builder.image(source).auto('format');
|
|
8754
8731
|
};
|
|
8755
8732
|
|
|
@@ -8792,47 +8769,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8792
8769
|
imgcaption = _ref.imgcaption;
|
|
8793
8770
|
|
|
8794
8771
|
if (imgcaption && imgcaption.length > 0) {
|
|
8795
|
-
return React__default
|
|
8772
|
+
return React__default.createElement(
|
|
8796
8773
|
'div',
|
|
8797
8774
|
{ className: 'multi-figure-caption' },
|
|
8798
|
-
React__default
|
|
8775
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8799
8776
|
);
|
|
8800
8777
|
} else if (caption) {
|
|
8801
|
-
return React__default
|
|
8778
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
8802
8779
|
} else return null;
|
|
8803
8780
|
};
|
|
8804
8781
|
|
|
8805
8782
|
if (images && images.length > 0) {
|
|
8806
|
-
return React__default
|
|
8783
|
+
return React__default.createElement(
|
|
8807
8784
|
'div',
|
|
8808
8785
|
{ className: 'multi-figure-container' },
|
|
8809
|
-
React__default
|
|
8810
|
-
|
|
8786
|
+
React__default.createElement(
|
|
8787
|
+
Row,
|
|
8811
8788
|
{ noGutters: true },
|
|
8812
8789
|
images.map(function (image, index) {
|
|
8813
|
-
return React__default
|
|
8814
|
-
|
|
8790
|
+
return React__default.createElement(
|
|
8791
|
+
Col,
|
|
8815
8792
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8816
|
-
image.link ? React__default
|
|
8793
|
+
image.link ? React__default.createElement(
|
|
8817
8794
|
'a',
|
|
8818
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8819
|
-
React__default
|
|
8795
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8796
|
+
React__default.createElement(
|
|
8820
8797
|
'div',
|
|
8821
8798
|
{ className: 'multi-figure-image-container' },
|
|
8822
|
-
React__default
|
|
8799
|
+
React__default.createElement(
|
|
8823
8800
|
index$2.LazyLoad,
|
|
8824
8801
|
{ once: true },
|
|
8825
|
-
React__default
|
|
8802
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
8826
8803
|
),
|
|
8827
|
-
React__default
|
|
8804
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8828
8805
|
)
|
|
8829
|
-
) : React__default
|
|
8806
|
+
) : React__default.createElement(
|
|
8830
8807
|
'div',
|
|
8831
8808
|
{ className: 'multi-figure-image-container' },
|
|
8832
|
-
React__default
|
|
8809
|
+
React__default.createElement(
|
|
8833
8810
|
index$2.LazyLoad,
|
|
8834
8811
|
{ once: true },
|
|
8835
|
-
React__default
|
|
8812
|
+
React__default.createElement('img', {
|
|
8836
8813
|
'images-count': images.length,
|
|
8837
8814
|
className: 'multi-figure-image',
|
|
8838
8815
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -8843,17 +8820,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8843
8820
|
}
|
|
8844
8821
|
})
|
|
8845
8822
|
),
|
|
8846
|
-
React__default
|
|
8823
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8847
8824
|
)
|
|
8848
8825
|
);
|
|
8849
8826
|
})
|
|
8850
8827
|
),
|
|
8851
|
-
React__default
|
|
8828
|
+
React__default.createElement(
|
|
8852
8829
|
'div',
|
|
8853
8830
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
8854
|
-
React__default
|
|
8831
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
8855
8832
|
),
|
|
8856
|
-
React__default
|
|
8833
|
+
React__default.createElement(
|
|
8857
8834
|
'style',
|
|
8858
8835
|
{ jsx: 'true' },
|
|
8859
8836
|
'\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: cover;\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 height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 '
|
|
@@ -8875,10 +8852,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
8875
8852
|
|
|
8876
8853
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
8877
8854
|
|
|
8878
|
-
return React__default
|
|
8855
|
+
return React__default.createElement(
|
|
8879
8856
|
'div',
|
|
8880
8857
|
{ id: elementId },
|
|
8881
|
-
React__default
|
|
8858
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
8882
8859
|
);
|
|
8883
8860
|
};
|
|
8884
8861
|
|
|
@@ -8950,129 +8927,129 @@ var getSerializers = function getSerializers() {
|
|
|
8950
8927
|
var node = _ref.node;
|
|
8951
8928
|
var url = node.url;
|
|
8952
8929
|
|
|
8953
|
-
return React__default
|
|
8930
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
8954
8931
|
},
|
|
8955
8932
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
8956
8933
|
var node = _ref2.node;
|
|
8957
8934
|
|
|
8958
|
-
return React__default
|
|
8935
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
8959
8936
|
},
|
|
8960
8937
|
articleSeries: function articleSeries(_ref3) {
|
|
8961
8938
|
var node = _ref3.node;
|
|
8962
8939
|
|
|
8963
|
-
return React__default
|
|
8940
|
+
return React__default.createElement(ArticleSeries, { nodes: node, accountIDs: videoAccountIDs || {}, pageview: pageview, client: client, getSerializers: getSerializers.apply(undefined, props), Ads: Ads || null, rootArticle: article || null });
|
|
8964
8941
|
},
|
|
8965
8942
|
figure: function figure(_ref4) {
|
|
8966
8943
|
var node = _ref4.node;
|
|
8967
8944
|
|
|
8968
|
-
return React__default
|
|
8945
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
8969
8946
|
},
|
|
8970
8947
|
multifigure: function multifigure(_ref5) {
|
|
8971
8948
|
var node = _ref5.node;
|
|
8972
8949
|
|
|
8973
|
-
return React__default
|
|
8950
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
8974
8951
|
},
|
|
8975
8952
|
slideshow: function slideshow(_ref6) {
|
|
8976
8953
|
var node = _ref6.node;
|
|
8977
8954
|
var slides = node.slides;
|
|
8978
8955
|
|
|
8979
|
-
return React__default
|
|
8956
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
8980
8957
|
},
|
|
8981
8958
|
sidebar: function sidebar(_ref7) {
|
|
8982
8959
|
var node = _ref7.node;
|
|
8983
8960
|
var caption = node.caption,
|
|
8984
8961
|
content = node.content;
|
|
8985
8962
|
|
|
8986
|
-
return React__default
|
|
8963
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
8987
8964
|
},
|
|
8988
8965
|
datatable: function datatable(_ref8) {
|
|
8989
8966
|
var node = _ref8.node;
|
|
8990
8967
|
var table = node.table;
|
|
8991
8968
|
|
|
8992
|
-
return React__default
|
|
8969
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
8993
8970
|
},
|
|
8994
8971
|
media: function media(_ref9) {
|
|
8995
8972
|
var node = _ref9.node;
|
|
8996
8973
|
|
|
8997
|
-
return React__default
|
|
8974
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
8998
8975
|
},
|
|
8999
8976
|
iframe: function iframe(_ref10) {
|
|
9000
8977
|
var node = _ref10.node;
|
|
9001
8978
|
|
|
9002
|
-
return React__default
|
|
8979
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
9003
8980
|
},
|
|
9004
8981
|
video: function video(_ref11) {
|
|
9005
8982
|
var node = _ref11.node;
|
|
9006
8983
|
|
|
9007
|
-
return React__default
|
|
8984
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9008
8985
|
},
|
|
9009
8986
|
audio: function audio(_ref12) {
|
|
9010
8987
|
var node = _ref12.node;
|
|
9011
8988
|
|
|
9012
|
-
return React__default
|
|
8989
|
+
return React__default.createElement(Audio, { node: node });
|
|
9013
8990
|
},
|
|
9014
8991
|
poll: function poll(_ref13) {
|
|
9015
8992
|
var node = _ref13.node;
|
|
9016
8993
|
|
|
9017
|
-
return React__default
|
|
8994
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9018
8995
|
},
|
|
9019
8996
|
quiz: function quiz(_ref14) {
|
|
9020
8997
|
var node = _ref14.node;
|
|
9021
8998
|
var quizzes = node.quizzes;
|
|
9022
8999
|
|
|
9023
|
-
return React__default
|
|
9000
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9024
9001
|
},
|
|
9025
9002
|
leads: function leads(_ref15) {
|
|
9026
9003
|
var node = _ref15.node;
|
|
9027
9004
|
var leadID = node.leadID;
|
|
9028
9005
|
|
|
9029
9006
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9030
|
-
return React__default
|
|
9007
|
+
return React__default.createElement(Leads, { url: url });
|
|
9031
9008
|
},
|
|
9032
9009
|
slideshows: function slideshows(_ref16) {
|
|
9033
9010
|
var node = _ref16.node;
|
|
9034
9011
|
|
|
9035
|
-
return React__default
|
|
9012
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9036
9013
|
},
|
|
9037
9014
|
nativeAd: function nativeAd(_ref17) {
|
|
9038
9015
|
var node = _ref17.node;
|
|
9039
9016
|
|
|
9040
|
-
return React__default
|
|
9017
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9041
9018
|
},
|
|
9042
9019
|
html_anchor_links: function html_anchor_links(_ref18) {
|
|
9043
9020
|
var node = _ref18.node;
|
|
9044
9021
|
|
|
9045
|
-
return React__default
|
|
9022
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9046
9023
|
},
|
|
9047
9024
|
hrtag: function hrtag() {
|
|
9048
|
-
return React__default
|
|
9025
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9049
9026
|
},
|
|
9050
9027
|
brtag: function brtag() {
|
|
9051
|
-
return React__default
|
|
9028
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9052
9029
|
},
|
|
9053
9030
|
formstack: function formstack(_ref19) {
|
|
9054
9031
|
var node = _ref19.node;
|
|
9055
9032
|
var FormID = node.FormID,
|
|
9056
9033
|
Caption = node.Caption;
|
|
9057
9034
|
|
|
9058
|
-
return React__default
|
|
9035
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption });
|
|
9059
9036
|
},
|
|
9060
9037
|
multimedia: function multimedia(_ref20) {
|
|
9061
9038
|
var node = _ref20.node;
|
|
9062
9039
|
|
|
9063
|
-
return React__default
|
|
9040
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9064
9041
|
}
|
|
9065
9042
|
},
|
|
9066
9043
|
marks: {
|
|
9067
9044
|
superscript: function superscript(props) {
|
|
9068
|
-
return React__default
|
|
9045
|
+
return React__default.createElement(
|
|
9069
9046
|
'sup',
|
|
9070
9047
|
null,
|
|
9071
9048
|
props.children
|
|
9072
9049
|
);
|
|
9073
9050
|
},
|
|
9074
9051
|
subscript: function subscript(props) {
|
|
9075
|
-
return React__default
|
|
9052
|
+
return React__default.createElement(
|
|
9076
9053
|
'sub',
|
|
9077
9054
|
null,
|
|
9078
9055
|
props.children
|
|
@@ -9088,7 +9065,7 @@ var getSerializers = function getSerializers() {
|
|
|
9088
9065
|
if (href && href.charAt(0) === '#') {
|
|
9089
9066
|
var elementId = href.slice(1);
|
|
9090
9067
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9091
|
-
return React__default
|
|
9068
|
+
return React__default.createElement(
|
|
9092
9069
|
'a',
|
|
9093
9070
|
{ onClick: function onClick() {
|
|
9094
9071
|
return ScrollToElement(elementId);
|
|
@@ -9098,7 +9075,7 @@ var getSerializers = function getSerializers() {
|
|
|
9098
9075
|
}
|
|
9099
9076
|
|
|
9100
9077
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9101
|
-
return React__default
|
|
9078
|
+
return React__default.createElement(
|
|
9102
9079
|
'a',
|
|
9103
9080
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9104
9081
|
children
|
|
@@ -9106,7 +9083,7 @@ var getSerializers = function getSerializers() {
|
|
|
9106
9083
|
},
|
|
9107
9084
|
alignleft: function alignleft(_ref21) {
|
|
9108
9085
|
var children = _ref21.children;
|
|
9109
|
-
return React__default
|
|
9086
|
+
return React__default.createElement(
|
|
9110
9087
|
'div',
|
|
9111
9088
|
{ style: { textAlign: 'left' } },
|
|
9112
9089
|
children
|
|
@@ -9114,7 +9091,7 @@ var getSerializers = function getSerializers() {
|
|
|
9114
9091
|
},
|
|
9115
9092
|
alignright: function alignright(_ref22) {
|
|
9116
9093
|
var children = _ref22.children;
|
|
9117
|
-
return React__default
|
|
9094
|
+
return React__default.createElement(
|
|
9118
9095
|
'div',
|
|
9119
9096
|
{ style: { textAlign: 'right' } },
|
|
9120
9097
|
children
|
|
@@ -9122,7 +9099,7 @@ var getSerializers = function getSerializers() {
|
|
|
9122
9099
|
},
|
|
9123
9100
|
aligncenter: function aligncenter(_ref23) {
|
|
9124
9101
|
var children = _ref23.children;
|
|
9125
|
-
return React__default
|
|
9102
|
+
return React__default.createElement(
|
|
9126
9103
|
'div',
|
|
9127
9104
|
{ style: { textAlign: 'center' } },
|
|
9128
9105
|
children
|
|
@@ -9130,7 +9107,7 @@ var getSerializers = function getSerializers() {
|
|
|
9130
9107
|
},
|
|
9131
9108
|
alignjustify: function alignjustify(_ref24) {
|
|
9132
9109
|
var children = _ref24.children;
|
|
9133
|
-
return React__default
|
|
9110
|
+
return React__default.createElement(
|
|
9134
9111
|
'div',
|
|
9135
9112
|
{ style: { textAlign: 'justify' } },
|
|
9136
9113
|
children
|
|
@@ -9140,7 +9117,7 @@ var getSerializers = function getSerializers() {
|
|
|
9140
9117
|
var children = props.children,
|
|
9141
9118
|
color = props.mark.color;
|
|
9142
9119
|
|
|
9143
|
-
return React__default
|
|
9120
|
+
return React__default.createElement(
|
|
9144
9121
|
'span',
|
|
9145
9122
|
{ style: { color: color ? color.hex : null } },
|
|
9146
9123
|
children
|