@mjhls/mjh-framework 1.0.849 → 1.0.850-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +13 -13
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +13 -13
- package/dist/cjs/{ADInfeed-86e987a0.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +13 -13
- package/dist/cjs/ADSponsoredResources.js +13 -13
- package/dist/cjs/ADWebcast.js +13 -13
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-5d6f91d7.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +903 -11
- package/dist/cjs/AlgoliaSearch.js +14011 -48
- package/dist/cjs/AlphabeticList.js +16 -17
- package/dist/cjs/ArticleCarousel.js +11 -12
- package/dist/cjs/ArticleProgramLandingPage.js +24 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +21 -21
- package/dist/cjs/ArticleSeriesListing.js +41 -41
- package/dist/cjs/Auth.js +144 -232
- package/dist/cjs/AuthWrapper.js +561 -26
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +65 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +34 -36
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +82 -85
- package/dist/cjs/DeckQueue.js +70 -73
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-26baccf1.js} +23 -23
- package/dist/cjs/EventsDeck.js +134 -141
- package/dist/cjs/ExternalResources.js +48 -49
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +205 -209
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +38 -39
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +61 -66
- package/dist/cjs/IssueLanding.js +58 -61
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -23
- package/dist/cjs/MasterDeck.js +59 -59
- package/dist/cjs/MediaSeriesLanding.js +909 -801
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +187 -289
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +20 -22
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +110 -114
- package/dist/cjs/QueueDeckExpanded.js +1129 -1109
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/Segment.js +362 -337
- package/dist/cjs/SeriesListingDeck.js +27 -26
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-8bbc989f.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +55 -60
- package/dist/cjs/TaxonomyDescription.js +23 -24
- package/dist/cjs/TemplateNormal.js +36 -36
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +41 -45
- package/dist/cjs/VideoSeriesCard.js +23 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +26 -26
- package/dist/cjs/VideoSeriesListing.js +58 -58
- package/dist/cjs/View.js +201 -205
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-0a918631.js} +1 -0
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getSerializers.js +13 -13
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-f1821260.js} +11 -11
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-44481153.js → index-98e01cb9.js} +47 -494
- package/dist/cjs/{index-80e98193.js → index-bc88f898.js} +1099 -872
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +62 -65
- package/dist/cjs/{inherits-87492b40.js → inherits-452ff02c.js} +4 -1
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +10 -9
- package/dist/esm/AD300x250x600.js +10 -9
- package/dist/esm/AD728x90.js +11 -10
- package/dist/esm/ADFloatingFooter.js +12 -11
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +12 -11
- package/dist/esm/{ADInfeed-4096aff2.js → ADInfeed-bbdd5398.js} +7 -7
- package/dist/esm/ADSkyscraper.js +12 -11
- package/dist/esm/ADSponsoredResources.js +12 -11
- package/dist/esm/ADWebcast.js +12 -11
- package/dist/esm/ADWelcome.js +16 -15
- package/dist/esm/{ADlgInfeed-8e4fcfbd.js → ADlgInfeed-4473ee3b.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +8 -7
- package/dist/esm/AdSlotsProvider.js +904 -11
- package/dist/esm/AlgoliaSearch.js +14004 -40
- package/dist/esm/AlphabeticList.js +14 -14
- package/dist/esm/ArticleCarousel.js +9 -9
- package/dist/esm/ArticleProgramLandingPage.js +23 -23
- package/dist/esm/ArticleSeriesLandingPage.js +20 -19
- package/dist/esm/ArticleSeriesListing.js +38 -37
- package/dist/esm/Auth.js +128 -212
- package/dist/esm/AuthWrapper.js +561 -24
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +63 -62
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +18 -18
- package/dist/esm/Column3.js +33 -32
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +66 -65
- package/dist/esm/{Dfp-85c9513e.js → Dfp-b7236041.js} +11 -10
- package/dist/esm/EventsDeck.js +110 -110
- package/dist/esm/ExternalResources.js +44 -44
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +175 -174
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +101 -101
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +37 -37
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +55 -55
- package/dist/esm/IssueLanding.js +57 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +19 -18
- package/dist/esm/MasterDeck.js +57 -56
- package/dist/esm/MediaSeriesLanding.js +673 -562
- package/dist/esm/NavDvm.js +47 -47
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +104 -104
- package/dist/esm/NavNative.js +93 -93
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +79 -180
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +19 -20
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +97 -97
- package/dist/esm/QueueDeckExpanded.js +1120 -1100
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +363 -338
- package/dist/esm/SeriesListingDeck.js +22 -21
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +22 -22
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +51 -51
- package/dist/esm/TaxonomyDescription.js +19 -19
- package/dist/esm/TemplateNormal.js +34 -33
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +19 -19
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +35 -35
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +20 -19
- package/dist/esm/VideoSeriesListing.js +55 -54
- package/dist/esm/View.js +185 -185
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-4877b617.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +2 -2
- package/dist/esm/getRelatedArticle.js +127 -63
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +14 -14
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-bd800589.js} +10 -10
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{index-1819118a.js → index-41a678ea.js} +41 -487
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index-295b6942.js → index-f2a0d400.js} +1061 -826
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +55 -55
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-0d8cda6e.js → inherits-cf8dde54.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,58 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
var _toObject = require('./_to-object-329a650b.js');
|
|
5
7
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
6
|
-
var _extends = require('./extends-
|
|
7
|
-
var inherits = require('./inherits-
|
|
8
|
-
var _typeof
|
|
8
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
+
var inherits$1 = require('./inherits-452ff02c.js');
|
|
10
|
+
var _typeof = require('./typeof-725500bc.js');
|
|
9
11
|
var React = require('react');
|
|
10
|
-
var
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
11
14
|
var PropTypes = require('prop-types');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
15
19
|
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
16
21
|
var urlFor = require('./urlFor.js');
|
|
17
|
-
var index$2 = require('./index-
|
|
18
|
-
var main = require('./main-
|
|
22
|
+
var index$2 = require('./index-96b3db50.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
19
24
|
var entities = require('./entities-310b46ee.js');
|
|
20
25
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
21
26
|
var Segment = require('./Segment.js');
|
|
22
27
|
var Beam = require('./Beam.js');
|
|
23
28
|
var AdSlot = require('./AdSlot.js');
|
|
24
|
-
var Button = require('react-bootstrap/Button');
|
|
25
|
-
var BlockContent = require('./BlockContent-
|
|
26
|
-
var index$
|
|
29
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
30
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
31
|
+
var index$3 = require('./index-187c967e.js');
|
|
27
32
|
var GroupDeck = require('./GroupDeck.js');
|
|
28
33
|
var reactBootstrap = require('react-bootstrap');
|
|
29
|
-
var index_esm = require('./index.esm-
|
|
34
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
30
35
|
var util = require('./util-f2c1b65b.js');
|
|
31
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
32
|
-
var Head = require('next/head');
|
|
36
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
37
|
+
var Head = _interopDefault(require('next/head'));
|
|
33
38
|
var SocialShare = require('./SocialShare.js');
|
|
34
39
|
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
35
|
-
var Pagination = require('react-bootstrap/Pagination');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
var ScriptTag = require('react-script-tag');
|
|
38
|
-
|
|
39
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
40
|
-
|
|
41
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
42
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
43
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
44
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
45
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
46
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
47
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
48
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
49
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
50
|
-
var ScriptTag__default = /*#__PURE__*/_interopDefaultLegacy(ScriptTag);
|
|
40
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
51
42
|
|
|
52
43
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
53
44
|
var pageNumber = selectedIndex + 1;
|
|
54
45
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
55
|
-
Router__default
|
|
46
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
56
47
|
};
|
|
57
48
|
|
|
58
49
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -82,27 +73,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
82
73
|
if (pageview) pageview(router.asPath);
|
|
83
74
|
}, [router]);
|
|
84
75
|
|
|
85
|
-
return React__default
|
|
76
|
+
return React__default.createElement(
|
|
86
77
|
'div',
|
|
87
78
|
{ className: 'mt-3 mb-3' },
|
|
88
|
-
React__default
|
|
79
|
+
React__default.createElement(
|
|
89
80
|
reactBootstrap.Carousel,
|
|
90
81
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
91
82
|
return onChangeSlide(selectedIndex, router);
|
|
92
83
|
}, interval: null },
|
|
93
84
|
slides && slides.map(function (slide) {
|
|
94
|
-
return React__default
|
|
85
|
+
return React__default.createElement(
|
|
95
86
|
reactBootstrap.Carousel.Item,
|
|
96
87
|
{ key: slide._key },
|
|
97
|
-
React__default
|
|
88
|
+
React__default.createElement(
|
|
98
89
|
'picture',
|
|
99
90
|
null,
|
|
100
|
-
React__default
|
|
101
|
-
React__default
|
|
102
|
-
React__default
|
|
103
|
-
React__default
|
|
91
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
92
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
93
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
94
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
104
95
|
),
|
|
105
|
-
slide.caption && React__default
|
|
96
|
+
slide.caption && React__default.createElement(
|
|
106
97
|
'p',
|
|
107
98
|
{ className: 'p-2' },
|
|
108
99
|
slide.caption
|
|
@@ -113,18 +104,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
113
104
|
);
|
|
114
105
|
};
|
|
115
106
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
var isArray = Array.isArray;
|
|
108
|
+
var keyList = Object.keys;
|
|
109
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
119
110
|
|
|
120
111
|
var fastDeepEqual = function equal(a, b) {
|
|
121
112
|
if (a === b) return true;
|
|
122
113
|
|
|
123
114
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
124
|
-
|
|
115
|
+
var arrA = isArray(a)
|
|
116
|
+
, arrB = isArray(b)
|
|
117
|
+
, i
|
|
118
|
+
, length
|
|
119
|
+
, key;
|
|
125
120
|
|
|
126
|
-
|
|
127
|
-
if (Array.isArray(a)) {
|
|
121
|
+
if (arrA && arrB) {
|
|
128
122
|
length = a.length;
|
|
129
123
|
if (length != b.length) return false;
|
|
130
124
|
for (i = length; i-- !== 0;)
|
|
@@ -132,29 +126,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
132
126
|
return true;
|
|
133
127
|
}
|
|
134
128
|
|
|
129
|
+
if (arrA != arrB) return false;
|
|
135
130
|
|
|
131
|
+
var dateA = a instanceof Date
|
|
132
|
+
, dateB = b instanceof Date;
|
|
133
|
+
if (dateA != dateB) return false;
|
|
134
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
136
135
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (
|
|
136
|
+
var regexpA = a instanceof RegExp
|
|
137
|
+
, regexpB = b instanceof RegExp;
|
|
138
|
+
if (regexpA != regexpB) return false;
|
|
139
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
140
140
|
|
|
141
|
-
keys =
|
|
141
|
+
var keys = keyList(a);
|
|
142
142
|
length = keys.length;
|
|
143
|
-
|
|
143
|
+
|
|
144
|
+
if (length !== keyList(b).length)
|
|
145
|
+
return false;
|
|
144
146
|
|
|
145
147
|
for (i = length; i-- !== 0;)
|
|
146
|
-
if (!
|
|
148
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
147
149
|
|
|
148
150
|
for (i = length; i-- !== 0;) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
key = keys[i];
|
|
151
152
|
if (!equal(a[key], b[key])) return false;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
return true;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
// true if both NaN, false otherwise
|
|
158
158
|
return a!==a && b!==b;
|
|
159
159
|
};
|
|
160
160
|
|
|
@@ -1577,239 +1577,199 @@ module.exports = exports['default'];
|
|
|
1577
1577
|
|
|
1578
1578
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1579
1579
|
|
|
1580
|
-
function
|
|
1581
|
-
|
|
1582
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1583
|
-
|
|
1584
|
-
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); } }
|
|
1585
|
-
|
|
1586
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1587
|
-
|
|
1588
|
-
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); }
|
|
1580
|
+
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; }; }();
|
|
1589
1581
|
|
|
1590
|
-
function
|
|
1582
|
+
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; };
|
|
1591
1583
|
|
|
1592
|
-
function
|
|
1593
|
-
|
|
1594
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1595
|
-
|
|
1596
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1597
|
-
|
|
1598
|
-
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; } }
|
|
1584
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1599
1585
|
|
|
1600
|
-
function
|
|
1586
|
+
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; }
|
|
1601
1587
|
|
|
1602
|
-
function
|
|
1588
|
+
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; }
|
|
1603
1589
|
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
*
|
|
1609
|
-
*
|
|
1610
|
-
* @param {Object} prevProps
|
|
1611
|
-
* @param {Object} props
|
|
1590
|
+
/**
|
|
1591
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1592
|
+
*
|
|
1593
|
+
* @param {Object} prevProps
|
|
1594
|
+
* @param {Object} props
|
|
1612
1595
|
*/
|
|
1613
|
-
|
|
1614
1596
|
function shouldUpdateVideo(prevProps, props) {
|
|
1615
1597
|
// A changing video should always trigger an update
|
|
1616
1598
|
if (prevProps.videoId !== props.videoId) {
|
|
1617
1599
|
return true;
|
|
1618
|
-
}
|
|
1619
|
-
// update.
|
|
1620
|
-
|
|
1600
|
+
}
|
|
1621
1601
|
|
|
1602
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
// update.
|
|
1622
1604
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1623
1605
|
var vars = props.opts.playerVars || {};
|
|
1606
|
+
|
|
1624
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1625
1608
|
}
|
|
1626
|
-
/**
|
|
1627
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1628
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1629
|
-
* player reset is necessary.
|
|
1630
|
-
*
|
|
1631
|
-
* @param {Object} opts
|
|
1632
|
-
*/
|
|
1633
|
-
|
|
1634
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1616
|
+
*/
|
|
1635
1617
|
function filterResetOptions(opts) {
|
|
1636
|
-
return
|
|
1637
|
-
playerVars:
|
|
1618
|
+
return _extends({}, opts, {
|
|
1619
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1638
1620
|
autoplay: 0,
|
|
1639
1621
|
start: 0,
|
|
1640
1622
|
end: 0
|
|
1641
1623
|
})
|
|
1642
1624
|
});
|
|
1643
1625
|
}
|
|
1644
|
-
/**
|
|
1645
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1646
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1647
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1648
|
-
* those.
|
|
1649
|
-
*
|
|
1650
|
-
* @param {Object} prevProps
|
|
1651
|
-
* @param {Object} props
|
|
1652
|
-
*/
|
|
1653
|
-
|
|
1654
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1629
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1630
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1631
|
+
* those.
|
|
1632
|
+
*
|
|
1633
|
+
* @param {Object} prevProps
|
|
1634
|
+
* @param {Object} props
|
|
1635
|
+
*/
|
|
1655
1636
|
function shouldResetPlayer(prevProps, props) {
|
|
1656
1637
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1657
1638
|
}
|
|
1658
|
-
/**
|
|
1659
|
-
* Check whether a props change should result in an id or className update.
|
|
1660
|
-
*
|
|
1661
|
-
* @param {Object} prevProps
|
|
1662
|
-
* @param {Object} props
|
|
1663
|
-
*/
|
|
1664
|
-
|
|
1665
1639
|
|
|
1640
|
+
/**
|
|
1641
|
+
* Check whether a props change should result in an id or className update.
|
|
1642
|
+
*
|
|
1643
|
+
* @param {Object} prevProps
|
|
1644
|
+
* @param {Object} props
|
|
1645
|
+
*/
|
|
1666
1646
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1667
1647
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1668
1648
|
}
|
|
1669
1649
|
|
|
1670
|
-
var YouTube =
|
|
1650
|
+
var YouTube = function (_React$Component) {
|
|
1671
1651
|
_inherits(YouTube, _React$Component);
|
|
1672
1652
|
|
|
1673
|
-
var _super = _createSuper(YouTube);
|
|
1674
|
-
|
|
1675
|
-
/**
|
|
1676
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1677
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1678
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1679
|
-
*/
|
|
1680
1653
|
function YouTube(props) {
|
|
1681
|
-
var _this;
|
|
1682
|
-
|
|
1683
1654
|
_classCallCheck(this, YouTube);
|
|
1684
1655
|
|
|
1685
|
-
_this =
|
|
1656
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1686
1657
|
|
|
1687
|
-
|
|
1658
|
+
_this.onPlayerReady = function (event) {
|
|
1688
1659
|
return _this.props.onReady(event);
|
|
1689
|
-
}
|
|
1660
|
+
};
|
|
1690
1661
|
|
|
1691
|
-
|
|
1662
|
+
_this.onPlayerError = function (event) {
|
|
1692
1663
|
return _this.props.onError(event);
|
|
1693
|
-
}
|
|
1664
|
+
};
|
|
1694
1665
|
|
|
1695
|
-
|
|
1666
|
+
_this.onPlayerStateChange = function (event) {
|
|
1696
1667
|
_this.props.onStateChange(event);
|
|
1697
|
-
|
|
1698
1668
|
switch (event.data) {
|
|
1669
|
+
|
|
1699
1670
|
case YouTube.PlayerState.ENDED:
|
|
1700
1671
|
_this.props.onEnd(event);
|
|
1701
|
-
|
|
1702
1672
|
break;
|
|
1703
1673
|
|
|
1704
1674
|
case YouTube.PlayerState.PLAYING:
|
|
1705
1675
|
_this.props.onPlay(event);
|
|
1706
|
-
|
|
1707
1676
|
break;
|
|
1708
1677
|
|
|
1709
1678
|
case YouTube.PlayerState.PAUSED:
|
|
1710
1679
|
_this.props.onPause(event);
|
|
1711
|
-
|
|
1712
1680
|
break;
|
|
1713
1681
|
}
|
|
1714
|
-
}
|
|
1682
|
+
};
|
|
1715
1683
|
|
|
1716
|
-
|
|
1684
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1717
1685
|
return _this.props.onPlaybackRateChange(event);
|
|
1718
|
-
}
|
|
1686
|
+
};
|
|
1719
1687
|
|
|
1720
|
-
|
|
1688
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1721
1689
|
return _this.props.onPlaybackQualityChange(event);
|
|
1722
|
-
}
|
|
1690
|
+
};
|
|
1723
1691
|
|
|
1724
|
-
|
|
1692
|
+
_this.createPlayer = function () {
|
|
1725
1693
|
// do not attempt to create a player server-side, it won't work
|
|
1726
|
-
if (typeof document === 'undefined') return;
|
|
1727
|
-
|
|
1728
|
-
var playerOpts =
|
|
1694
|
+
if (typeof document === 'undefined') return;
|
|
1695
|
+
// create player
|
|
1696
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1729
1697
|
// preload the `videoId` video if one is already given
|
|
1730
1698
|
videoId: _this.props.videoId
|
|
1731
1699
|
});
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1700
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1701
|
+
// attach event handlers
|
|
1735
1702
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1736
|
-
|
|
1737
1703
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1738
|
-
|
|
1739
1704
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1740
|
-
|
|
1741
1705
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1742
|
-
|
|
1743
1706
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1744
|
-
}
|
|
1707
|
+
};
|
|
1745
1708
|
|
|
1746
|
-
|
|
1709
|
+
_this.resetPlayer = function () {
|
|
1747
1710
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1748
|
-
}
|
|
1711
|
+
};
|
|
1749
1712
|
|
|
1750
|
-
|
|
1713
|
+
_this.updatePlayer = function () {
|
|
1751
1714
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1752
1715
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1753
1716
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1754
1717
|
});
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1758
|
-
return _this.internalPlayer;
|
|
1759
|
-
});
|
|
1718
|
+
};
|
|
1760
1719
|
|
|
1761
|
-
|
|
1720
|
+
_this.updateVideo = function () {
|
|
1762
1721
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1763
1722
|
_this.internalPlayer.stopVideo();
|
|
1764
|
-
|
|
1765
1723
|
return;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1724
|
+
}
|
|
1768
1725
|
|
|
1726
|
+
// set queueing options
|
|
1769
1727
|
var autoplay = false;
|
|
1770
1728
|
var opts = {
|
|
1771
1729
|
videoId: _this.props.videoId
|
|
1772
1730
|
};
|
|
1773
|
-
|
|
1774
1731
|
if ('playerVars' in _this.props.opts) {
|
|
1775
1732
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1776
|
-
|
|
1777
1733
|
if ('start' in _this.props.opts.playerVars) {
|
|
1778
1734
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1779
1735
|
}
|
|
1780
|
-
|
|
1781
1736
|
if ('end' in _this.props.opts.playerVars) {
|
|
1782
1737
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1783
1738
|
}
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1739
|
+
}
|
|
1786
1740
|
|
|
1741
|
+
// if autoplay is enabled loadVideoById
|
|
1787
1742
|
if (autoplay) {
|
|
1788
1743
|
_this.internalPlayer.loadVideoById(opts);
|
|
1789
|
-
|
|
1790
1744
|
return;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1745
|
+
}
|
|
1746
|
+
// default behaviour just cues the video
|
|
1794
1747
|
_this.internalPlayer.cueVideoById(opts);
|
|
1795
|
-
}
|
|
1748
|
+
};
|
|
1796
1749
|
|
|
1797
|
-
|
|
1750
|
+
_this.refContainer = function (container) {
|
|
1798
1751
|
_this.container = container;
|
|
1799
|
-
}
|
|
1752
|
+
};
|
|
1800
1753
|
|
|
1801
1754
|
_this.container = null;
|
|
1802
1755
|
_this.internalPlayer = null;
|
|
1803
1756
|
return _this;
|
|
1804
1757
|
}
|
|
1805
1758
|
|
|
1759
|
+
/**
|
|
1760
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1761
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1762
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1763
|
+
*/
|
|
1764
|
+
|
|
1765
|
+
|
|
1806
1766
|
_createClass(YouTube, [{
|
|
1807
|
-
key:
|
|
1767
|
+
key: 'componentDidMount',
|
|
1808
1768
|
value: function componentDidMount() {
|
|
1809
1769
|
this.createPlayer();
|
|
1810
1770
|
}
|
|
1811
1771
|
}, {
|
|
1812
|
-
key:
|
|
1772
|
+
key: 'componentDidUpdate',
|
|
1813
1773
|
value: function componentDidUpdate(prevProps) {
|
|
1814
1774
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1815
1775
|
this.updatePlayer();
|
|
@@ -1824,70 +1784,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1824
1784
|
}
|
|
1825
1785
|
}
|
|
1826
1786
|
}, {
|
|
1827
|
-
key:
|
|
1787
|
+
key: 'componentWillUnmount',
|
|
1828
1788
|
value: function componentWillUnmount() {
|
|
1829
|
-
/**
|
|
1830
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1831
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1832
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1833
|
-
* this method isn't quick enough to reset the container element.
|
|
1789
|
+
/**
|
|
1790
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1791
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1792
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1793
|
+
* this method isn't quick enough to reset the container element.
|
|
1834
1794
|
*/
|
|
1835
1795
|
this.internalPlayer.destroy();
|
|
1836
1796
|
}
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
*
|
|
1840
|
-
*
|
|
1841
|
-
*
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1800
|
+
*
|
|
1801
|
+
* @param {Object} event
|
|
1802
|
+
* @param {Object} target - player object
|
|
1803
|
+
*/
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1808
|
+
*
|
|
1809
|
+
* @param {Object} event
|
|
1810
|
+
* @param {Integer} data - error type
|
|
1811
|
+
* @param {Object} target - player object
|
|
1812
|
+
*/
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1817
|
+
*
|
|
1818
|
+
* @param {Object} event
|
|
1819
|
+
* @param {Integer} data - status change type
|
|
1820
|
+
* @param {Object} target - actual YT player
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {Float} data - playback rate
|
|
1829
|
+
* @param {Object} target - actual YT player
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1835
|
+
*
|
|
1836
|
+
* @param {Object} event
|
|
1837
|
+
* @param {String} data - playback quality
|
|
1838
|
+
* @param {Object} target - actual YT player
|
|
1839
|
+
*/
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1844
|
+
*/
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1854
|
+
* React should update this automatically but since the Youtube Player API
|
|
1855
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1856
|
+
*/
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1861
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1862
|
+
* Youtube Player API methods to update the video.
|
|
1842
1863
|
*/
|
|
1843
1864
|
|
|
1844
1865
|
}, {
|
|
1845
|
-
key:
|
|
1866
|
+
key: 'render',
|
|
1846
1867
|
value: function render() {
|
|
1847
|
-
return
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
id: this.props.id,
|
|
1851
|
-
|
|
1852
|
-
ref: this.refContainer
|
|
1853
|
-
}));
|
|
1868
|
+
return React__default.createElement(
|
|
1869
|
+
'div',
|
|
1870
|
+
{ className: this.props.containerClassName },
|
|
1871
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1872
|
+
);
|
|
1854
1873
|
}
|
|
1855
1874
|
}]);
|
|
1856
1875
|
|
|
1857
1876
|
return YouTube;
|
|
1858
|
-
}(React__default
|
|
1859
|
-
|
|
1860
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1861
|
-
UNSTARTED: -1,
|
|
1862
|
-
ENDED: 0,
|
|
1863
|
-
PLAYING: 1,
|
|
1864
|
-
PAUSED: 2,
|
|
1865
|
-
BUFFERING: 3,
|
|
1866
|
-
CUED: 5
|
|
1867
|
-
});
|
|
1877
|
+
}(React__default.Component);
|
|
1868
1878
|
|
|
1869
1879
|
YouTube.propTypes = {
|
|
1870
|
-
videoId: PropTypes__default
|
|
1880
|
+
videoId: PropTypes__default.string,
|
|
1881
|
+
|
|
1871
1882
|
// custom ID for player element
|
|
1872
|
-
id: PropTypes__default
|
|
1883
|
+
id: PropTypes__default.string,
|
|
1884
|
+
|
|
1873
1885
|
// custom class name for player element
|
|
1874
|
-
className: PropTypes__default
|
|
1886
|
+
className: PropTypes__default.string,
|
|
1875
1887
|
// custom class name for player container element
|
|
1876
|
-
containerClassName: PropTypes__default
|
|
1888
|
+
containerClassName: PropTypes__default.string,
|
|
1889
|
+
|
|
1877
1890
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1878
|
-
opts: PropTypes__default
|
|
1891
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1892
|
+
|
|
1879
1893
|
// event subscriptions
|
|
1880
|
-
onReady: PropTypes__default
|
|
1881
|
-
onError: PropTypes__default
|
|
1882
|
-
onPlay: PropTypes__default
|
|
1883
|
-
onPause: PropTypes__default
|
|
1884
|
-
onEnd: PropTypes__default
|
|
1885
|
-
onStateChange: PropTypes__default
|
|
1886
|
-
onPlaybackRateChange: PropTypes__default
|
|
1887
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1894
|
+
onReady: PropTypes__default.func,
|
|
1895
|
+
onError: PropTypes__default.func,
|
|
1896
|
+
onPlay: PropTypes__default.func,
|
|
1897
|
+
onPause: PropTypes__default.func,
|
|
1898
|
+
onEnd: PropTypes__default.func,
|
|
1899
|
+
onStateChange: PropTypes__default.func,
|
|
1900
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1901
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1888
1902
|
};
|
|
1889
1903
|
YouTube.defaultProps = {
|
|
1890
|
-
videoId: null,
|
|
1891
1904
|
id: null,
|
|
1892
1905
|
className: null,
|
|
1893
1906
|
opts: {},
|
|
@@ -1901,12 +1914,20 @@ YouTube.defaultProps = {
|
|
|
1901
1914
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1902
1915
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1903
1916
|
};
|
|
1917
|
+
YouTube.PlayerState = {
|
|
1918
|
+
UNSTARTED: -1,
|
|
1919
|
+
ENDED: 0,
|
|
1920
|
+
PLAYING: 1,
|
|
1921
|
+
PAUSED: 2,
|
|
1922
|
+
BUFFERING: 3,
|
|
1923
|
+
CUED: 5
|
|
1924
|
+
};
|
|
1904
1925
|
|
|
1905
1926
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1906
1927
|
var url = _ref.url,
|
|
1907
1928
|
autoplay = _ref.autoplay;
|
|
1908
1929
|
|
|
1909
|
-
var id = index$
|
|
1930
|
+
var id = index$3.getYoutubeId(url);
|
|
1910
1931
|
|
|
1911
1932
|
var _useState = React.useState(false),
|
|
1912
1933
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -2002,11 +2023,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2002
2023
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2003
2024
|
};
|
|
2004
2025
|
|
|
2005
|
-
return React__default
|
|
2026
|
+
return React__default.createElement(
|
|
2006
2027
|
'div',
|
|
2007
2028
|
{ id: 'fluid-video-container' },
|
|
2008
|
-
React__default
|
|
2009
|
-
React__default
|
|
2029
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2030
|
+
React__default.createElement(
|
|
2010
2031
|
'style',
|
|
2011
2032
|
{ jsx: 'true' },
|
|
2012
2033
|
'\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 '
|
|
@@ -2019,20 +2040,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2019
2040
|
content = _ref.content,
|
|
2020
2041
|
getSerializers = _ref.getSerializers;
|
|
2021
2042
|
|
|
2022
|
-
return React__default
|
|
2043
|
+
return React__default.createElement(
|
|
2023
2044
|
'article',
|
|
2024
2045
|
{ className: 'sidebar' },
|
|
2025
|
-
React__default
|
|
2046
|
+
React__default.createElement(
|
|
2026
2047
|
'div',
|
|
2027
2048
|
null,
|
|
2028
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2029
2050
|
'h3',
|
|
2030
2051
|
null,
|
|
2031
2052
|
caption
|
|
2032
2053
|
),
|
|
2033
|
-
React__default
|
|
2054
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2034
2055
|
),
|
|
2035
|
-
React__default
|
|
2056
|
+
React__default.createElement(
|
|
2036
2057
|
'style',
|
|
2037
2058
|
{ jsx: 'true' },
|
|
2038
2059
|
'\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 '
|
|
@@ -2043,18 +2064,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2043
2064
|
var TableShow = function TableShow(_ref) {
|
|
2044
2065
|
var rows = _ref.rows;
|
|
2045
2066
|
|
|
2046
|
-
return React__default
|
|
2067
|
+
return React__default.createElement(
|
|
2047
2068
|
reactBootstrap.Table,
|
|
2048
2069
|
{ bordered: true, hover: true, responsive: true },
|
|
2049
|
-
React__default
|
|
2070
|
+
React__default.createElement(
|
|
2050
2071
|
'tbody',
|
|
2051
2072
|
null,
|
|
2052
2073
|
rows && rows.map(function (row) {
|
|
2053
|
-
return React__default
|
|
2074
|
+
return React__default.createElement(
|
|
2054
2075
|
'tr',
|
|
2055
2076
|
{ key: row._key },
|
|
2056
2077
|
row.cells && row.cells.map(function (cell, index) {
|
|
2057
|
-
return cell && React__default
|
|
2078
|
+
return cell && React__default.createElement(
|
|
2058
2079
|
'td',
|
|
2059
2080
|
{ key: index },
|
|
2060
2081
|
cell
|
|
@@ -2152,25 +2173,25 @@ var Media = function Media(_ref) {
|
|
|
2152
2173
|
margin: imageMargin
|
|
2153
2174
|
};
|
|
2154
2175
|
|
|
2155
|
-
return React__default
|
|
2176
|
+
return React__default.createElement(
|
|
2156
2177
|
reactBootstrap.Figure,
|
|
2157
2178
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2158
|
-
React__default
|
|
2179
|
+
React__default.createElement(
|
|
2159
2180
|
'a',
|
|
2160
2181
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2161
|
-
React__default
|
|
2182
|
+
React__default.createElement(
|
|
2162
2183
|
index$2.LazyLoad,
|
|
2163
2184
|
{ once: true },
|
|
2164
|
-
React__default
|
|
2185
|
+
React__default.createElement(
|
|
2165
2186
|
'picture',
|
|
2166
2187
|
null,
|
|
2167
|
-
React__default
|
|
2168
|
-
React__default
|
|
2169
|
-
React__default
|
|
2170
|
-
React__default
|
|
2188
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2189
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2190
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2191
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2171
2192
|
)
|
|
2172
2193
|
),
|
|
2173
|
-
caption && React__default
|
|
2194
|
+
caption && React__default.createElement(
|
|
2174
2195
|
reactBootstrap.Figure.Caption,
|
|
2175
2196
|
{ className: 'media-caption' },
|
|
2176
2197
|
caption
|
|
@@ -2178,9 +2199,9 @@ var Media = function Media(_ref) {
|
|
|
2178
2199
|
)
|
|
2179
2200
|
);
|
|
2180
2201
|
} else if (caption && caption !== '') {
|
|
2181
|
-
return React__default
|
|
2202
|
+
return React__default.createElement(
|
|
2182
2203
|
'a',
|
|
2183
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2204
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2184
2205
|
href: uploadDoc.asset.url + '?dl='
|
|
2185
2206
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2186
2207
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2198,10 +2219,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2198
2219
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2199
2220
|
|
|
2200
2221
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2201
|
-
return React__default
|
|
2222
|
+
return React__default.createElement(
|
|
2202
2223
|
'div',
|
|
2203
2224
|
{ className: 'd-block text-center mb-3' },
|
|
2204
|
-
React__default
|
|
2225
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2205
2226
|
);
|
|
2206
2227
|
};
|
|
2207
2228
|
|
|
@@ -2296,10 +2317,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2296
2317
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2297
2318
|
};
|
|
2298
2319
|
|
|
2299
|
-
return React__default
|
|
2320
|
+
return React__default.createElement(
|
|
2300
2321
|
'div',
|
|
2301
2322
|
null,
|
|
2302
|
-
vidLoaded && React__default
|
|
2323
|
+
vidLoaded && React__default.createElement(
|
|
2303
2324
|
'video',
|
|
2304
2325
|
{
|
|
2305
2326
|
poster: thumbnail || '',
|
|
@@ -2317,7 +2338,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2317
2338
|
onPlay: function onPlay(e) {
|
|
2318
2339
|
return handleOnPlay(e);
|
|
2319
2340
|
} },
|
|
2320
|
-
React__default
|
|
2341
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2321
2342
|
'Your browser does not support the video tag.'
|
|
2322
2343
|
)
|
|
2323
2344
|
);
|
|
@@ -2354,7 +2375,7 @@ var Video = function Video(_ref) {
|
|
|
2354
2375
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2355
2376
|
//console.log('success:', success.ref)
|
|
2356
2377
|
var player = success.ref;
|
|
2357
|
-
if (_typeof
|
|
2378
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2358
2379
|
player.ima3.settings.debug = true;
|
|
2359
2380
|
if (targeting.content_placement && targeting.document_url) {
|
|
2360
2381
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2452,53 +2473,53 @@ var Video = function Video(_ref) {
|
|
|
2452
2473
|
|
|
2453
2474
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2454
2475
|
if (videoID) {
|
|
2455
|
-
return React__default
|
|
2476
|
+
return React__default.createElement(
|
|
2456
2477
|
'div',
|
|
2457
2478
|
null,
|
|
2458
|
-
React__default
|
|
2479
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2459
2480
|
onSuccess: onVideoSuccess,
|
|
2460
2481
|
accountId: accountIDs.brightcove.accountId,
|
|
2461
2482
|
videoId: videoID,
|
|
2462
2483
|
playerId: accountIDs.brightcove.playerId,
|
|
2463
2484
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2464
2485
|
}),
|
|
2465
|
-
React__default
|
|
2486
|
+
React__default.createElement(
|
|
2466
2487
|
'style',
|
|
2467
2488
|
{ jsx: 'true' },
|
|
2468
2489
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2469
2490
|
)
|
|
2470
2491
|
);
|
|
2471
2492
|
} else if (playlistID) {
|
|
2472
|
-
return React__default
|
|
2493
|
+
return React__default.createElement(
|
|
2473
2494
|
'div',
|
|
2474
2495
|
null,
|
|
2475
|
-
React__default
|
|
2496
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2476
2497
|
accountId: accountIDs.brightcove.accountId,
|
|
2477
2498
|
playlistId: playlistID,
|
|
2478
2499
|
playerId: accountIDs.brightcove.playerId,
|
|
2479
2500
|
onSuccess: onVideoSuccess,
|
|
2480
2501
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2481
2502
|
}),
|
|
2482
|
-
React__default
|
|
2503
|
+
React__default.createElement(
|
|
2483
2504
|
'style',
|
|
2484
2505
|
{ jsx: 'true' },
|
|
2485
2506
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2486
2507
|
)
|
|
2487
2508
|
);
|
|
2488
2509
|
} else if (experienceID) {
|
|
2489
|
-
return React__default
|
|
2510
|
+
return React__default.createElement(
|
|
2490
2511
|
'div',
|
|
2491
2512
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2492
|
-
videoLoaded && React__default
|
|
2513
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2493
2514
|
);
|
|
2494
2515
|
}
|
|
2495
2516
|
return null;
|
|
2496
2517
|
}
|
|
2497
2518
|
if (source === 'mp4') {
|
|
2498
|
-
return React__default
|
|
2519
|
+
return React__default.createElement(
|
|
2499
2520
|
'div',
|
|
2500
2521
|
null,
|
|
2501
|
-
React__default
|
|
2522
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2502
2523
|
);
|
|
2503
2524
|
}
|
|
2504
2525
|
|
|
@@ -2513,7 +2534,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2513
2534
|
});
|
|
2514
2535
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2515
2536
|
|
|
2516
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2537
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2517
2538
|
|
|
2518
2539
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2519
2540
|
|
|
@@ -2876,17 +2897,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2876
2897
|
|
|
2877
2898
|
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; }
|
|
2878
2899
|
|
|
2879
|
-
function
|
|
2900
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2880
2901
|
|
|
2881
|
-
function
|
|
2902
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2882
2903
|
|
|
2883
|
-
function
|
|
2884
|
-
|
|
2885
|
-
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); }
|
|
2886
|
-
|
|
2887
|
-
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; }
|
|
2888
|
-
|
|
2889
|
-
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; }
|
|
2904
|
+
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; }
|
|
2890
2905
|
|
|
2891
2906
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2892
2907
|
|
|
@@ -3016,12 +3031,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3016
3031
|
|
|
3017
3032
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3018
3033
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3019
|
-
|
|
3020
|
-
var
|
|
3021
|
-
|
|
3034
|
+
var _iteratorNormalCompletion = true;
|
|
3035
|
+
var _didIteratorError = false;
|
|
3036
|
+
var _iteratorError = undefined;
|
|
3022
3037
|
|
|
3023
3038
|
try {
|
|
3024
|
-
for (_iterator.
|
|
3039
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3025
3040
|
var p = _step.value;
|
|
3026
3041
|
|
|
3027
3042
|
if (props$1[p]) {
|
|
@@ -3036,9 +3051,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3036
3051
|
}
|
|
3037
3052
|
}
|
|
3038
3053
|
} catch (err) {
|
|
3039
|
-
|
|
3054
|
+
_didIteratorError = true;
|
|
3055
|
+
_iteratorError = err;
|
|
3040
3056
|
} finally {
|
|
3041
|
-
|
|
3057
|
+
try {
|
|
3058
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3059
|
+
_iterator["return"]();
|
|
3060
|
+
}
|
|
3061
|
+
} finally {
|
|
3062
|
+
if (_didIteratorError) {
|
|
3063
|
+
throw _iteratorError;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3042
3066
|
}
|
|
3043
3067
|
|
|
3044
3068
|
return config;
|
|
@@ -3103,7 +3127,7 @@ function isEqual(a, b) {
|
|
|
3103
3127
|
return true;
|
|
3104
3128
|
}
|
|
3105
3129
|
|
|
3106
|
-
if ((0, React__default
|
|
3130
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3107
3131
|
return true;
|
|
3108
3132
|
}
|
|
3109
3133
|
|
|
@@ -3165,7 +3189,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3165
3189
|
});
|
|
3166
3190
|
exports["default"] = void 0;
|
|
3167
3191
|
|
|
3168
|
-
var _react = _interopRequireWildcard(React__default
|
|
3192
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3169
3193
|
|
|
3170
3194
|
|
|
3171
3195
|
|
|
@@ -3185,16 +3209,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3185
3209
|
|
|
3186
3210
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3187
3211
|
|
|
3188
|
-
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); }; }
|
|
3189
|
-
|
|
3190
3212
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3191
3213
|
|
|
3192
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3193
|
-
|
|
3194
|
-
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; } }
|
|
3195
|
-
|
|
3196
3214
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3197
3215
|
|
|
3216
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3217
|
+
|
|
3198
3218
|
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); }
|
|
3199
3219
|
|
|
3200
3220
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3203,12 +3223,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3203
3223
|
|
|
3204
3224
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3205
3225
|
|
|
3206
|
-
var Player =
|
|
3226
|
+
var Player =
|
|
3227
|
+
/*#__PURE__*/
|
|
3228
|
+
function (_Component) {
|
|
3207
3229
|
_inherits(Player, _Component);
|
|
3208
3230
|
|
|
3209
|
-
var _super = _createSuper(Player);
|
|
3210
|
-
|
|
3211
3231
|
function Player() {
|
|
3232
|
+
var _getPrototypeOf2;
|
|
3233
|
+
|
|
3212
3234
|
var _this;
|
|
3213
3235
|
|
|
3214
3236
|
_classCallCheck(this, Player);
|
|
@@ -3217,7 +3239,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3217
3239
|
_args[_key] = arguments[_key];
|
|
3218
3240
|
}
|
|
3219
3241
|
|
|
3220
|
-
_this =
|
|
3242
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3221
3243
|
|
|
3222
3244
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3223
3245
|
|
|
@@ -3542,7 +3564,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3542
3564
|
return null;
|
|
3543
3565
|
}
|
|
3544
3566
|
|
|
3545
|
-
return
|
|
3567
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3546
3568
|
ref: this.ref,
|
|
3547
3569
|
onReady: this.handleReady,
|
|
3548
3570
|
onPlay: this.handlePlay,
|
|
@@ -3575,7 +3597,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3575
3597
|
});
|
|
3576
3598
|
exports["default"] = createSinglePlayer;
|
|
3577
3599
|
|
|
3578
|
-
var _react = _interopRequireWildcard(React__default
|
|
3600
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3579
3601
|
|
|
3580
3602
|
|
|
3581
3603
|
|
|
@@ -3603,16 +3625,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3603
3625
|
|
|
3604
3626
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3605
3627
|
|
|
3606
|
-
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); }; }
|
|
3607
|
-
|
|
3608
3628
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3609
3629
|
|
|
3610
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3611
|
-
|
|
3612
|
-
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; } }
|
|
3613
|
-
|
|
3614
3630
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3615
3631
|
|
|
3632
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3633
|
+
|
|
3616
3634
|
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); }
|
|
3617
3635
|
|
|
3618
3636
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3624,12 +3642,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3624
3642
|
function createSinglePlayer(activePlayer) {
|
|
3625
3643
|
var _class, _temp;
|
|
3626
3644
|
|
|
3627
|
-
return _temp = _class =
|
|
3645
|
+
return _temp = _class =
|
|
3646
|
+
/*#__PURE__*/
|
|
3647
|
+
function (_Component) {
|
|
3628
3648
|
_inherits(SinglePlayer, _Component);
|
|
3629
3649
|
|
|
3630
|
-
var _super = _createSuper(SinglePlayer);
|
|
3631
|
-
|
|
3632
3650
|
function SinglePlayer() {
|
|
3651
|
+
var _getPrototypeOf2;
|
|
3652
|
+
|
|
3633
3653
|
var _this;
|
|
3634
3654
|
|
|
3635
3655
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3638,7 +3658,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3638
3658
|
args[_key] = arguments[_key];
|
|
3639
3659
|
}
|
|
3640
3660
|
|
|
3641
|
-
_this =
|
|
3661
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3642
3662
|
|
|
3643
3663
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3644
3664
|
|
|
@@ -3706,12 +3726,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3706
3726
|
height = _this$props.height,
|
|
3707
3727
|
Wrapper = _this$props.wrapper;
|
|
3708
3728
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3709
|
-
return
|
|
3729
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3710
3730
|
style: _objectSpread({}, style, {
|
|
3711
3731
|
width: width,
|
|
3712
3732
|
height: height
|
|
3713
3733
|
})
|
|
3714
|
-
}, otherProps),
|
|
3734
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3715
3735
|
ref: this.ref,
|
|
3716
3736
|
activePlayer: activePlayer,
|
|
3717
3737
|
config: this.config
|
|
@@ -3733,7 +3753,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3733
3753
|
});
|
|
3734
3754
|
exports["default"] = exports.YouTube = void 0;
|
|
3735
3755
|
|
|
3736
|
-
var _react = _interopRequireWildcard(React__default
|
|
3756
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3737
3757
|
|
|
3738
3758
|
|
|
3739
3759
|
|
|
@@ -3757,31 +3777,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3757
3777
|
|
|
3758
3778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3759
3779
|
|
|
3760
|
-
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); }; }
|
|
3761
|
-
|
|
3762
3780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3763
3781
|
|
|
3764
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3765
|
-
|
|
3766
|
-
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; } }
|
|
3767
|
-
|
|
3768
3782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3769
3783
|
|
|
3784
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3785
|
+
|
|
3770
3786
|
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); }
|
|
3771
3787
|
|
|
3772
3788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3773
3789
|
|
|
3774
3790
|
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; }
|
|
3775
3791
|
|
|
3776
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3777
|
-
|
|
3778
|
-
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."); }
|
|
3792
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3779
3793
|
|
|
3780
|
-
function
|
|
3794
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3781
3795
|
|
|
3782
|
-
function
|
|
3783
|
-
|
|
3784
|
-
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; }
|
|
3796
|
+
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; }
|
|
3785
3797
|
|
|
3786
3798
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3787
3799
|
|
|
@@ -3806,12 +3818,14 @@ function parsePlaylist(url) {
|
|
|
3806
3818
|
return {};
|
|
3807
3819
|
}
|
|
3808
3820
|
|
|
3809
|
-
var YouTube =
|
|
3821
|
+
var YouTube =
|
|
3822
|
+
/*#__PURE__*/
|
|
3823
|
+
function (_Component) {
|
|
3810
3824
|
_inherits(YouTube, _Component);
|
|
3811
3825
|
|
|
3812
|
-
var _super = _createSuper(YouTube);
|
|
3813
|
-
|
|
3814
3826
|
function YouTube() {
|
|
3827
|
+
var _getPrototypeOf2;
|
|
3828
|
+
|
|
3815
3829
|
var _this;
|
|
3816
3830
|
|
|
3817
3831
|
_classCallCheck(this, YouTube);
|
|
@@ -3820,7 +3834,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3820
3834
|
args[_key] = arguments[_key];
|
|
3821
3835
|
}
|
|
3822
3836
|
|
|
3823
|
-
_this =
|
|
3837
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3824
3838
|
|
|
3825
3839
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3826
3840
|
|
|
@@ -4008,9 +4022,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4008
4022
|
height: '100%',
|
|
4009
4023
|
display: display
|
|
4010
4024
|
};
|
|
4011
|
-
return
|
|
4025
|
+
return _react["default"].createElement("div", {
|
|
4012
4026
|
style: style
|
|
4013
|
-
},
|
|
4027
|
+
}, _react["default"].createElement("div", {
|
|
4014
4028
|
ref: this.ref
|
|
4015
4029
|
}));
|
|
4016
4030
|
}
|
|
@@ -4042,7 +4056,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4042
4056
|
});
|
|
4043
4057
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4044
4058
|
|
|
4045
|
-
var _react = _interopRequireWildcard(React__default
|
|
4059
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4046
4060
|
|
|
4047
4061
|
|
|
4048
4062
|
|
|
@@ -4066,16 +4080,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4066
4080
|
|
|
4067
4081
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4068
4082
|
|
|
4069
|
-
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); }; }
|
|
4070
|
-
|
|
4071
4083
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4072
4084
|
|
|
4073
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4074
|
-
|
|
4075
|
-
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; } }
|
|
4076
|
-
|
|
4077
4085
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4078
4086
|
|
|
4087
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4088
|
+
|
|
4079
4089
|
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); }
|
|
4080
4090
|
|
|
4081
4091
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4084,14 +4094,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4084
4094
|
|
|
4085
4095
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4086
4096
|
var SDK_GLOBAL = 'SC';
|
|
4087
|
-
var MATCH_URL = /(
|
|
4097
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4088
4098
|
|
|
4089
|
-
var SoundCloud =
|
|
4099
|
+
var SoundCloud =
|
|
4100
|
+
/*#__PURE__*/
|
|
4101
|
+
function (_Component) {
|
|
4090
4102
|
_inherits(SoundCloud, _Component);
|
|
4091
4103
|
|
|
4092
|
-
var _super = _createSuper(SoundCloud);
|
|
4093
|
-
|
|
4094
4104
|
function SoundCloud() {
|
|
4105
|
+
var _getPrototypeOf2;
|
|
4106
|
+
|
|
4095
4107
|
var _this;
|
|
4096
4108
|
|
|
4097
4109
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4100,7 +4112,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4100
4112
|
args[_key] = arguments[_key];
|
|
4101
4113
|
}
|
|
4102
4114
|
|
|
4103
|
-
_this =
|
|
4115
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4104
4116
|
|
|
4105
4117
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4106
4118
|
|
|
@@ -4221,7 +4233,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4221
4233
|
height: '100%',
|
|
4222
4234
|
display: display
|
|
4223
4235
|
};
|
|
4224
|
-
return
|
|
4236
|
+
return _react["default"].createElement("iframe", {
|
|
4225
4237
|
ref: this.ref,
|
|
4226
4238
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4227
4239
|
style: style,
|
|
@@ -4259,7 +4271,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4259
4271
|
});
|
|
4260
4272
|
exports["default"] = exports.Vimeo = void 0;
|
|
4261
4273
|
|
|
4262
|
-
var _react = _interopRequireWildcard(React__default
|
|
4274
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4263
4275
|
|
|
4264
4276
|
|
|
4265
4277
|
|
|
@@ -4283,16 +4295,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4283
4295
|
|
|
4284
4296
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4285
4297
|
|
|
4286
|
-
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); }; }
|
|
4287
|
-
|
|
4288
4298
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4289
4299
|
|
|
4290
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4291
|
-
|
|
4292
|
-
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; } }
|
|
4293
|
-
|
|
4294
4300
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4295
4301
|
|
|
4302
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4303
|
+
|
|
4296
4304
|
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); }
|
|
4297
4305
|
|
|
4298
4306
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4304,12 +4312,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4304
4312
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4305
4313
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4306
4314
|
|
|
4307
|
-
var Vimeo =
|
|
4315
|
+
var Vimeo =
|
|
4316
|
+
/*#__PURE__*/
|
|
4317
|
+
function (_Component) {
|
|
4308
4318
|
_inherits(Vimeo, _Component);
|
|
4309
4319
|
|
|
4310
|
-
var _super = _createSuper(Vimeo);
|
|
4311
|
-
|
|
4312
4320
|
function Vimeo() {
|
|
4321
|
+
var _getPrototypeOf2;
|
|
4322
|
+
|
|
4313
4323
|
var _this;
|
|
4314
4324
|
|
|
4315
4325
|
_classCallCheck(this, Vimeo);
|
|
@@ -4318,7 +4328,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4318
4328
|
args[_key] = arguments[_key];
|
|
4319
4329
|
}
|
|
4320
4330
|
|
|
4321
|
-
_this =
|
|
4331
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4322
4332
|
|
|
4323
4333
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4324
4334
|
|
|
@@ -4475,7 +4485,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4475
4485
|
overflow: 'hidden',
|
|
4476
4486
|
display: display
|
|
4477
4487
|
};
|
|
4478
|
-
return
|
|
4488
|
+
return _react["default"].createElement("div", {
|
|
4479
4489
|
key: this.props.url,
|
|
4480
4490
|
ref: this.ref,
|
|
4481
4491
|
style: style
|
|
@@ -4515,7 +4525,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4515
4525
|
});
|
|
4516
4526
|
exports["default"] = exports.Facebook = void 0;
|
|
4517
4527
|
|
|
4518
|
-
var _react = _interopRequireWildcard(React__default
|
|
4528
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4519
4529
|
|
|
4520
4530
|
|
|
4521
4531
|
|
|
@@ -4535,16 +4545,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4535
4545
|
|
|
4536
4546
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4537
4547
|
|
|
4538
|
-
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); }; }
|
|
4539
|
-
|
|
4540
4548
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4541
4549
|
|
|
4542
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4543
|
-
|
|
4544
|
-
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; } }
|
|
4545
|
-
|
|
4546
4550
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4547
4551
|
|
|
4552
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4553
|
+
|
|
4548
4554
|
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); }
|
|
4549
4555
|
|
|
4550
4556
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4557,12 +4563,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4557
4563
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4558
4564
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4559
4565
|
|
|
4560
|
-
var Facebook =
|
|
4566
|
+
var Facebook =
|
|
4567
|
+
/*#__PURE__*/
|
|
4568
|
+
function (_Component) {
|
|
4561
4569
|
_inherits(Facebook, _Component);
|
|
4562
4570
|
|
|
4563
|
-
var _super = _createSuper(Facebook);
|
|
4564
|
-
|
|
4565
4571
|
function Facebook() {
|
|
4572
|
+
var _getPrototypeOf2;
|
|
4573
|
+
|
|
4566
4574
|
var _this;
|
|
4567
4575
|
|
|
4568
4576
|
_classCallCheck(this, Facebook);
|
|
@@ -4571,7 +4579,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4571
4579
|
args[_key] = arguments[_key];
|
|
4572
4580
|
}
|
|
4573
4581
|
|
|
4574
|
-
_this =
|
|
4582
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4575
4583
|
|
|
4576
4584
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4577
4585
|
|
|
@@ -4687,7 +4695,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4687
4695
|
width: '100%',
|
|
4688
4696
|
height: '100%'
|
|
4689
4697
|
};
|
|
4690
|
-
return
|
|
4698
|
+
return _react["default"].createElement("div", {
|
|
4691
4699
|
style: style,
|
|
4692
4700
|
id: this.playerID,
|
|
4693
4701
|
className: "fb-video",
|
|
@@ -4727,7 +4735,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4727
4735
|
});
|
|
4728
4736
|
exports["default"] = exports.Streamable = void 0;
|
|
4729
4737
|
|
|
4730
|
-
var _react = _interopRequireWildcard(React__default
|
|
4738
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4731
4739
|
|
|
4732
4740
|
|
|
4733
4741
|
|
|
@@ -4747,16 +4755,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4747
4755
|
|
|
4748
4756
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4749
4757
|
|
|
4750
|
-
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); }; }
|
|
4751
|
-
|
|
4752
4758
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4753
4759
|
|
|
4754
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4755
|
-
|
|
4756
|
-
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; } }
|
|
4757
|
-
|
|
4758
4760
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4759
4761
|
|
|
4762
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4763
|
+
|
|
4760
4764
|
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); }
|
|
4761
4765
|
|
|
4762
4766
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4767,12 +4771,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4767
4771
|
var SDK_GLOBAL = 'playerjs';
|
|
4768
4772
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4769
4773
|
|
|
4770
|
-
var Streamable =
|
|
4774
|
+
var Streamable =
|
|
4775
|
+
/*#__PURE__*/
|
|
4776
|
+
function (_Component) {
|
|
4771
4777
|
_inherits(Streamable, _Component);
|
|
4772
4778
|
|
|
4773
|
-
var _super = _createSuper(Streamable);
|
|
4774
|
-
|
|
4775
4779
|
function Streamable() {
|
|
4780
|
+
var _getPrototypeOf2;
|
|
4781
|
+
|
|
4776
4782
|
var _this;
|
|
4777
4783
|
|
|
4778
4784
|
_classCallCheck(this, Streamable);
|
|
@@ -4781,7 +4787,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4781
4787
|
args[_key] = arguments[_key];
|
|
4782
4788
|
}
|
|
4783
4789
|
|
|
4784
|
-
_this =
|
|
4790
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4785
4791
|
|
|
4786
4792
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4787
4793
|
|
|
@@ -4901,7 +4907,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4901
4907
|
width: '100%',
|
|
4902
4908
|
height: '100%'
|
|
4903
4909
|
};
|
|
4904
|
-
return
|
|
4910
|
+
return _react["default"].createElement("iframe", {
|
|
4905
4911
|
ref: this.ref,
|
|
4906
4912
|
src: "https://streamable.com/o/".concat(id),
|
|
4907
4913
|
frameBorder: "0",
|
|
@@ -4938,7 +4944,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4938
4944
|
});
|
|
4939
4945
|
exports["default"] = exports.Wistia = void 0;
|
|
4940
4946
|
|
|
4941
|
-
var _react = _interopRequireWildcard(React__default
|
|
4947
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4942
4948
|
|
|
4943
4949
|
|
|
4944
4950
|
|
|
@@ -4962,16 +4968,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4962
4968
|
|
|
4963
4969
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4964
4970
|
|
|
4965
|
-
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); }; }
|
|
4966
|
-
|
|
4967
4971
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4968
4972
|
|
|
4969
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4970
|
-
|
|
4971
|
-
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; } }
|
|
4972
|
-
|
|
4973
4973
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4974
4974
|
|
|
4975
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4976
|
+
|
|
4975
4977
|
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); }
|
|
4976
4978
|
|
|
4977
4979
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4982,48 +4984,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4982
4984
|
var SDK_GLOBAL = 'Wistia';
|
|
4983
4985
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4984
4986
|
|
|
4985
|
-
var Wistia =
|
|
4987
|
+
var Wistia =
|
|
4988
|
+
/*#__PURE__*/
|
|
4989
|
+
function (_Component) {
|
|
4986
4990
|
_inherits(Wistia, _Component);
|
|
4987
4991
|
|
|
4988
|
-
var _super = _createSuper(Wistia);
|
|
4989
|
-
|
|
4990
4992
|
function Wistia() {
|
|
4993
|
+
var _getPrototypeOf2;
|
|
4994
|
+
|
|
4991
4995
|
var _this;
|
|
4992
4996
|
|
|
4993
4997
|
_classCallCheck(this, Wistia);
|
|
4994
4998
|
|
|
4995
|
-
for (var _len = arguments.length,
|
|
4996
|
-
|
|
4999
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5000
|
+
args[_key] = arguments[_key];
|
|
4997
5001
|
}
|
|
4998
5002
|
|
|
4999
|
-
_this =
|
|
5003
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5000
5004
|
|
|
5001
5005
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5002
5006
|
|
|
5003
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5004
|
-
var _this$props;
|
|
5005
|
-
|
|
5006
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5007
|
-
});
|
|
5008
|
-
|
|
5009
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5010
|
-
var _this$props2;
|
|
5011
|
-
|
|
5012
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5013
|
-
});
|
|
5014
|
-
|
|
5015
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5016
|
-
var _this$props3;
|
|
5017
|
-
|
|
5018
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5019
|
-
});
|
|
5020
|
-
|
|
5021
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5022
|
-
var _this$props4;
|
|
5023
|
-
|
|
5024
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5025
|
-
});
|
|
5026
|
-
|
|
5027
5007
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5028
5008
|
_this.callPlayer('mute');
|
|
5029
5009
|
});
|
|
@@ -5045,13 +5025,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5045
5025
|
value: function load(url) {
|
|
5046
5026
|
var _this2 = this;
|
|
5047
5027
|
|
|
5048
|
-
var _this$
|
|
5049
|
-
playing = _this$
|
|
5050
|
-
muted = _this$
|
|
5051
|
-
controls = _this$
|
|
5052
|
-
_onReady = _this$
|
|
5053
|
-
|
|
5054
|
-
|
|
5028
|
+
var _this$props = this.props,
|
|
5029
|
+
playing = _this$props.playing,
|
|
5030
|
+
muted = _this$props.muted,
|
|
5031
|
+
controls = _this$props.controls,
|
|
5032
|
+
_onReady = _this$props.onReady,
|
|
5033
|
+
onPlay = _this$props.onPlay,
|
|
5034
|
+
onPause = _this$props.onPause,
|
|
5035
|
+
onSeek = _this$props.onSeek,
|
|
5036
|
+
onEnded = _this$props.onEnded,
|
|
5037
|
+
config = _this$props.config,
|
|
5038
|
+
onError = _this$props.onError;
|
|
5055
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5056
5040
|
window._wq = window._wq || [];
|
|
5057
5041
|
|
|
@@ -5068,28 +5052,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5068
5052
|
|
|
5069
5053
|
_this2.unbind();
|
|
5070
5054
|
|
|
5071
|
-
_this2.player.bind('play',
|
|
5055
|
+
_this2.player.bind('play', onPlay);
|
|
5072
5056
|
|
|
5073
|
-
_this2.player.bind('pause',
|
|
5057
|
+
_this2.player.bind('pause', onPause);
|
|
5074
5058
|
|
|
5075
|
-
_this2.player.bind('seek',
|
|
5059
|
+
_this2.player.bind('seek', onSeek);
|
|
5076
5060
|
|
|
5077
|
-
_this2.player.bind('end',
|
|
5061
|
+
_this2.player.bind('end', onEnded);
|
|
5078
5062
|
|
|
5079
5063
|
_onReady();
|
|
5080
5064
|
}
|
|
5081
5065
|
});
|
|
5082
5066
|
}, onError);
|
|
5083
5067
|
}
|
|
5084
|
-
}, {
|
|
5085
|
-
key: "unbind",
|
|
5086
|
-
value: function unbind() {
|
|
5087
|
-
this.player.unbind('play', this.onPlay);
|
|
5088
|
-
this.player.unbind('pause', this.onPause);
|
|
5089
|
-
this.player.unbind('seek', this.onSeek);
|
|
5090
|
-
this.player.unbind('end', this.onEnded);
|
|
5091
|
-
} // Proxy methods to prevent listener leaks
|
|
5092
|
-
|
|
5093
5068
|
}, {
|
|
5094
5069
|
key: "play",
|
|
5095
5070
|
value: function play() {
|
|
@@ -5100,6 +5075,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5100
5075
|
value: function pause() {
|
|
5101
5076
|
this.callPlayer('pause');
|
|
5102
5077
|
}
|
|
5078
|
+
}, {
|
|
5079
|
+
key: "unbind",
|
|
5080
|
+
value: function unbind() {
|
|
5081
|
+
var _this$props2 = this.props,
|
|
5082
|
+
onPlay = _this$props2.onPlay,
|
|
5083
|
+
onPause = _this$props2.onPause,
|
|
5084
|
+
onSeek = _this$props2.onSeek,
|
|
5085
|
+
onEnded = _this$props2.onEnded;
|
|
5086
|
+
this.player.unbind('play', onPlay);
|
|
5087
|
+
this.player.unbind('pause', onPause);
|
|
5088
|
+
this.player.unbind('seek', onSeek);
|
|
5089
|
+
this.player.unbind('end', onEnded);
|
|
5090
|
+
}
|
|
5103
5091
|
}, {
|
|
5104
5092
|
key: "stop",
|
|
5105
5093
|
value: function stop() {
|
|
@@ -5145,7 +5133,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5145
5133
|
width: '100%',
|
|
5146
5134
|
height: '100%'
|
|
5147
5135
|
};
|
|
5148
|
-
return
|
|
5136
|
+
return _react["default"].createElement("div", {
|
|
5149
5137
|
key: id,
|
|
5150
5138
|
className: className,
|
|
5151
5139
|
style: style
|
|
@@ -5181,7 +5169,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5181
5169
|
});
|
|
5182
5170
|
exports["default"] = exports.Twitch = void 0;
|
|
5183
5171
|
|
|
5184
|
-
var _react = _interopRequireWildcard(React__default
|
|
5172
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5185
5173
|
|
|
5186
5174
|
|
|
5187
5175
|
|
|
@@ -5205,16 +5193,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5205
5193
|
|
|
5206
5194
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5207
5195
|
|
|
5208
|
-
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); }; }
|
|
5209
|
-
|
|
5210
5196
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5211
5197
|
|
|
5212
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5213
|
-
|
|
5214
|
-
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; } }
|
|
5215
|
-
|
|
5216
5198
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5217
5199
|
|
|
5200
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5201
|
+
|
|
5218
5202
|
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); }
|
|
5219
5203
|
|
|
5220
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5227,12 +5211,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5227
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5228
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5229
5213
|
|
|
5230
|
-
var Twitch =
|
|
5214
|
+
var Twitch =
|
|
5215
|
+
/*#__PURE__*/
|
|
5216
|
+
function (_Component) {
|
|
5231
5217
|
_inherits(Twitch, _Component);
|
|
5232
5218
|
|
|
5233
|
-
var _super = _createSuper(Twitch);
|
|
5234
|
-
|
|
5235
5219
|
function Twitch() {
|
|
5220
|
+
var _getPrototypeOf2;
|
|
5221
|
+
|
|
5236
5222
|
var _this;
|
|
5237
5223
|
|
|
5238
5224
|
_classCallCheck(this, Twitch);
|
|
@@ -5241,7 +5227,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5241
5227
|
args[_key] = arguments[_key];
|
|
5242
5228
|
}
|
|
5243
5229
|
|
|
5244
|
-
_this =
|
|
5230
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5245
5231
|
|
|
5246
5232
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5247
5233
|
|
|
@@ -5362,7 +5348,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5362
5348
|
width: '100%',
|
|
5363
5349
|
height: '100%'
|
|
5364
5350
|
};
|
|
5365
|
-
return
|
|
5351
|
+
return _react["default"].createElement("div", {
|
|
5366
5352
|
style: style,
|
|
5367
5353
|
id: this.playerID
|
|
5368
5354
|
});
|
|
@@ -5397,7 +5383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5397
5383
|
});
|
|
5398
5384
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5399
5385
|
|
|
5400
|
-
var _react = _interopRequireWildcard(React__default
|
|
5386
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5401
5387
|
|
|
5402
5388
|
|
|
5403
5389
|
|
|
@@ -5415,15 +5401,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5415
5401
|
|
|
5416
5402
|
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; }
|
|
5417
5403
|
|
|
5418
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5419
|
-
|
|
5420
|
-
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."); }
|
|
5404
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5421
5405
|
|
|
5422
|
-
function
|
|
5406
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5423
5407
|
|
|
5424
|
-
function
|
|
5425
|
-
|
|
5426
|
-
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; }
|
|
5408
|
+
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; }
|
|
5427
5409
|
|
|
5428
5410
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5429
5411
|
|
|
@@ -5433,16 +5415,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5433
5415
|
|
|
5434
5416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5435
5417
|
|
|
5436
|
-
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); }; }
|
|
5437
|
-
|
|
5438
5418
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5439
5419
|
|
|
5440
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5441
|
-
|
|
5442
|
-
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; } }
|
|
5443
|
-
|
|
5444
5420
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5445
5421
|
|
|
5422
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5423
|
+
|
|
5446
5424
|
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); }
|
|
5447
5425
|
|
|
5448
5426
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5454,12 +5432,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5454
5432
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5455
5433
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5456
5434
|
|
|
5457
|
-
var DailyMotion =
|
|
5435
|
+
var DailyMotion =
|
|
5436
|
+
/*#__PURE__*/
|
|
5437
|
+
function (_Component) {
|
|
5458
5438
|
_inherits(DailyMotion, _Component);
|
|
5459
5439
|
|
|
5460
|
-
var _super = _createSuper(DailyMotion);
|
|
5461
|
-
|
|
5462
5440
|
function DailyMotion() {
|
|
5441
|
+
var _getPrototypeOf2;
|
|
5442
|
+
|
|
5463
5443
|
var _this;
|
|
5464
5444
|
|
|
5465
5445
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5468,7 +5448,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5468
5448
|
args[_key] = arguments[_key];
|
|
5469
5449
|
}
|
|
5470
5450
|
|
|
5471
|
-
_this =
|
|
5451
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5472
5452
|
|
|
5473
5453
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5474
5454
|
|
|
@@ -5597,9 +5577,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5597
5577
|
height: '100%',
|
|
5598
5578
|
display: display
|
|
5599
5579
|
};
|
|
5600
|
-
return
|
|
5580
|
+
return _react["default"].createElement("div", {
|
|
5601
5581
|
style: style
|
|
5602
|
-
},
|
|
5582
|
+
}, _react["default"].createElement("div", {
|
|
5603
5583
|
ref: this.ref
|
|
5604
5584
|
}));
|
|
5605
5585
|
}
|
|
@@ -5633,7 +5613,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5633
5613
|
});
|
|
5634
5614
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5635
5615
|
|
|
5636
|
-
var _react = _interopRequireWildcard(React__default
|
|
5616
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5637
5617
|
|
|
5638
5618
|
|
|
5639
5619
|
|
|
@@ -5657,16 +5637,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5657
5637
|
|
|
5658
5638
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5659
5639
|
|
|
5660
|
-
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); }; }
|
|
5661
|
-
|
|
5662
5640
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5663
5641
|
|
|
5664
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5665
|
-
|
|
5666
|
-
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; } }
|
|
5667
|
-
|
|
5668
5642
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5669
5643
|
|
|
5644
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5645
|
+
|
|
5670
5646
|
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); }
|
|
5671
5647
|
|
|
5672
5648
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5677,12 +5653,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5677
5653
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5678
5654
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5679
5655
|
|
|
5680
|
-
var Mixcloud =
|
|
5656
|
+
var Mixcloud =
|
|
5657
|
+
/*#__PURE__*/
|
|
5658
|
+
function (_Component) {
|
|
5681
5659
|
_inherits(Mixcloud, _Component);
|
|
5682
5660
|
|
|
5683
|
-
var _super = _createSuper(Mixcloud);
|
|
5684
|
-
|
|
5685
5661
|
function Mixcloud() {
|
|
5662
|
+
var _getPrototypeOf2;
|
|
5663
|
+
|
|
5686
5664
|
var _this;
|
|
5687
5665
|
|
|
5688
5666
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5691,7 +5669,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5691
5669
|
args[_key] = arguments[_key];
|
|
5692
5670
|
}
|
|
5693
5671
|
|
|
5694
|
-
_this =
|
|
5672
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5695
5673
|
|
|
5696
5674
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5697
5675
|
|
|
@@ -5794,7 +5772,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5794
5772
|
})); // We have to give the iframe a key here to prevent a
|
|
5795
5773
|
// weird dialog appearing when loading a new track
|
|
5796
5774
|
|
|
5797
|
-
return
|
|
5775
|
+
return _react["default"].createElement("iframe", {
|
|
5798
5776
|
key: id,
|
|
5799
5777
|
ref: this.ref,
|
|
5800
5778
|
style: style,
|
|
@@ -5832,7 +5810,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5832
5810
|
});
|
|
5833
5811
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5834
5812
|
|
|
5835
|
-
var _react = _interopRequireWildcard(React__default
|
|
5813
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5836
5814
|
|
|
5837
5815
|
|
|
5838
5816
|
|
|
@@ -5854,33 +5832,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5854
5832
|
|
|
5855
5833
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5856
5834
|
|
|
5857
|
-
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); }; }
|
|
5858
|
-
|
|
5859
5835
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5860
5836
|
|
|
5861
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5862
|
-
|
|
5863
|
-
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; } }
|
|
5864
|
-
|
|
5865
5837
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5866
5838
|
|
|
5839
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5840
|
+
|
|
5867
5841
|
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); }
|
|
5868
5842
|
|
|
5869
5843
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5870
5844
|
|
|
5871
5845
|
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; }
|
|
5872
5846
|
|
|
5873
|
-
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; } } }; }
|
|
5874
|
-
|
|
5875
|
-
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); }
|
|
5876
|
-
|
|
5877
|
-
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; }
|
|
5878
|
-
|
|
5879
5847
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5880
5848
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5881
5849
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5882
5850
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5883
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5851
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5884
5852
|
var HLS_GLOBAL = 'Hls';
|
|
5885
5853
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5886
5854
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5889,11 +5857,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5889
5857
|
|
|
5890
5858
|
function canPlay(url) {
|
|
5891
5859
|
if (url instanceof Array) {
|
|
5892
|
-
var
|
|
5893
|
-
|
|
5860
|
+
var _iteratorNormalCompletion = true;
|
|
5861
|
+
var _didIteratorError = false;
|
|
5862
|
+
var _iteratorError = undefined;
|
|
5894
5863
|
|
|
5895
5864
|
try {
|
|
5896
|
-
for (_iterator.
|
|
5865
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5897
5866
|
var item = _step.value;
|
|
5898
5867
|
|
|
5899
5868
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5905,9 +5874,18 @@ function canPlay(url) {
|
|
|
5905
5874
|
}
|
|
5906
5875
|
}
|
|
5907
5876
|
} catch (err) {
|
|
5908
|
-
|
|
5877
|
+
_didIteratorError = true;
|
|
5878
|
+
_iteratorError = err;
|
|
5909
5879
|
} finally {
|
|
5910
|
-
|
|
5880
|
+
try {
|
|
5881
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5882
|
+
_iterator["return"]();
|
|
5883
|
+
}
|
|
5884
|
+
} finally {
|
|
5885
|
+
if (_didIteratorError) {
|
|
5886
|
+
throw _iteratorError;
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5911
5889
|
}
|
|
5912
5890
|
|
|
5913
5891
|
return false;
|
|
@@ -5931,12 +5909,14 @@ function canEnablePIP(url) {
|
|
|
5931
5909
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5932
5910
|
}
|
|
5933
5911
|
|
|
5934
|
-
var FilePlayer =
|
|
5912
|
+
var FilePlayer =
|
|
5913
|
+
/*#__PURE__*/
|
|
5914
|
+
function (_Component) {
|
|
5935
5915
|
_inherits(FilePlayer, _Component);
|
|
5936
5916
|
|
|
5937
|
-
var _super = _createSuper(FilePlayer);
|
|
5938
|
-
|
|
5939
5917
|
function FilePlayer() {
|
|
5918
|
+
var _getPrototypeOf2;
|
|
5919
|
+
|
|
5940
5920
|
var _this;
|
|
5941
5921
|
|
|
5942
5922
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5945,7 +5925,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5945
5925
|
_args[_key] = arguments[_key];
|
|
5946
5926
|
}
|
|
5947
5927
|
|
|
5948
|
-
_this =
|
|
5928
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5949
5929
|
|
|
5950
5930
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5951
5931
|
var _this$props;
|
|
@@ -6032,19 +6012,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6032
6012
|
|
|
6033
6013
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6034
6014
|
if (typeof source === 'string') {
|
|
6035
|
-
return
|
|
6015
|
+
return _react["default"].createElement("source", {
|
|
6036
6016
|
key: index,
|
|
6037
6017
|
src: source
|
|
6038
6018
|
});
|
|
6039
6019
|
}
|
|
6040
6020
|
|
|
6041
|
-
return
|
|
6021
|
+
return _react["default"].createElement("source", _extends({
|
|
6042
6022
|
key: index
|
|
6043
6023
|
}, source));
|
|
6044
6024
|
});
|
|
6045
6025
|
|
|
6046
6026
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6047
|
-
return
|
|
6027
|
+
return _react["default"].createElement("track", _extends({
|
|
6048
6028
|
key: index
|
|
6049
6029
|
}, track));
|
|
6050
6030
|
});
|
|
@@ -6082,10 +6062,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6082
6062
|
key: "componentWillUnmount",
|
|
6083
6063
|
value: function componentWillUnmount() {
|
|
6084
6064
|
this.removeListeners(this.player);
|
|
6085
|
-
|
|
6086
|
-
if (this.hls) {
|
|
6087
|
-
this.hls.destroy();
|
|
6088
|
-
}
|
|
6089
6065
|
}
|
|
6090
6066
|
}, {
|
|
6091
6067
|
key: "addListeners",
|
|
@@ -6216,6 +6192,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6216
6192
|
value: function stop() {
|
|
6217
6193
|
this.player.removeAttribute('src');
|
|
6218
6194
|
|
|
6195
|
+
if (this.hls) {
|
|
6196
|
+
this.hls.destroy();
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6219
6199
|
if (this.dash) {
|
|
6220
6200
|
this.dash.reset();
|
|
6221
6201
|
}
|
|
@@ -6327,7 +6307,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6327
6307
|
width: width === 'auto' ? width : '100%',
|
|
6328
6308
|
height: height === 'auto' ? height : '100%'
|
|
6329
6309
|
};
|
|
6330
|
-
return
|
|
6310
|
+
return _react["default"].createElement(Element, _extends({
|
|
6331
6311
|
ref: this.ref,
|
|
6332
6312
|
src: this.getSource(url),
|
|
6333
6313
|
style: style,
|
|
@@ -6399,7 +6379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6399
6379
|
});
|
|
6400
6380
|
exports["default"] = void 0;
|
|
6401
6381
|
|
|
6402
|
-
var _react = _interopRequireWildcard(React__default
|
|
6382
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6403
6383
|
|
|
6404
6384
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6405
6385
|
|
|
@@ -6417,16 +6397,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6417
6397
|
|
|
6418
6398
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6419
6399
|
|
|
6420
|
-
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); }; }
|
|
6421
|
-
|
|
6422
6400
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6423
6401
|
|
|
6424
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6425
|
-
|
|
6426
|
-
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; } }
|
|
6427
|
-
|
|
6428
6402
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6429
6403
|
|
|
6404
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6405
|
+
|
|
6430
6406
|
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); }
|
|
6431
6407
|
|
|
6432
6408
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6435,12 +6411,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6435
6411
|
|
|
6436
6412
|
var ICON_SIZE = '64px';
|
|
6437
6413
|
|
|
6438
|
-
var Preview =
|
|
6414
|
+
var Preview =
|
|
6415
|
+
/*#__PURE__*/
|
|
6416
|
+
function (_Component) {
|
|
6439
6417
|
_inherits(Preview, _Component);
|
|
6440
6418
|
|
|
6441
|
-
var _super = _createSuper(Preview);
|
|
6442
|
-
|
|
6443
6419
|
function Preview() {
|
|
6420
|
+
var _getPrototypeOf2;
|
|
6421
|
+
|
|
6444
6422
|
var _this;
|
|
6445
6423
|
|
|
6446
6424
|
_classCallCheck(this, Preview);
|
|
@@ -6449,7 +6427,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6449
6427
|
args[_key] = arguments[_key];
|
|
6450
6428
|
}
|
|
6451
6429
|
|
|
6452
|
-
_this =
|
|
6430
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6453
6431
|
|
|
6454
6432
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6455
6433
|
|
|
@@ -6547,15 +6525,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6547
6525
|
}
|
|
6548
6526
|
};
|
|
6549
6527
|
|
|
6550
|
-
var defaultPlayIcon =
|
|
6528
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6551
6529
|
style: styles.shadow,
|
|
6552
6530
|
className: "react-player__shadow"
|
|
6553
|
-
},
|
|
6531
|
+
}, _react["default"].createElement("div", {
|
|
6554
6532
|
style: styles.playIcon,
|
|
6555
6533
|
className: "react-player__play-icon"
|
|
6556
6534
|
}));
|
|
6557
6535
|
|
|
6558
|
-
return
|
|
6536
|
+
return _react["default"].createElement("div", {
|
|
6559
6537
|
style: styles.preview,
|
|
6560
6538
|
className: "react-player__preview",
|
|
6561
6539
|
onClick: onClick
|
|
@@ -6578,7 +6556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6578
6556
|
});
|
|
6579
6557
|
exports["default"] = renderPreloadPlayers;
|
|
6580
6558
|
|
|
6581
|
-
var _react = _interopRequireDefault(React__default
|
|
6559
|
+
var _react = _interopRequireDefault(React__default);
|
|
6582
6560
|
|
|
6583
6561
|
var _Player = _interopRequireDefault(Player_1);
|
|
6584
6562
|
|
|
@@ -6592,12 +6570,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6592
6570
|
|
|
6593
6571
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6594
6572
|
|
|
6595
|
-
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; } } }; }
|
|
6596
|
-
|
|
6597
|
-
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); }
|
|
6598
|
-
|
|
6599
|
-
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; }
|
|
6600
|
-
|
|
6601
6573
|
var PRELOAD_PLAYERS = [{
|
|
6602
6574
|
Player: YouTube_1.YouTube,
|
|
6603
6575
|
configKey: 'youtube',
|
|
@@ -6618,16 +6590,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6618
6590
|
|
|
6619
6591
|
function renderPreloadPlayers(url, controls, config) {
|
|
6620
6592
|
var players = [];
|
|
6621
|
-
|
|
6622
|
-
var
|
|
6623
|
-
|
|
6593
|
+
var _iteratorNormalCompletion = true;
|
|
6594
|
+
var _didIteratorError = false;
|
|
6595
|
+
var _iteratorError = undefined;
|
|
6624
6596
|
|
|
6625
6597
|
try {
|
|
6626
|
-
for (_iterator.
|
|
6598
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6627
6599
|
var player = _step.value;
|
|
6628
6600
|
|
|
6629
6601
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6630
|
-
players.push(
|
|
6602
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6631
6603
|
key: player.Player.displayName,
|
|
6632
6604
|
activePlayer: player.Player,
|
|
6633
6605
|
url: player.url,
|
|
@@ -6639,9 +6611,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6639
6611
|
}
|
|
6640
6612
|
}
|
|
6641
6613
|
} catch (err) {
|
|
6642
|
-
|
|
6614
|
+
_didIteratorError = true;
|
|
6615
|
+
_iteratorError = err;
|
|
6643
6616
|
} finally {
|
|
6644
|
-
|
|
6617
|
+
try {
|
|
6618
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6619
|
+
_iterator["return"]();
|
|
6620
|
+
}
|
|
6621
|
+
} finally {
|
|
6622
|
+
if (_didIteratorError) {
|
|
6623
|
+
throw _iteratorError;
|
|
6624
|
+
}
|
|
6625
|
+
}
|
|
6645
6626
|
}
|
|
6646
6627
|
|
|
6647
6628
|
return players;
|
|
@@ -6717,7 +6698,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6717
6698
|
});
|
|
6718
6699
|
exports["default"] = void 0;
|
|
6719
6700
|
|
|
6720
|
-
var _react = _interopRequireWildcard(React__default
|
|
6701
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6721
6702
|
|
|
6722
6703
|
|
|
6723
6704
|
|
|
@@ -6765,17 +6746,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6765
6746
|
|
|
6766
6747
|
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); }
|
|
6767
6748
|
|
|
6768
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6769
|
-
|
|
6770
|
-
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."); }
|
|
6749
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6771
6750
|
|
|
6772
|
-
function
|
|
6751
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6773
6752
|
|
|
6774
|
-
function _iterableToArray(iter) { if (
|
|
6753
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6775
6754
|
|
|
6776
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6777
|
-
|
|
6778
|
-
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; }
|
|
6755
|
+
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; } }
|
|
6779
6756
|
|
|
6780
6757
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6781
6758
|
|
|
@@ -6783,16 +6760,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6783
6760
|
|
|
6784
6761
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6785
6762
|
|
|
6786
|
-
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); }; }
|
|
6787
|
-
|
|
6788
6763
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6789
6764
|
|
|
6790
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6791
|
-
|
|
6792
|
-
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; } }
|
|
6793
|
-
|
|
6794
6765
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6795
6766
|
|
|
6767
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6768
|
+
|
|
6796
6769
|
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); }
|
|
6797
6770
|
|
|
6798
6771
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6802,12 +6775,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6802
6775
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6803
6776
|
var customPlayers = [];
|
|
6804
6777
|
|
|
6805
|
-
var ReactPlayer =
|
|
6778
|
+
var ReactPlayer =
|
|
6779
|
+
/*#__PURE__*/
|
|
6780
|
+
function (_Component) {
|
|
6806
6781
|
_inherits(ReactPlayer, _Component);
|
|
6807
6782
|
|
|
6808
|
-
var _super = _createSuper(ReactPlayer);
|
|
6809
|
-
|
|
6810
6783
|
function ReactPlayer() {
|
|
6784
|
+
var _getPrototypeOf2;
|
|
6785
|
+
|
|
6811
6786
|
var _this;
|
|
6812
6787
|
|
|
6813
6788
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6816,7 +6791,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6816
6791
|
args[_key] = arguments[_key];
|
|
6817
6792
|
}
|
|
6818
6793
|
|
|
6819
|
-
_this =
|
|
6794
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6820
6795
|
|
|
6821
6796
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6822
6797
|
|
|
@@ -6927,7 +6902,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6927
6902
|
key: "renderActivePlayer",
|
|
6928
6903
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6929
6904
|
if (!url) return null;
|
|
6930
|
-
return
|
|
6905
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6931
6906
|
key: activePlayer.displayName,
|
|
6932
6907
|
ref: this.activePlayerRef,
|
|
6933
6908
|
config: this.config,
|
|
@@ -6964,14 +6939,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6964
6939
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6965
6940
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6966
6941
|
|
|
6967
|
-
var preview =
|
|
6942
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6968
6943
|
url: url,
|
|
6969
6944
|
light: light,
|
|
6970
6945
|
playIcon: playIcon,
|
|
6971
6946
|
onClick: this.handleClickPreview
|
|
6972
6947
|
});
|
|
6973
6948
|
|
|
6974
|
-
return
|
|
6949
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6975
6950
|
ref: this.wrapperRef,
|
|
6976
6951
|
style: _objectSpread({}, style, {
|
|
6977
6952
|
width: width,
|
|
@@ -7031,20 +7006,20 @@ var Audio = function Audio(_ref) {
|
|
|
7031
7006
|
var node = _ref.node;
|
|
7032
7007
|
|
|
7033
7008
|
if (node.uploadAudio) {
|
|
7034
|
-
return React__default
|
|
7009
|
+
return React__default.createElement(
|
|
7035
7010
|
'div',
|
|
7036
7011
|
{ className: 'audio d-block text-center mb-3' },
|
|
7037
|
-
React__default
|
|
7012
|
+
React__default.createElement(
|
|
7038
7013
|
'audio',
|
|
7039
7014
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7040
|
-
React__default
|
|
7041
|
-
React__default
|
|
7015
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7016
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7042
7017
|
'Your browser does not support the audio element.'
|
|
7043
7018
|
),
|
|
7044
|
-
node.caption && React__default
|
|
7019
|
+
node.caption && React__default.createElement(
|
|
7045
7020
|
'p',
|
|
7046
7021
|
{ style: { fontSize: '.9rem' } },
|
|
7047
|
-
React__default
|
|
7022
|
+
React__default.createElement(
|
|
7048
7023
|
'em',
|
|
7049
7024
|
null,
|
|
7050
7025
|
node.caption
|
|
@@ -7054,15 +7029,15 @@ var Audio = function Audio(_ref) {
|
|
|
7054
7029
|
} else if (node.audioFilePth) {
|
|
7055
7030
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7056
7031
|
if (hostname === 'embeds.audioboom.com') {
|
|
7057
|
-
return React__default
|
|
7032
|
+
return React__default.createElement(
|
|
7058
7033
|
'div',
|
|
7059
7034
|
null,
|
|
7060
|
-
React__default
|
|
7035
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7061
7036
|
' ',
|
|
7062
|
-
node.caption && React__default
|
|
7037
|
+
node.caption && React__default.createElement(
|
|
7063
7038
|
'p',
|
|
7064
7039
|
{ style: { fontSize: '.9rem' } },
|
|
7065
|
-
React__default
|
|
7040
|
+
React__default.createElement(
|
|
7066
7041
|
'em',
|
|
7067
7042
|
null,
|
|
7068
7043
|
node.caption
|
|
@@ -7070,14 +7045,14 @@ var Audio = function Audio(_ref) {
|
|
|
7070
7045
|
)
|
|
7071
7046
|
);
|
|
7072
7047
|
}
|
|
7073
|
-
return React__default
|
|
7048
|
+
return React__default.createElement(
|
|
7074
7049
|
'div',
|
|
7075
7050
|
{ className: 'audio' },
|
|
7076
|
-
React__default
|
|
7077
|
-
node.caption && React__default
|
|
7051
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7052
|
+
node.caption && React__default.createElement(
|
|
7078
7053
|
'p',
|
|
7079
7054
|
{ style: { fontSize: '.9rem' } },
|
|
7080
|
-
React__default
|
|
7055
|
+
React__default.createElement(
|
|
7081
7056
|
'em',
|
|
7082
7057
|
null,
|
|
7083
7058
|
node.caption
|
|
@@ -7095,34 +7070,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7095
7070
|
var profileImage = arguments[6];
|
|
7096
7071
|
|
|
7097
7072
|
if (authorName && authorURL) {
|
|
7098
|
-
return React__default
|
|
7073
|
+
return React__default.createElement(
|
|
7099
7074
|
'span',
|
|
7100
7075
|
null,
|
|
7101
|
-
React__default
|
|
7076
|
+
React__default.createElement(
|
|
7102
7077
|
'a',
|
|
7103
7078
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7104
7079
|
authorName
|
|
7105
7080
|
),
|
|
7106
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7107
7082
|
reactBootstrap.Card,
|
|
7108
7083
|
{ className: 'author-details-card-' + index },
|
|
7109
|
-
React__default
|
|
7084
|
+
React__default.createElement(
|
|
7110
7085
|
reactBootstrap.Row,
|
|
7111
7086
|
null,
|
|
7112
|
-
profileImage && React__default
|
|
7087
|
+
profileImage && React__default.createElement(
|
|
7113
7088
|
reactBootstrap.Col,
|
|
7114
7089
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7115
|
-
React__default
|
|
7090
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7116
7091
|
),
|
|
7117
|
-
React__default
|
|
7092
|
+
React__default.createElement(
|
|
7118
7093
|
reactBootstrap.Col,
|
|
7119
7094
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7120
|
-
React__default
|
|
7095
|
+
React__default.createElement(
|
|
7121
7096
|
'div',
|
|
7122
7097
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7123
7098
|
authorName
|
|
7124
7099
|
),
|
|
7125
|
-
React__default
|
|
7100
|
+
React__default.createElement(
|
|
7126
7101
|
'p',
|
|
7127
7102
|
null,
|
|
7128
7103
|
biography
|
|
@@ -7130,7 +7105,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7130
7105
|
)
|
|
7131
7106
|
)
|
|
7132
7107
|
),
|
|
7133
|
-
React__default
|
|
7108
|
+
React__default.createElement(
|
|
7134
7109
|
'style',
|
|
7135
7110
|
{ jsx: 'true' },
|
|
7136
7111
|
'\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 '
|
|
@@ -7138,7 +7113,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7138
7113
|
length !== index + 1 && ' , '
|
|
7139
7114
|
);
|
|
7140
7115
|
} else if (authorName) {
|
|
7141
|
-
return React__default
|
|
7116
|
+
return React__default.createElement(
|
|
7142
7117
|
'span',
|
|
7143
7118
|
{ key: index },
|
|
7144
7119
|
authorName,
|
|
@@ -7240,7 +7215,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7240
7215
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7241
7216
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7242
7217
|
} else {
|
|
7243
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7218
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7244
7219
|
}
|
|
7245
7220
|
}
|
|
7246
7221
|
});
|
|
@@ -7300,7 +7275,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7300
7275
|
//Small pause before starting next video
|
|
7301
7276
|
setTimeout(function () {
|
|
7302
7277
|
//Youtube API to start video playing automatically
|
|
7303
|
-
var id = index$
|
|
7278
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7304
7279
|
event.target.loadVideoById(id);
|
|
7305
7280
|
}, 1500);
|
|
7306
7281
|
};
|
|
@@ -7410,44 +7385,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7410
7385
|
}
|
|
7411
7386
|
};
|
|
7412
7387
|
|
|
7413
|
-
return React__default
|
|
7388
|
+
return React__default.createElement(
|
|
7414
7389
|
'div',
|
|
7415
7390
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7416
|
-
React__default
|
|
7391
|
+
React__default.createElement(
|
|
7417
7392
|
'div',
|
|
7418
7393
|
{ className: 'mt-2 mb-5' },
|
|
7419
|
-
series && React__default
|
|
7394
|
+
series && React__default.createElement(
|
|
7420
7395
|
'div',
|
|
7421
7396
|
{ style: { fontSize: '0.9rem' } },
|
|
7422
7397
|
article.title,
|
|
7423
7398
|
' - Episode ',
|
|
7424
7399
|
series
|
|
7425
7400
|
),
|
|
7426
|
-
Videos[series - 1] && React__default
|
|
7401
|
+
Videos[series - 1] && React__default.createElement(
|
|
7427
7402
|
'h1',
|
|
7428
7403
|
{ className: 'mb-3' },
|
|
7429
7404
|
Videos[series - 1].title
|
|
7430
7405
|
),
|
|
7431
|
-
React__default
|
|
7406
|
+
React__default.createElement(
|
|
7432
7407
|
'div',
|
|
7433
7408
|
null,
|
|
7434
7409
|
moment.moment(article.published).format('LL')
|
|
7435
7410
|
),
|
|
7436
|
-
React__default
|
|
7411
|
+
React__default.createElement(
|
|
7437
7412
|
'div',
|
|
7438
7413
|
{ className: 'mb-3' },
|
|
7439
7414
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7440
|
-
return React__default
|
|
7415
|
+
return React__default.createElement(
|
|
7441
7416
|
'span',
|
|
7442
7417
|
{ key: index },
|
|
7443
7418
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7444
7419
|
);
|
|
7445
7420
|
})
|
|
7446
7421
|
),
|
|
7447
|
-
React__default
|
|
7422
|
+
React__default.createElement(
|
|
7448
7423
|
'p',
|
|
7449
7424
|
null,
|
|
7450
|
-
React__default
|
|
7425
|
+
React__default.createElement(SocialShare, {
|
|
7451
7426
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7452
7427
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7453
7428
|
shareVia: meta.shareVia,
|
|
@@ -7462,22 +7437,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7462
7437
|
hideFacebook: meta.hideFBShare
|
|
7463
7438
|
})
|
|
7464
7439
|
),
|
|
7465
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7440
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7466
7441
|
'p',
|
|
7467
7442
|
{ className: 'mb-3' },
|
|
7468
|
-
React__default
|
|
7443
|
+
React__default.createElement(
|
|
7469
7444
|
'em',
|
|
7470
7445
|
null,
|
|
7471
7446
|
Videos[series - 1].intro
|
|
7472
7447
|
)
|
|
7473
7448
|
)
|
|
7474
7449
|
),
|
|
7475
|
-
React__default
|
|
7450
|
+
React__default.createElement(
|
|
7476
7451
|
'div',
|
|
7477
7452
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7478
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7453
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7479
7454
|
className: 'fluid-iframe',
|
|
7480
|
-
videoId: index$
|
|
7455
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7481
7456
|
opts: opts,
|
|
7482
7457
|
onReady: handleOnReady,
|
|
7483
7458
|
onPlay: handleOnPlay,
|
|
@@ -7486,10 +7461,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
7461
|
return handleOnEnd(e);
|
|
7487
7462
|
}
|
|
7488
7463
|
}),
|
|
7489
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7490
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7491
|
-
React__default
|
|
7492
|
-
series && React__default
|
|
7464
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7465
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7466
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7467
|
+
series && React__default.createElement(
|
|
7493
7468
|
'div',
|
|
7494
7469
|
{
|
|
7495
7470
|
className: 'vid-series',
|
|
@@ -7499,10 +7474,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7499
7474
|
maxHeight: '100%',
|
|
7500
7475
|
paddingBottom: '0'
|
|
7501
7476
|
} },
|
|
7502
|
-
React__default
|
|
7477
|
+
React__default.createElement(
|
|
7503
7478
|
'p',
|
|
7504
7479
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7505
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7506
7481
|
'b',
|
|
7507
7482
|
{ style: { fontSize: '1.25em' } },
|
|
7508
7483
|
'Now Playing:'
|
|
@@ -7510,16 +7485,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7510
7485
|
' ',
|
|
7511
7486
|
seriesData[series ? series - 1 : 0].title
|
|
7512
7487
|
),
|
|
7513
|
-
vidUrl && React__default
|
|
7488
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7514
7489
|
)
|
|
7515
7490
|
),
|
|
7516
|
-
React__default
|
|
7517
|
-
React__default
|
|
7491
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7492
|
+
React__default.createElement(
|
|
7518
7493
|
'div',
|
|
7519
7494
|
{ className: 'vid-text' },
|
|
7520
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7495
|
+
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()))
|
|
7521
7496
|
),
|
|
7522
|
-
React__default
|
|
7497
|
+
React__default.createElement(
|
|
7523
7498
|
'style',
|
|
7524
7499
|
{ jsx: 'true' },
|
|
7525
7500
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7572,67 +7547,67 @@ var Poll = function Poll(_ref) {
|
|
|
7572
7547
|
return acc;
|
|
7573
7548
|
}
|
|
7574
7549
|
}, 0);
|
|
7575
|
-
return React__default
|
|
7576
|
-
React__default
|
|
7550
|
+
return React__default.createElement(
|
|
7551
|
+
React__default.Fragment,
|
|
7577
7552
|
null,
|
|
7578
|
-
question && React__default
|
|
7553
|
+
question && React__default.createElement(
|
|
7579
7554
|
'p',
|
|
7580
7555
|
{ className: 'font-weight-bold' },
|
|
7581
7556
|
question
|
|
7582
7557
|
),
|
|
7583
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7558
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7584
7559
|
'form',
|
|
7585
7560
|
{ onSubmit: function onSubmit(e) {
|
|
7586
7561
|
return onSubmitPoll(e);
|
|
7587
7562
|
} },
|
|
7588
7563
|
choices && choices.map(function (choice) {
|
|
7589
|
-
return React__default
|
|
7564
|
+
return React__default.createElement(
|
|
7590
7565
|
'div',
|
|
7591
7566
|
{ key: choice._key },
|
|
7592
|
-
React__default
|
|
7567
|
+
React__default.createElement(
|
|
7593
7568
|
'label',
|
|
7594
7569
|
{ className: 'pl-2' },
|
|
7595
|
-
React__default
|
|
7570
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7596
7571
|
return setSelectedChoice(e.target.value);
|
|
7597
7572
|
} }),
|
|
7598
7573
|
' ' + choice.choiceText
|
|
7599
7574
|
)
|
|
7600
7575
|
);
|
|
7601
7576
|
}),
|
|
7602
|
-
React__default
|
|
7577
|
+
React__default.createElement(
|
|
7603
7578
|
reactBootstrap.Button,
|
|
7604
7579
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7605
7580
|
'Vote'
|
|
7606
7581
|
)
|
|
7607
7582
|
),
|
|
7608
|
-
React__default
|
|
7583
|
+
React__default.createElement(
|
|
7609
7584
|
'div',
|
|
7610
7585
|
{ className: 'progress-container' },
|
|
7611
7586
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7612
7587
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7613
|
-
return React__default
|
|
7588
|
+
return React__default.createElement(
|
|
7614
7589
|
'div',
|
|
7615
7590
|
{ key: choice._key, className: 'mb-3' },
|
|
7616
|
-
React__default
|
|
7591
|
+
React__default.createElement(
|
|
7617
7592
|
'div',
|
|
7618
7593
|
{ className: 'correct-answer' },
|
|
7619
|
-
React__default
|
|
7594
|
+
React__default.createElement(
|
|
7620
7595
|
'div',
|
|
7621
7596
|
null,
|
|
7622
7597
|
choice.choiceText
|
|
7623
7598
|
),
|
|
7624
|
-
choice.choiceAnswer === true && React__default
|
|
7599
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7625
7600
|
'div',
|
|
7626
7601
|
null,
|
|
7627
|
-
React__default
|
|
7602
|
+
React__default.createElement(
|
|
7628
7603
|
'span',
|
|
7629
7604
|
{ style: { color: 'limegreen' } },
|
|
7630
7605
|
'Correct!'
|
|
7631
7606
|
)
|
|
7632
7607
|
)
|
|
7633
7608
|
),
|
|
7634
|
-
React__default
|
|
7635
|
-
React__default
|
|
7609
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7610
|
+
React__default.createElement(
|
|
7636
7611
|
'span',
|
|
7637
7612
|
{ className: 'float-right' },
|
|
7638
7613
|
percentage,
|
|
@@ -7643,14 +7618,14 @@ var Poll = function Poll(_ref) {
|
|
|
7643
7618
|
);
|
|
7644
7619
|
})
|
|
7645
7620
|
),
|
|
7646
|
-
showAnswer && React__default
|
|
7621
|
+
showAnswer && React__default.createElement(
|
|
7647
7622
|
'h4',
|
|
7648
7623
|
{ className: 'text-center small p-3' },
|
|
7649
7624
|
'Total Votes: ',
|
|
7650
7625
|
choicesTotalCount
|
|
7651
7626
|
),
|
|
7652
|
-
showAnswer && response && React__default
|
|
7653
|
-
React__default
|
|
7627
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7628
|
+
React__default.createElement(
|
|
7654
7629
|
'style',
|
|
7655
7630
|
{ jsx: 'true' },
|
|
7656
7631
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7749,67 +7724,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7749
7724
|
return acc;
|
|
7750
7725
|
}
|
|
7751
7726
|
}, 0);
|
|
7752
|
-
return React__default
|
|
7753
|
-
React__default
|
|
7727
|
+
return React__default.createElement(
|
|
7728
|
+
React__default.Fragment,
|
|
7754
7729
|
null,
|
|
7755
|
-
question && React__default
|
|
7730
|
+
question && React__default.createElement(
|
|
7756
7731
|
'p',
|
|
7757
7732
|
{ className: 'font-weight-bold' },
|
|
7758
7733
|
question
|
|
7759
7734
|
),
|
|
7760
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7735
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7761
7736
|
'form',
|
|
7762
7737
|
{ onSubmit: function onSubmit(e) {
|
|
7763
7738
|
return onSubmitPoll(e);
|
|
7764
7739
|
} },
|
|
7765
7740
|
choices && choices.map(function (choice) {
|
|
7766
|
-
return React__default
|
|
7741
|
+
return React__default.createElement(
|
|
7767
7742
|
'div',
|
|
7768
7743
|
{ key: choice._key },
|
|
7769
|
-
React__default
|
|
7744
|
+
React__default.createElement(
|
|
7770
7745
|
'label',
|
|
7771
7746
|
{ className: 'pl-2' },
|
|
7772
|
-
React__default
|
|
7747
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7773
7748
|
return setSelectedChoice(e.target.value);
|
|
7774
7749
|
} }),
|
|
7775
7750
|
' ' + choice.choiceText
|
|
7776
7751
|
)
|
|
7777
7752
|
);
|
|
7778
7753
|
}),
|
|
7779
|
-
React__default
|
|
7754
|
+
React__default.createElement(
|
|
7780
7755
|
reactBootstrap.Button,
|
|
7781
7756
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7782
7757
|
'Vote'
|
|
7783
7758
|
)
|
|
7784
7759
|
),
|
|
7785
|
-
React__default
|
|
7760
|
+
React__default.createElement(
|
|
7786
7761
|
'div',
|
|
7787
7762
|
{ className: 'progress-container' },
|
|
7788
7763
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7789
7764
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7790
|
-
return React__default
|
|
7765
|
+
return React__default.createElement(
|
|
7791
7766
|
'div',
|
|
7792
7767
|
{ key: choice._key, className: 'mb-3' },
|
|
7793
|
-
React__default
|
|
7768
|
+
React__default.createElement(
|
|
7794
7769
|
'div',
|
|
7795
7770
|
{ className: 'correct-answer' },
|
|
7796
|
-
React__default
|
|
7771
|
+
React__default.createElement(
|
|
7797
7772
|
'div',
|
|
7798
7773
|
null,
|
|
7799
7774
|
choice.choiceText
|
|
7800
7775
|
),
|
|
7801
|
-
choice.choiceAnswer === true && React__default
|
|
7776
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7802
7777
|
'div',
|
|
7803
7778
|
null,
|
|
7804
|
-
React__default
|
|
7779
|
+
React__default.createElement(
|
|
7805
7780
|
'span',
|
|
7806
7781
|
{ style: { color: 'limegreen' } },
|
|
7807
7782
|
'Correct!'
|
|
7808
7783
|
)
|
|
7809
7784
|
)
|
|
7810
7785
|
),
|
|
7811
|
-
React__default
|
|
7812
|
-
React__default
|
|
7786
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7787
|
+
React__default.createElement(
|
|
7813
7788
|
'span',
|
|
7814
7789
|
{ className: 'float-right' },
|
|
7815
7790
|
percentage,
|
|
@@ -7820,14 +7795,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7820
7795
|
);
|
|
7821
7796
|
})
|
|
7822
7797
|
),
|
|
7823
|
-
showAnswer && React__default
|
|
7798
|
+
showAnswer && React__default.createElement(
|
|
7824
7799
|
'h4',
|
|
7825
7800
|
{ className: 'text-center small p-3' },
|
|
7826
7801
|
'Total Votes: ',
|
|
7827
7802
|
choicesTotalCount
|
|
7828
7803
|
),
|
|
7829
|
-
showAnswer && response && React__default
|
|
7830
|
-
React__default
|
|
7804
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7805
|
+
React__default.createElement(
|
|
7831
7806
|
'style',
|
|
7832
7807
|
{ jsx: 'true' },
|
|
7833
7808
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7835,7 +7810,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7835
7810
|
);
|
|
7836
7811
|
};
|
|
7837
7812
|
|
|
7838
|
-
var numberOfPaginations = main.
|
|
7813
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7839
7814
|
|
|
7840
7815
|
var Quiz = function Quiz(_ref) {
|
|
7841
7816
|
var quizzes = _ref.quizzes,
|
|
@@ -7953,34 +7928,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7953
7928
|
};
|
|
7954
7929
|
|
|
7955
7930
|
var renderPagination = function renderPagination() {
|
|
7956
|
-
return React__default
|
|
7957
|
-
|
|
7958
|
-
{ className: 'p-0 m-0', size: main.
|
|
7959
|
-
React__default
|
|
7931
|
+
return React__default.createElement(
|
|
7932
|
+
Pagination,
|
|
7933
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7934
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7960
7935
|
return changePage('first');
|
|
7961
7936
|
}, disabled: currentPage === 1 }),
|
|
7962
|
-
React__default
|
|
7937
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7963
7938
|
return changePage('prev');
|
|
7964
7939
|
}, disabled: currentPage === 1 }),
|
|
7965
|
-
React__default
|
|
7940
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7966
7941
|
return renderNewPages('prev');
|
|
7967
7942
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7968
7943
|
pages.map(function (page) {
|
|
7969
|
-
return React__default
|
|
7970
|
-
|
|
7944
|
+
return React__default.createElement(
|
|
7945
|
+
Pagination.Item,
|
|
7971
7946
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7972
7947
|
return changePage(page);
|
|
7973
7948
|
} },
|
|
7974
7949
|
page
|
|
7975
7950
|
);
|
|
7976
7951
|
}),
|
|
7977
|
-
React__default
|
|
7952
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7978
7953
|
return renderNewPages('next');
|
|
7979
7954
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7980
|
-
React__default
|
|
7955
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7981
7956
|
return changePage('next');
|
|
7982
7957
|
}, disabled: currentPage === pageCount }),
|
|
7983
|
-
React__default
|
|
7958
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7984
7959
|
return changePage('last');
|
|
7985
7960
|
}, disabled: currentPage === pageCount })
|
|
7986
7961
|
);
|
|
@@ -8063,51 +8038,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8063
8038
|
}
|
|
8064
8039
|
};
|
|
8065
8040
|
|
|
8066
|
-
return React__default
|
|
8067
|
-
React__default
|
|
8041
|
+
return React__default.createElement(
|
|
8042
|
+
React__default.Fragment,
|
|
8068
8043
|
null,
|
|
8069
|
-
quizzes[currentPage - 1] && React__default
|
|
8070
|
-
React__default
|
|
8044
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8045
|
+
React__default.Fragment,
|
|
8071
8046
|
null,
|
|
8072
|
-
React__default
|
|
8073
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8047
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8048
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8074
8049
|
'form',
|
|
8075
8050
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8076
8051
|
return e.preventDefault();
|
|
8077
8052
|
} },
|
|
8078
8053
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8079
|
-
return React__default
|
|
8054
|
+
return React__default.createElement(
|
|
8080
8055
|
'div',
|
|
8081
8056
|
{ key: answer._key },
|
|
8082
|
-
React__default
|
|
8057
|
+
React__default.createElement(
|
|
8083
8058
|
'label',
|
|
8084
8059
|
{ className: 'pl-2' },
|
|
8085
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8060
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8086
8061
|
' ' + answer.answerText
|
|
8087
8062
|
)
|
|
8088
8063
|
);
|
|
8089
8064
|
})
|
|
8090
8065
|
)
|
|
8091
8066
|
),
|
|
8092
|
-
!showAnswer && React__default
|
|
8093
|
-
|
|
8067
|
+
!showAnswer && React__default.createElement(
|
|
8068
|
+
Button,
|
|
8094
8069
|
{ onClick: function onClick() {
|
|
8095
8070
|
return checkAnswers();
|
|
8096
8071
|
}, variant: 'info', block: true },
|
|
8097
8072
|
'Please click here for answer'
|
|
8098
8073
|
),
|
|
8099
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8100
|
-
React__default
|
|
8074
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8075
|
+
React__default.Fragment,
|
|
8101
8076
|
null,
|
|
8102
|
-
React__default
|
|
8077
|
+
React__default.createElement(
|
|
8103
8078
|
'h4',
|
|
8104
8079
|
null,
|
|
8105
8080
|
'Answer:'
|
|
8106
8081
|
),
|
|
8107
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8082
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8108
8083
|
),
|
|
8109
|
-
React__default
|
|
8110
|
-
pageCount > 1 && React__default
|
|
8084
|
+
React__default.createElement('br', null),
|
|
8085
|
+
pageCount > 1 && React__default.createElement(
|
|
8111
8086
|
'div',
|
|
8112
8087
|
{ className: 'd-flex justify-content-center' },
|
|
8113
8088
|
renderPagination()
|
|
@@ -8118,10 +8093,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8118
8093
|
var Leads = function Leads(_ref) {
|
|
8119
8094
|
var url = _ref.url;
|
|
8120
8095
|
|
|
8121
|
-
return React__default
|
|
8096
|
+
return React__default.createElement(
|
|
8122
8097
|
'div',
|
|
8123
8098
|
{ className: 'd-block text-center mb-3' },
|
|
8124
|
-
url && React__default
|
|
8099
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8125
8100
|
);
|
|
8126
8101
|
};
|
|
8127
8102
|
|
|
@@ -8161,58 +8136,58 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8161
8136
|
setCarouselIndex(selectedIndex);
|
|
8162
8137
|
};
|
|
8163
8138
|
|
|
8164
|
-
return React__default
|
|
8139
|
+
return React__default.createElement(
|
|
8165
8140
|
'div',
|
|
8166
8141
|
{ className: 'mt-3 mb-4' },
|
|
8167
|
-
React__default
|
|
8142
|
+
React__default.createElement(
|
|
8168
8143
|
reactBootstrap.Carousel,
|
|
8169
8144
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8170
8145
|
slides && slides.map(function (slide) {
|
|
8171
8146
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8172
|
-
return React__default
|
|
8147
|
+
return React__default.createElement(
|
|
8173
8148
|
reactBootstrap.Carousel.Item,
|
|
8174
8149
|
{ key: slide._key },
|
|
8175
|
-
React__default
|
|
8150
|
+
React__default.createElement(
|
|
8176
8151
|
'a',
|
|
8177
8152
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8178
|
-
React__default
|
|
8153
|
+
React__default.createElement(
|
|
8179
8154
|
'div',
|
|
8180
8155
|
{ className: 'embed-responsive embed-responsive-slide' },
|
|
8181
|
-
React__default
|
|
8156
|
+
React__default.createElement(
|
|
8182
8157
|
index$2.LazyLoad,
|
|
8183
8158
|
null,
|
|
8184
|
-
React__default
|
|
8159
|
+
React__default.createElement(
|
|
8185
8160
|
'picture',
|
|
8186
8161
|
null,
|
|
8187
|
-
React__default
|
|
8188
|
-
React__default
|
|
8189
|
-
React__default
|
|
8190
|
-
React__default
|
|
8162
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8163
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8164
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8165
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8191
8166
|
)
|
|
8192
8167
|
),
|
|
8193
|
-
React__default
|
|
8168
|
+
React__default.createElement(
|
|
8194
8169
|
'style',
|
|
8195
8170
|
{ jsx: 'true' },
|
|
8196
8171
|
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8197
8172
|
)
|
|
8198
8173
|
)
|
|
8199
8174
|
),
|
|
8200
|
-
React__default
|
|
8175
|
+
React__default.createElement(
|
|
8201
8176
|
'div',
|
|
8202
8177
|
{ className: 'p-2' },
|
|
8203
|
-
slide.slideshowImage.caption && React__default
|
|
8178
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8204
8179
|
'h3',
|
|
8205
8180
|
{ style: { padding: '0px' } },
|
|
8206
8181
|
slide.slideshowImage.caption
|
|
8207
8182
|
),
|
|
8208
|
-
slide.description && React__default
|
|
8183
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8209
8184
|
)
|
|
8210
8185
|
);
|
|
8211
8186
|
}
|
|
8212
8187
|
return null;
|
|
8213
8188
|
})
|
|
8214
8189
|
),
|
|
8215
|
-
React__default
|
|
8190
|
+
React__default.createElement(
|
|
8216
8191
|
'style',
|
|
8217
8192
|
{ jsx: 'true' },
|
|
8218
8193
|
'\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 '
|
|
@@ -8231,10 +8206,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8231
8206
|
sizes = _props$node.sizes,
|
|
8232
8207
|
sizeMapping = _props$node.sizeMapping;
|
|
8233
8208
|
|
|
8234
|
-
return React__default
|
|
8209
|
+
return React__default.createElement(
|
|
8235
8210
|
'div',
|
|
8236
8211
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8237
|
-
React__default
|
|
8212
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8238
8213
|
);
|
|
8239
8214
|
};
|
|
8240
8215
|
|
|
@@ -8245,15 +8220,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8245
8220
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8246
8221
|
|
|
8247
8222
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8248
|
-
return React__default
|
|
8223
|
+
return React__default.createElement(
|
|
8249
8224
|
'section',
|
|
8250
8225
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8251
|
-
Caption && React__default
|
|
8226
|
+
Caption && React__default.createElement(
|
|
8252
8227
|
'h4',
|
|
8253
8228
|
{ className: 'formstack-caption' },
|
|
8254
8229
|
Caption
|
|
8255
8230
|
),
|
|
8256
|
-
React__default
|
|
8231
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8257
8232
|
);
|
|
8258
8233
|
};
|
|
8259
8234
|
|
|
@@ -8269,36 +8244,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8269
8244
|
}
|
|
8270
8245
|
});
|
|
8271
8246
|
if (medias && medias.length > 0) {
|
|
8272
|
-
return React__default
|
|
8247
|
+
return React__default.createElement(
|
|
8273
8248
|
'div',
|
|
8274
8249
|
{ className: 'multi-media-container' },
|
|
8275
|
-
React__default
|
|
8276
|
-
|
|
8250
|
+
React__default.createElement(
|
|
8251
|
+
Row,
|
|
8277
8252
|
{ noGutters: true },
|
|
8278
8253
|
medias.map(function (media) {
|
|
8279
|
-
return React__default
|
|
8280
|
-
|
|
8254
|
+
return React__default.createElement(
|
|
8255
|
+
Col,
|
|
8281
8256
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8282
|
-
React__default
|
|
8257
|
+
React__default.createElement(
|
|
8283
8258
|
'a',
|
|
8284
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8259
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8285
8260
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8286
|
-
React__default
|
|
8261
|
+
React__default.createElement(
|
|
8287
8262
|
'div',
|
|
8288
8263
|
{ className: 'multi-media-image-container' },
|
|
8289
|
-
imageBox && React__default
|
|
8264
|
+
imageBox && React__default.createElement(
|
|
8290
8265
|
index$2.LazyLoad,
|
|
8291
8266
|
{ once: true },
|
|
8292
|
-
React__default
|
|
8267
|
+
React__default.createElement(
|
|
8293
8268
|
'picture',
|
|
8294
8269
|
null,
|
|
8295
|
-
React__default
|
|
8296
|
-
React__default
|
|
8297
|
-
React__default
|
|
8298
|
-
React__default
|
|
8270
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8271
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8272
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8273
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8299
8274
|
)
|
|
8300
8275
|
),
|
|
8301
|
-
media.caption && React__default
|
|
8276
|
+
media.caption && React__default.createElement(
|
|
8302
8277
|
'span',
|
|
8303
8278
|
{ className: 'multi-media-caption' },
|
|
8304
8279
|
media.caption
|
|
@@ -8308,7 +8283,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8308
8283
|
);
|
|
8309
8284
|
})
|
|
8310
8285
|
),
|
|
8311
|
-
React__default
|
|
8286
|
+
React__default.createElement(
|
|
8312
8287
|
'style',
|
|
8313
8288
|
{ jsx: 'true' },
|
|
8314
8289
|
'\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 '
|
|
@@ -8319,12 +8294,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8319
8294
|
};
|
|
8320
8295
|
|
|
8321
8296
|
var InscreenSensor = function (_React$Component) {
|
|
8322
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8297
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8323
8298
|
|
|
8324
8299
|
function InscreenSensor(props) {
|
|
8325
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8300
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8326
8301
|
|
|
8327
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8302
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8328
8303
|
|
|
8329
8304
|
_this.scrollHandler = function () {
|
|
8330
8305
|
var visible = _this.checkInside();
|
|
@@ -8355,12 +8330,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8355
8330
|
}
|
|
8356
8331
|
};
|
|
8357
8332
|
|
|
8358
|
-
_this.wraperRef = React__default
|
|
8333
|
+
_this.wraperRef = React__default.createRef();
|
|
8359
8334
|
_this.visible = false;
|
|
8360
8335
|
return _this;
|
|
8361
8336
|
}
|
|
8362
8337
|
|
|
8363
|
-
inherits._createClass(InscreenSensor, [{
|
|
8338
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8364
8339
|
key: 'componentDidMount',
|
|
8365
8340
|
value: function componentDidMount() {
|
|
8366
8341
|
this.visible = this.checkInside();
|
|
@@ -8383,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8383
8358
|
_props$id = _props.id,
|
|
8384
8359
|
id = _props$id === undefined ? '' : _props$id;
|
|
8385
8360
|
|
|
8386
|
-
return React__default
|
|
8361
|
+
return React__default.createElement(
|
|
8387
8362
|
'div',
|
|
8388
8363
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8389
8364
|
this.props.children
|
|
@@ -8392,7 +8367,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8392
8367
|
}]);
|
|
8393
8368
|
|
|
8394
8369
|
return InscreenSensor;
|
|
8395
|
-
}(React__default
|
|
8370
|
+
}(React__default.Component);
|
|
8396
8371
|
|
|
8397
8372
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8398
8373
|
var nodes = _ref.nodes,
|
|
@@ -8501,33 +8476,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8501
8476
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8502
8477
|
var showReading = show ? 'showReading' : '';
|
|
8503
8478
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8504
|
-
return React__default
|
|
8479
|
+
return React__default.createElement(
|
|
8505
8480
|
'div',
|
|
8506
8481
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8507
|
-
React__default
|
|
8482
|
+
React__default.createElement(
|
|
8508
8483
|
'a',
|
|
8509
8484
|
{ onClick: function onClick(e) {
|
|
8510
8485
|
return articleCardClickHandler(e);
|
|
8511
8486
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8512
|
-
React__default
|
|
8487
|
+
React__default.createElement(
|
|
8513
8488
|
'div',
|
|
8514
8489
|
{ className: 'prevNext-thumbnail' },
|
|
8515
|
-
React__default
|
|
8516
|
-
React__default
|
|
8490
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8491
|
+
React__default.createElement(
|
|
8517
8492
|
'div',
|
|
8518
8493
|
{ className: 'prevNext-reading ' + showReading },
|
|
8519
8494
|
articleLabel
|
|
8520
8495
|
)
|
|
8521
8496
|
),
|
|
8522
|
-
React__default
|
|
8497
|
+
React__default.createElement(
|
|
8523
8498
|
'div',
|
|
8524
8499
|
{ className: 'prevNext-summary' },
|
|
8525
|
-
React__default
|
|
8500
|
+
React__default.createElement(
|
|
8526
8501
|
'div',
|
|
8527
8502
|
{ className: 'prevNext-publishDate' },
|
|
8528
8503
|
moment.moment(article.published).format('LL')
|
|
8529
8504
|
),
|
|
8530
|
-
React__default
|
|
8505
|
+
React__default.createElement(
|
|
8531
8506
|
'h2',
|
|
8532
8507
|
{ className: 'prevNext-title' },
|
|
8533
8508
|
article.title
|
|
@@ -8576,7 +8551,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8576
8551
|
|
|
8577
8552
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8578
8553
|
if (biography) {
|
|
8579
|
-
return React__default
|
|
8554
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8580
8555
|
}
|
|
8581
8556
|
};
|
|
8582
8557
|
|
|
@@ -8662,7 +8637,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8662
8637
|
//console.log('useLayoutEffect')
|
|
8663
8638
|
if (!firstLoad) {
|
|
8664
8639
|
setUpArrowClicked(false);
|
|
8665
|
-
if (main.
|
|
8640
|
+
if (main.main_36) {
|
|
8666
8641
|
grabLoadedAds();
|
|
8667
8642
|
} else {
|
|
8668
8643
|
scrollToArticle();
|
|
@@ -8686,7 +8661,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8686
8661
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8687
8662
|
if (pageview) pageview(path);
|
|
8688
8663
|
|
|
8689
|
-
if (!main.
|
|
8664
|
+
if (!main.main_36) {
|
|
8690
8665
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8691
8666
|
if (window.googletag && googletag.pubadsReady) {
|
|
8692
8667
|
index.lib_3.refresh();
|
|
@@ -8694,7 +8669,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8694
8669
|
});
|
|
8695
8670
|
}
|
|
8696
8671
|
//Refresh leaderboard ad on mobile
|
|
8697
|
-
if (main.
|
|
8672
|
+
if (main.main_36) {
|
|
8698
8673
|
var leaderboardSlotId = '';
|
|
8699
8674
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8700
8675
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8734,38 +8709,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8734
8709
|
setSensorVisible(false);
|
|
8735
8710
|
};
|
|
8736
8711
|
|
|
8737
|
-
return React__default
|
|
8738
|
-
React__default
|
|
8712
|
+
return React__default.createElement(
|
|
8713
|
+
React__default.Fragment,
|
|
8739
8714
|
null,
|
|
8740
|
-
React__default
|
|
8715
|
+
React__default.createElement(
|
|
8741
8716
|
'div',
|
|
8742
8717
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8743
|
-
React__default
|
|
8718
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8744
8719
|
return handleArrowClick();
|
|
8745
8720
|
} })
|
|
8746
8721
|
),
|
|
8747
|
-
React__default
|
|
8748
|
-
React__default
|
|
8722
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8723
|
+
React__default.createElement(
|
|
8749
8724
|
'div',
|
|
8750
8725
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8751
|
-
React__default
|
|
8726
|
+
React__default.createElement(
|
|
8752
8727
|
'h5',
|
|
8753
8728
|
{ className: 'objective-title' },
|
|
8754
8729
|
nodes.seriesTitle
|
|
8755
8730
|
),
|
|
8756
|
-
React__default
|
|
8731
|
+
React__default.createElement(
|
|
8757
8732
|
'div',
|
|
8758
8733
|
{ className: 'prevNextWrapper' },
|
|
8759
8734
|
PrevNextCards(false, -1)
|
|
8760
8735
|
)
|
|
8761
8736
|
),
|
|
8762
|
-
React__default
|
|
8763
|
-
React__default
|
|
8737
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8738
|
+
React__default.createElement(
|
|
8764
8739
|
'div',
|
|
8765
8740
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8766
|
-
main.
|
|
8741
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8767
8742
|
if (index === 0) {
|
|
8768
|
-
return React__default
|
|
8743
|
+
return React__default.createElement(
|
|
8769
8744
|
'div',
|
|
8770
8745
|
{
|
|
8771
8746
|
key: 'addid-1',
|
|
@@ -8785,14 +8760,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8785
8760
|
}
|
|
8786
8761
|
})
|
|
8787
8762
|
),
|
|
8788
|
-
React__default
|
|
8763
|
+
React__default.createElement(
|
|
8789
8764
|
'div',
|
|
8790
8765
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8791
8766
|
Articles.map(function (article, index) {
|
|
8792
|
-
return React__default
|
|
8767
|
+
return React__default.createElement(
|
|
8793
8768
|
'div',
|
|
8794
8769
|
{ key: article.title },
|
|
8795
|
-
React__default
|
|
8770
|
+
React__default.createElement(
|
|
8796
8771
|
InscreenSensor,
|
|
8797
8772
|
{
|
|
8798
8773
|
visible: sensorVisible,
|
|
@@ -8810,84 +8785,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8810
8785
|
}
|
|
8811
8786
|
}
|
|
8812
8787
|
} },
|
|
8813
|
-
React__default
|
|
8814
|
-
|
|
8788
|
+
React__default.createElement(
|
|
8789
|
+
Head,
|
|
8815
8790
|
null,
|
|
8816
|
-
currentTitle !== null && React__default
|
|
8791
|
+
currentTitle !== null && React__default.createElement(
|
|
8817
8792
|
'title',
|
|
8818
8793
|
{ key: 'title' },
|
|
8819
8794
|
currentTitle
|
|
8820
8795
|
),
|
|
8821
|
-
currentSummary !== null && React__default
|
|
8822
|
-
currentURL !== null && React__default
|
|
8823
|
-
currentTitle !== null && React__default
|
|
8824
|
-
currentThumbnail !== null && React__default
|
|
8825
|
-
currentSummary !== null && React__default
|
|
8826
|
-
currentTitle !== null && React__default
|
|
8827
|
-
currentThumbnail !== null && React__default
|
|
8828
|
-
currentSummary !== null && React__default
|
|
8796
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8797
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8798
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8799
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8800
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8801
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8802
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8803
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8829
8804
|
),
|
|
8830
|
-
React__default
|
|
8805
|
+
React__default.createElement(
|
|
8831
8806
|
'article',
|
|
8832
8807
|
{ className: 'article-wrapper' },
|
|
8833
|
-
React__default
|
|
8808
|
+
React__default.createElement(
|
|
8834
8809
|
'div',
|
|
8835
8810
|
{ className: 'article-publishDate' },
|
|
8836
8811
|
moment.moment(article.published).format('LL')
|
|
8837
8812
|
),
|
|
8838
|
-
React__default
|
|
8813
|
+
React__default.createElement(
|
|
8839
8814
|
'div',
|
|
8840
8815
|
{ className: 'author-details-wrapper' },
|
|
8841
8816
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8842
|
-
return React__default
|
|
8817
|
+
return React__default.createElement(
|
|
8843
8818
|
'span',
|
|
8844
8819
|
{ key: index },
|
|
8845
8820
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8846
8821
|
);
|
|
8847
8822
|
})
|
|
8848
8823
|
),
|
|
8849
|
-
React__default
|
|
8824
|
+
React__default.createElement(
|
|
8850
8825
|
'h2',
|
|
8851
8826
|
{ className: 'article-title' },
|
|
8852
8827
|
article.title
|
|
8853
8828
|
),
|
|
8854
|
-
React__default
|
|
8829
|
+
React__default.createElement(
|
|
8855
8830
|
'div',
|
|
8856
8831
|
{ className: 'mt-2 mb-2' },
|
|
8857
|
-
React__default
|
|
8832
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8858
8833
|
serializers: getSerializers,
|
|
8859
8834
|
videoAccountIDs: accountIDs,
|
|
8860
8835
|
blocks: article.text,
|
|
8861
8836
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8862
8837
|
}, client.config())),
|
|
8863
|
-
React__default
|
|
8838
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8864
8839
|
),
|
|
8865
|
-
Articles.length > 1 && React__default
|
|
8866
|
-
React__default
|
|
8840
|
+
Articles.length > 1 && React__default.createElement(
|
|
8841
|
+
React__default.Fragment,
|
|
8867
8842
|
null,
|
|
8868
|
-
React__default
|
|
8843
|
+
React__default.createElement(
|
|
8869
8844
|
'div',
|
|
8870
8845
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8871
|
-
React__default
|
|
8846
|
+
React__default.createElement(
|
|
8872
8847
|
'h5',
|
|
8873
8848
|
{ className: 'objective-title' },
|
|
8874
8849
|
nodes.seriesTitle
|
|
8875
8850
|
),
|
|
8876
|
-
React__default
|
|
8851
|
+
React__default.createElement(
|
|
8877
8852
|
'div',
|
|
8878
8853
|
{ className: 'prevNextWrapper' },
|
|
8879
8854
|
PrevNextCards(true, index)
|
|
8880
8855
|
)
|
|
8881
8856
|
),
|
|
8882
|
-
React__default
|
|
8857
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8883
8858
|
)
|
|
8884
8859
|
),
|
|
8885
|
-
React__default
|
|
8860
|
+
React__default.createElement(
|
|
8886
8861
|
'div',
|
|
8887
8862
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8888
|
-
main.
|
|
8863
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8889
8864
|
if (innerIndex === 0) {
|
|
8890
|
-
return React__default
|
|
8865
|
+
return React__default.createElement(
|
|
8891
8866
|
'div',
|
|
8892
8867
|
{
|
|
8893
8868
|
key: 'addid-' + (index + 2),
|
|
@@ -8910,7 +8885,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8910
8885
|
)
|
|
8911
8886
|
);
|
|
8912
8887
|
}),
|
|
8913
|
-
React__default
|
|
8888
|
+
React__default.createElement(
|
|
8914
8889
|
'style',
|
|
8915
8890
|
{ jsx: 'true' },
|
|
8916
8891
|
'\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 '
|
|
@@ -8940,11 +8915,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8940
8915
|
};
|
|
8941
8916
|
}, [handleClickOutside]);
|
|
8942
8917
|
|
|
8943
|
-
return React__default
|
|
8918
|
+
return React__default.createElement(
|
|
8944
8919
|
'div',
|
|
8945
8920
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8946
|
-
React__default
|
|
8947
|
-
React__default
|
|
8921
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8922
|
+
React__default.createElement(
|
|
8948
8923
|
'style',
|
|
8949
8924
|
{ jsx: 'true' },
|
|
8950
8925
|
'\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 '
|
|
@@ -8958,7 +8933,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8958
8933
|
}
|
|
8959
8934
|
};
|
|
8960
8935
|
|
|
8961
|
-
var FigureImage = React__default
|
|
8936
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8962
8937
|
var node = _ref2.node,
|
|
8963
8938
|
client = _ref2.client,
|
|
8964
8939
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8966,13 +8941,13 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8966
8941
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8967
8942
|
|
|
8968
8943
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8969
|
-
return React__default
|
|
8944
|
+
return React__default.createElement(
|
|
8970
8945
|
'picture',
|
|
8971
8946
|
null,
|
|
8972
|
-
React__default
|
|
8973
|
-
React__default
|
|
8974
|
-
React__default
|
|
8975
|
-
React__default
|
|
8947
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8948
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8949
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8950
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8976
8951
|
style: figureImageStyle,
|
|
8977
8952
|
className: 'figure-image',
|
|
8978
8953
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9060,13 +9035,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9060
9035
|
|
|
9061
9036
|
var FigureCaption = React.useCallback(function () {
|
|
9062
9037
|
if (imgcaption && imgcaption.length > 0) {
|
|
9063
|
-
return React__default
|
|
9038
|
+
return React__default.createElement(
|
|
9064
9039
|
'div',
|
|
9065
9040
|
{ className: 'figure-caption' },
|
|
9066
|
-
React__default
|
|
9041
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9067
9042
|
);
|
|
9068
9043
|
} else if (caption) {
|
|
9069
|
-
return React__default
|
|
9044
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9070
9045
|
} else return null;
|
|
9071
9046
|
}, [caption, imgcaption]);
|
|
9072
9047
|
|
|
@@ -9083,24 +9058,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9083
9058
|
setShowLightbox(true);
|
|
9084
9059
|
}, [node, client]);
|
|
9085
9060
|
|
|
9086
|
-
return React__default
|
|
9087
|
-
React__default
|
|
9061
|
+
return React__default.createElement(
|
|
9062
|
+
React__default.Fragment,
|
|
9088
9063
|
null,
|
|
9089
|
-
React__default
|
|
9090
|
-
|
|
9064
|
+
React__default.createElement(
|
|
9065
|
+
Figure$1,
|
|
9091
9066
|
{ className: '' + class_name, style: figureStyle },
|
|
9092
|
-
link ? React__default
|
|
9067
|
+
link ? React__default.createElement(
|
|
9093
9068
|
'a',
|
|
9094
9069
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9095
|
-
React__default
|
|
9096
|
-
React__default
|
|
9097
|
-
) : React__default
|
|
9098
|
-
React__default
|
|
9070
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9071
|
+
React__default.createElement(FigureCaption, null)
|
|
9072
|
+
) : React__default.createElement(
|
|
9073
|
+
React__default.Fragment,
|
|
9099
9074
|
null,
|
|
9100
|
-
React__default
|
|
9101
|
-
React__default
|
|
9075
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9076
|
+
React__default.createElement(FigureCaption, null)
|
|
9102
9077
|
),
|
|
9103
|
-
React__default
|
|
9078
|
+
React__default.createElement(LightBox, {
|
|
9104
9079
|
showLightbox: showLightbox,
|
|
9105
9080
|
lightboxImgSrc: lightboxImgSrc,
|
|
9106
9081
|
closeLightbox: function closeLightbox() {
|
|
@@ -9109,7 +9084,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9109
9084
|
}
|
|
9110
9085
|
})
|
|
9111
9086
|
),
|
|
9112
|
-
React__default
|
|
9087
|
+
React__default.createElement(
|
|
9113
9088
|
'style',
|
|
9114
9089
|
{ jsx: 'true' },
|
|
9115
9090
|
'\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 '
|
|
@@ -9117,7 +9092,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9117
9092
|
);
|
|
9118
9093
|
};
|
|
9119
9094
|
|
|
9120
|
-
var Figure = React__default
|
|
9095
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9121
9096
|
|
|
9122
9097
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9123
9098
|
React.useEffect(function () {
|
|
@@ -9134,7 +9109,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9134
9109
|
}, [ref]);
|
|
9135
9110
|
}
|
|
9136
9111
|
|
|
9137
|
-
var FigureImage$1 = React__default
|
|
9112
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9138
9113
|
var imagesCount = _ref.imagesCount,
|
|
9139
9114
|
image = _ref.image,
|
|
9140
9115
|
client = _ref.client,
|
|
@@ -9142,13 +9117,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref) {
|
|
|
9142
9117
|
link = _ref.link,
|
|
9143
9118
|
handleClickFigure = _ref.handleClickFigure;
|
|
9144
9119
|
|
|
9145
|
-
return React__default
|
|
9120
|
+
return React__default.createElement(
|
|
9146
9121
|
'picture',
|
|
9147
9122
|
null,
|
|
9148
|
-
React__default
|
|
9149
|
-
React__default
|
|
9150
|
-
React__default
|
|
9151
|
-
React__default
|
|
9123
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9124
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9125
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9126
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9152
9127
|
'images-count': imagesCount,
|
|
9153
9128
|
className: 'multi-figure-image',
|
|
9154
9129
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9185,13 +9160,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9185
9160
|
imgcaption = _ref2.imgcaption;
|
|
9186
9161
|
|
|
9187
9162
|
if (imgcaption && imgcaption.length > 0) {
|
|
9188
|
-
return React__default
|
|
9163
|
+
return React__default.createElement(
|
|
9189
9164
|
'div',
|
|
9190
9165
|
{ className: 'multi-figure-caption' },
|
|
9191
|
-
React__default
|
|
9166
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9192
9167
|
);
|
|
9193
9168
|
} else if (caption) {
|
|
9194
|
-
return React__default
|
|
9169
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9195
9170
|
} else return null;
|
|
9196
9171
|
};
|
|
9197
9172
|
|
|
@@ -9201,48 +9176,48 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9201
9176
|
}, [client]);
|
|
9202
9177
|
|
|
9203
9178
|
if (images && images.length > 0) {
|
|
9204
|
-
return React__default
|
|
9179
|
+
return React__default.createElement(
|
|
9205
9180
|
'div',
|
|
9206
9181
|
{ className: 'multi-figure-container' },
|
|
9207
|
-
React__default
|
|
9208
|
-
|
|
9182
|
+
React__default.createElement(
|
|
9183
|
+
Row,
|
|
9209
9184
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9210
9185
|
images.map(function (image, index) {
|
|
9211
|
-
return React__default
|
|
9212
|
-
|
|
9186
|
+
return React__default.createElement(
|
|
9187
|
+
Col,
|
|
9213
9188
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9214
|
-
image.link ? React__default
|
|
9189
|
+
image.link ? React__default.createElement(
|
|
9215
9190
|
'a',
|
|
9216
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9217
|
-
React__default
|
|
9191
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9192
|
+
React__default.createElement(
|
|
9218
9193
|
'div',
|
|
9219
9194
|
{ className: 'multi-figure-image-container' },
|
|
9220
|
-
React__default
|
|
9195
|
+
React__default.createElement(
|
|
9221
9196
|
index$2.LazyLoad,
|
|
9222
9197
|
{ once: true },
|
|
9223
|
-
React__default
|
|
9198
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9224
9199
|
),
|
|
9225
|
-
React__default
|
|
9200
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9226
9201
|
)
|
|
9227
|
-
) : React__default
|
|
9202
|
+
) : React__default.createElement(
|
|
9228
9203
|
'div',
|
|
9229
9204
|
{ className: 'multi-figure-image-container' },
|
|
9230
|
-
React__default
|
|
9205
|
+
React__default.createElement(
|
|
9231
9206
|
index$2.LazyLoad,
|
|
9232
9207
|
{ once: true },
|
|
9233
|
-
React__default
|
|
9208
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9234
9209
|
),
|
|
9235
|
-
React__default
|
|
9210
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9236
9211
|
)
|
|
9237
9212
|
);
|
|
9238
9213
|
})
|
|
9239
9214
|
),
|
|
9240
|
-
React__default
|
|
9215
|
+
React__default.createElement(
|
|
9241
9216
|
'div',
|
|
9242
9217
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9243
|
-
React__default
|
|
9218
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9244
9219
|
),
|
|
9245
|
-
React__default
|
|
9220
|
+
React__default.createElement(
|
|
9246
9221
|
'style',
|
|
9247
9222
|
{ jsx: 'true' },
|
|
9248
9223
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9264,13 +9239,265 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9264
9239
|
|
|
9265
9240
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9266
9241
|
|
|
9267
|
-
return React__default
|
|
9242
|
+
return React__default.createElement(
|
|
9268
9243
|
'div',
|
|
9269
9244
|
{ id: elementId },
|
|
9270
|
-
React__default
|
|
9245
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9271
9246
|
);
|
|
9272
9247
|
};
|
|
9273
9248
|
|
|
9249
|
+
var objectWithoutProperties = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9250
|
+
|
|
9251
|
+
exports.__esModule = true;
|
|
9252
|
+
|
|
9253
|
+
exports.default = function (obj, keys) {
|
|
9254
|
+
var target = {};
|
|
9255
|
+
|
|
9256
|
+
for (var i in obj) {
|
|
9257
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9258
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9259
|
+
target[i] = obj[i];
|
|
9260
|
+
}
|
|
9261
|
+
|
|
9262
|
+
return target;
|
|
9263
|
+
};
|
|
9264
|
+
});
|
|
9265
|
+
|
|
9266
|
+
_commonjsHelpers.unwrapExports(objectWithoutProperties);
|
|
9267
|
+
|
|
9268
|
+
var ScriptTag_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9269
|
+
|
|
9270
|
+
exports.__esModule = true;
|
|
9271
|
+
|
|
9272
|
+
|
|
9273
|
+
|
|
9274
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9275
|
+
|
|
9276
|
+
|
|
9277
|
+
|
|
9278
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9279
|
+
|
|
9280
|
+
|
|
9281
|
+
|
|
9282
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9283
|
+
|
|
9284
|
+
|
|
9285
|
+
|
|
9286
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9287
|
+
|
|
9288
|
+
|
|
9289
|
+
|
|
9290
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9291
|
+
|
|
9292
|
+
|
|
9293
|
+
|
|
9294
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9295
|
+
|
|
9296
|
+
|
|
9297
|
+
|
|
9298
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9299
|
+
|
|
9300
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9301
|
+
var noop = function noop() {};
|
|
9302
|
+
|
|
9303
|
+
var ScriptTag = function (_Component) {
|
|
9304
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9305
|
+
|
|
9306
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9307
|
+
if (node) {
|
|
9308
|
+
node.parentNode.removeChild(node);
|
|
9309
|
+
}
|
|
9310
|
+
};
|
|
9311
|
+
|
|
9312
|
+
function ScriptTag(props, context) {
|
|
9313
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9314
|
+
|
|
9315
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9316
|
+
|
|
9317
|
+
_this.domRef = null;
|
|
9318
|
+
_this.state = {
|
|
9319
|
+
isHydrated: props.isHydrating,
|
|
9320
|
+
additionalNode: null,
|
|
9321
|
+
removeAdditionalNode: null
|
|
9322
|
+
};
|
|
9323
|
+
return _this;
|
|
9324
|
+
}
|
|
9325
|
+
|
|
9326
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9327
|
+
var _props = this.props,
|
|
9328
|
+
onError = _props.onError,
|
|
9329
|
+
onLoad = _props.onLoad,
|
|
9330
|
+
nonce = _props.nonce;
|
|
9331
|
+
|
|
9332
|
+
// Create a new HTML script element
|
|
9333
|
+
|
|
9334
|
+
var newElement = document.createElement("script");
|
|
9335
|
+
|
|
9336
|
+
// Copy all attribute values
|
|
9337
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9338
|
+
var attr = this.domRef.attributes[i];
|
|
9339
|
+
if (attr.nodeName === 'nonce') {
|
|
9340
|
+
// The browser clears the nonce value - grab from props
|
|
9341
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9342
|
+
} else {
|
|
9343
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9344
|
+
}
|
|
9345
|
+
}
|
|
9346
|
+
|
|
9347
|
+
// Copy the inner script
|
|
9348
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9349
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9350
|
+
}
|
|
9351
|
+
|
|
9352
|
+
// Bind event listeners
|
|
9353
|
+
newElement.addEventListener('load', onLoad);
|
|
9354
|
+
newElement.addEventListener('error', onError);
|
|
9355
|
+
|
|
9356
|
+
// Append the new script tag
|
|
9357
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9358
|
+
return newElement;
|
|
9359
|
+
};
|
|
9360
|
+
|
|
9361
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9362
|
+
var isHydrated = this.state.isHydrated;
|
|
9363
|
+
|
|
9364
|
+
if (isHydrated) {
|
|
9365
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9366
|
+
return;
|
|
9367
|
+
}
|
|
9368
|
+
|
|
9369
|
+
this.setState({
|
|
9370
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9371
|
+
removeAdditionalNode: null
|
|
9372
|
+
});
|
|
9373
|
+
};
|
|
9374
|
+
|
|
9375
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9376
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9377
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9378
|
+
|
|
9379
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9380
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9381
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9382
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9383
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9384
|
+
var _props2 = this.props,
|
|
9385
|
+
src = _props2.src,
|
|
9386
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9387
|
+
|
|
9388
|
+
if (src && src === nextProps.src) {
|
|
9389
|
+
// The 'src' attribute has not changed
|
|
9390
|
+
return;
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9393
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9394
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9395
|
+
return;
|
|
9396
|
+
}
|
|
9397
|
+
|
|
9398
|
+
this.setState({
|
|
9399
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9400
|
+
additionalNode: null
|
|
9401
|
+
});
|
|
9402
|
+
};
|
|
9403
|
+
|
|
9404
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9405
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9406
|
+
};
|
|
9407
|
+
|
|
9408
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9409
|
+
var _state = this.state,
|
|
9410
|
+
additionalNode = _state.additionalNode,
|
|
9411
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9412
|
+
|
|
9413
|
+
if (additionalNode === null) {
|
|
9414
|
+
this.setState({
|
|
9415
|
+
additionalNode: this.appendAdditionalElement()
|
|
9416
|
+
});
|
|
9417
|
+
}
|
|
9418
|
+
|
|
9419
|
+
if (removeAdditionalNode !== null) {
|
|
9420
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9421
|
+
this.setState({
|
|
9422
|
+
removeAdditionalNode: null
|
|
9423
|
+
});
|
|
9424
|
+
}
|
|
9425
|
+
};
|
|
9426
|
+
|
|
9427
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9428
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9429
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9430
|
+
};
|
|
9431
|
+
|
|
9432
|
+
ScriptTag.prototype.render = function render() {
|
|
9433
|
+
var _this2 = this;
|
|
9434
|
+
|
|
9435
|
+
var additionalNode = this.state.additionalNode;
|
|
9436
|
+
|
|
9437
|
+
if (additionalNode !== null) {
|
|
9438
|
+
return null;
|
|
9439
|
+
}
|
|
9440
|
+
|
|
9441
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9442
|
+
// eslint-disable-next-line no-unused-vars
|
|
9443
|
+
var _props3 = this.props,
|
|
9444
|
+
isHydrating = _props3.isHydrating,
|
|
9445
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9446
|
+
|
|
9447
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9448
|
+
return _this2.domRef = tag;
|
|
9449
|
+
} }));
|
|
9450
|
+
};
|
|
9451
|
+
|
|
9452
|
+
return ScriptTag;
|
|
9453
|
+
}(React__default.Component);
|
|
9454
|
+
|
|
9455
|
+
ScriptTag.propTypes = {
|
|
9456
|
+
/**
|
|
9457
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9458
|
+
*/
|
|
9459
|
+
isHydrating: _propTypes2.default.bool,
|
|
9460
|
+
|
|
9461
|
+
// Standard <script> tag props
|
|
9462
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9463
|
+
crossOrigin: _propTypes2.default.string,
|
|
9464
|
+
defer: _propTypes2.default.bool,
|
|
9465
|
+
integrity: _propTypes2.default.string,
|
|
9466
|
+
nonce: _propTypes2.default.string,
|
|
9467
|
+
src: _propTypes2.default.string,
|
|
9468
|
+
text: _propTypes2.default.string,
|
|
9469
|
+
type: _propTypes2.default.string,
|
|
9470
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9471
|
+
|
|
9472
|
+
// globals
|
|
9473
|
+
onError: _propTypes2.default.func,
|
|
9474
|
+
onLoad: _propTypes2.default.func
|
|
9475
|
+
};
|
|
9476
|
+
ScriptTag.defaultProps = {
|
|
9477
|
+
isHydrating: false,
|
|
9478
|
+
onError: noop,
|
|
9479
|
+
onLoad: noop
|
|
9480
|
+
};
|
|
9481
|
+
exports.default = ScriptTag;
|
|
9482
|
+
});
|
|
9483
|
+
|
|
9484
|
+
_commonjsHelpers.unwrapExports(ScriptTag_1);
|
|
9485
|
+
|
|
9486
|
+
var lib = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9487
|
+
|
|
9488
|
+
exports.__esModule = true;
|
|
9489
|
+
|
|
9490
|
+
|
|
9491
|
+
|
|
9492
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9493
|
+
|
|
9494
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9495
|
+
|
|
9496
|
+
exports.default = _ScriptTag2.default;
|
|
9497
|
+
});
|
|
9498
|
+
|
|
9499
|
+
var ScriptTag = _commonjsHelpers.unwrapExports(lib);
|
|
9500
|
+
|
|
9274
9501
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9275
9502
|
|
|
9276
9503
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9302,11 +9529,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9302
9529
|
}, []);
|
|
9303
9530
|
|
|
9304
9531
|
if (iframeSrc) {
|
|
9305
|
-
return React__default
|
|
9532
|
+
return React__default.createElement(
|
|
9306
9533
|
'section',
|
|
9307
9534
|
{ className: 'form-assembly' },
|
|
9308
|
-
React__default
|
|
9309
|
-
React__default
|
|
9535
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9536
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9310
9537
|
);
|
|
9311
9538
|
}
|
|
9312
9539
|
|
|
@@ -9343,27 +9570,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9343
9570
|
return window.removeEventListener('resize', handleResize);
|
|
9344
9571
|
};
|
|
9345
9572
|
}, []);
|
|
9346
|
-
return React__default
|
|
9573
|
+
return React__default.createElement(
|
|
9347
9574
|
'div',
|
|
9348
9575
|
{ className: 'blockTableHolder', ref: holder },
|
|
9349
|
-
React__default
|
|
9576
|
+
React__default.createElement(
|
|
9350
9577
|
'div',
|
|
9351
9578
|
{ className: 'blockTable' },
|
|
9352
9579
|
rows && rows.map(function (row) {
|
|
9353
|
-
return React__default
|
|
9580
|
+
return React__default.createElement(
|
|
9354
9581
|
'div',
|
|
9355
9582
|
{ className: 'blockTableRow' },
|
|
9356
9583
|
row.cells && row.cells.map(function (cell) {
|
|
9357
|
-
return React__default
|
|
9584
|
+
return React__default.createElement(
|
|
9358
9585
|
'div',
|
|
9359
9586
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9360
|
-
React__default
|
|
9587
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9361
9588
|
);
|
|
9362
9589
|
})
|
|
9363
9590
|
);
|
|
9364
9591
|
})
|
|
9365
9592
|
),
|
|
9366
|
-
React__default
|
|
9593
|
+
React__default.createElement(
|
|
9367
9594
|
'style',
|
|
9368
9595
|
{ jsx: true },
|
|
9369
9596
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9442,12 +9669,12 @@ var getSerializers = function getSerializers() {
|
|
|
9442
9669
|
var node = _ref.node;
|
|
9443
9670
|
var url = node.url;
|
|
9444
9671
|
|
|
9445
|
-
return React__default
|
|
9672
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9446
9673
|
},
|
|
9447
9674
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9448
9675
|
var node = _ref2.node;
|
|
9449
9676
|
|
|
9450
|
-
return React__default
|
|
9677
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9451
9678
|
nodes: node,
|
|
9452
9679
|
article: article,
|
|
9453
9680
|
meta: meta,
|
|
@@ -9461,7 +9688,7 @@ var getSerializers = function getSerializers() {
|
|
|
9461
9688
|
articleSeries: function articleSeries(_ref3) {
|
|
9462
9689
|
var node = _ref3.node;
|
|
9463
9690
|
|
|
9464
|
-
return React__default
|
|
9691
|
+
return React__default.createElement(ArticleSeries, {
|
|
9465
9692
|
nodes: node,
|
|
9466
9693
|
accountIDs: videoAccountIDs || {},
|
|
9467
9694
|
pageview: pageview,
|
|
@@ -9474,61 +9701,61 @@ var getSerializers = function getSerializers() {
|
|
|
9474
9701
|
figure: function figure(_ref4) {
|
|
9475
9702
|
var node = _ref4.node;
|
|
9476
9703
|
|
|
9477
|
-
return React__default
|
|
9704
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9478
9705
|
},
|
|
9479
9706
|
multifigure: function multifigure(_ref5) {
|
|
9480
9707
|
var node = _ref5.node;
|
|
9481
9708
|
|
|
9482
|
-
return React__default
|
|
9709
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9483
9710
|
},
|
|
9484
9711
|
slideshow: function slideshow(_ref6) {
|
|
9485
9712
|
var node = _ref6.node;
|
|
9486
9713
|
var slides = node.slides;
|
|
9487
9714
|
|
|
9488
|
-
return React__default
|
|
9715
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9489
9716
|
},
|
|
9490
9717
|
sidebar: function sidebar(_ref7) {
|
|
9491
9718
|
var node = _ref7.node;
|
|
9492
9719
|
var caption = node.caption,
|
|
9493
9720
|
content = node.content;
|
|
9494
9721
|
|
|
9495
|
-
return React__default
|
|
9722
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9496
9723
|
},
|
|
9497
9724
|
datatable: function datatable(_ref8) {
|
|
9498
9725
|
var node = _ref8.node;
|
|
9499
9726
|
var table = node.table;
|
|
9500
9727
|
|
|
9501
|
-
return React__default
|
|
9728
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9502
9729
|
},
|
|
9503
9730
|
media: function media(_ref9) {
|
|
9504
9731
|
var node = _ref9.node;
|
|
9505
9732
|
|
|
9506
|
-
return React__default
|
|
9733
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9507
9734
|
},
|
|
9508
9735
|
iframe: function iframe(_ref10) {
|
|
9509
9736
|
var node = _ref10.node;
|
|
9510
9737
|
|
|
9511
|
-
return React__default
|
|
9738
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9512
9739
|
},
|
|
9513
9740
|
video: function video(_ref11) {
|
|
9514
9741
|
var node = _ref11.node;
|
|
9515
9742
|
|
|
9516
|
-
return React__default
|
|
9743
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9517
9744
|
},
|
|
9518
9745
|
audio: function audio(_ref12) {
|
|
9519
9746
|
var node = _ref12.node;
|
|
9520
9747
|
|
|
9521
|
-
return React__default
|
|
9748
|
+
return React__default.createElement(Audio, { node: node });
|
|
9522
9749
|
},
|
|
9523
9750
|
poll: function poll(_ref13) {
|
|
9524
9751
|
var node = _ref13.node;
|
|
9525
9752
|
|
|
9526
|
-
return React__default
|
|
9753
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9527
9754
|
},
|
|
9528
9755
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9529
9756
|
var node = _ref14.node;
|
|
9530
9757
|
|
|
9531
|
-
return React__default
|
|
9758
|
+
return React__default.createElement(Poll$1, {
|
|
9532
9759
|
node: node,
|
|
9533
9760
|
client: client,
|
|
9534
9761
|
pageview: pageview,
|
|
@@ -9542,35 +9769,35 @@ var getSerializers = function getSerializers() {
|
|
|
9542
9769
|
var node = _ref15.node;
|
|
9543
9770
|
var quizzes = node.quizzes;
|
|
9544
9771
|
|
|
9545
|
-
return React__default
|
|
9772
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9546
9773
|
},
|
|
9547
9774
|
leads: function leads(_ref16) {
|
|
9548
9775
|
var node = _ref16.node;
|
|
9549
9776
|
var leadID = node.leadID;
|
|
9550
9777
|
|
|
9551
9778
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9552
|
-
return React__default
|
|
9779
|
+
return React__default.createElement(Leads, { url: url });
|
|
9553
9780
|
},
|
|
9554
9781
|
slideshows: function slideshows(_ref17) {
|
|
9555
9782
|
var node = _ref17.node;
|
|
9556
9783
|
|
|
9557
|
-
return React__default
|
|
9784
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9558
9785
|
},
|
|
9559
9786
|
nativeAd: function nativeAd(_ref18) {
|
|
9560
9787
|
var node = _ref18.node;
|
|
9561
9788
|
|
|
9562
|
-
return React__default
|
|
9789
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9563
9790
|
},
|
|
9564
9791
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9565
9792
|
var node = _ref19.node;
|
|
9566
9793
|
|
|
9567
|
-
return React__default
|
|
9794
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9568
9795
|
},
|
|
9569
9796
|
hrtag: function hrtag() {
|
|
9570
|
-
return React__default
|
|
9797
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9571
9798
|
},
|
|
9572
9799
|
brtag: function brtag() {
|
|
9573
|
-
return React__default
|
|
9800
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9574
9801
|
},
|
|
9575
9802
|
formstack: function formstack(_ref20) {
|
|
9576
9803
|
var node = _ref20.node;
|
|
@@ -9578,29 +9805,29 @@ var getSerializers = function getSerializers() {
|
|
|
9578
9805
|
Caption = node.Caption,
|
|
9579
9806
|
needSegmentSupport = node.needSegmentSupport;
|
|
9580
9807
|
|
|
9581
|
-
return React__default
|
|
9808
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9582
9809
|
},
|
|
9583
9810
|
formassembly: FormAssembly,
|
|
9584
9811
|
multimedia: function multimedia(_ref21) {
|
|
9585
9812
|
var node = _ref21.node;
|
|
9586
9813
|
|
|
9587
|
-
return React__default
|
|
9814
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9588
9815
|
},
|
|
9589
9816
|
blockTable: function blockTable(_ref22) {
|
|
9590
9817
|
var node = _ref22.node;
|
|
9591
|
-
return React__default
|
|
9818
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9592
9819
|
}
|
|
9593
9820
|
},
|
|
9594
9821
|
marks: {
|
|
9595
9822
|
superscript: function superscript(props) {
|
|
9596
|
-
return React__default
|
|
9823
|
+
return React__default.createElement(
|
|
9597
9824
|
'sup',
|
|
9598
9825
|
null,
|
|
9599
9826
|
props.children
|
|
9600
9827
|
);
|
|
9601
9828
|
},
|
|
9602
9829
|
subscript: function subscript(props) {
|
|
9603
|
-
return React__default
|
|
9830
|
+
return React__default.createElement(
|
|
9604
9831
|
'sub',
|
|
9605
9832
|
null,
|
|
9606
9833
|
props.children
|
|
@@ -9616,7 +9843,7 @@ var getSerializers = function getSerializers() {
|
|
|
9616
9843
|
if (href && href.charAt(0) === '#') {
|
|
9617
9844
|
var elementId = href.slice(1);
|
|
9618
9845
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9619
|
-
return React__default
|
|
9846
|
+
return React__default.createElement(
|
|
9620
9847
|
'a',
|
|
9621
9848
|
{ onClick: function onClick() {
|
|
9622
9849
|
return ScrollToElement(elementId);
|
|
@@ -9626,7 +9853,7 @@ var getSerializers = function getSerializers() {
|
|
|
9626
9853
|
}
|
|
9627
9854
|
|
|
9628
9855
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9629
|
-
return React__default
|
|
9856
|
+
return React__default.createElement(
|
|
9630
9857
|
'a',
|
|
9631
9858
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9632
9859
|
children
|
|
@@ -9634,7 +9861,7 @@ var getSerializers = function getSerializers() {
|
|
|
9634
9861
|
},
|
|
9635
9862
|
alignleft: function alignleft(_ref23) {
|
|
9636
9863
|
var children = _ref23.children;
|
|
9637
|
-
return React__default
|
|
9864
|
+
return React__default.createElement(
|
|
9638
9865
|
'div',
|
|
9639
9866
|
{ style: { textAlign: 'left' } },
|
|
9640
9867
|
children
|
|
@@ -9642,7 +9869,7 @@ var getSerializers = function getSerializers() {
|
|
|
9642
9869
|
},
|
|
9643
9870
|
alignright: function alignright(_ref24) {
|
|
9644
9871
|
var children = _ref24.children;
|
|
9645
|
-
return React__default
|
|
9872
|
+
return React__default.createElement(
|
|
9646
9873
|
'div',
|
|
9647
9874
|
{ style: { textAlign: 'right' } },
|
|
9648
9875
|
children
|
|
@@ -9650,7 +9877,7 @@ var getSerializers = function getSerializers() {
|
|
|
9650
9877
|
},
|
|
9651
9878
|
aligncenter: function aligncenter(_ref25) {
|
|
9652
9879
|
var children = _ref25.children;
|
|
9653
|
-
return React__default
|
|
9880
|
+
return React__default.createElement(
|
|
9654
9881
|
'div',
|
|
9655
9882
|
{ style: { textAlign: 'center' } },
|
|
9656
9883
|
children
|
|
@@ -9658,7 +9885,7 @@ var getSerializers = function getSerializers() {
|
|
|
9658
9885
|
},
|
|
9659
9886
|
alignjustify: function alignjustify(_ref26) {
|
|
9660
9887
|
var children = _ref26.children;
|
|
9661
|
-
return React__default
|
|
9888
|
+
return React__default.createElement(
|
|
9662
9889
|
'div',
|
|
9663
9890
|
{ style: { textAlign: 'justify' } },
|
|
9664
9891
|
children
|
|
@@ -9668,7 +9895,7 @@ var getSerializers = function getSerializers() {
|
|
|
9668
9895
|
var children = props.children,
|
|
9669
9896
|
color = props.mark.color;
|
|
9670
9897
|
|
|
9671
|
-
return React__default
|
|
9898
|
+
return React__default.createElement(
|
|
9672
9899
|
'span',
|
|
9673
9900
|
{ style: { color: color ? color.hex : null } },
|
|
9674
9901
|
children
|