@mjhls/mjh-framework 1.0.854-adblocker-fix-v1 → 1.0.854-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/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +16 -26
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +38 -119
- 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 +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- 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 +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- 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 +3907 -78
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- 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 +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- 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 +43 -47
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +27 -28
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +199 -203
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +50 -51
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-00a7ead6.js → index-276bab5c.js} +928 -954
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- 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 +58 -63
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- 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 +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +14 -23
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +238 -347
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +1180 -216
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- 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 +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- 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 +3903 -74
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- 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 +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +180 -180
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-0500ae55.js → index-0f6867b9.js} +882 -898
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- 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-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- 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 +49 -51
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- 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 +2 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,62 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
var _toObject = require('./_to-object-329a650b.js');
|
|
5
7
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
6
|
-
var _extends = require('./extends-0a918631.js');
|
|
7
|
-
var inherits = require('./inherits-
|
|
8
|
-
var _typeof
|
|
8
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
+
var inherits$1 = require('./inherits-1f5a1c72.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 OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
38
|
-
var Tooltip = require('react-bootstrap/Tooltip');
|
|
39
|
-
var Popover = require('react-bootstrap/Popover');
|
|
40
|
-
|
|
41
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
42
|
-
|
|
43
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
44
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
45
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
46
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
47
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
48
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
49
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
50
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
51
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
52
|
-
var OverlayTrigger__default = /*#__PURE__*/_interopDefaultLegacy(OverlayTrigger);
|
|
53
|
-
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
54
|
-
var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
40
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
42
|
+
var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
|
|
43
|
+
var Tooltip = _interopDefault(require('react-bootstrap/Tooltip'));
|
|
44
|
+
var Popover = _interopDefault(require('react-bootstrap/Popover'));
|
|
55
45
|
|
|
56
46
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
57
47
|
var pageNumber = selectedIndex + 1;
|
|
58
48
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
59
|
-
Router__default
|
|
49
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
60
50
|
};
|
|
61
51
|
|
|
62
52
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -86,27 +76,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
86
76
|
if (pageview) pageview(router.asPath);
|
|
87
77
|
}, [router]);
|
|
88
78
|
|
|
89
|
-
return React__default
|
|
79
|
+
return React__default.createElement(
|
|
90
80
|
'div',
|
|
91
81
|
{ className: 'mt-3 mb-3' },
|
|
92
|
-
React__default
|
|
82
|
+
React__default.createElement(
|
|
93
83
|
reactBootstrap.Carousel,
|
|
94
84
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
95
85
|
return onChangeSlide(selectedIndex, router);
|
|
96
86
|
}, interval: null },
|
|
97
87
|
slides && slides.map(function (slide) {
|
|
98
|
-
return React__default
|
|
88
|
+
return React__default.createElement(
|
|
99
89
|
reactBootstrap.Carousel.Item,
|
|
100
90
|
{ key: slide._key },
|
|
101
|
-
React__default
|
|
91
|
+
React__default.createElement(
|
|
102
92
|
'picture',
|
|
103
93
|
null,
|
|
104
|
-
React__default
|
|
105
|
-
React__default
|
|
106
|
-
React__default
|
|
107
|
-
React__default
|
|
94
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
95
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
96
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
97
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
108
98
|
),
|
|
109
|
-
slide.caption && React__default
|
|
99
|
+
slide.caption && React__default.createElement(
|
|
110
100
|
'p',
|
|
111
101
|
{ className: 'p-2' },
|
|
112
102
|
slide.caption
|
|
@@ -117,18 +107,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
117
107
|
);
|
|
118
108
|
};
|
|
119
109
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
110
|
+
var isArray = Array.isArray;
|
|
111
|
+
var keyList = Object.keys;
|
|
112
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
123
113
|
|
|
124
114
|
var fastDeepEqual = function equal(a, b) {
|
|
125
115
|
if (a === b) return true;
|
|
126
116
|
|
|
127
117
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
128
|
-
|
|
118
|
+
var arrA = isArray(a)
|
|
119
|
+
, arrB = isArray(b)
|
|
120
|
+
, i
|
|
121
|
+
, length
|
|
122
|
+
, key;
|
|
129
123
|
|
|
130
|
-
|
|
131
|
-
if (Array.isArray(a)) {
|
|
124
|
+
if (arrA && arrB) {
|
|
132
125
|
length = a.length;
|
|
133
126
|
if (length != b.length) return false;
|
|
134
127
|
for (i = length; i-- !== 0;)
|
|
@@ -136,29 +129,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
136
129
|
return true;
|
|
137
130
|
}
|
|
138
131
|
|
|
132
|
+
if (arrA != arrB) return false;
|
|
139
133
|
|
|
134
|
+
var dateA = a instanceof Date
|
|
135
|
+
, dateB = b instanceof Date;
|
|
136
|
+
if (dateA != dateB) return false;
|
|
137
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
140
138
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
if (
|
|
139
|
+
var regexpA = a instanceof RegExp
|
|
140
|
+
, regexpB = b instanceof RegExp;
|
|
141
|
+
if (regexpA != regexpB) return false;
|
|
142
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
144
143
|
|
|
145
|
-
keys =
|
|
144
|
+
var keys = keyList(a);
|
|
146
145
|
length = keys.length;
|
|
147
|
-
|
|
146
|
+
|
|
147
|
+
if (length !== keyList(b).length)
|
|
148
|
+
return false;
|
|
148
149
|
|
|
149
150
|
for (i = length; i-- !== 0;)
|
|
150
|
-
if (!
|
|
151
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
151
152
|
|
|
152
153
|
for (i = length; i-- !== 0;) {
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
key = keys[i];
|
|
155
155
|
if (!equal(a[key], b[key])) return false;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
return true;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// true if both NaN, false otherwise
|
|
162
161
|
return a!==a && b!==b;
|
|
163
162
|
};
|
|
164
163
|
|
|
@@ -1581,239 +1580,199 @@ module.exports = exports['default'];
|
|
|
1581
1580
|
|
|
1582
1581
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1583
1582
|
|
|
1584
|
-
function
|
|
1585
|
-
|
|
1586
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1587
|
-
|
|
1588
|
-
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); } }
|
|
1589
|
-
|
|
1590
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1591
|
-
|
|
1592
|
-
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); }
|
|
1593
|
-
|
|
1594
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1595
|
-
|
|
1596
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1583
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1597
1584
|
|
|
1598
|
-
function
|
|
1599
|
-
|
|
1600
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1585
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1601
1586
|
|
|
1602
|
-
function
|
|
1603
|
-
|
|
1604
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1587
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1605
1588
|
|
|
1606
|
-
function
|
|
1589
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1607
1590
|
|
|
1608
|
-
function
|
|
1591
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1609
1592
|
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
*
|
|
1613
|
-
*
|
|
1614
|
-
* @param {Object}
|
|
1615
|
-
* @param {Object} props
|
|
1593
|
+
/**
|
|
1594
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1595
|
+
*
|
|
1596
|
+
* @param {Object} prevProps
|
|
1597
|
+
* @param {Object} props
|
|
1616
1598
|
*/
|
|
1617
|
-
|
|
1618
1599
|
function shouldUpdateVideo(prevProps, props) {
|
|
1619
1600
|
// A changing video should always trigger an update
|
|
1620
1601
|
if (prevProps.videoId !== props.videoId) {
|
|
1621
1602
|
return true;
|
|
1622
|
-
}
|
|
1623
|
-
// update.
|
|
1624
|
-
|
|
1603
|
+
}
|
|
1625
1604
|
|
|
1605
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1606
|
+
// update.
|
|
1626
1607
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1627
1608
|
var vars = props.opts.playerVars || {};
|
|
1609
|
+
|
|
1628
1610
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1629
1611
|
}
|
|
1630
|
-
/**
|
|
1631
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1632
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1633
|
-
* player reset is necessary.
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object} opts
|
|
1636
|
-
*/
|
|
1637
|
-
|
|
1638
1612
|
|
|
1613
|
+
/**
|
|
1614
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1615
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
+
* player reset is necessary.
|
|
1617
|
+
*
|
|
1618
|
+
* @param {Object} opts
|
|
1619
|
+
*/
|
|
1639
1620
|
function filterResetOptions(opts) {
|
|
1640
|
-
return
|
|
1641
|
-
playerVars:
|
|
1621
|
+
return _extends({}, opts, {
|
|
1622
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1642
1623
|
autoplay: 0,
|
|
1643
1624
|
start: 0,
|
|
1644
1625
|
end: 0
|
|
1645
|
-
}
|
|
1626
|
+
})
|
|
1646
1627
|
});
|
|
1647
1628
|
}
|
|
1648
|
-
/**
|
|
1649
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1650
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1651
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1652
|
-
* those.
|
|
1653
|
-
*
|
|
1654
|
-
* @param {Object} prevProps
|
|
1655
|
-
* @param {Object} props
|
|
1656
|
-
*/
|
|
1657
|
-
|
|
1658
1629
|
|
|
1630
|
+
/**
|
|
1631
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1632
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1633
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1634
|
+
* those.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {Object} prevProps
|
|
1637
|
+
* @param {Object} props
|
|
1638
|
+
*/
|
|
1659
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1660
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1661
1641
|
}
|
|
1662
|
-
/**
|
|
1663
|
-
* Check whether a props change should result in an id or className update.
|
|
1664
|
-
*
|
|
1665
|
-
* @param {Object} prevProps
|
|
1666
|
-
* @param {Object} props
|
|
1667
|
-
*/
|
|
1668
|
-
|
|
1669
1642
|
|
|
1643
|
+
/**
|
|
1644
|
+
* Check whether a props change should result in an id or className update.
|
|
1645
|
+
*
|
|
1646
|
+
* @param {Object} prevProps
|
|
1647
|
+
* @param {Object} props
|
|
1648
|
+
*/
|
|
1670
1649
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1671
1650
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1672
1651
|
}
|
|
1673
1652
|
|
|
1674
|
-
var YouTube =
|
|
1653
|
+
var YouTube = function (_React$Component) {
|
|
1675
1654
|
_inherits(YouTube, _React$Component);
|
|
1676
1655
|
|
|
1677
|
-
var _super = _createSuper(YouTube);
|
|
1678
|
-
|
|
1679
|
-
/**
|
|
1680
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1681
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1682
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1683
|
-
*/
|
|
1684
1656
|
function YouTube(props) {
|
|
1685
|
-
var _this;
|
|
1686
|
-
|
|
1687
1657
|
_classCallCheck(this, YouTube);
|
|
1688
1658
|
|
|
1689
|
-
_this =
|
|
1659
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1690
1660
|
|
|
1691
|
-
|
|
1661
|
+
_this.onPlayerReady = function (event) {
|
|
1692
1662
|
return _this.props.onReady(event);
|
|
1693
|
-
}
|
|
1663
|
+
};
|
|
1694
1664
|
|
|
1695
|
-
|
|
1665
|
+
_this.onPlayerError = function (event) {
|
|
1696
1666
|
return _this.props.onError(event);
|
|
1697
|
-
}
|
|
1667
|
+
};
|
|
1698
1668
|
|
|
1699
|
-
|
|
1669
|
+
_this.onPlayerStateChange = function (event) {
|
|
1700
1670
|
_this.props.onStateChange(event);
|
|
1701
|
-
|
|
1702
1671
|
switch (event.data) {
|
|
1672
|
+
|
|
1703
1673
|
case YouTube.PlayerState.ENDED:
|
|
1704
1674
|
_this.props.onEnd(event);
|
|
1705
|
-
|
|
1706
1675
|
break;
|
|
1707
1676
|
|
|
1708
1677
|
case YouTube.PlayerState.PLAYING:
|
|
1709
1678
|
_this.props.onPlay(event);
|
|
1710
|
-
|
|
1711
1679
|
break;
|
|
1712
1680
|
|
|
1713
1681
|
case YouTube.PlayerState.PAUSED:
|
|
1714
1682
|
_this.props.onPause(event);
|
|
1715
|
-
|
|
1716
1683
|
break;
|
|
1717
1684
|
}
|
|
1718
|
-
}
|
|
1685
|
+
};
|
|
1719
1686
|
|
|
1720
|
-
|
|
1687
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1721
1688
|
return _this.props.onPlaybackRateChange(event);
|
|
1722
|
-
}
|
|
1689
|
+
};
|
|
1723
1690
|
|
|
1724
|
-
|
|
1691
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1725
1692
|
return _this.props.onPlaybackQualityChange(event);
|
|
1726
|
-
}
|
|
1693
|
+
};
|
|
1727
1694
|
|
|
1728
|
-
|
|
1695
|
+
_this.createPlayer = function () {
|
|
1729
1696
|
// do not attempt to create a player server-side, it won't work
|
|
1730
|
-
if (typeof document === 'undefined') return;
|
|
1731
|
-
|
|
1732
|
-
var playerOpts =
|
|
1697
|
+
if (typeof document === 'undefined') return;
|
|
1698
|
+
// create player
|
|
1699
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1733
1700
|
// preload the `videoId` video if one is already given
|
|
1734
1701
|
videoId: _this.props.videoId
|
|
1735
1702
|
});
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1703
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1704
|
+
// attach event handlers
|
|
1739
1705
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1740
|
-
|
|
1741
1706
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1742
|
-
|
|
1743
1707
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1744
|
-
|
|
1745
1708
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1746
|
-
|
|
1747
1709
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1748
|
-
}
|
|
1710
|
+
};
|
|
1749
1711
|
|
|
1750
|
-
|
|
1712
|
+
_this.resetPlayer = function () {
|
|
1751
1713
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1752
|
-
}
|
|
1714
|
+
};
|
|
1753
1715
|
|
|
1754
|
-
|
|
1716
|
+
_this.updatePlayer = function () {
|
|
1755
1717
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1756
1718
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1757
1719
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1758
1720
|
});
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1762
|
-
return _this.internalPlayer;
|
|
1763
|
-
});
|
|
1721
|
+
};
|
|
1764
1722
|
|
|
1765
|
-
|
|
1723
|
+
_this.updateVideo = function () {
|
|
1766
1724
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1767
1725
|
_this.internalPlayer.stopVideo();
|
|
1768
|
-
|
|
1769
1726
|
return;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1727
|
+
}
|
|
1772
1728
|
|
|
1729
|
+
// set queueing options
|
|
1773
1730
|
var autoplay = false;
|
|
1774
1731
|
var opts = {
|
|
1775
1732
|
videoId: _this.props.videoId
|
|
1776
1733
|
};
|
|
1777
|
-
|
|
1778
1734
|
if ('playerVars' in _this.props.opts) {
|
|
1779
1735
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1780
|
-
|
|
1781
1736
|
if ('start' in _this.props.opts.playerVars) {
|
|
1782
1737
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1783
1738
|
}
|
|
1784
|
-
|
|
1785
1739
|
if ('end' in _this.props.opts.playerVars) {
|
|
1786
1740
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1787
1741
|
}
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1742
|
+
}
|
|
1790
1743
|
|
|
1744
|
+
// if autoplay is enabled loadVideoById
|
|
1791
1745
|
if (autoplay) {
|
|
1792
1746
|
_this.internalPlayer.loadVideoById(opts);
|
|
1793
|
-
|
|
1794
1747
|
return;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1748
|
+
}
|
|
1749
|
+
// default behaviour just cues the video
|
|
1798
1750
|
_this.internalPlayer.cueVideoById(opts);
|
|
1799
|
-
}
|
|
1751
|
+
};
|
|
1800
1752
|
|
|
1801
|
-
|
|
1753
|
+
_this.refContainer = function (container) {
|
|
1802
1754
|
_this.container = container;
|
|
1803
|
-
}
|
|
1755
|
+
};
|
|
1804
1756
|
|
|
1805
1757
|
_this.container = null;
|
|
1806
1758
|
_this.internalPlayer = null;
|
|
1807
1759
|
return _this;
|
|
1808
1760
|
}
|
|
1809
1761
|
|
|
1762
|
+
/**
|
|
1763
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1764
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1765
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1766
|
+
*/
|
|
1767
|
+
|
|
1768
|
+
|
|
1810
1769
|
_createClass(YouTube, [{
|
|
1811
|
-
key:
|
|
1770
|
+
key: 'componentDidMount',
|
|
1812
1771
|
value: function componentDidMount() {
|
|
1813
1772
|
this.createPlayer();
|
|
1814
1773
|
}
|
|
1815
1774
|
}, {
|
|
1816
|
-
key:
|
|
1775
|
+
key: 'componentDidUpdate',
|
|
1817
1776
|
value: function componentDidUpdate(prevProps) {
|
|
1818
1777
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1819
1778
|
this.updatePlayer();
|
|
@@ -1828,70 +1787,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1828
1787
|
}
|
|
1829
1788
|
}
|
|
1830
1789
|
}, {
|
|
1831
|
-
key:
|
|
1790
|
+
key: 'componentWillUnmount',
|
|
1832
1791
|
value: function componentWillUnmount() {
|
|
1833
|
-
/**
|
|
1834
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1835
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1836
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1837
|
-
* this method isn't quick enough to reset the container element.
|
|
1792
|
+
/**
|
|
1793
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1794
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1795
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1796
|
+
* this method isn't quick enough to reset the container element.
|
|
1838
1797
|
*/
|
|
1839
1798
|
this.internalPlayer.destroy();
|
|
1840
1799
|
}
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1803
|
+
*
|
|
1804
|
+
* @param {Object} event
|
|
1805
|
+
* @param {Object} target - player object
|
|
1806
|
+
*/
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1811
|
+
*
|
|
1812
|
+
* @param {Object} event
|
|
1813
|
+
* @param {Integer} data - error type
|
|
1814
|
+
* @param {Object} target - player object
|
|
1815
|
+
*/
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1820
|
+
*
|
|
1821
|
+
* @param {Object} event
|
|
1822
|
+
* @param {Integer} data - status change type
|
|
1823
|
+
* @param {Object} target - actual YT player
|
|
1824
|
+
*/
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1829
|
+
*
|
|
1830
|
+
* @param {Object} event
|
|
1831
|
+
* @param {Float} data - playback rate
|
|
1832
|
+
* @param {Object} target - actual YT player
|
|
1833
|
+
*/
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1838
|
+
*
|
|
1839
|
+
* @param {Object} event
|
|
1840
|
+
* @param {String} data - playback quality
|
|
1841
|
+
* @param {Object} target - actual YT player
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1847
|
+
*/
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1857
|
+
* React should update this automatically but since the Youtube Player API
|
|
1858
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1859
|
+
*/
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1864
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1865
|
+
* Youtube Player API methods to update the video.
|
|
1846
1866
|
*/
|
|
1847
1867
|
|
|
1848
1868
|
}, {
|
|
1849
|
-
key:
|
|
1869
|
+
key: 'render',
|
|
1850
1870
|
value: function render() {
|
|
1851
|
-
return
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
id: this.props.id,
|
|
1855
|
-
|
|
1856
|
-
ref: this.refContainer
|
|
1857
|
-
}));
|
|
1871
|
+
return React__default.createElement(
|
|
1872
|
+
'div',
|
|
1873
|
+
{ className: this.props.containerClassName },
|
|
1874
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1875
|
+
);
|
|
1858
1876
|
}
|
|
1859
1877
|
}]);
|
|
1860
1878
|
|
|
1861
1879
|
return YouTube;
|
|
1862
|
-
}(React__default
|
|
1863
|
-
|
|
1864
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1865
|
-
UNSTARTED: -1,
|
|
1866
|
-
ENDED: 0,
|
|
1867
|
-
PLAYING: 1,
|
|
1868
|
-
PAUSED: 2,
|
|
1869
|
-
BUFFERING: 3,
|
|
1870
|
-
CUED: 5
|
|
1871
|
-
});
|
|
1880
|
+
}(React__default.Component);
|
|
1872
1881
|
|
|
1873
1882
|
YouTube.propTypes = {
|
|
1874
|
-
videoId: PropTypes__default
|
|
1883
|
+
videoId: PropTypes__default.string,
|
|
1884
|
+
|
|
1875
1885
|
// custom ID for player element
|
|
1876
|
-
id: PropTypes__default
|
|
1886
|
+
id: PropTypes__default.string,
|
|
1887
|
+
|
|
1877
1888
|
// custom class name for player element
|
|
1878
|
-
className: PropTypes__default
|
|
1889
|
+
className: PropTypes__default.string,
|
|
1879
1890
|
// custom class name for player container element
|
|
1880
|
-
containerClassName: PropTypes__default
|
|
1891
|
+
containerClassName: PropTypes__default.string,
|
|
1892
|
+
|
|
1881
1893
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1882
|
-
opts: PropTypes__default
|
|
1894
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1895
|
+
|
|
1883
1896
|
// event subscriptions
|
|
1884
|
-
onReady: PropTypes__default
|
|
1885
|
-
onError: PropTypes__default
|
|
1886
|
-
onPlay: PropTypes__default
|
|
1887
|
-
onPause: PropTypes__default
|
|
1888
|
-
onEnd: PropTypes__default
|
|
1889
|
-
onStateChange: PropTypes__default
|
|
1890
|
-
onPlaybackRateChange: PropTypes__default
|
|
1891
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1897
|
+
onReady: PropTypes__default.func,
|
|
1898
|
+
onError: PropTypes__default.func,
|
|
1899
|
+
onPlay: PropTypes__default.func,
|
|
1900
|
+
onPause: PropTypes__default.func,
|
|
1901
|
+
onEnd: PropTypes__default.func,
|
|
1902
|
+
onStateChange: PropTypes__default.func,
|
|
1903
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1904
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1892
1905
|
};
|
|
1893
1906
|
YouTube.defaultProps = {
|
|
1894
|
-
videoId: null,
|
|
1895
1907
|
id: null,
|
|
1896
1908
|
className: null,
|
|
1897
1909
|
opts: {},
|
|
@@ -1905,12 +1917,20 @@ YouTube.defaultProps = {
|
|
|
1905
1917
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1906
1918
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1907
1919
|
};
|
|
1920
|
+
YouTube.PlayerState = {
|
|
1921
|
+
UNSTARTED: -1,
|
|
1922
|
+
ENDED: 0,
|
|
1923
|
+
PLAYING: 1,
|
|
1924
|
+
PAUSED: 2,
|
|
1925
|
+
BUFFERING: 3,
|
|
1926
|
+
CUED: 5
|
|
1927
|
+
};
|
|
1908
1928
|
|
|
1909
1929
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1910
1930
|
var url = _ref.url,
|
|
1911
1931
|
autoplay = _ref.autoplay;
|
|
1912
1932
|
|
|
1913
|
-
var id = index$
|
|
1933
|
+
var id = index$3.getYoutubeId(url);
|
|
1914
1934
|
|
|
1915
1935
|
var _useState = React.useState(false),
|
|
1916
1936
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -2006,11 +2026,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2006
2026
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2007
2027
|
};
|
|
2008
2028
|
|
|
2009
|
-
return React__default
|
|
2029
|
+
return React__default.createElement(
|
|
2010
2030
|
'div',
|
|
2011
2031
|
{ id: 'fluid-video-container' },
|
|
2012
|
-
React__default
|
|
2013
|
-
React__default
|
|
2032
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2033
|
+
React__default.createElement(
|
|
2014
2034
|
'style',
|
|
2015
2035
|
{ jsx: 'true' },
|
|
2016
2036
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2023,20 +2043,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2023
2043
|
content = _ref.content,
|
|
2024
2044
|
getSerializers = _ref.getSerializers;
|
|
2025
2045
|
|
|
2026
|
-
return React__default
|
|
2046
|
+
return React__default.createElement(
|
|
2027
2047
|
'article',
|
|
2028
2048
|
{ className: 'sidebar' },
|
|
2029
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2030
2050
|
'div',
|
|
2031
2051
|
null,
|
|
2032
|
-
React__default
|
|
2052
|
+
React__default.createElement(
|
|
2033
2053
|
'h3',
|
|
2034
2054
|
null,
|
|
2035
2055
|
caption
|
|
2036
2056
|
),
|
|
2037
|
-
React__default
|
|
2057
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2038
2058
|
),
|
|
2039
|
-
React__default
|
|
2059
|
+
React__default.createElement(
|
|
2040
2060
|
'style',
|
|
2041
2061
|
{ jsx: 'true' },
|
|
2042
2062
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2047,18 +2067,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2047
2067
|
var TableShow = function TableShow(_ref) {
|
|
2048
2068
|
var rows = _ref.rows;
|
|
2049
2069
|
|
|
2050
|
-
return React__default
|
|
2070
|
+
return React__default.createElement(
|
|
2051
2071
|
reactBootstrap.Table,
|
|
2052
2072
|
{ bordered: true, hover: true, responsive: true },
|
|
2053
|
-
React__default
|
|
2073
|
+
React__default.createElement(
|
|
2054
2074
|
'tbody',
|
|
2055
2075
|
null,
|
|
2056
2076
|
rows && rows.map(function (row) {
|
|
2057
|
-
return React__default
|
|
2077
|
+
return React__default.createElement(
|
|
2058
2078
|
'tr',
|
|
2059
2079
|
{ key: row._key },
|
|
2060
2080
|
row.cells && row.cells.map(function (cell, index) {
|
|
2061
|
-
return cell && React__default
|
|
2081
|
+
return cell && React__default.createElement(
|
|
2062
2082
|
'td',
|
|
2063
2083
|
{ key: index },
|
|
2064
2084
|
cell
|
|
@@ -2156,25 +2176,25 @@ var Media = function Media(_ref) {
|
|
|
2156
2176
|
margin: imageMargin
|
|
2157
2177
|
};
|
|
2158
2178
|
|
|
2159
|
-
return React__default
|
|
2179
|
+
return React__default.createElement(
|
|
2160
2180
|
reactBootstrap.Figure,
|
|
2161
2181
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2162
|
-
React__default
|
|
2182
|
+
React__default.createElement(
|
|
2163
2183
|
'a',
|
|
2164
2184
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2165
|
-
React__default
|
|
2185
|
+
React__default.createElement(
|
|
2166
2186
|
index$2.LazyLoad,
|
|
2167
2187
|
{ once: true },
|
|
2168
|
-
React__default
|
|
2188
|
+
React__default.createElement(
|
|
2169
2189
|
'picture',
|
|
2170
2190
|
null,
|
|
2171
|
-
React__default
|
|
2172
|
-
React__default
|
|
2173
|
-
React__default
|
|
2174
|
-
React__default
|
|
2191
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2192
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2193
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2194
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2175
2195
|
)
|
|
2176
2196
|
),
|
|
2177
|
-
caption && React__default
|
|
2197
|
+
caption && React__default.createElement(
|
|
2178
2198
|
reactBootstrap.Figure.Caption,
|
|
2179
2199
|
{ className: 'media-caption' },
|
|
2180
2200
|
caption
|
|
@@ -2182,9 +2202,9 @@ var Media = function Media(_ref) {
|
|
|
2182
2202
|
)
|
|
2183
2203
|
);
|
|
2184
2204
|
} else if (caption && caption !== '') {
|
|
2185
|
-
return React__default
|
|
2205
|
+
return React__default.createElement(
|
|
2186
2206
|
'a',
|
|
2187
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2207
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2188
2208
|
href: uploadDoc.asset.url + '?dl='
|
|
2189
2209
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2190
2210
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2202,10 +2222,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2202
2222
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2203
2223
|
|
|
2204
2224
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2205
|
-
return React__default
|
|
2225
|
+
return React__default.createElement(
|
|
2206
2226
|
'div',
|
|
2207
2227
|
{ className: 'd-block text-center mb-3' },
|
|
2208
|
-
React__default
|
|
2228
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2209
2229
|
);
|
|
2210
2230
|
};
|
|
2211
2231
|
|
|
@@ -2300,10 +2320,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2300
2320
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2301
2321
|
};
|
|
2302
2322
|
|
|
2303
|
-
return React__default
|
|
2323
|
+
return React__default.createElement(
|
|
2304
2324
|
'div',
|
|
2305
2325
|
null,
|
|
2306
|
-
vidLoaded && React__default
|
|
2326
|
+
vidLoaded && React__default.createElement(
|
|
2307
2327
|
'video',
|
|
2308
2328
|
{
|
|
2309
2329
|
poster: thumbnail || '',
|
|
@@ -2321,7 +2341,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2321
2341
|
onPlay: function onPlay(e) {
|
|
2322
2342
|
return handleOnPlay(e);
|
|
2323
2343
|
} },
|
|
2324
|
-
React__default
|
|
2344
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2325
2345
|
'Your browser does not support the video tag.'
|
|
2326
2346
|
)
|
|
2327
2347
|
);
|
|
@@ -2358,7 +2378,7 @@ var Video = function Video(_ref) {
|
|
|
2358
2378
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2359
2379
|
//console.log('success:', success.ref)
|
|
2360
2380
|
var player = success.ref;
|
|
2361
|
-
if (_typeof
|
|
2381
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2362
2382
|
player.ima3.settings.debug = true;
|
|
2363
2383
|
if (targeting.content_placement && targeting.document_url) {
|
|
2364
2384
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2456,53 +2476,53 @@ var Video = function Video(_ref) {
|
|
|
2456
2476
|
|
|
2457
2477
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2458
2478
|
if (videoID) {
|
|
2459
|
-
return React__default
|
|
2479
|
+
return React__default.createElement(
|
|
2460
2480
|
'div',
|
|
2461
2481
|
null,
|
|
2462
|
-
React__default
|
|
2482
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2463
2483
|
onSuccess: onVideoSuccess,
|
|
2464
2484
|
accountId: accountIDs.brightcove.accountId,
|
|
2465
2485
|
videoId: videoID,
|
|
2466
2486
|
playerId: accountIDs.brightcove.playerId,
|
|
2467
2487
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2468
2488
|
}),
|
|
2469
|
-
React__default
|
|
2489
|
+
React__default.createElement(
|
|
2470
2490
|
'style',
|
|
2471
2491
|
{ jsx: 'true' },
|
|
2472
2492
|
'\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 '
|
|
2473
2493
|
)
|
|
2474
2494
|
);
|
|
2475
2495
|
} else if (playlistID) {
|
|
2476
|
-
return React__default
|
|
2496
|
+
return React__default.createElement(
|
|
2477
2497
|
'div',
|
|
2478
2498
|
null,
|
|
2479
|
-
React__default
|
|
2499
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2480
2500
|
accountId: accountIDs.brightcove.accountId,
|
|
2481
2501
|
playlistId: playlistID,
|
|
2482
2502
|
playerId: accountIDs.brightcove.playerId,
|
|
2483
2503
|
onSuccess: onVideoSuccess,
|
|
2484
2504
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2485
2505
|
}),
|
|
2486
|
-
React__default
|
|
2506
|
+
React__default.createElement(
|
|
2487
2507
|
'style',
|
|
2488
2508
|
{ jsx: 'true' },
|
|
2489
2509
|
'\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 '
|
|
2490
2510
|
)
|
|
2491
2511
|
);
|
|
2492
2512
|
} else if (experienceID) {
|
|
2493
|
-
return React__default
|
|
2513
|
+
return React__default.createElement(
|
|
2494
2514
|
'div',
|
|
2495
2515
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2496
|
-
videoLoaded && React__default
|
|
2516
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2497
2517
|
);
|
|
2498
2518
|
}
|
|
2499
2519
|
return null;
|
|
2500
2520
|
}
|
|
2501
2521
|
if (source === 'mp4') {
|
|
2502
|
-
return React__default
|
|
2522
|
+
return React__default.createElement(
|
|
2503
2523
|
'div',
|
|
2504
2524
|
null,
|
|
2505
|
-
React__default
|
|
2525
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2506
2526
|
);
|
|
2507
2527
|
}
|
|
2508
2528
|
|
|
@@ -2517,7 +2537,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2517
2537
|
});
|
|
2518
2538
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2519
2539
|
|
|
2520
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2540
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2521
2541
|
|
|
2522
2542
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2523
2543
|
|
|
@@ -2880,17 +2900,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2880
2900
|
|
|
2881
2901
|
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; }
|
|
2882
2902
|
|
|
2883
|
-
function
|
|
2903
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2884
2904
|
|
|
2885
|
-
function
|
|
2905
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2886
2906
|
|
|
2887
|
-
function
|
|
2888
|
-
|
|
2889
|
-
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); }
|
|
2890
|
-
|
|
2891
|
-
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; }
|
|
2892
|
-
|
|
2893
|
-
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; }
|
|
2907
|
+
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; }
|
|
2894
2908
|
|
|
2895
2909
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2896
2910
|
|
|
@@ -3020,12 +3034,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3020
3034
|
|
|
3021
3035
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3022
3036
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3023
|
-
|
|
3024
|
-
var
|
|
3025
|
-
|
|
3037
|
+
var _iteratorNormalCompletion = true;
|
|
3038
|
+
var _didIteratorError = false;
|
|
3039
|
+
var _iteratorError = undefined;
|
|
3026
3040
|
|
|
3027
3041
|
try {
|
|
3028
|
-
for (_iterator.
|
|
3042
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3029
3043
|
var p = _step.value;
|
|
3030
3044
|
|
|
3031
3045
|
if (props$1[p]) {
|
|
@@ -3040,9 +3054,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3040
3054
|
}
|
|
3041
3055
|
}
|
|
3042
3056
|
} catch (err) {
|
|
3043
|
-
|
|
3057
|
+
_didIteratorError = true;
|
|
3058
|
+
_iteratorError = err;
|
|
3044
3059
|
} finally {
|
|
3045
|
-
|
|
3060
|
+
try {
|
|
3061
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3062
|
+
_iterator["return"]();
|
|
3063
|
+
}
|
|
3064
|
+
} finally {
|
|
3065
|
+
if (_didIteratorError) {
|
|
3066
|
+
throw _iteratorError;
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3046
3069
|
}
|
|
3047
3070
|
|
|
3048
3071
|
return config;
|
|
@@ -3107,7 +3130,7 @@ function isEqual(a, b) {
|
|
|
3107
3130
|
return true;
|
|
3108
3131
|
}
|
|
3109
3132
|
|
|
3110
|
-
if ((0, React__default
|
|
3133
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3111
3134
|
return true;
|
|
3112
3135
|
}
|
|
3113
3136
|
|
|
@@ -3169,7 +3192,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3169
3192
|
});
|
|
3170
3193
|
exports["default"] = void 0;
|
|
3171
3194
|
|
|
3172
|
-
var _react = _interopRequireWildcard(React__default
|
|
3195
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3173
3196
|
|
|
3174
3197
|
|
|
3175
3198
|
|
|
@@ -3189,16 +3212,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3189
3212
|
|
|
3190
3213
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3191
3214
|
|
|
3192
|
-
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); }; }
|
|
3193
|
-
|
|
3194
3215
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3195
3216
|
|
|
3196
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3197
|
-
|
|
3198
|
-
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; } }
|
|
3199
|
-
|
|
3200
3217
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3201
3218
|
|
|
3219
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3220
|
+
|
|
3202
3221
|
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); }
|
|
3203
3222
|
|
|
3204
3223
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3207,12 +3226,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3207
3226
|
|
|
3208
3227
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3209
3228
|
|
|
3210
|
-
var Player =
|
|
3229
|
+
var Player =
|
|
3230
|
+
/*#__PURE__*/
|
|
3231
|
+
function (_Component) {
|
|
3211
3232
|
_inherits(Player, _Component);
|
|
3212
3233
|
|
|
3213
|
-
var _super = _createSuper(Player);
|
|
3214
|
-
|
|
3215
3234
|
function Player() {
|
|
3235
|
+
var _getPrototypeOf2;
|
|
3236
|
+
|
|
3216
3237
|
var _this;
|
|
3217
3238
|
|
|
3218
3239
|
_classCallCheck(this, Player);
|
|
@@ -3221,7 +3242,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3221
3242
|
_args[_key] = arguments[_key];
|
|
3222
3243
|
}
|
|
3223
3244
|
|
|
3224
|
-
_this =
|
|
3245
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3225
3246
|
|
|
3226
3247
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3227
3248
|
|
|
@@ -3546,7 +3567,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3546
3567
|
return null;
|
|
3547
3568
|
}
|
|
3548
3569
|
|
|
3549
|
-
return
|
|
3570
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3550
3571
|
ref: this.ref,
|
|
3551
3572
|
onReady: this.handleReady,
|
|
3552
3573
|
onPlay: this.handlePlay,
|
|
@@ -3579,7 +3600,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3579
3600
|
});
|
|
3580
3601
|
exports["default"] = createSinglePlayer;
|
|
3581
3602
|
|
|
3582
|
-
var _react = _interopRequireWildcard(React__default
|
|
3603
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3583
3604
|
|
|
3584
3605
|
|
|
3585
3606
|
|
|
@@ -3607,16 +3628,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3607
3628
|
|
|
3608
3629
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3609
3630
|
|
|
3610
|
-
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); }; }
|
|
3611
|
-
|
|
3612
3631
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3613
3632
|
|
|
3614
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3615
|
-
|
|
3616
|
-
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; } }
|
|
3617
|
-
|
|
3618
3633
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3619
3634
|
|
|
3635
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3636
|
+
|
|
3620
3637
|
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); }
|
|
3621
3638
|
|
|
3622
3639
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3628,12 +3645,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3628
3645
|
function createSinglePlayer(activePlayer) {
|
|
3629
3646
|
var _class, _temp;
|
|
3630
3647
|
|
|
3631
|
-
return _temp = _class =
|
|
3648
|
+
return _temp = _class =
|
|
3649
|
+
/*#__PURE__*/
|
|
3650
|
+
function (_Component) {
|
|
3632
3651
|
_inherits(SinglePlayer, _Component);
|
|
3633
3652
|
|
|
3634
|
-
var _super = _createSuper(SinglePlayer);
|
|
3635
|
-
|
|
3636
3653
|
function SinglePlayer() {
|
|
3654
|
+
var _getPrototypeOf2;
|
|
3655
|
+
|
|
3637
3656
|
var _this;
|
|
3638
3657
|
|
|
3639
3658
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3642,7 +3661,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3642
3661
|
args[_key] = arguments[_key];
|
|
3643
3662
|
}
|
|
3644
3663
|
|
|
3645
|
-
_this =
|
|
3664
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3646
3665
|
|
|
3647
3666
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3648
3667
|
|
|
@@ -3710,12 +3729,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3710
3729
|
height = _this$props.height,
|
|
3711
3730
|
Wrapper = _this$props.wrapper;
|
|
3712
3731
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3713
|
-
return
|
|
3732
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3714
3733
|
style: _objectSpread({}, style, {
|
|
3715
3734
|
width: width,
|
|
3716
3735
|
height: height
|
|
3717
3736
|
})
|
|
3718
|
-
}, otherProps),
|
|
3737
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3719
3738
|
ref: this.ref,
|
|
3720
3739
|
activePlayer: activePlayer,
|
|
3721
3740
|
config: this.config
|
|
@@ -3737,7 +3756,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3737
3756
|
});
|
|
3738
3757
|
exports["default"] = exports.YouTube = void 0;
|
|
3739
3758
|
|
|
3740
|
-
var _react = _interopRequireWildcard(React__default
|
|
3759
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3741
3760
|
|
|
3742
3761
|
|
|
3743
3762
|
|
|
@@ -3761,31 +3780,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3761
3780
|
|
|
3762
3781
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3763
3782
|
|
|
3764
|
-
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); }; }
|
|
3765
|
-
|
|
3766
3783
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3767
3784
|
|
|
3768
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3769
|
-
|
|
3770
|
-
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; } }
|
|
3771
|
-
|
|
3772
3785
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3773
3786
|
|
|
3787
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3788
|
+
|
|
3774
3789
|
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); }
|
|
3775
3790
|
|
|
3776
3791
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3777
3792
|
|
|
3778
3793
|
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; }
|
|
3779
3794
|
|
|
3780
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3795
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3781
3796
|
|
|
3782
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3797
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3783
3798
|
|
|
3784
|
-
function
|
|
3785
|
-
|
|
3786
|
-
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; }
|
|
3787
|
-
|
|
3788
|
-
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; }
|
|
3799
|
+
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; }
|
|
3789
3800
|
|
|
3790
3801
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3791
3802
|
|
|
@@ -3810,12 +3821,14 @@ function parsePlaylist(url) {
|
|
|
3810
3821
|
return {};
|
|
3811
3822
|
}
|
|
3812
3823
|
|
|
3813
|
-
var YouTube =
|
|
3824
|
+
var YouTube =
|
|
3825
|
+
/*#__PURE__*/
|
|
3826
|
+
function (_Component) {
|
|
3814
3827
|
_inherits(YouTube, _Component);
|
|
3815
3828
|
|
|
3816
|
-
var _super = _createSuper(YouTube);
|
|
3817
|
-
|
|
3818
3829
|
function YouTube() {
|
|
3830
|
+
var _getPrototypeOf2;
|
|
3831
|
+
|
|
3819
3832
|
var _this;
|
|
3820
3833
|
|
|
3821
3834
|
_classCallCheck(this, YouTube);
|
|
@@ -3824,7 +3837,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3824
3837
|
args[_key] = arguments[_key];
|
|
3825
3838
|
}
|
|
3826
3839
|
|
|
3827
|
-
_this =
|
|
3840
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3828
3841
|
|
|
3829
3842
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3830
3843
|
|
|
@@ -4012,9 +4025,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4012
4025
|
height: '100%',
|
|
4013
4026
|
display: display
|
|
4014
4027
|
};
|
|
4015
|
-
return
|
|
4028
|
+
return _react["default"].createElement("div", {
|
|
4016
4029
|
style: style
|
|
4017
|
-
},
|
|
4030
|
+
}, _react["default"].createElement("div", {
|
|
4018
4031
|
ref: this.ref
|
|
4019
4032
|
}));
|
|
4020
4033
|
}
|
|
@@ -4046,7 +4059,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4046
4059
|
});
|
|
4047
4060
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4048
4061
|
|
|
4049
|
-
var _react = _interopRequireWildcard(React__default
|
|
4062
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4050
4063
|
|
|
4051
4064
|
|
|
4052
4065
|
|
|
@@ -4070,16 +4083,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4070
4083
|
|
|
4071
4084
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4072
4085
|
|
|
4073
|
-
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); }; }
|
|
4074
|
-
|
|
4075
4086
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4076
4087
|
|
|
4077
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4078
|
-
|
|
4079
|
-
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; } }
|
|
4080
|
-
|
|
4081
4088
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4082
4089
|
|
|
4090
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4091
|
+
|
|
4083
4092
|
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); }
|
|
4084
4093
|
|
|
4085
4094
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4088,14 +4097,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4088
4097
|
|
|
4089
4098
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4090
4099
|
var SDK_GLOBAL = 'SC';
|
|
4091
|
-
var MATCH_URL = /(
|
|
4100
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4092
4101
|
|
|
4093
|
-
var SoundCloud =
|
|
4102
|
+
var SoundCloud =
|
|
4103
|
+
/*#__PURE__*/
|
|
4104
|
+
function (_Component) {
|
|
4094
4105
|
_inherits(SoundCloud, _Component);
|
|
4095
4106
|
|
|
4096
|
-
var _super = _createSuper(SoundCloud);
|
|
4097
|
-
|
|
4098
4107
|
function SoundCloud() {
|
|
4108
|
+
var _getPrototypeOf2;
|
|
4109
|
+
|
|
4099
4110
|
var _this;
|
|
4100
4111
|
|
|
4101
4112
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4104,7 +4115,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4104
4115
|
args[_key] = arguments[_key];
|
|
4105
4116
|
}
|
|
4106
4117
|
|
|
4107
|
-
_this =
|
|
4118
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4108
4119
|
|
|
4109
4120
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4110
4121
|
|
|
@@ -4225,7 +4236,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4225
4236
|
height: '100%',
|
|
4226
4237
|
display: display
|
|
4227
4238
|
};
|
|
4228
|
-
return
|
|
4239
|
+
return _react["default"].createElement("iframe", {
|
|
4229
4240
|
ref: this.ref,
|
|
4230
4241
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4231
4242
|
style: style,
|
|
@@ -4263,7 +4274,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4263
4274
|
});
|
|
4264
4275
|
exports["default"] = exports.Vimeo = void 0;
|
|
4265
4276
|
|
|
4266
|
-
var _react = _interopRequireWildcard(React__default
|
|
4277
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4267
4278
|
|
|
4268
4279
|
|
|
4269
4280
|
|
|
@@ -4287,16 +4298,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4287
4298
|
|
|
4288
4299
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4289
4300
|
|
|
4290
|
-
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); }; }
|
|
4291
|
-
|
|
4292
4301
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4293
4302
|
|
|
4294
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4295
|
-
|
|
4296
|
-
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; } }
|
|
4297
|
-
|
|
4298
4303
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4299
4304
|
|
|
4305
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4306
|
+
|
|
4300
4307
|
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); }
|
|
4301
4308
|
|
|
4302
4309
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4308,12 +4315,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4308
4315
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4309
4316
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4310
4317
|
|
|
4311
|
-
var Vimeo =
|
|
4318
|
+
var Vimeo =
|
|
4319
|
+
/*#__PURE__*/
|
|
4320
|
+
function (_Component) {
|
|
4312
4321
|
_inherits(Vimeo, _Component);
|
|
4313
4322
|
|
|
4314
|
-
var _super = _createSuper(Vimeo);
|
|
4315
|
-
|
|
4316
4323
|
function Vimeo() {
|
|
4324
|
+
var _getPrototypeOf2;
|
|
4325
|
+
|
|
4317
4326
|
var _this;
|
|
4318
4327
|
|
|
4319
4328
|
_classCallCheck(this, Vimeo);
|
|
@@ -4322,7 +4331,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4322
4331
|
args[_key] = arguments[_key];
|
|
4323
4332
|
}
|
|
4324
4333
|
|
|
4325
|
-
_this =
|
|
4334
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4326
4335
|
|
|
4327
4336
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4328
4337
|
|
|
@@ -4479,7 +4488,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4479
4488
|
overflow: 'hidden',
|
|
4480
4489
|
display: display
|
|
4481
4490
|
};
|
|
4482
|
-
return
|
|
4491
|
+
return _react["default"].createElement("div", {
|
|
4483
4492
|
key: this.props.url,
|
|
4484
4493
|
ref: this.ref,
|
|
4485
4494
|
style: style
|
|
@@ -4519,7 +4528,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4519
4528
|
});
|
|
4520
4529
|
exports["default"] = exports.Facebook = void 0;
|
|
4521
4530
|
|
|
4522
|
-
var _react = _interopRequireWildcard(React__default
|
|
4531
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4523
4532
|
|
|
4524
4533
|
|
|
4525
4534
|
|
|
@@ -4539,16 +4548,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4539
4548
|
|
|
4540
4549
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4541
4550
|
|
|
4542
|
-
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); }; }
|
|
4543
|
-
|
|
4544
4551
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4545
4552
|
|
|
4546
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4547
|
-
|
|
4548
|
-
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; } }
|
|
4549
|
-
|
|
4550
4553
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4551
4554
|
|
|
4555
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4556
|
+
|
|
4552
4557
|
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); }
|
|
4553
4558
|
|
|
4554
4559
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4561,12 +4566,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4561
4566
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4562
4567
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4563
4568
|
|
|
4564
|
-
var Facebook =
|
|
4569
|
+
var Facebook =
|
|
4570
|
+
/*#__PURE__*/
|
|
4571
|
+
function (_Component) {
|
|
4565
4572
|
_inherits(Facebook, _Component);
|
|
4566
4573
|
|
|
4567
|
-
var _super = _createSuper(Facebook);
|
|
4568
|
-
|
|
4569
4574
|
function Facebook() {
|
|
4575
|
+
var _getPrototypeOf2;
|
|
4576
|
+
|
|
4570
4577
|
var _this;
|
|
4571
4578
|
|
|
4572
4579
|
_classCallCheck(this, Facebook);
|
|
@@ -4575,7 +4582,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4575
4582
|
args[_key] = arguments[_key];
|
|
4576
4583
|
}
|
|
4577
4584
|
|
|
4578
|
-
_this =
|
|
4585
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4579
4586
|
|
|
4580
4587
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4581
4588
|
|
|
@@ -4691,7 +4698,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4691
4698
|
width: '100%',
|
|
4692
4699
|
height: '100%'
|
|
4693
4700
|
};
|
|
4694
|
-
return
|
|
4701
|
+
return _react["default"].createElement("div", {
|
|
4695
4702
|
style: style,
|
|
4696
4703
|
id: this.playerID,
|
|
4697
4704
|
className: "fb-video",
|
|
@@ -4731,7 +4738,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4731
4738
|
});
|
|
4732
4739
|
exports["default"] = exports.Streamable = void 0;
|
|
4733
4740
|
|
|
4734
|
-
var _react = _interopRequireWildcard(React__default
|
|
4741
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4735
4742
|
|
|
4736
4743
|
|
|
4737
4744
|
|
|
@@ -4751,16 +4758,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4751
4758
|
|
|
4752
4759
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4753
4760
|
|
|
4754
|
-
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); }; }
|
|
4755
|
-
|
|
4756
4761
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4757
4762
|
|
|
4758
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4759
|
-
|
|
4760
|
-
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; } }
|
|
4761
|
-
|
|
4762
4763
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4763
4764
|
|
|
4765
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4766
|
+
|
|
4764
4767
|
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); }
|
|
4765
4768
|
|
|
4766
4769
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4771,12 +4774,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4771
4774
|
var SDK_GLOBAL = 'playerjs';
|
|
4772
4775
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4773
4776
|
|
|
4774
|
-
var Streamable =
|
|
4777
|
+
var Streamable =
|
|
4778
|
+
/*#__PURE__*/
|
|
4779
|
+
function (_Component) {
|
|
4775
4780
|
_inherits(Streamable, _Component);
|
|
4776
4781
|
|
|
4777
|
-
var _super = _createSuper(Streamable);
|
|
4778
|
-
|
|
4779
4782
|
function Streamable() {
|
|
4783
|
+
var _getPrototypeOf2;
|
|
4784
|
+
|
|
4780
4785
|
var _this;
|
|
4781
4786
|
|
|
4782
4787
|
_classCallCheck(this, Streamable);
|
|
@@ -4785,7 +4790,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4785
4790
|
args[_key] = arguments[_key];
|
|
4786
4791
|
}
|
|
4787
4792
|
|
|
4788
|
-
_this =
|
|
4793
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4789
4794
|
|
|
4790
4795
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4791
4796
|
|
|
@@ -4905,7 +4910,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4905
4910
|
width: '100%',
|
|
4906
4911
|
height: '100%'
|
|
4907
4912
|
};
|
|
4908
|
-
return
|
|
4913
|
+
return _react["default"].createElement("iframe", {
|
|
4909
4914
|
ref: this.ref,
|
|
4910
4915
|
src: "https://streamable.com/o/".concat(id),
|
|
4911
4916
|
frameBorder: "0",
|
|
@@ -4942,7 +4947,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4942
4947
|
});
|
|
4943
4948
|
exports["default"] = exports.Wistia = void 0;
|
|
4944
4949
|
|
|
4945
|
-
var _react = _interopRequireWildcard(React__default
|
|
4950
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4946
4951
|
|
|
4947
4952
|
|
|
4948
4953
|
|
|
@@ -4966,16 +4971,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4966
4971
|
|
|
4967
4972
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4968
4973
|
|
|
4969
|
-
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); }; }
|
|
4970
|
-
|
|
4971
4974
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4972
4975
|
|
|
4973
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4974
|
-
|
|
4975
|
-
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; } }
|
|
4976
|
-
|
|
4977
4976
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4978
4977
|
|
|
4978
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4979
|
+
|
|
4979
4980
|
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); }
|
|
4980
4981
|
|
|
4981
4982
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4986,48 +4987,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4986
4987
|
var SDK_GLOBAL = 'Wistia';
|
|
4987
4988
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4988
4989
|
|
|
4989
|
-
var Wistia =
|
|
4990
|
+
var Wistia =
|
|
4991
|
+
/*#__PURE__*/
|
|
4992
|
+
function (_Component) {
|
|
4990
4993
|
_inherits(Wistia, _Component);
|
|
4991
4994
|
|
|
4992
|
-
var _super = _createSuper(Wistia);
|
|
4993
|
-
|
|
4994
4995
|
function Wistia() {
|
|
4996
|
+
var _getPrototypeOf2;
|
|
4997
|
+
|
|
4995
4998
|
var _this;
|
|
4996
4999
|
|
|
4997
5000
|
_classCallCheck(this, Wistia);
|
|
4998
5001
|
|
|
4999
|
-
for (var _len = arguments.length,
|
|
5000
|
-
|
|
5002
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5003
|
+
args[_key] = arguments[_key];
|
|
5001
5004
|
}
|
|
5002
5005
|
|
|
5003
|
-
_this =
|
|
5006
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5004
5007
|
|
|
5005
5008
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5006
5009
|
|
|
5007
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5008
|
-
var _this$props;
|
|
5009
|
-
|
|
5010
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5011
|
-
});
|
|
5012
|
-
|
|
5013
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5014
|
-
var _this$props2;
|
|
5015
|
-
|
|
5016
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5017
|
-
});
|
|
5018
|
-
|
|
5019
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5020
|
-
var _this$props3;
|
|
5021
|
-
|
|
5022
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5023
|
-
});
|
|
5024
|
-
|
|
5025
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5026
|
-
var _this$props4;
|
|
5027
|
-
|
|
5028
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5029
|
-
});
|
|
5030
|
-
|
|
5031
5010
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5032
5011
|
_this.callPlayer('mute');
|
|
5033
5012
|
});
|
|
@@ -5049,13 +5028,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5049
5028
|
value: function load(url) {
|
|
5050
5029
|
var _this2 = this;
|
|
5051
5030
|
|
|
5052
|
-
var _this$
|
|
5053
|
-
playing = _this$
|
|
5054
|
-
muted = _this$
|
|
5055
|
-
controls = _this$
|
|
5056
|
-
_onReady = _this$
|
|
5057
|
-
|
|
5058
|
-
|
|
5031
|
+
var _this$props = this.props,
|
|
5032
|
+
playing = _this$props.playing,
|
|
5033
|
+
muted = _this$props.muted,
|
|
5034
|
+
controls = _this$props.controls,
|
|
5035
|
+
_onReady = _this$props.onReady,
|
|
5036
|
+
onPlay = _this$props.onPlay,
|
|
5037
|
+
onPause = _this$props.onPause,
|
|
5038
|
+
onSeek = _this$props.onSeek,
|
|
5039
|
+
onEnded = _this$props.onEnded,
|
|
5040
|
+
config = _this$props.config,
|
|
5041
|
+
onError = _this$props.onError;
|
|
5059
5042
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5060
5043
|
window._wq = window._wq || [];
|
|
5061
5044
|
|
|
@@ -5072,28 +5055,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5072
5055
|
|
|
5073
5056
|
_this2.unbind();
|
|
5074
5057
|
|
|
5075
|
-
_this2.player.bind('play',
|
|
5058
|
+
_this2.player.bind('play', onPlay);
|
|
5076
5059
|
|
|
5077
|
-
_this2.player.bind('pause',
|
|
5060
|
+
_this2.player.bind('pause', onPause);
|
|
5078
5061
|
|
|
5079
|
-
_this2.player.bind('seek',
|
|
5062
|
+
_this2.player.bind('seek', onSeek);
|
|
5080
5063
|
|
|
5081
|
-
_this2.player.bind('end',
|
|
5064
|
+
_this2.player.bind('end', onEnded);
|
|
5082
5065
|
|
|
5083
5066
|
_onReady();
|
|
5084
5067
|
}
|
|
5085
5068
|
});
|
|
5086
5069
|
}, onError);
|
|
5087
5070
|
}
|
|
5088
|
-
}, {
|
|
5089
|
-
key: "unbind",
|
|
5090
|
-
value: function unbind() {
|
|
5091
|
-
this.player.unbind('play', this.onPlay);
|
|
5092
|
-
this.player.unbind('pause', this.onPause);
|
|
5093
|
-
this.player.unbind('seek', this.onSeek);
|
|
5094
|
-
this.player.unbind('end', this.onEnded);
|
|
5095
|
-
} // Proxy methods to prevent listener leaks
|
|
5096
|
-
|
|
5097
5071
|
}, {
|
|
5098
5072
|
key: "play",
|
|
5099
5073
|
value: function play() {
|
|
@@ -5104,6 +5078,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5104
5078
|
value: function pause() {
|
|
5105
5079
|
this.callPlayer('pause');
|
|
5106
5080
|
}
|
|
5081
|
+
}, {
|
|
5082
|
+
key: "unbind",
|
|
5083
|
+
value: function unbind() {
|
|
5084
|
+
var _this$props2 = this.props,
|
|
5085
|
+
onPlay = _this$props2.onPlay,
|
|
5086
|
+
onPause = _this$props2.onPause,
|
|
5087
|
+
onSeek = _this$props2.onSeek,
|
|
5088
|
+
onEnded = _this$props2.onEnded;
|
|
5089
|
+
this.player.unbind('play', onPlay);
|
|
5090
|
+
this.player.unbind('pause', onPause);
|
|
5091
|
+
this.player.unbind('seek', onSeek);
|
|
5092
|
+
this.player.unbind('end', onEnded);
|
|
5093
|
+
}
|
|
5107
5094
|
}, {
|
|
5108
5095
|
key: "stop",
|
|
5109
5096
|
value: function stop() {
|
|
@@ -5149,7 +5136,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5149
5136
|
width: '100%',
|
|
5150
5137
|
height: '100%'
|
|
5151
5138
|
};
|
|
5152
|
-
return
|
|
5139
|
+
return _react["default"].createElement("div", {
|
|
5153
5140
|
key: id,
|
|
5154
5141
|
className: className,
|
|
5155
5142
|
style: style
|
|
@@ -5185,7 +5172,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5185
5172
|
});
|
|
5186
5173
|
exports["default"] = exports.Twitch = void 0;
|
|
5187
5174
|
|
|
5188
|
-
var _react = _interopRequireWildcard(React__default
|
|
5175
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5189
5176
|
|
|
5190
5177
|
|
|
5191
5178
|
|
|
@@ -5209,16 +5196,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5209
5196
|
|
|
5210
5197
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5211
5198
|
|
|
5212
|
-
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); }; }
|
|
5213
|
-
|
|
5214
5199
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5215
5200
|
|
|
5216
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5217
|
-
|
|
5218
|
-
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; } }
|
|
5219
|
-
|
|
5220
5201
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5221
5202
|
|
|
5203
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5204
|
+
|
|
5222
5205
|
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); }
|
|
5223
5206
|
|
|
5224
5207
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5231,12 +5214,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5231
5214
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5232
5215
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5233
5216
|
|
|
5234
|
-
var Twitch =
|
|
5217
|
+
var Twitch =
|
|
5218
|
+
/*#__PURE__*/
|
|
5219
|
+
function (_Component) {
|
|
5235
5220
|
_inherits(Twitch, _Component);
|
|
5236
5221
|
|
|
5237
|
-
var _super = _createSuper(Twitch);
|
|
5238
|
-
|
|
5239
5222
|
function Twitch() {
|
|
5223
|
+
var _getPrototypeOf2;
|
|
5224
|
+
|
|
5240
5225
|
var _this;
|
|
5241
5226
|
|
|
5242
5227
|
_classCallCheck(this, Twitch);
|
|
@@ -5245,7 +5230,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5245
5230
|
args[_key] = arguments[_key];
|
|
5246
5231
|
}
|
|
5247
5232
|
|
|
5248
|
-
_this =
|
|
5233
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5249
5234
|
|
|
5250
5235
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5251
5236
|
|
|
@@ -5366,7 +5351,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5366
5351
|
width: '100%',
|
|
5367
5352
|
height: '100%'
|
|
5368
5353
|
};
|
|
5369
|
-
return
|
|
5354
|
+
return _react["default"].createElement("div", {
|
|
5370
5355
|
style: style,
|
|
5371
5356
|
id: this.playerID
|
|
5372
5357
|
});
|
|
@@ -5401,7 +5386,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5401
5386
|
});
|
|
5402
5387
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5403
5388
|
|
|
5404
|
-
var _react = _interopRequireWildcard(React__default
|
|
5389
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5405
5390
|
|
|
5406
5391
|
|
|
5407
5392
|
|
|
@@ -5419,15 +5404,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5419
5404
|
|
|
5420
5405
|
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; }
|
|
5421
5406
|
|
|
5422
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5423
|
-
|
|
5424
|
-
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."); }
|
|
5407
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5425
5408
|
|
|
5426
|
-
function
|
|
5409
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5427
5410
|
|
|
5428
|
-
function
|
|
5429
|
-
|
|
5430
|
-
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; }
|
|
5411
|
+
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; }
|
|
5431
5412
|
|
|
5432
5413
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5433
5414
|
|
|
@@ -5437,16 +5418,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5437
5418
|
|
|
5438
5419
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5439
5420
|
|
|
5440
|
-
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); }; }
|
|
5441
|
-
|
|
5442
5421
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5443
5422
|
|
|
5444
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5445
|
-
|
|
5446
|
-
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; } }
|
|
5447
|
-
|
|
5448
5423
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5449
5424
|
|
|
5425
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5426
|
+
|
|
5450
5427
|
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); }
|
|
5451
5428
|
|
|
5452
5429
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5458,12 +5435,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5458
5435
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5459
5436
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5460
5437
|
|
|
5461
|
-
var DailyMotion =
|
|
5438
|
+
var DailyMotion =
|
|
5439
|
+
/*#__PURE__*/
|
|
5440
|
+
function (_Component) {
|
|
5462
5441
|
_inherits(DailyMotion, _Component);
|
|
5463
5442
|
|
|
5464
|
-
var _super = _createSuper(DailyMotion);
|
|
5465
|
-
|
|
5466
5443
|
function DailyMotion() {
|
|
5444
|
+
var _getPrototypeOf2;
|
|
5445
|
+
|
|
5467
5446
|
var _this;
|
|
5468
5447
|
|
|
5469
5448
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5472,7 +5451,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5472
5451
|
args[_key] = arguments[_key];
|
|
5473
5452
|
}
|
|
5474
5453
|
|
|
5475
|
-
_this =
|
|
5454
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5476
5455
|
|
|
5477
5456
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5478
5457
|
|
|
@@ -5601,9 +5580,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5601
5580
|
height: '100%',
|
|
5602
5581
|
display: display
|
|
5603
5582
|
};
|
|
5604
|
-
return
|
|
5583
|
+
return _react["default"].createElement("div", {
|
|
5605
5584
|
style: style
|
|
5606
|
-
},
|
|
5585
|
+
}, _react["default"].createElement("div", {
|
|
5607
5586
|
ref: this.ref
|
|
5608
5587
|
}));
|
|
5609
5588
|
}
|
|
@@ -5637,7 +5616,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5637
5616
|
});
|
|
5638
5617
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5639
5618
|
|
|
5640
|
-
var _react = _interopRequireWildcard(React__default
|
|
5619
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5641
5620
|
|
|
5642
5621
|
|
|
5643
5622
|
|
|
@@ -5661,16 +5640,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5661
5640
|
|
|
5662
5641
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5663
5642
|
|
|
5664
|
-
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); }; }
|
|
5665
|
-
|
|
5666
5643
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5667
5644
|
|
|
5668
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5669
|
-
|
|
5670
|
-
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; } }
|
|
5671
|
-
|
|
5672
5645
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5673
5646
|
|
|
5647
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5648
|
+
|
|
5674
5649
|
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); }
|
|
5675
5650
|
|
|
5676
5651
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5681,12 +5656,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5681
5656
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5682
5657
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5683
5658
|
|
|
5684
|
-
var Mixcloud =
|
|
5659
|
+
var Mixcloud =
|
|
5660
|
+
/*#__PURE__*/
|
|
5661
|
+
function (_Component) {
|
|
5685
5662
|
_inherits(Mixcloud, _Component);
|
|
5686
5663
|
|
|
5687
|
-
var _super = _createSuper(Mixcloud);
|
|
5688
|
-
|
|
5689
5664
|
function Mixcloud() {
|
|
5665
|
+
var _getPrototypeOf2;
|
|
5666
|
+
|
|
5690
5667
|
var _this;
|
|
5691
5668
|
|
|
5692
5669
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5695,7 +5672,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5695
5672
|
args[_key] = arguments[_key];
|
|
5696
5673
|
}
|
|
5697
5674
|
|
|
5698
|
-
_this =
|
|
5675
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5699
5676
|
|
|
5700
5677
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5701
5678
|
|
|
@@ -5798,7 +5775,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5798
5775
|
})); // We have to give the iframe a key here to prevent a
|
|
5799
5776
|
// weird dialog appearing when loading a new track
|
|
5800
5777
|
|
|
5801
|
-
return
|
|
5778
|
+
return _react["default"].createElement("iframe", {
|
|
5802
5779
|
key: id,
|
|
5803
5780
|
ref: this.ref,
|
|
5804
5781
|
style: style,
|
|
@@ -5836,7 +5813,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5836
5813
|
});
|
|
5837
5814
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5838
5815
|
|
|
5839
|
-
var _react = _interopRequireWildcard(React__default
|
|
5816
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5840
5817
|
|
|
5841
5818
|
|
|
5842
5819
|
|
|
@@ -5858,33 +5835,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5858
5835
|
|
|
5859
5836
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5860
5837
|
|
|
5861
|
-
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); }; }
|
|
5862
|
-
|
|
5863
5838
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5864
5839
|
|
|
5865
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5866
|
-
|
|
5867
|
-
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; } }
|
|
5868
|
-
|
|
5869
5840
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5870
5841
|
|
|
5842
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5843
|
+
|
|
5871
5844
|
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); }
|
|
5872
5845
|
|
|
5873
5846
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5874
5847
|
|
|
5875
5848
|
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; }
|
|
5876
5849
|
|
|
5877
|
-
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; } } }; }
|
|
5878
|
-
|
|
5879
|
-
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); }
|
|
5880
|
-
|
|
5881
|
-
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; }
|
|
5882
|
-
|
|
5883
5850
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5884
5851
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5885
5852
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5886
5853
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5887
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5854
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5888
5855
|
var HLS_GLOBAL = 'Hls';
|
|
5889
5856
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5890
5857
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5893,11 +5860,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5893
5860
|
|
|
5894
5861
|
function canPlay(url) {
|
|
5895
5862
|
if (url instanceof Array) {
|
|
5896
|
-
var
|
|
5897
|
-
|
|
5863
|
+
var _iteratorNormalCompletion = true;
|
|
5864
|
+
var _didIteratorError = false;
|
|
5865
|
+
var _iteratorError = undefined;
|
|
5898
5866
|
|
|
5899
5867
|
try {
|
|
5900
|
-
for (_iterator.
|
|
5868
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5901
5869
|
var item = _step.value;
|
|
5902
5870
|
|
|
5903
5871
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5909,9 +5877,18 @@ function canPlay(url) {
|
|
|
5909
5877
|
}
|
|
5910
5878
|
}
|
|
5911
5879
|
} catch (err) {
|
|
5912
|
-
|
|
5880
|
+
_didIteratorError = true;
|
|
5881
|
+
_iteratorError = err;
|
|
5913
5882
|
} finally {
|
|
5914
|
-
|
|
5883
|
+
try {
|
|
5884
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5885
|
+
_iterator["return"]();
|
|
5886
|
+
}
|
|
5887
|
+
} finally {
|
|
5888
|
+
if (_didIteratorError) {
|
|
5889
|
+
throw _iteratorError;
|
|
5890
|
+
}
|
|
5891
|
+
}
|
|
5915
5892
|
}
|
|
5916
5893
|
|
|
5917
5894
|
return false;
|
|
@@ -5935,12 +5912,14 @@ function canEnablePIP(url) {
|
|
|
5935
5912
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5936
5913
|
}
|
|
5937
5914
|
|
|
5938
|
-
var FilePlayer =
|
|
5915
|
+
var FilePlayer =
|
|
5916
|
+
/*#__PURE__*/
|
|
5917
|
+
function (_Component) {
|
|
5939
5918
|
_inherits(FilePlayer, _Component);
|
|
5940
5919
|
|
|
5941
|
-
var _super = _createSuper(FilePlayer);
|
|
5942
|
-
|
|
5943
5920
|
function FilePlayer() {
|
|
5921
|
+
var _getPrototypeOf2;
|
|
5922
|
+
|
|
5944
5923
|
var _this;
|
|
5945
5924
|
|
|
5946
5925
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5949,7 +5928,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5949
5928
|
_args[_key] = arguments[_key];
|
|
5950
5929
|
}
|
|
5951
5930
|
|
|
5952
|
-
_this =
|
|
5931
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5953
5932
|
|
|
5954
5933
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5955
5934
|
var _this$props;
|
|
@@ -6036,19 +6015,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6036
6015
|
|
|
6037
6016
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6038
6017
|
if (typeof source === 'string') {
|
|
6039
|
-
return
|
|
6018
|
+
return _react["default"].createElement("source", {
|
|
6040
6019
|
key: index,
|
|
6041
6020
|
src: source
|
|
6042
6021
|
});
|
|
6043
6022
|
}
|
|
6044
6023
|
|
|
6045
|
-
return
|
|
6024
|
+
return _react["default"].createElement("source", _extends({
|
|
6046
6025
|
key: index
|
|
6047
6026
|
}, source));
|
|
6048
6027
|
});
|
|
6049
6028
|
|
|
6050
6029
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6051
|
-
return
|
|
6030
|
+
return _react["default"].createElement("track", _extends({
|
|
6052
6031
|
key: index
|
|
6053
6032
|
}, track));
|
|
6054
6033
|
});
|
|
@@ -6086,10 +6065,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6086
6065
|
key: "componentWillUnmount",
|
|
6087
6066
|
value: function componentWillUnmount() {
|
|
6088
6067
|
this.removeListeners(this.player);
|
|
6089
|
-
|
|
6090
|
-
if (this.hls) {
|
|
6091
|
-
this.hls.destroy();
|
|
6092
|
-
}
|
|
6093
6068
|
}
|
|
6094
6069
|
}, {
|
|
6095
6070
|
key: "addListeners",
|
|
@@ -6220,6 +6195,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6220
6195
|
value: function stop() {
|
|
6221
6196
|
this.player.removeAttribute('src');
|
|
6222
6197
|
|
|
6198
|
+
if (this.hls) {
|
|
6199
|
+
this.hls.destroy();
|
|
6200
|
+
}
|
|
6201
|
+
|
|
6223
6202
|
if (this.dash) {
|
|
6224
6203
|
this.dash.reset();
|
|
6225
6204
|
}
|
|
@@ -6331,7 +6310,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6331
6310
|
width: width === 'auto' ? width : '100%',
|
|
6332
6311
|
height: height === 'auto' ? height : '100%'
|
|
6333
6312
|
};
|
|
6334
|
-
return
|
|
6313
|
+
return _react["default"].createElement(Element, _extends({
|
|
6335
6314
|
ref: this.ref,
|
|
6336
6315
|
src: this.getSource(url),
|
|
6337
6316
|
style: style,
|
|
@@ -6403,7 +6382,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6403
6382
|
});
|
|
6404
6383
|
exports["default"] = void 0;
|
|
6405
6384
|
|
|
6406
|
-
var _react = _interopRequireWildcard(React__default
|
|
6385
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6407
6386
|
|
|
6408
6387
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6409
6388
|
|
|
@@ -6421,16 +6400,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6421
6400
|
|
|
6422
6401
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6423
6402
|
|
|
6424
|
-
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); }; }
|
|
6425
|
-
|
|
6426
6403
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6427
6404
|
|
|
6428
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6429
|
-
|
|
6430
|
-
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; } }
|
|
6431
|
-
|
|
6432
6405
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6433
6406
|
|
|
6407
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6408
|
+
|
|
6434
6409
|
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); }
|
|
6435
6410
|
|
|
6436
6411
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6439,12 +6414,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6439
6414
|
|
|
6440
6415
|
var ICON_SIZE = '64px';
|
|
6441
6416
|
|
|
6442
|
-
var Preview =
|
|
6417
|
+
var Preview =
|
|
6418
|
+
/*#__PURE__*/
|
|
6419
|
+
function (_Component) {
|
|
6443
6420
|
_inherits(Preview, _Component);
|
|
6444
6421
|
|
|
6445
|
-
var _super = _createSuper(Preview);
|
|
6446
|
-
|
|
6447
6422
|
function Preview() {
|
|
6423
|
+
var _getPrototypeOf2;
|
|
6424
|
+
|
|
6448
6425
|
var _this;
|
|
6449
6426
|
|
|
6450
6427
|
_classCallCheck(this, Preview);
|
|
@@ -6453,7 +6430,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6453
6430
|
args[_key] = arguments[_key];
|
|
6454
6431
|
}
|
|
6455
6432
|
|
|
6456
|
-
_this =
|
|
6433
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6457
6434
|
|
|
6458
6435
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6459
6436
|
|
|
@@ -6551,15 +6528,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6551
6528
|
}
|
|
6552
6529
|
};
|
|
6553
6530
|
|
|
6554
|
-
var defaultPlayIcon =
|
|
6531
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6555
6532
|
style: styles.shadow,
|
|
6556
6533
|
className: "react-player__shadow"
|
|
6557
|
-
},
|
|
6534
|
+
}, _react["default"].createElement("div", {
|
|
6558
6535
|
style: styles.playIcon,
|
|
6559
6536
|
className: "react-player__play-icon"
|
|
6560
6537
|
}));
|
|
6561
6538
|
|
|
6562
|
-
return
|
|
6539
|
+
return _react["default"].createElement("div", {
|
|
6563
6540
|
style: styles.preview,
|
|
6564
6541
|
className: "react-player__preview",
|
|
6565
6542
|
onClick: onClick
|
|
@@ -6582,7 +6559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6582
6559
|
});
|
|
6583
6560
|
exports["default"] = renderPreloadPlayers;
|
|
6584
6561
|
|
|
6585
|
-
var _react = _interopRequireDefault(React__default
|
|
6562
|
+
var _react = _interopRequireDefault(React__default);
|
|
6586
6563
|
|
|
6587
6564
|
var _Player = _interopRequireDefault(Player_1);
|
|
6588
6565
|
|
|
@@ -6596,12 +6573,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6596
6573
|
|
|
6597
6574
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6598
6575
|
|
|
6599
|
-
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; } } }; }
|
|
6600
|
-
|
|
6601
|
-
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); }
|
|
6602
|
-
|
|
6603
|
-
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; }
|
|
6604
|
-
|
|
6605
6576
|
var PRELOAD_PLAYERS = [{
|
|
6606
6577
|
Player: YouTube_1.YouTube,
|
|
6607
6578
|
configKey: 'youtube',
|
|
@@ -6622,16 +6593,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6622
6593
|
|
|
6623
6594
|
function renderPreloadPlayers(url, controls, config) {
|
|
6624
6595
|
var players = [];
|
|
6625
|
-
|
|
6626
|
-
var
|
|
6627
|
-
|
|
6596
|
+
var _iteratorNormalCompletion = true;
|
|
6597
|
+
var _didIteratorError = false;
|
|
6598
|
+
var _iteratorError = undefined;
|
|
6628
6599
|
|
|
6629
6600
|
try {
|
|
6630
|
-
for (_iterator.
|
|
6601
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6631
6602
|
var player = _step.value;
|
|
6632
6603
|
|
|
6633
6604
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6634
|
-
players.push(
|
|
6605
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6635
6606
|
key: player.Player.displayName,
|
|
6636
6607
|
activePlayer: player.Player,
|
|
6637
6608
|
url: player.url,
|
|
@@ -6643,9 +6614,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6643
6614
|
}
|
|
6644
6615
|
}
|
|
6645
6616
|
} catch (err) {
|
|
6646
|
-
|
|
6617
|
+
_didIteratorError = true;
|
|
6618
|
+
_iteratorError = err;
|
|
6647
6619
|
} finally {
|
|
6648
|
-
|
|
6620
|
+
try {
|
|
6621
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6622
|
+
_iterator["return"]();
|
|
6623
|
+
}
|
|
6624
|
+
} finally {
|
|
6625
|
+
if (_didIteratorError) {
|
|
6626
|
+
throw _iteratorError;
|
|
6627
|
+
}
|
|
6628
|
+
}
|
|
6649
6629
|
}
|
|
6650
6630
|
|
|
6651
6631
|
return players;
|
|
@@ -6721,7 +6701,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6721
6701
|
});
|
|
6722
6702
|
exports["default"] = void 0;
|
|
6723
6703
|
|
|
6724
|
-
var _react = _interopRequireWildcard(React__default
|
|
6704
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6725
6705
|
|
|
6726
6706
|
|
|
6727
6707
|
|
|
@@ -6769,17 +6749,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6769
6749
|
|
|
6770
6750
|
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); }
|
|
6771
6751
|
|
|
6772
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6773
|
-
|
|
6774
|
-
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."); }
|
|
6775
|
-
|
|
6776
|
-
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); }
|
|
6752
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6777
6753
|
|
|
6778
|
-
function
|
|
6754
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6779
6755
|
|
|
6780
|
-
function
|
|
6756
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6781
6757
|
|
|
6782
|
-
function
|
|
6758
|
+
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; } }
|
|
6783
6759
|
|
|
6784
6760
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6785
6761
|
|
|
@@ -6787,16 +6763,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6787
6763
|
|
|
6788
6764
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6789
6765
|
|
|
6790
|
-
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); }; }
|
|
6791
|
-
|
|
6792
6766
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6793
6767
|
|
|
6794
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6795
|
-
|
|
6796
|
-
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; } }
|
|
6797
|
-
|
|
6798
6768
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6799
6769
|
|
|
6770
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6771
|
+
|
|
6800
6772
|
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); }
|
|
6801
6773
|
|
|
6802
6774
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6806,12 +6778,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6806
6778
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6807
6779
|
var customPlayers = [];
|
|
6808
6780
|
|
|
6809
|
-
var ReactPlayer =
|
|
6781
|
+
var ReactPlayer =
|
|
6782
|
+
/*#__PURE__*/
|
|
6783
|
+
function (_Component) {
|
|
6810
6784
|
_inherits(ReactPlayer, _Component);
|
|
6811
6785
|
|
|
6812
|
-
var _super = _createSuper(ReactPlayer);
|
|
6813
|
-
|
|
6814
6786
|
function ReactPlayer() {
|
|
6787
|
+
var _getPrototypeOf2;
|
|
6788
|
+
|
|
6815
6789
|
var _this;
|
|
6816
6790
|
|
|
6817
6791
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6820,7 +6794,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6820
6794
|
args[_key] = arguments[_key];
|
|
6821
6795
|
}
|
|
6822
6796
|
|
|
6823
|
-
_this =
|
|
6797
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6824
6798
|
|
|
6825
6799
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6826
6800
|
|
|
@@ -6931,7 +6905,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6931
6905
|
key: "renderActivePlayer",
|
|
6932
6906
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6933
6907
|
if (!url) return null;
|
|
6934
|
-
return
|
|
6908
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6935
6909
|
key: activePlayer.displayName,
|
|
6936
6910
|
ref: this.activePlayerRef,
|
|
6937
6911
|
config: this.config,
|
|
@@ -6968,14 +6942,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6968
6942
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6969
6943
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6970
6944
|
|
|
6971
|
-
var preview =
|
|
6945
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6972
6946
|
url: url,
|
|
6973
6947
|
light: light,
|
|
6974
6948
|
playIcon: playIcon,
|
|
6975
6949
|
onClick: this.handleClickPreview
|
|
6976
6950
|
});
|
|
6977
6951
|
|
|
6978
|
-
return
|
|
6952
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6979
6953
|
ref: this.wrapperRef,
|
|
6980
6954
|
style: _objectSpread({}, style, {
|
|
6981
6955
|
width: width,
|
|
@@ -7035,20 +7009,20 @@ var Audio = function Audio(_ref) {
|
|
|
7035
7009
|
var node = _ref.node;
|
|
7036
7010
|
|
|
7037
7011
|
if (node.uploadAudio) {
|
|
7038
|
-
return React__default
|
|
7012
|
+
return React__default.createElement(
|
|
7039
7013
|
'div',
|
|
7040
7014
|
{ className: 'audio d-block text-center mb-3' },
|
|
7041
|
-
React__default
|
|
7015
|
+
React__default.createElement(
|
|
7042
7016
|
'audio',
|
|
7043
7017
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7044
|
-
React__default
|
|
7045
|
-
React__default
|
|
7018
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7019
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7046
7020
|
'Your browser does not support the audio element.'
|
|
7047
7021
|
),
|
|
7048
|
-
node.caption && React__default
|
|
7022
|
+
node.caption && React__default.createElement(
|
|
7049
7023
|
'p',
|
|
7050
7024
|
{ style: { fontSize: '.9rem' } },
|
|
7051
|
-
React__default
|
|
7025
|
+
React__default.createElement(
|
|
7052
7026
|
'em',
|
|
7053
7027
|
null,
|
|
7054
7028
|
node.caption
|
|
@@ -7058,15 +7032,15 @@ var Audio = function Audio(_ref) {
|
|
|
7058
7032
|
} else if (node.audioFilePth) {
|
|
7059
7033
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7060
7034
|
if (hostname === 'embeds.audioboom.com') {
|
|
7061
|
-
return React__default
|
|
7035
|
+
return React__default.createElement(
|
|
7062
7036
|
'div',
|
|
7063
7037
|
null,
|
|
7064
|
-
React__default
|
|
7038
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7065
7039
|
' ',
|
|
7066
|
-
node.caption && React__default
|
|
7040
|
+
node.caption && React__default.createElement(
|
|
7067
7041
|
'p',
|
|
7068
7042
|
{ style: { fontSize: '.9rem' } },
|
|
7069
|
-
React__default
|
|
7043
|
+
React__default.createElement(
|
|
7070
7044
|
'em',
|
|
7071
7045
|
null,
|
|
7072
7046
|
node.caption
|
|
@@ -7074,14 +7048,14 @@ var Audio = function Audio(_ref) {
|
|
|
7074
7048
|
)
|
|
7075
7049
|
);
|
|
7076
7050
|
}
|
|
7077
|
-
return React__default
|
|
7051
|
+
return React__default.createElement(
|
|
7078
7052
|
'div',
|
|
7079
7053
|
{ className: 'audio' },
|
|
7080
|
-
React__default
|
|
7081
|
-
node.caption && React__default
|
|
7054
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7055
|
+
node.caption && React__default.createElement(
|
|
7082
7056
|
'p',
|
|
7083
7057
|
{ style: { fontSize: '.9rem' } },
|
|
7084
|
-
React__default
|
|
7058
|
+
React__default.createElement(
|
|
7085
7059
|
'em',
|
|
7086
7060
|
null,
|
|
7087
7061
|
node.caption
|
|
@@ -7099,34 +7073,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7099
7073
|
var profileImage = arguments[6];
|
|
7100
7074
|
|
|
7101
7075
|
if (authorName && authorURL) {
|
|
7102
|
-
return React__default
|
|
7076
|
+
return React__default.createElement(
|
|
7103
7077
|
'span',
|
|
7104
7078
|
null,
|
|
7105
|
-
React__default
|
|
7079
|
+
React__default.createElement(
|
|
7106
7080
|
'a',
|
|
7107
7081
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7108
7082
|
authorName
|
|
7109
7083
|
),
|
|
7110
|
-
React__default
|
|
7084
|
+
React__default.createElement(
|
|
7111
7085
|
reactBootstrap.Card,
|
|
7112
7086
|
{ className: 'author-details-card-' + index },
|
|
7113
|
-
React__default
|
|
7087
|
+
React__default.createElement(
|
|
7114
7088
|
reactBootstrap.Row,
|
|
7115
7089
|
null,
|
|
7116
|
-
profileImage && React__default
|
|
7090
|
+
profileImage && React__default.createElement(
|
|
7117
7091
|
reactBootstrap.Col,
|
|
7118
7092
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7119
|
-
React__default
|
|
7093
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7120
7094
|
),
|
|
7121
|
-
React__default
|
|
7095
|
+
React__default.createElement(
|
|
7122
7096
|
reactBootstrap.Col,
|
|
7123
7097
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7124
|
-
React__default
|
|
7098
|
+
React__default.createElement(
|
|
7125
7099
|
'div',
|
|
7126
7100
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7127
7101
|
authorName
|
|
7128
7102
|
),
|
|
7129
|
-
React__default
|
|
7103
|
+
React__default.createElement(
|
|
7130
7104
|
'p',
|
|
7131
7105
|
null,
|
|
7132
7106
|
biography
|
|
@@ -7134,7 +7108,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7134
7108
|
)
|
|
7135
7109
|
)
|
|
7136
7110
|
),
|
|
7137
|
-
React__default
|
|
7111
|
+
React__default.createElement(
|
|
7138
7112
|
'style',
|
|
7139
7113
|
{ jsx: 'true' },
|
|
7140
7114
|
'\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 '
|
|
@@ -7142,7 +7116,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7142
7116
|
length !== index + 1 && ' , '
|
|
7143
7117
|
);
|
|
7144
7118
|
} else if (authorName) {
|
|
7145
|
-
return React__default
|
|
7119
|
+
return React__default.createElement(
|
|
7146
7120
|
'span',
|
|
7147
7121
|
{ key: index },
|
|
7148
7122
|
authorName,
|
|
@@ -7244,7 +7218,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7244
7218
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7245
7219
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7246
7220
|
} else {
|
|
7247
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7221
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7248
7222
|
}
|
|
7249
7223
|
}
|
|
7250
7224
|
});
|
|
@@ -7304,7 +7278,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7304
7278
|
//Small pause before starting next video
|
|
7305
7279
|
setTimeout(function () {
|
|
7306
7280
|
//Youtube API to start video playing automatically
|
|
7307
|
-
var id = index$
|
|
7281
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7308
7282
|
event.target.loadVideoById(id);
|
|
7309
7283
|
}, 1500);
|
|
7310
7284
|
};
|
|
@@ -7414,44 +7388,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7414
7388
|
}
|
|
7415
7389
|
};
|
|
7416
7390
|
|
|
7417
|
-
return React__default
|
|
7391
|
+
return React__default.createElement(
|
|
7418
7392
|
'div',
|
|
7419
7393
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7420
|
-
React__default
|
|
7394
|
+
React__default.createElement(
|
|
7421
7395
|
'div',
|
|
7422
7396
|
{ className: 'mt-2 mb-5' },
|
|
7423
|
-
series && React__default
|
|
7397
|
+
series && React__default.createElement(
|
|
7424
7398
|
'div',
|
|
7425
7399
|
{ style: { fontSize: '0.9rem' } },
|
|
7426
7400
|
article.title,
|
|
7427
7401
|
' - Episode ',
|
|
7428
7402
|
series
|
|
7429
7403
|
),
|
|
7430
|
-
Videos[series - 1] && React__default
|
|
7404
|
+
Videos[series - 1] && React__default.createElement(
|
|
7431
7405
|
'h1',
|
|
7432
7406
|
{ className: 'mb-3' },
|
|
7433
7407
|
Videos[series - 1].title
|
|
7434
7408
|
),
|
|
7435
|
-
React__default
|
|
7409
|
+
React__default.createElement(
|
|
7436
7410
|
'div',
|
|
7437
7411
|
null,
|
|
7438
7412
|
moment.moment(article.published).format('LL')
|
|
7439
7413
|
),
|
|
7440
|
-
React__default
|
|
7414
|
+
React__default.createElement(
|
|
7441
7415
|
'div',
|
|
7442
7416
|
{ className: 'mb-3' },
|
|
7443
7417
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7444
|
-
return React__default
|
|
7418
|
+
return React__default.createElement(
|
|
7445
7419
|
'span',
|
|
7446
7420
|
{ key: index },
|
|
7447
7421
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7448
7422
|
);
|
|
7449
7423
|
})
|
|
7450
7424
|
),
|
|
7451
|
-
React__default
|
|
7425
|
+
React__default.createElement(
|
|
7452
7426
|
'p',
|
|
7453
7427
|
null,
|
|
7454
|
-
React__default
|
|
7428
|
+
React__default.createElement(SocialShare, {
|
|
7455
7429
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7456
7430
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7457
7431
|
shareVia: meta.shareVia,
|
|
@@ -7466,22 +7440,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7466
7440
|
hideFacebook: meta.hideFBShare
|
|
7467
7441
|
})
|
|
7468
7442
|
),
|
|
7469
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7443
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7470
7444
|
'p',
|
|
7471
7445
|
{ className: 'mb-3' },
|
|
7472
|
-
React__default
|
|
7446
|
+
React__default.createElement(
|
|
7473
7447
|
'em',
|
|
7474
7448
|
null,
|
|
7475
7449
|
Videos[series - 1].intro
|
|
7476
7450
|
)
|
|
7477
7451
|
)
|
|
7478
7452
|
),
|
|
7479
|
-
React__default
|
|
7453
|
+
React__default.createElement(
|
|
7480
7454
|
'div',
|
|
7481
7455
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7482
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7456
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7483
7457
|
className: 'fluid-iframe',
|
|
7484
|
-
videoId: index$
|
|
7458
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7485
7459
|
opts: opts,
|
|
7486
7460
|
onReady: handleOnReady,
|
|
7487
7461
|
onPlay: handleOnPlay,
|
|
@@ -7490,10 +7464,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7490
7464
|
return handleOnEnd(e);
|
|
7491
7465
|
}
|
|
7492
7466
|
}),
|
|
7493
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7494
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7495
|
-
React__default
|
|
7496
|
-
series && React__default
|
|
7467
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7468
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7469
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7470
|
+
series && React__default.createElement(
|
|
7497
7471
|
'div',
|
|
7498
7472
|
{
|
|
7499
7473
|
className: 'vid-series',
|
|
@@ -7503,10 +7477,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7503
7477
|
maxHeight: '100%',
|
|
7504
7478
|
paddingBottom: '0'
|
|
7505
7479
|
} },
|
|
7506
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7507
7481
|
'p',
|
|
7508
7482
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7509
|
-
React__default
|
|
7483
|
+
React__default.createElement(
|
|
7510
7484
|
'b',
|
|
7511
7485
|
{ style: { fontSize: '1.25em' } },
|
|
7512
7486
|
'Now Playing:'
|
|
@@ -7514,16 +7488,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7488
|
' ',
|
|
7515
7489
|
seriesData[series ? series - 1 : 0].title
|
|
7516
7490
|
),
|
|
7517
|
-
vidUrl && React__default
|
|
7491
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7518
7492
|
)
|
|
7519
7493
|
),
|
|
7520
|
-
React__default
|
|
7521
|
-
React__default
|
|
7494
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7495
|
+
React__default.createElement(
|
|
7522
7496
|
'div',
|
|
7523
7497
|
{ className: 'vid-text' },
|
|
7524
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7498
|
+
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()))
|
|
7525
7499
|
),
|
|
7526
|
-
React__default
|
|
7500
|
+
React__default.createElement(
|
|
7527
7501
|
'style',
|
|
7528
7502
|
{ jsx: 'true' },
|
|
7529
7503
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7576,67 +7550,67 @@ var Poll = function Poll(_ref) {
|
|
|
7576
7550
|
return acc;
|
|
7577
7551
|
}
|
|
7578
7552
|
}, 0);
|
|
7579
|
-
return React__default
|
|
7580
|
-
React__default
|
|
7553
|
+
return React__default.createElement(
|
|
7554
|
+
React__default.Fragment,
|
|
7581
7555
|
null,
|
|
7582
|
-
question && React__default
|
|
7556
|
+
question && React__default.createElement(
|
|
7583
7557
|
'p',
|
|
7584
7558
|
{ className: 'font-weight-bold' },
|
|
7585
7559
|
question
|
|
7586
7560
|
),
|
|
7587
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7561
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7588
7562
|
'form',
|
|
7589
7563
|
{ onSubmit: function onSubmit(e) {
|
|
7590
7564
|
return onSubmitPoll(e);
|
|
7591
7565
|
} },
|
|
7592
7566
|
choices && choices.map(function (choice) {
|
|
7593
|
-
return React__default
|
|
7567
|
+
return React__default.createElement(
|
|
7594
7568
|
'div',
|
|
7595
7569
|
{ key: choice._key },
|
|
7596
|
-
React__default
|
|
7570
|
+
React__default.createElement(
|
|
7597
7571
|
'label',
|
|
7598
7572
|
{ className: 'pl-2' },
|
|
7599
|
-
React__default
|
|
7573
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7600
7574
|
return setSelectedChoice(e.target.value);
|
|
7601
7575
|
} }),
|
|
7602
7576
|
' ' + choice.choiceText
|
|
7603
7577
|
)
|
|
7604
7578
|
);
|
|
7605
7579
|
}),
|
|
7606
|
-
React__default
|
|
7580
|
+
React__default.createElement(
|
|
7607
7581
|
reactBootstrap.Button,
|
|
7608
7582
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7609
7583
|
'Vote'
|
|
7610
7584
|
)
|
|
7611
7585
|
),
|
|
7612
|
-
React__default
|
|
7586
|
+
React__default.createElement(
|
|
7613
7587
|
'div',
|
|
7614
7588
|
{ className: 'progress-container' },
|
|
7615
7589
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7616
7590
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7617
|
-
return React__default
|
|
7591
|
+
return React__default.createElement(
|
|
7618
7592
|
'div',
|
|
7619
7593
|
{ key: choice._key, className: 'mb-3' },
|
|
7620
|
-
React__default
|
|
7594
|
+
React__default.createElement(
|
|
7621
7595
|
'div',
|
|
7622
7596
|
{ className: 'correct-answer' },
|
|
7623
|
-
React__default
|
|
7597
|
+
React__default.createElement(
|
|
7624
7598
|
'div',
|
|
7625
7599
|
null,
|
|
7626
7600
|
choice.choiceText
|
|
7627
7601
|
),
|
|
7628
|
-
choice.choiceAnswer === true && React__default
|
|
7602
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7629
7603
|
'div',
|
|
7630
7604
|
null,
|
|
7631
|
-
React__default
|
|
7605
|
+
React__default.createElement(
|
|
7632
7606
|
'span',
|
|
7633
7607
|
{ style: { color: 'limegreen' } },
|
|
7634
7608
|
'Correct!'
|
|
7635
7609
|
)
|
|
7636
7610
|
)
|
|
7637
7611
|
),
|
|
7638
|
-
React__default
|
|
7639
|
-
React__default
|
|
7612
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7613
|
+
React__default.createElement(
|
|
7640
7614
|
'span',
|
|
7641
7615
|
{ className: 'float-right' },
|
|
7642
7616
|
percentage,
|
|
@@ -7647,14 +7621,14 @@ var Poll = function Poll(_ref) {
|
|
|
7647
7621
|
);
|
|
7648
7622
|
})
|
|
7649
7623
|
),
|
|
7650
|
-
showAnswer && React__default
|
|
7624
|
+
showAnswer && React__default.createElement(
|
|
7651
7625
|
'h4',
|
|
7652
7626
|
{ className: 'text-center small p-3' },
|
|
7653
7627
|
'Total Votes: ',
|
|
7654
7628
|
choicesTotalCount
|
|
7655
7629
|
),
|
|
7656
|
-
showAnswer && response && React__default
|
|
7657
|
-
React__default
|
|
7630
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7631
|
+
React__default.createElement(
|
|
7658
7632
|
'style',
|
|
7659
7633
|
{ jsx: 'true' },
|
|
7660
7634
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7753,67 +7727,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7753
7727
|
return acc;
|
|
7754
7728
|
}
|
|
7755
7729
|
}, 0);
|
|
7756
|
-
return React__default
|
|
7757
|
-
React__default
|
|
7730
|
+
return React__default.createElement(
|
|
7731
|
+
React__default.Fragment,
|
|
7758
7732
|
null,
|
|
7759
|
-
question && React__default
|
|
7733
|
+
question && React__default.createElement(
|
|
7760
7734
|
'p',
|
|
7761
7735
|
{ className: 'font-weight-bold' },
|
|
7762
7736
|
question
|
|
7763
7737
|
),
|
|
7764
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7738
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7765
7739
|
'form',
|
|
7766
7740
|
{ onSubmit: function onSubmit(e) {
|
|
7767
7741
|
return onSubmitPoll(e);
|
|
7768
7742
|
} },
|
|
7769
7743
|
choices && choices.map(function (choice) {
|
|
7770
|
-
return React__default
|
|
7744
|
+
return React__default.createElement(
|
|
7771
7745
|
'div',
|
|
7772
7746
|
{ key: choice._key },
|
|
7773
|
-
React__default
|
|
7747
|
+
React__default.createElement(
|
|
7774
7748
|
'label',
|
|
7775
7749
|
{ className: 'pl-2' },
|
|
7776
|
-
React__default
|
|
7750
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7777
7751
|
return setSelectedChoice(e.target.value);
|
|
7778
7752
|
} }),
|
|
7779
7753
|
' ' + choice.choiceText
|
|
7780
7754
|
)
|
|
7781
7755
|
);
|
|
7782
7756
|
}),
|
|
7783
|
-
React__default
|
|
7757
|
+
React__default.createElement(
|
|
7784
7758
|
reactBootstrap.Button,
|
|
7785
7759
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7786
7760
|
'Vote'
|
|
7787
7761
|
)
|
|
7788
7762
|
),
|
|
7789
|
-
React__default
|
|
7763
|
+
React__default.createElement(
|
|
7790
7764
|
'div',
|
|
7791
7765
|
{ className: 'progress-container' },
|
|
7792
7766
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7793
7767
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7794
|
-
return React__default
|
|
7768
|
+
return React__default.createElement(
|
|
7795
7769
|
'div',
|
|
7796
7770
|
{ key: choice._key, className: 'mb-3' },
|
|
7797
|
-
React__default
|
|
7771
|
+
React__default.createElement(
|
|
7798
7772
|
'div',
|
|
7799
7773
|
{ className: 'correct-answer' },
|
|
7800
|
-
React__default
|
|
7774
|
+
React__default.createElement(
|
|
7801
7775
|
'div',
|
|
7802
7776
|
null,
|
|
7803
7777
|
choice.choiceText
|
|
7804
7778
|
),
|
|
7805
|
-
choice.choiceAnswer === true && React__default
|
|
7779
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7806
7780
|
'div',
|
|
7807
7781
|
null,
|
|
7808
|
-
React__default
|
|
7782
|
+
React__default.createElement(
|
|
7809
7783
|
'span',
|
|
7810
7784
|
{ style: { color: 'limegreen' } },
|
|
7811
7785
|
'Correct!'
|
|
7812
7786
|
)
|
|
7813
7787
|
)
|
|
7814
7788
|
),
|
|
7815
|
-
React__default
|
|
7816
|
-
React__default
|
|
7789
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7790
|
+
React__default.createElement(
|
|
7817
7791
|
'span',
|
|
7818
7792
|
{ className: 'float-right' },
|
|
7819
7793
|
percentage,
|
|
@@ -7824,14 +7798,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7824
7798
|
);
|
|
7825
7799
|
})
|
|
7826
7800
|
),
|
|
7827
|
-
showAnswer && React__default
|
|
7801
|
+
showAnswer && React__default.createElement(
|
|
7828
7802
|
'h4',
|
|
7829
7803
|
{ className: 'text-center small p-3' },
|
|
7830
7804
|
'Total Votes: ',
|
|
7831
7805
|
choicesTotalCount
|
|
7832
7806
|
),
|
|
7833
|
-
showAnswer && response && React__default
|
|
7834
|
-
React__default
|
|
7807
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7808
|
+
React__default.createElement(
|
|
7835
7809
|
'style',
|
|
7836
7810
|
{ jsx: 'true' },
|
|
7837
7811
|
'\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 '
|
|
@@ -7839,7 +7813,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7839
7813
|
);
|
|
7840
7814
|
};
|
|
7841
7815
|
|
|
7842
|
-
var numberOfPaginations = main.
|
|
7816
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7843
7817
|
|
|
7844
7818
|
var Quiz = function Quiz(_ref) {
|
|
7845
7819
|
var quizzes = _ref.quizzes,
|
|
@@ -7957,34 +7931,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7957
7931
|
};
|
|
7958
7932
|
|
|
7959
7933
|
var renderPagination = function renderPagination() {
|
|
7960
|
-
return React__default
|
|
7961
|
-
|
|
7962
|
-
{ className: 'p-0 m-0', size: main.
|
|
7963
|
-
React__default
|
|
7934
|
+
return React__default.createElement(
|
|
7935
|
+
Pagination,
|
|
7936
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7937
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7964
7938
|
return changePage('first');
|
|
7965
7939
|
}, disabled: currentPage === 1 }),
|
|
7966
|
-
React__default
|
|
7940
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7967
7941
|
return changePage('prev');
|
|
7968
7942
|
}, disabled: currentPage === 1 }),
|
|
7969
|
-
React__default
|
|
7943
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7970
7944
|
return renderNewPages('prev');
|
|
7971
7945
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7972
7946
|
pages.map(function (page) {
|
|
7973
|
-
return React__default
|
|
7974
|
-
|
|
7947
|
+
return React__default.createElement(
|
|
7948
|
+
Pagination.Item,
|
|
7975
7949
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7976
7950
|
return changePage(page);
|
|
7977
7951
|
} },
|
|
7978
7952
|
page
|
|
7979
7953
|
);
|
|
7980
7954
|
}),
|
|
7981
|
-
React__default
|
|
7955
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7982
7956
|
return renderNewPages('next');
|
|
7983
7957
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7984
|
-
React__default
|
|
7958
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7985
7959
|
return changePage('next');
|
|
7986
7960
|
}, disabled: currentPage === pageCount }),
|
|
7987
|
-
React__default
|
|
7961
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7988
7962
|
return changePage('last');
|
|
7989
7963
|
}, disabled: currentPage === pageCount })
|
|
7990
7964
|
);
|
|
@@ -8067,51 +8041,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8067
8041
|
}
|
|
8068
8042
|
};
|
|
8069
8043
|
|
|
8070
|
-
return React__default
|
|
8071
|
-
React__default
|
|
8044
|
+
return React__default.createElement(
|
|
8045
|
+
React__default.Fragment,
|
|
8072
8046
|
null,
|
|
8073
|
-
quizzes[currentPage - 1] && React__default
|
|
8074
|
-
React__default
|
|
8047
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8048
|
+
React__default.Fragment,
|
|
8075
8049
|
null,
|
|
8076
|
-
React__default
|
|
8077
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8050
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8051
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8078
8052
|
'form',
|
|
8079
8053
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8080
8054
|
return e.preventDefault();
|
|
8081
8055
|
} },
|
|
8082
8056
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8083
|
-
return React__default
|
|
8057
|
+
return React__default.createElement(
|
|
8084
8058
|
'div',
|
|
8085
8059
|
{ key: answer._key },
|
|
8086
|
-
React__default
|
|
8060
|
+
React__default.createElement(
|
|
8087
8061
|
'label',
|
|
8088
8062
|
{ className: 'pl-2' },
|
|
8089
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8063
|
+
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 }),
|
|
8090
8064
|
' ' + answer.answerText
|
|
8091
8065
|
)
|
|
8092
8066
|
);
|
|
8093
8067
|
})
|
|
8094
8068
|
)
|
|
8095
8069
|
),
|
|
8096
|
-
!showAnswer && React__default
|
|
8097
|
-
|
|
8070
|
+
!showAnswer && React__default.createElement(
|
|
8071
|
+
Button,
|
|
8098
8072
|
{ onClick: function onClick() {
|
|
8099
8073
|
return checkAnswers();
|
|
8100
8074
|
}, variant: 'info', block: true },
|
|
8101
8075
|
'Please click here for answer'
|
|
8102
8076
|
),
|
|
8103
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8104
|
-
React__default
|
|
8077
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8078
|
+
React__default.Fragment,
|
|
8105
8079
|
null,
|
|
8106
|
-
React__default
|
|
8080
|
+
React__default.createElement(
|
|
8107
8081
|
'h4',
|
|
8108
8082
|
null,
|
|
8109
8083
|
'Answer:'
|
|
8110
8084
|
),
|
|
8111
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8085
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8112
8086
|
),
|
|
8113
|
-
React__default
|
|
8114
|
-
pageCount > 1 && React__default
|
|
8087
|
+
React__default.createElement('br', null),
|
|
8088
|
+
pageCount > 1 && React__default.createElement(
|
|
8115
8089
|
'div',
|
|
8116
8090
|
{ className: 'd-flex justify-content-center' },
|
|
8117
8091
|
renderPagination()
|
|
@@ -8122,10 +8096,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8122
8096
|
var Leads = function Leads(_ref) {
|
|
8123
8097
|
var url = _ref.url;
|
|
8124
8098
|
|
|
8125
|
-
return React__default
|
|
8099
|
+
return React__default.createElement(
|
|
8126
8100
|
'div',
|
|
8127
8101
|
{ className: 'd-block text-center mb-3' },
|
|
8128
|
-
url && React__default
|
|
8102
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8129
8103
|
);
|
|
8130
8104
|
};
|
|
8131
8105
|
|
|
@@ -8165,53 +8139,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8165
8139
|
setCarouselIndex(selectedIndex);
|
|
8166
8140
|
};
|
|
8167
8141
|
|
|
8168
|
-
return React__default
|
|
8142
|
+
return React__default.createElement(
|
|
8169
8143
|
'div',
|
|
8170
8144
|
{ className: 'mt-3 mb-4' },
|
|
8171
|
-
React__default
|
|
8145
|
+
React__default.createElement(
|
|
8172
8146
|
reactBootstrap.Carousel,
|
|
8173
8147
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8174
8148
|
slides && slides.map(function (slide) {
|
|
8175
8149
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8176
|
-
return React__default
|
|
8150
|
+
return React__default.createElement(
|
|
8177
8151
|
reactBootstrap.Carousel.Item,
|
|
8178
8152
|
{ key: slide._key },
|
|
8179
|
-
React__default
|
|
8153
|
+
React__default.createElement(
|
|
8180
8154
|
'a',
|
|
8181
8155
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8182
|
-
React__default
|
|
8156
|
+
React__default.createElement(
|
|
8183
8157
|
'div',
|
|
8184
8158
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8185
|
-
React__default
|
|
8159
|
+
React__default.createElement(
|
|
8186
8160
|
index$2.LazyLoad,
|
|
8187
8161
|
null,
|
|
8188
|
-
React__default
|
|
8162
|
+
React__default.createElement(
|
|
8189
8163
|
'picture',
|
|
8190
8164
|
null,
|
|
8191
|
-
React__default
|
|
8192
|
-
React__default
|
|
8193
|
-
React__default
|
|
8194
|
-
React__default
|
|
8165
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8166
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8167
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8168
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8195
8169
|
)
|
|
8196
8170
|
)
|
|
8197
8171
|
)
|
|
8198
8172
|
),
|
|
8199
|
-
React__default
|
|
8173
|
+
React__default.createElement(
|
|
8200
8174
|
'div',
|
|
8201
8175
|
{ className: 'p-2' },
|
|
8202
|
-
slide.slideshowImage.caption && React__default
|
|
8176
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8203
8177
|
'h3',
|
|
8204
8178
|
{ style: { padding: '0px' } },
|
|
8205
8179
|
slide.slideshowImage.caption
|
|
8206
8180
|
),
|
|
8207
|
-
slide.description && React__default
|
|
8181
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8208
8182
|
)
|
|
8209
8183
|
);
|
|
8210
8184
|
}
|
|
8211
8185
|
return null;
|
|
8212
8186
|
})
|
|
8213
8187
|
),
|
|
8214
|
-
React__default
|
|
8188
|
+
React__default.createElement(
|
|
8215
8189
|
'style',
|
|
8216
8190
|
{ jsx: 'true' },
|
|
8217
8191
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8230,10 +8204,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8230
8204
|
sizes = _props$node.sizes,
|
|
8231
8205
|
sizeMapping = _props$node.sizeMapping;
|
|
8232
8206
|
|
|
8233
|
-
return React__default
|
|
8207
|
+
return React__default.createElement(
|
|
8234
8208
|
'div',
|
|
8235
8209
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8236
|
-
React__default
|
|
8210
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8237
8211
|
);
|
|
8238
8212
|
};
|
|
8239
8213
|
|
|
@@ -8244,15 +8218,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8244
8218
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8245
8219
|
|
|
8246
8220
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8247
|
-
return React__default
|
|
8221
|
+
return React__default.createElement(
|
|
8248
8222
|
'section',
|
|
8249
8223
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8250
|
-
Caption && React__default
|
|
8224
|
+
Caption && React__default.createElement(
|
|
8251
8225
|
'h4',
|
|
8252
8226
|
{ className: 'formstack-caption' },
|
|
8253
8227
|
Caption
|
|
8254
8228
|
),
|
|
8255
|
-
React__default
|
|
8229
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8256
8230
|
);
|
|
8257
8231
|
};
|
|
8258
8232
|
|
|
@@ -8268,36 +8242,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8268
8242
|
}
|
|
8269
8243
|
});
|
|
8270
8244
|
if (medias && medias.length > 0) {
|
|
8271
|
-
return React__default
|
|
8245
|
+
return React__default.createElement(
|
|
8272
8246
|
'div',
|
|
8273
8247
|
{ className: 'multi-media-container' },
|
|
8274
|
-
React__default
|
|
8275
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8249
|
+
Row,
|
|
8276
8250
|
{ noGutters: true },
|
|
8277
8251
|
medias.map(function (media) {
|
|
8278
|
-
return React__default
|
|
8279
|
-
|
|
8252
|
+
return React__default.createElement(
|
|
8253
|
+
Col,
|
|
8280
8254
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8281
|
-
React__default
|
|
8255
|
+
React__default.createElement(
|
|
8282
8256
|
'a',
|
|
8283
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8257
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8284
8258
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8285
|
-
React__default
|
|
8259
|
+
React__default.createElement(
|
|
8286
8260
|
'div',
|
|
8287
8261
|
{ className: 'multi-media-image-container' },
|
|
8288
|
-
imageBox && React__default
|
|
8262
|
+
imageBox && React__default.createElement(
|
|
8289
8263
|
index$2.LazyLoad,
|
|
8290
8264
|
{ once: true },
|
|
8291
|
-
React__default
|
|
8265
|
+
React__default.createElement(
|
|
8292
8266
|
'picture',
|
|
8293
8267
|
null,
|
|
8294
|
-
React__default
|
|
8295
|
-
React__default
|
|
8296
|
-
React__default
|
|
8297
|
-
React__default
|
|
8268
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8269
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8270
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8271
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8298
8272
|
)
|
|
8299
8273
|
),
|
|
8300
|
-
media.caption && React__default
|
|
8274
|
+
media.caption && React__default.createElement(
|
|
8301
8275
|
'span',
|
|
8302
8276
|
{ className: 'multi-media-caption' },
|
|
8303
8277
|
media.caption
|
|
@@ -8307,7 +8281,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8307
8281
|
);
|
|
8308
8282
|
})
|
|
8309
8283
|
),
|
|
8310
|
-
React__default
|
|
8284
|
+
React__default.createElement(
|
|
8311
8285
|
'style',
|
|
8312
8286
|
{ jsx: 'true' },
|
|
8313
8287
|
'\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 '
|
|
@@ -8318,12 +8292,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8318
8292
|
};
|
|
8319
8293
|
|
|
8320
8294
|
var InscreenSensor = function (_React$Component) {
|
|
8321
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8295
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8322
8296
|
|
|
8323
8297
|
function InscreenSensor(props) {
|
|
8324
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8298
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8325
8299
|
|
|
8326
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8300
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8327
8301
|
|
|
8328
8302
|
_this.scrollHandler = function () {
|
|
8329
8303
|
var visible = _this.checkInside();
|
|
@@ -8354,12 +8328,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8354
8328
|
}
|
|
8355
8329
|
};
|
|
8356
8330
|
|
|
8357
|
-
_this.wraperRef = React__default
|
|
8331
|
+
_this.wraperRef = React__default.createRef();
|
|
8358
8332
|
_this.visible = false;
|
|
8359
8333
|
return _this;
|
|
8360
8334
|
}
|
|
8361
8335
|
|
|
8362
|
-
inherits._createClass(InscreenSensor, [{
|
|
8336
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8363
8337
|
key: 'componentDidMount',
|
|
8364
8338
|
value: function componentDidMount() {
|
|
8365
8339
|
this.visible = this.checkInside();
|
|
@@ -8382,7 +8356,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8382
8356
|
_props$id = _props.id,
|
|
8383
8357
|
id = _props$id === undefined ? '' : _props$id;
|
|
8384
8358
|
|
|
8385
|
-
return React__default
|
|
8359
|
+
return React__default.createElement(
|
|
8386
8360
|
'div',
|
|
8387
8361
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8388
8362
|
this.props.children
|
|
@@ -8391,7 +8365,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8391
8365
|
}]);
|
|
8392
8366
|
|
|
8393
8367
|
return InscreenSensor;
|
|
8394
|
-
}(React__default
|
|
8368
|
+
}(React__default.Component);
|
|
8395
8369
|
|
|
8396
8370
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8397
8371
|
var nodes = _ref.nodes,
|
|
@@ -8500,33 +8474,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8500
8474
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8501
8475
|
var showReading = show ? 'showReading' : '';
|
|
8502
8476
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8503
|
-
return React__default
|
|
8477
|
+
return React__default.createElement(
|
|
8504
8478
|
'div',
|
|
8505
8479
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8506
|
-
React__default
|
|
8480
|
+
React__default.createElement(
|
|
8507
8481
|
'a',
|
|
8508
8482
|
{ onClick: function onClick(e) {
|
|
8509
8483
|
return articleCardClickHandler(e);
|
|
8510
8484
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8511
|
-
React__default
|
|
8485
|
+
React__default.createElement(
|
|
8512
8486
|
'div',
|
|
8513
8487
|
{ className: 'prevNext-thumbnail' },
|
|
8514
|
-
React__default
|
|
8515
|
-
React__default
|
|
8488
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8489
|
+
React__default.createElement(
|
|
8516
8490
|
'div',
|
|
8517
8491
|
{ className: 'prevNext-reading ' + showReading },
|
|
8518
8492
|
articleLabel
|
|
8519
8493
|
)
|
|
8520
8494
|
),
|
|
8521
|
-
React__default
|
|
8495
|
+
React__default.createElement(
|
|
8522
8496
|
'div',
|
|
8523
8497
|
{ className: 'prevNext-summary' },
|
|
8524
|
-
React__default
|
|
8498
|
+
React__default.createElement(
|
|
8525
8499
|
'div',
|
|
8526
8500
|
{ className: 'prevNext-publishDate' },
|
|
8527
8501
|
moment.moment(article.published).format('LL')
|
|
8528
8502
|
),
|
|
8529
|
-
React__default
|
|
8503
|
+
React__default.createElement(
|
|
8530
8504
|
'h2',
|
|
8531
8505
|
{ className: 'prevNext-title' },
|
|
8532
8506
|
article.title
|
|
@@ -8575,7 +8549,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8575
8549
|
|
|
8576
8550
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8577
8551
|
if (biography) {
|
|
8578
|
-
return React__default
|
|
8552
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8579
8553
|
}
|
|
8580
8554
|
};
|
|
8581
8555
|
|
|
@@ -8661,7 +8635,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8661
8635
|
//console.log('useLayoutEffect')
|
|
8662
8636
|
if (!firstLoad) {
|
|
8663
8637
|
setUpArrowClicked(false);
|
|
8664
|
-
if (main.
|
|
8638
|
+
if (main.main_36) {
|
|
8665
8639
|
grabLoadedAds();
|
|
8666
8640
|
} else {
|
|
8667
8641
|
scrollToArticle();
|
|
@@ -8685,7 +8659,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8685
8659
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8686
8660
|
if (pageview) pageview(path);
|
|
8687
8661
|
|
|
8688
|
-
if (!main.
|
|
8662
|
+
if (!main.main_36) {
|
|
8689
8663
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8690
8664
|
if (window.googletag && googletag.pubadsReady) {
|
|
8691
8665
|
index.lib_3.refresh();
|
|
@@ -8693,7 +8667,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8693
8667
|
});
|
|
8694
8668
|
}
|
|
8695
8669
|
//Refresh leaderboard ad on mobile
|
|
8696
|
-
if (main.
|
|
8670
|
+
if (main.main_36) {
|
|
8697
8671
|
var leaderboardSlotId = '';
|
|
8698
8672
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8699
8673
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8733,38 +8707,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8733
8707
|
setSensorVisible(false);
|
|
8734
8708
|
};
|
|
8735
8709
|
|
|
8736
|
-
return React__default
|
|
8737
|
-
React__default
|
|
8710
|
+
return React__default.createElement(
|
|
8711
|
+
React__default.Fragment,
|
|
8738
8712
|
null,
|
|
8739
|
-
React__default
|
|
8713
|
+
React__default.createElement(
|
|
8740
8714
|
'div',
|
|
8741
8715
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8742
|
-
React__default
|
|
8716
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8743
8717
|
return handleArrowClick();
|
|
8744
8718
|
} })
|
|
8745
8719
|
),
|
|
8746
|
-
React__default
|
|
8747
|
-
React__default
|
|
8720
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8721
|
+
React__default.createElement(
|
|
8748
8722
|
'div',
|
|
8749
8723
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8750
|
-
React__default
|
|
8724
|
+
React__default.createElement(
|
|
8751
8725
|
'h5',
|
|
8752
8726
|
{ className: 'objective-title' },
|
|
8753
8727
|
nodes.seriesTitle
|
|
8754
8728
|
),
|
|
8755
|
-
React__default
|
|
8729
|
+
React__default.createElement(
|
|
8756
8730
|
'div',
|
|
8757
8731
|
{ className: 'prevNextWrapper' },
|
|
8758
8732
|
PrevNextCards(false, -1)
|
|
8759
8733
|
)
|
|
8760
8734
|
),
|
|
8761
|
-
React__default
|
|
8762
|
-
React__default
|
|
8735
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8736
|
+
React__default.createElement(
|
|
8763
8737
|
'div',
|
|
8764
8738
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8765
|
-
main.
|
|
8739
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8766
8740
|
if (index === 0) {
|
|
8767
|
-
return React__default
|
|
8741
|
+
return React__default.createElement(
|
|
8768
8742
|
'div',
|
|
8769
8743
|
{
|
|
8770
8744
|
key: 'addid-1',
|
|
@@ -8784,14 +8758,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8784
8758
|
}
|
|
8785
8759
|
})
|
|
8786
8760
|
),
|
|
8787
|
-
React__default
|
|
8761
|
+
React__default.createElement(
|
|
8788
8762
|
'div',
|
|
8789
8763
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8790
8764
|
Articles.map(function (article, index) {
|
|
8791
|
-
return React__default
|
|
8765
|
+
return React__default.createElement(
|
|
8792
8766
|
'div',
|
|
8793
8767
|
{ key: article.title },
|
|
8794
|
-
React__default
|
|
8768
|
+
React__default.createElement(
|
|
8795
8769
|
InscreenSensor,
|
|
8796
8770
|
{
|
|
8797
8771
|
visible: sensorVisible,
|
|
@@ -8809,84 +8783,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8809
8783
|
}
|
|
8810
8784
|
}
|
|
8811
8785
|
} },
|
|
8812
|
-
React__default
|
|
8813
|
-
|
|
8786
|
+
React__default.createElement(
|
|
8787
|
+
Head,
|
|
8814
8788
|
null,
|
|
8815
|
-
currentTitle !== null && React__default
|
|
8789
|
+
currentTitle !== null && React__default.createElement(
|
|
8816
8790
|
'title',
|
|
8817
8791
|
{ key: 'title' },
|
|
8818
8792
|
currentTitle
|
|
8819
8793
|
),
|
|
8820
|
-
currentSummary !== null && React__default
|
|
8821
|
-
currentURL !== null && React__default
|
|
8822
|
-
currentTitle !== null && React__default
|
|
8823
|
-
currentThumbnail !== null && React__default
|
|
8824
|
-
currentSummary !== null && React__default
|
|
8825
|
-
currentTitle !== null && React__default
|
|
8826
|
-
currentThumbnail !== null && React__default
|
|
8827
|
-
currentSummary !== null && React__default
|
|
8794
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8795
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8796
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8797
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8798
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8799
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8800
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8801
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8828
8802
|
),
|
|
8829
|
-
React__default
|
|
8803
|
+
React__default.createElement(
|
|
8830
8804
|
'article',
|
|
8831
8805
|
{ className: 'article-wrapper' },
|
|
8832
|
-
React__default
|
|
8806
|
+
React__default.createElement(
|
|
8833
8807
|
'div',
|
|
8834
8808
|
{ className: 'article-publishDate' },
|
|
8835
8809
|
moment.moment(article.published).format('LL')
|
|
8836
8810
|
),
|
|
8837
|
-
React__default
|
|
8811
|
+
React__default.createElement(
|
|
8838
8812
|
'div',
|
|
8839
8813
|
{ className: 'author-details-wrapper' },
|
|
8840
8814
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8841
|
-
return React__default
|
|
8815
|
+
return React__default.createElement(
|
|
8842
8816
|
'span',
|
|
8843
8817
|
{ key: index },
|
|
8844
8818
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8845
8819
|
);
|
|
8846
8820
|
})
|
|
8847
8821
|
),
|
|
8848
|
-
React__default
|
|
8822
|
+
React__default.createElement(
|
|
8849
8823
|
'h2',
|
|
8850
8824
|
{ className: 'article-title' },
|
|
8851
8825
|
article.title
|
|
8852
8826
|
),
|
|
8853
|
-
React__default
|
|
8827
|
+
React__default.createElement(
|
|
8854
8828
|
'div',
|
|
8855
8829
|
{ className: 'mt-2 mb-2' },
|
|
8856
|
-
React__default
|
|
8830
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8857
8831
|
serializers: getSerializers,
|
|
8858
8832
|
videoAccountIDs: accountIDs,
|
|
8859
8833
|
blocks: article.text,
|
|
8860
8834
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8861
8835
|
}, client.config())),
|
|
8862
|
-
React__default
|
|
8836
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8863
8837
|
),
|
|
8864
|
-
Articles.length > 1 && React__default
|
|
8865
|
-
React__default
|
|
8838
|
+
Articles.length > 1 && React__default.createElement(
|
|
8839
|
+
React__default.Fragment,
|
|
8866
8840
|
null,
|
|
8867
|
-
React__default
|
|
8841
|
+
React__default.createElement(
|
|
8868
8842
|
'div',
|
|
8869
8843
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8870
|
-
React__default
|
|
8844
|
+
React__default.createElement(
|
|
8871
8845
|
'h5',
|
|
8872
8846
|
{ className: 'objective-title' },
|
|
8873
8847
|
nodes.seriesTitle
|
|
8874
8848
|
),
|
|
8875
|
-
React__default
|
|
8849
|
+
React__default.createElement(
|
|
8876
8850
|
'div',
|
|
8877
8851
|
{ className: 'prevNextWrapper' },
|
|
8878
8852
|
PrevNextCards(true, index)
|
|
8879
8853
|
)
|
|
8880
8854
|
),
|
|
8881
|
-
React__default
|
|
8855
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8882
8856
|
)
|
|
8883
8857
|
),
|
|
8884
|
-
React__default
|
|
8858
|
+
React__default.createElement(
|
|
8885
8859
|
'div',
|
|
8886
8860
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8887
|
-
main.
|
|
8861
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8888
8862
|
if (innerIndex === 0) {
|
|
8889
|
-
return React__default
|
|
8863
|
+
return React__default.createElement(
|
|
8890
8864
|
'div',
|
|
8891
8865
|
{
|
|
8892
8866
|
key: 'addid-' + (index + 2),
|
|
@@ -8909,7 +8883,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8909
8883
|
)
|
|
8910
8884
|
);
|
|
8911
8885
|
}),
|
|
8912
|
-
React__default
|
|
8886
|
+
React__default.createElement(
|
|
8913
8887
|
'style',
|
|
8914
8888
|
{ jsx: 'true' },
|
|
8915
8889
|
'\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 '
|
|
@@ -8939,11 +8913,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8939
8913
|
};
|
|
8940
8914
|
}, [handleClickOutside]);
|
|
8941
8915
|
|
|
8942
|
-
return React__default
|
|
8916
|
+
return React__default.createElement(
|
|
8943
8917
|
'div',
|
|
8944
8918
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8945
|
-
React__default
|
|
8946
|
-
React__default
|
|
8919
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8920
|
+
React__default.createElement(
|
|
8947
8921
|
'style',
|
|
8948
8922
|
{ jsx: 'true' },
|
|
8949
8923
|
'\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 '
|
|
@@ -8957,7 +8931,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8957
8931
|
}
|
|
8958
8932
|
};
|
|
8959
8933
|
|
|
8960
|
-
var FigureImage = React__default
|
|
8934
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8961
8935
|
var node = _ref2.node,
|
|
8962
8936
|
client = _ref2.client,
|
|
8963
8937
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8965,13 +8939,13 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8965
8939
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8966
8940
|
|
|
8967
8941
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8968
|
-
return React__default
|
|
8942
|
+
return React__default.createElement(
|
|
8969
8943
|
'picture',
|
|
8970
8944
|
null,
|
|
8971
|
-
React__default
|
|
8972
|
-
React__default
|
|
8973
|
-
React__default
|
|
8974
|
-
React__default
|
|
8945
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8946
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8947
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8948
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8975
8949
|
style: figureImageStyle,
|
|
8976
8950
|
className: 'figure-image',
|
|
8977
8951
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9022,30 +8996,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9022
8996
|
|
|
9023
8997
|
var renderTooltip = function renderTooltip(props) {
|
|
9024
8998
|
if (infoBox[0].title) {
|
|
9025
|
-
return React__default
|
|
9026
|
-
|
|
8999
|
+
return React__default.createElement(
|
|
9000
|
+
Popover,
|
|
9027
9001
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9028
|
-
React__default
|
|
9029
|
-
|
|
9002
|
+
React__default.createElement(
|
|
9003
|
+
Popover.Title,
|
|
9030
9004
|
{ as: 'h3' },
|
|
9031
9005
|
infoBox[0].title
|
|
9032
9006
|
),
|
|
9033
|
-
React__default
|
|
9034
|
-
|
|
9007
|
+
React__default.createElement(
|
|
9008
|
+
Popover.Content,
|
|
9035
9009
|
null,
|
|
9036
|
-
React__default
|
|
9010
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9037
9011
|
)
|
|
9038
9012
|
);
|
|
9039
9013
|
} else {
|
|
9040
|
-
return React__default
|
|
9041
|
-
|
|
9042
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9043
|
-
React__default
|
|
9014
|
+
return React__default.createElement(
|
|
9015
|
+
Tooltip,
|
|
9016
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9017
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9044
9018
|
);
|
|
9045
9019
|
}
|
|
9046
9020
|
};
|
|
9047
9021
|
|
|
9048
|
-
var FigureImageWOverLay = React__default
|
|
9022
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9049
9023
|
var node = _ref3.node,
|
|
9050
9024
|
client = _ref3.client,
|
|
9051
9025
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9053,32 +9027,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9053
9027
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9054
9028
|
|
|
9055
9029
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9056
|
-
var triggerAction = main.
|
|
9057
|
-
var placementLocation = main.
|
|
9058
|
-
return React__default
|
|
9030
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9031
|
+
var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9032
|
+
return React__default.createElement(
|
|
9059
9033
|
'picture',
|
|
9060
9034
|
null,
|
|
9061
|
-
React__default
|
|
9062
|
-
React__default
|
|
9063
|
-
React__default
|
|
9064
|
-
main.
|
|
9035
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9036
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9037
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9038
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9065
9039
|
style: figureImageStyle,
|
|
9066
9040
|
className: 'figure-image',
|
|
9067
9041
|
src: urlFor({ source: node, client: client }),
|
|
9068
9042
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9069
|
-
}, !link && !main.
|
|
9043
|
+
}, !link && !main.main_35 && {
|
|
9070
9044
|
onClick: function onClick() {
|
|
9071
9045
|
return handleClickFigure(node, client);
|
|
9072
9046
|
}
|
|
9073
|
-
})) : React__default
|
|
9074
|
-
|
|
9047
|
+
})) : React__default.createElement(
|
|
9048
|
+
OverlayTrigger,
|
|
9075
9049
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9076
|
-
React__default
|
|
9050
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9077
9051
|
style: figureImageStyle,
|
|
9078
9052
|
className: 'figure-image',
|
|
9079
9053
|
src: urlFor({ source: node, client: client }),
|
|
9080
9054
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9081
|
-
}, !link && !main.
|
|
9055
|
+
}, !link && !main.main_35 && {
|
|
9082
9056
|
onClick: function onClick() {
|
|
9083
9057
|
return handleClickFigure(node, client);
|
|
9084
9058
|
}
|
|
@@ -9127,13 +9101,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9127
9101
|
|
|
9128
9102
|
var FigureCaption = React.useCallback(function () {
|
|
9129
9103
|
if (imgcaption && imgcaption.length > 0) {
|
|
9130
|
-
return React__default
|
|
9104
|
+
return React__default.createElement(
|
|
9131
9105
|
'div',
|
|
9132
9106
|
{ className: 'figure-caption' },
|
|
9133
|
-
React__default
|
|
9107
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9134
9108
|
);
|
|
9135
9109
|
} else if (caption) {
|
|
9136
|
-
return React__default
|
|
9110
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9137
9111
|
} else return null;
|
|
9138
9112
|
}, [caption, imgcaption]);
|
|
9139
9113
|
|
|
@@ -9150,24 +9124,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9150
9124
|
setShowLightbox(true);
|
|
9151
9125
|
}, [node, client]);
|
|
9152
9126
|
|
|
9153
|
-
return React__default
|
|
9154
|
-
React__default
|
|
9127
|
+
return React__default.createElement(
|
|
9128
|
+
React__default.Fragment,
|
|
9155
9129
|
null,
|
|
9156
|
-
infoBox.length >= 1 ? React__default
|
|
9157
|
-
|
|
9130
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9131
|
+
Figure$1,
|
|
9158
9132
|
{ className: '' + class_name, style: figureStyle },
|
|
9159
|
-
link ? React__default
|
|
9133
|
+
link ? React__default.createElement(
|
|
9160
9134
|
'a',
|
|
9161
9135
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9162
|
-
React__default
|
|
9163
|
-
React__default
|
|
9164
|
-
) : React__default
|
|
9165
|
-
React__default
|
|
9136
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9137
|
+
React__default.createElement(FigureCaption, null)
|
|
9138
|
+
) : React__default.createElement(
|
|
9139
|
+
React__default.Fragment,
|
|
9166
9140
|
null,
|
|
9167
|
-
React__default
|
|
9168
|
-
React__default
|
|
9141
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9142
|
+
React__default.createElement(FigureCaption, null)
|
|
9169
9143
|
),
|
|
9170
|
-
React__default
|
|
9144
|
+
React__default.createElement(LightBox, {
|
|
9171
9145
|
showLightbox: showLightbox,
|
|
9172
9146
|
lightboxImgSrc: lightboxImgSrc,
|
|
9173
9147
|
closeLightbox: function closeLightbox() {
|
|
@@ -9175,21 +9149,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9175
9149
|
setShowLightbox(false);
|
|
9176
9150
|
}
|
|
9177
9151
|
})
|
|
9178
|
-
) : React__default
|
|
9179
|
-
|
|
9152
|
+
) : React__default.createElement(
|
|
9153
|
+
Figure$1,
|
|
9180
9154
|
{ className: '' + class_name, style: figureStyle },
|
|
9181
|
-
link ? React__default
|
|
9155
|
+
link ? React__default.createElement(
|
|
9182
9156
|
'a',
|
|
9183
9157
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9184
|
-
React__default
|
|
9185
|
-
React__default
|
|
9186
|
-
) : React__default
|
|
9187
|
-
React__default
|
|
9158
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9159
|
+
React__default.createElement(FigureCaption, null)
|
|
9160
|
+
) : React__default.createElement(
|
|
9161
|
+
React__default.Fragment,
|
|
9188
9162
|
null,
|
|
9189
|
-
React__default
|
|
9190
|
-
React__default
|
|
9163
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9164
|
+
React__default.createElement(FigureCaption, null)
|
|
9191
9165
|
),
|
|
9192
|
-
React__default
|
|
9166
|
+
React__default.createElement(LightBox, {
|
|
9193
9167
|
showLightbox: showLightbox,
|
|
9194
9168
|
lightboxImgSrc: lightboxImgSrc,
|
|
9195
9169
|
closeLightbox: function closeLightbox() {
|
|
@@ -9198,7 +9172,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9198
9172
|
}
|
|
9199
9173
|
})
|
|
9200
9174
|
),
|
|
9201
|
-
React__default
|
|
9175
|
+
React__default.createElement(
|
|
9202
9176
|
'style',
|
|
9203
9177
|
{ jsx: 'true' },
|
|
9204
9178
|
'\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 '
|
|
@@ -9206,7 +9180,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9206
9180
|
);
|
|
9207
9181
|
};
|
|
9208
9182
|
|
|
9209
|
-
var Figure = React__default
|
|
9183
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9210
9184
|
|
|
9211
9185
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9212
9186
|
React.useEffect(function () {
|
|
@@ -9223,7 +9197,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9223
9197
|
}, [ref]);
|
|
9224
9198
|
}
|
|
9225
9199
|
|
|
9226
|
-
var FigureImage$1 = React__default
|
|
9200
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9227
9201
|
var imagesCount = _ref.imagesCount,
|
|
9228
9202
|
image = _ref.image,
|
|
9229
9203
|
client = _ref.client,
|
|
@@ -9231,13 +9205,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref) {
|
|
|
9231
9205
|
link = _ref.link,
|
|
9232
9206
|
handleClickFigure = _ref.handleClickFigure;
|
|
9233
9207
|
|
|
9234
|
-
return React__default
|
|
9208
|
+
return React__default.createElement(
|
|
9235
9209
|
'picture',
|
|
9236
9210
|
null,
|
|
9237
|
-
React__default
|
|
9238
|
-
React__default
|
|
9239
|
-
React__default
|
|
9240
|
-
React__default
|
|
9211
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9212
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9213
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9214
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9241
9215
|
'images-count': imagesCount,
|
|
9242
9216
|
className: 'multi-figure-image',
|
|
9243
9217
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9274,13 +9248,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9274
9248
|
imgcaption = _ref2.imgcaption;
|
|
9275
9249
|
|
|
9276
9250
|
if (imgcaption && imgcaption.length > 0) {
|
|
9277
|
-
return React__default
|
|
9251
|
+
return React__default.createElement(
|
|
9278
9252
|
'div',
|
|
9279
9253
|
{ className: 'multi-figure-caption' },
|
|
9280
|
-
React__default
|
|
9254
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9281
9255
|
);
|
|
9282
9256
|
} else if (caption) {
|
|
9283
|
-
return React__default
|
|
9257
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9284
9258
|
} else return null;
|
|
9285
9259
|
};
|
|
9286
9260
|
|
|
@@ -9289,7 +9263,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9289
9263
|
setOpenImg(true);
|
|
9290
9264
|
}, [client]);
|
|
9291
9265
|
|
|
9292
|
-
var FigureImageWOverLay = React__default
|
|
9266
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9293
9267
|
var imagesCount = _ref3.imagesCount,
|
|
9294
9268
|
image = _ref3.image,
|
|
9295
9269
|
client = _ref3.client,
|
|
@@ -9297,32 +9271,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9297
9271
|
link = _ref3.link,
|
|
9298
9272
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9299
9273
|
|
|
9300
|
-
var triggerAction = main.
|
|
9301
|
-
var placementLocation = main.
|
|
9302
|
-
return React__default
|
|
9274
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9275
|
+
var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9276
|
+
return React__default.createElement(
|
|
9303
9277
|
'picture',
|
|
9304
9278
|
null,
|
|
9305
|
-
React__default
|
|
9306
|
-
React__default
|
|
9307
|
-
React__default
|
|
9308
|
-
main.
|
|
9279
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9280
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9281
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9282
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9309
9283
|
'images-count': imagesCount,
|
|
9310
9284
|
className: 'multi-figure-image',
|
|
9311
9285
|
src: urlFor({ source: image, client: client }),
|
|
9312
9286
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9313
|
-
}, !link && !main.
|
|
9287
|
+
}, !link && !main.main_35 && {
|
|
9314
9288
|
onClick: function onClick() {
|
|
9315
9289
|
return handleClickFigure(image, client);
|
|
9316
9290
|
}
|
|
9317
|
-
})) : React__default
|
|
9318
|
-
|
|
9291
|
+
})) : React__default.createElement(
|
|
9292
|
+
OverlayTrigger,
|
|
9319
9293
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9320
|
-
React__default
|
|
9294
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9321
9295
|
'images-count': imagesCount,
|
|
9322
9296
|
className: 'multi-figure-image',
|
|
9323
9297
|
src: urlFor({ source: image, client: client }),
|
|
9324
9298
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9325
|
-
}, !link && !main.
|
|
9299
|
+
}, !link && !main.main_35 && {
|
|
9326
9300
|
onClick: function onClick() {
|
|
9327
9301
|
return handleClickFigure(image, client);
|
|
9328
9302
|
}
|
|
@@ -9333,102 +9307,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9333
9307
|
|
|
9334
9308
|
var renderTooltip = function renderTooltip(image) {
|
|
9335
9309
|
if (image.infoBox[0].title) {
|
|
9336
|
-
return React__default
|
|
9337
|
-
|
|
9310
|
+
return React__default.createElement(
|
|
9311
|
+
Popover,
|
|
9338
9312
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9339
|
-
React__default
|
|
9340
|
-
|
|
9313
|
+
React__default.createElement(
|
|
9314
|
+
Popover.Title,
|
|
9341
9315
|
{ as: 'h3' },
|
|
9342
9316
|
image.infoBox[0].title
|
|
9343
9317
|
),
|
|
9344
|
-
React__default
|
|
9345
|
-
|
|
9318
|
+
React__default.createElement(
|
|
9319
|
+
Popover.Content,
|
|
9346
9320
|
null,
|
|
9347
|
-
React__default
|
|
9321
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9348
9322
|
)
|
|
9349
9323
|
);
|
|
9350
9324
|
} else {
|
|
9351
|
-
return React__default
|
|
9352
|
-
|
|
9353
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9354
|
-
React__default
|
|
9325
|
+
return React__default.createElement(
|
|
9326
|
+
Tooltip,
|
|
9327
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9328
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9355
9329
|
);
|
|
9356
9330
|
}
|
|
9357
9331
|
};
|
|
9358
9332
|
|
|
9359
9333
|
if (images && images.length > 0) {
|
|
9360
|
-
return React__default
|
|
9334
|
+
return React__default.createElement(
|
|
9361
9335
|
'div',
|
|
9362
9336
|
{ className: 'multi-figure-container' },
|
|
9363
|
-
React__default
|
|
9364
|
-
|
|
9337
|
+
React__default.createElement(
|
|
9338
|
+
Row,
|
|
9365
9339
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9366
9340
|
images.map(function (image, index) {
|
|
9367
9341
|
if (image.infoBox) {
|
|
9368
|
-
return React__default
|
|
9369
|
-
|
|
9342
|
+
return React__default.createElement(
|
|
9343
|
+
Col,
|
|
9370
9344
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9371
|
-
image.link ? React__default
|
|
9345
|
+
image.link ? React__default.createElement(
|
|
9372
9346
|
'a',
|
|
9373
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9374
|
-
React__default
|
|
9347
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9348
|
+
React__default.createElement(
|
|
9375
9349
|
'div',
|
|
9376
9350
|
{ className: 'multi-figure-image-container' },
|
|
9377
|
-
React__default
|
|
9351
|
+
React__default.createElement(
|
|
9378
9352
|
index$2.LazyLoad,
|
|
9379
9353
|
{ once: true },
|
|
9380
|
-
React__default
|
|
9354
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9381
9355
|
),
|
|
9382
|
-
React__default
|
|
9356
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9383
9357
|
)
|
|
9384
|
-
) : React__default
|
|
9358
|
+
) : React__default.createElement(
|
|
9385
9359
|
'div',
|
|
9386
9360
|
{ className: 'multi-figure-image-container' },
|
|
9387
|
-
React__default
|
|
9361
|
+
React__default.createElement(
|
|
9388
9362
|
index$2.LazyLoad,
|
|
9389
9363
|
{ once: true },
|
|
9390
|
-
React__default
|
|
9364
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9391
9365
|
),
|
|
9392
|
-
React__default
|
|
9366
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9393
9367
|
)
|
|
9394
9368
|
);
|
|
9395
9369
|
} else {
|
|
9396
|
-
return React__default
|
|
9397
|
-
|
|
9370
|
+
return React__default.createElement(
|
|
9371
|
+
Col,
|
|
9398
9372
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9399
|
-
image.link ? React__default
|
|
9373
|
+
image.link ? React__default.createElement(
|
|
9400
9374
|
'a',
|
|
9401
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9402
|
-
React__default
|
|
9375
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9376
|
+
React__default.createElement(
|
|
9403
9377
|
'div',
|
|
9404
9378
|
{ className: 'multi-figure-image-container' },
|
|
9405
|
-
React__default
|
|
9379
|
+
React__default.createElement(
|
|
9406
9380
|
index$2.LazyLoad,
|
|
9407
9381
|
{ once: true },
|
|
9408
|
-
React__default
|
|
9382
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9409
9383
|
),
|
|
9410
|
-
React__default
|
|
9384
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9411
9385
|
)
|
|
9412
|
-
) : React__default
|
|
9386
|
+
) : React__default.createElement(
|
|
9413
9387
|
'div',
|
|
9414
9388
|
{ className: 'multi-figure-image-container' },
|
|
9415
|
-
React__default
|
|
9389
|
+
React__default.createElement(
|
|
9416
9390
|
index$2.LazyLoad,
|
|
9417
9391
|
{ once: true },
|
|
9418
|
-
React__default
|
|
9392
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9419
9393
|
),
|
|
9420
|
-
React__default
|
|
9394
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9421
9395
|
)
|
|
9422
9396
|
);
|
|
9423
9397
|
}
|
|
9424
9398
|
})
|
|
9425
9399
|
),
|
|
9426
|
-
React__default
|
|
9400
|
+
React__default.createElement(
|
|
9427
9401
|
'div',
|
|
9428
9402
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9429
|
-
React__default
|
|
9403
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9430
9404
|
),
|
|
9431
|
-
React__default
|
|
9405
|
+
React__default.createElement(
|
|
9432
9406
|
'style',
|
|
9433
9407
|
{ jsx: 'true' },
|
|
9434
9408
|
'\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 '
|
|
@@ -9464,11 +9438,11 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9464
9438
|
};
|
|
9465
9439
|
}, []);
|
|
9466
9440
|
|
|
9467
|
-
return React__default
|
|
9441
|
+
return React__default.createElement(
|
|
9468
9442
|
'div',
|
|
9469
9443
|
{ id: elementId },
|
|
9470
|
-
React__default
|
|
9471
|
-
React__default
|
|
9444
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9445
|
+
React__default.createElement(
|
|
9472
9446
|
'style',
|
|
9473
9447
|
{ jsx: 'true' },
|
|
9474
9448
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -100px;\n height: 100px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -9501,7 +9475,7 @@ exports.__esModule = true;
|
|
|
9501
9475
|
|
|
9502
9476
|
|
|
9503
9477
|
|
|
9504
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9478
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9505
9479
|
|
|
9506
9480
|
|
|
9507
9481
|
|
|
@@ -9509,23 +9483,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9509
9483
|
|
|
9510
9484
|
|
|
9511
9485
|
|
|
9512
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9486
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9513
9487
|
|
|
9514
9488
|
|
|
9515
9489
|
|
|
9516
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9490
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9517
9491
|
|
|
9518
9492
|
|
|
9519
9493
|
|
|
9520
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9494
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9521
9495
|
|
|
9522
9496
|
|
|
9523
9497
|
|
|
9524
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9498
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9525
9499
|
|
|
9526
9500
|
|
|
9527
9501
|
|
|
9528
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9502
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9529
9503
|
|
|
9530
9504
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9531
9505
|
var noop = function noop() {};
|
|
@@ -9680,7 +9654,7 @@ var ScriptTag = function (_Component) {
|
|
|
9680
9654
|
};
|
|
9681
9655
|
|
|
9682
9656
|
return ScriptTag;
|
|
9683
|
-
}(React__default
|
|
9657
|
+
}(React__default.Component);
|
|
9684
9658
|
|
|
9685
9659
|
ScriptTag.propTypes = {
|
|
9686
9660
|
/**
|
|
@@ -9759,11 +9733,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9759
9733
|
}, []);
|
|
9760
9734
|
|
|
9761
9735
|
if (iframeSrc) {
|
|
9762
|
-
return React__default
|
|
9736
|
+
return React__default.createElement(
|
|
9763
9737
|
'section',
|
|
9764
9738
|
{ className: 'form-assembly' },
|
|
9765
|
-
React__default
|
|
9766
|
-
React__default
|
|
9739
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9740
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9767
9741
|
);
|
|
9768
9742
|
}
|
|
9769
9743
|
|
|
@@ -9800,27 +9774,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9800
9774
|
return window.removeEventListener('resize', handleResize);
|
|
9801
9775
|
};
|
|
9802
9776
|
}, []);
|
|
9803
|
-
return React__default
|
|
9777
|
+
return React__default.createElement(
|
|
9804
9778
|
'div',
|
|
9805
9779
|
{ className: 'blockTableHolder', ref: holder },
|
|
9806
|
-
React__default
|
|
9780
|
+
React__default.createElement(
|
|
9807
9781
|
'div',
|
|
9808
9782
|
{ className: 'blockTable' },
|
|
9809
9783
|
rows && rows.map(function (row) {
|
|
9810
|
-
return React__default
|
|
9784
|
+
return React__default.createElement(
|
|
9811
9785
|
'div',
|
|
9812
9786
|
{ className: 'blockTableRow' },
|
|
9813
9787
|
row.cells && row.cells.map(function (cell) {
|
|
9814
|
-
return React__default
|
|
9788
|
+
return React__default.createElement(
|
|
9815
9789
|
'div',
|
|
9816
9790
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9817
|
-
React__default
|
|
9791
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9818
9792
|
);
|
|
9819
9793
|
})
|
|
9820
9794
|
);
|
|
9821
9795
|
})
|
|
9822
9796
|
),
|
|
9823
|
-
React__default
|
|
9797
|
+
React__default.createElement(
|
|
9824
9798
|
'style',
|
|
9825
9799
|
{ jsx: true },
|
|
9826
9800
|
'\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 '
|
|
@@ -9899,12 +9873,12 @@ var getSerializers = function getSerializers() {
|
|
|
9899
9873
|
var node = _ref.node;
|
|
9900
9874
|
var url = node.url;
|
|
9901
9875
|
|
|
9902
|
-
return React__default
|
|
9876
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9903
9877
|
},
|
|
9904
9878
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9905
9879
|
var node = _ref2.node;
|
|
9906
9880
|
|
|
9907
|
-
return React__default
|
|
9881
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9908
9882
|
nodes: node,
|
|
9909
9883
|
article: article,
|
|
9910
9884
|
meta: meta,
|
|
@@ -9918,7 +9892,7 @@ var getSerializers = function getSerializers() {
|
|
|
9918
9892
|
articleSeries: function articleSeries(_ref3) {
|
|
9919
9893
|
var node = _ref3.node;
|
|
9920
9894
|
|
|
9921
|
-
return React__default
|
|
9895
|
+
return React__default.createElement(ArticleSeries, {
|
|
9922
9896
|
nodes: node,
|
|
9923
9897
|
accountIDs: videoAccountIDs || {},
|
|
9924
9898
|
pageview: pageview,
|
|
@@ -9931,61 +9905,61 @@ var getSerializers = function getSerializers() {
|
|
|
9931
9905
|
figure: function figure(_ref4) {
|
|
9932
9906
|
var node = _ref4.node;
|
|
9933
9907
|
|
|
9934
|
-
return React__default
|
|
9908
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9935
9909
|
},
|
|
9936
9910
|
multifigure: function multifigure(_ref5) {
|
|
9937
9911
|
var node = _ref5.node;
|
|
9938
9912
|
|
|
9939
|
-
return React__default
|
|
9913
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9940
9914
|
},
|
|
9941
9915
|
slideshow: function slideshow(_ref6) {
|
|
9942
9916
|
var node = _ref6.node;
|
|
9943
9917
|
var slides = node.slides;
|
|
9944
9918
|
|
|
9945
|
-
return React__default
|
|
9919
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9946
9920
|
},
|
|
9947
9921
|
sidebar: function sidebar(_ref7) {
|
|
9948
9922
|
var node = _ref7.node;
|
|
9949
9923
|
var caption = node.caption,
|
|
9950
9924
|
content = node.content;
|
|
9951
9925
|
|
|
9952
|
-
return React__default
|
|
9926
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9953
9927
|
},
|
|
9954
9928
|
datatable: function datatable(_ref8) {
|
|
9955
9929
|
var node = _ref8.node;
|
|
9956
9930
|
var table = node.table;
|
|
9957
9931
|
|
|
9958
|
-
return React__default
|
|
9932
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9959
9933
|
},
|
|
9960
9934
|
media: function media(_ref9) {
|
|
9961
9935
|
var node = _ref9.node;
|
|
9962
9936
|
|
|
9963
|
-
return React__default
|
|
9937
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9964
9938
|
},
|
|
9965
9939
|
iframe: function iframe(_ref10) {
|
|
9966
9940
|
var node = _ref10.node;
|
|
9967
9941
|
|
|
9968
|
-
return React__default
|
|
9942
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9969
9943
|
},
|
|
9970
9944
|
video: function video(_ref11) {
|
|
9971
9945
|
var node = _ref11.node;
|
|
9972
9946
|
|
|
9973
|
-
return React__default
|
|
9947
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9974
9948
|
},
|
|
9975
9949
|
audio: function audio(_ref12) {
|
|
9976
9950
|
var node = _ref12.node;
|
|
9977
9951
|
|
|
9978
|
-
return React__default
|
|
9952
|
+
return React__default.createElement(Audio, { node: node });
|
|
9979
9953
|
},
|
|
9980
9954
|
poll: function poll(_ref13) {
|
|
9981
9955
|
var node = _ref13.node;
|
|
9982
9956
|
|
|
9983
|
-
return React__default
|
|
9957
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9984
9958
|
},
|
|
9985
9959
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9986
9960
|
var node = _ref14.node;
|
|
9987
9961
|
|
|
9988
|
-
return React__default
|
|
9962
|
+
return React__default.createElement(Poll$1, {
|
|
9989
9963
|
node: node,
|
|
9990
9964
|
client: client,
|
|
9991
9965
|
pageview: pageview,
|
|
@@ -9999,35 +9973,35 @@ var getSerializers = function getSerializers() {
|
|
|
9999
9973
|
var node = _ref15.node;
|
|
10000
9974
|
var quizzes = node.quizzes;
|
|
10001
9975
|
|
|
10002
|
-
return React__default
|
|
9976
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10003
9977
|
},
|
|
10004
9978
|
leads: function leads(_ref16) {
|
|
10005
9979
|
var node = _ref16.node;
|
|
10006
9980
|
var leadID = node.leadID;
|
|
10007
9981
|
|
|
10008
9982
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10009
|
-
return React__default
|
|
9983
|
+
return React__default.createElement(Leads, { url: url });
|
|
10010
9984
|
},
|
|
10011
9985
|
slideshows: function slideshows(_ref17) {
|
|
10012
9986
|
var node = _ref17.node;
|
|
10013
9987
|
|
|
10014
|
-
return React__default
|
|
9988
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10015
9989
|
},
|
|
10016
9990
|
nativeAd: function nativeAd(_ref18) {
|
|
10017
9991
|
var node = _ref18.node;
|
|
10018
9992
|
|
|
10019
|
-
return React__default
|
|
9993
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10020
9994
|
},
|
|
10021
9995
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10022
9996
|
var node = _ref19.node;
|
|
10023
9997
|
|
|
10024
|
-
return React__default
|
|
9998
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10025
9999
|
},
|
|
10026
10000
|
hrtag: function hrtag() {
|
|
10027
|
-
return React__default
|
|
10001
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10028
10002
|
},
|
|
10029
10003
|
brtag: function brtag() {
|
|
10030
|
-
return React__default
|
|
10004
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10031
10005
|
},
|
|
10032
10006
|
formstack: function formstack(_ref20) {
|
|
10033
10007
|
var node = _ref20.node;
|
|
@@ -10035,29 +10009,29 @@ var getSerializers = function getSerializers() {
|
|
|
10035
10009
|
Caption = node.Caption,
|
|
10036
10010
|
needSegmentSupport = node.needSegmentSupport;
|
|
10037
10011
|
|
|
10038
|
-
return React__default
|
|
10012
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10039
10013
|
},
|
|
10040
10014
|
formassembly: FormAssembly,
|
|
10041
10015
|
multimedia: function multimedia(_ref21) {
|
|
10042
10016
|
var node = _ref21.node;
|
|
10043
10017
|
|
|
10044
|
-
return React__default
|
|
10018
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10045
10019
|
},
|
|
10046
10020
|
blockTable: function blockTable(_ref22) {
|
|
10047
10021
|
var node = _ref22.node;
|
|
10048
|
-
return React__default
|
|
10022
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10049
10023
|
}
|
|
10050
10024
|
},
|
|
10051
10025
|
marks: {
|
|
10052
10026
|
superscript: function superscript(props) {
|
|
10053
|
-
return React__default
|
|
10027
|
+
return React__default.createElement(
|
|
10054
10028
|
'sup',
|
|
10055
10029
|
null,
|
|
10056
10030
|
props.children
|
|
10057
10031
|
);
|
|
10058
10032
|
},
|
|
10059
10033
|
subscript: function subscript(props) {
|
|
10060
|
-
return React__default
|
|
10034
|
+
return React__default.createElement(
|
|
10061
10035
|
'sub',
|
|
10062
10036
|
null,
|
|
10063
10037
|
props.children
|
|
@@ -10073,7 +10047,7 @@ var getSerializers = function getSerializers() {
|
|
|
10073
10047
|
if (href && href.charAt(0) === '#') {
|
|
10074
10048
|
var elementId = href.slice(1);
|
|
10075
10049
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10076
|
-
return React__default
|
|
10050
|
+
return React__default.createElement(
|
|
10077
10051
|
'a',
|
|
10078
10052
|
{ onClick: function onClick() {
|
|
10079
10053
|
return ScrollToElement(elementId);
|
|
@@ -10083,7 +10057,7 @@ var getSerializers = function getSerializers() {
|
|
|
10083
10057
|
}
|
|
10084
10058
|
|
|
10085
10059
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10086
|
-
return React__default
|
|
10060
|
+
return React__default.createElement(
|
|
10087
10061
|
'a',
|
|
10088
10062
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
10089
10063
|
children
|
|
@@ -10091,7 +10065,7 @@ var getSerializers = function getSerializers() {
|
|
|
10091
10065
|
},
|
|
10092
10066
|
alignleft: function alignleft(_ref23) {
|
|
10093
10067
|
var children = _ref23.children;
|
|
10094
|
-
return React__default
|
|
10068
|
+
return React__default.createElement(
|
|
10095
10069
|
'div',
|
|
10096
10070
|
{ style: { textAlign: 'left' } },
|
|
10097
10071
|
children
|
|
@@ -10099,7 +10073,7 @@ var getSerializers = function getSerializers() {
|
|
|
10099
10073
|
},
|
|
10100
10074
|
alignright: function alignright(_ref24) {
|
|
10101
10075
|
var children = _ref24.children;
|
|
10102
|
-
return React__default
|
|
10076
|
+
return React__default.createElement(
|
|
10103
10077
|
'div',
|
|
10104
10078
|
{ style: { textAlign: 'right' } },
|
|
10105
10079
|
children
|
|
@@ -10107,7 +10081,7 @@ var getSerializers = function getSerializers() {
|
|
|
10107
10081
|
},
|
|
10108
10082
|
aligncenter: function aligncenter(_ref25) {
|
|
10109
10083
|
var children = _ref25.children;
|
|
10110
|
-
return React__default
|
|
10084
|
+
return React__default.createElement(
|
|
10111
10085
|
'div',
|
|
10112
10086
|
{ style: { textAlign: 'center' } },
|
|
10113
10087
|
children
|
|
@@ -10115,7 +10089,7 @@ var getSerializers = function getSerializers() {
|
|
|
10115
10089
|
},
|
|
10116
10090
|
alignjustify: function alignjustify(_ref26) {
|
|
10117
10091
|
var children = _ref26.children;
|
|
10118
|
-
return React__default
|
|
10092
|
+
return React__default.createElement(
|
|
10119
10093
|
'div',
|
|
10120
10094
|
{ style: { textAlign: 'justify' } },
|
|
10121
10095
|
children
|
|
@@ -10125,7 +10099,7 @@ var getSerializers = function getSerializers() {
|
|
|
10125
10099
|
var children = props.children,
|
|
10126
10100
|
color = props.mark.color;
|
|
10127
10101
|
|
|
10128
|
-
return React__default
|
|
10102
|
+
return React__default.createElement(
|
|
10129
10103
|
'span',
|
|
10130
10104
|
{ style: { color: color ? color.hex : null } },
|
|
10131
10105
|
children
|