@mjhls/mjh-framework 1.0.719 → 1.0.720-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-2c7a6dd8.js → ADInfeed-5a561d7c.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-fb101797.js → ADlgInfeed-c50f81d4.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +16 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +54 -55
- package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +534 -820
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-ce7ac168.js} +30 -31
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +76 -77
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +68 -69
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +51 -52
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +70 -74
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +46 -47
- package/dist/cjs/VideoSeriesListing.js +74 -75
- package/dist/cjs/View.js +232 -235
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +72 -71
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +13 -424
- package/dist/cjs/getSerializers.js +42 -42
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-7d880c49.js → index-792274b1.js} +898 -921
- package/dist/cjs/{index-5ad2b070.js → index-8bf6c863.js} +48 -30
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +133 -133
- package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-3ee501b9.js → ADInfeed-bb62ee44.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-0bf06b17.js → ADlgInfeed-ef0a892e.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +51 -51
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +517 -799
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-5d779279.js → Dfp-e9a07597.js} +20 -20
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +70 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +65 -65
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +60 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +39 -39
- package/dist/esm/VideoSeriesListing.js +68 -68
- package/dist/esm/View.js +216 -215
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +56 -54
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getRelatedArticle.js +13 -424
- package/dist/esm/getSerializers.js +42 -42
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-669ff425.js → index-a9e53f80.js} +43 -24
- package/dist/esm/{index-998e7b12.js → index-c3a5ff39.js} +839 -855
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +111 -111
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
|
@@ -1,50 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-60837c34.js');
|
|
9
|
+
var inherits = require('./inherits-c9f99d47.js');
|
|
10
|
+
var _typeof = require('./typeof-725500bc.js');
|
|
3
11
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var index = require('./index-d48b231c.js');
|
|
7
|
-
var index$1 = require('./index-5ad2b070.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var index$2 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-8bf6c863.js');
|
|
10
14
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var index$1 = require('./index-be0c82be.js');
|
|
22
|
+
var index$2 = require('./index-da796b8c.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
24
|
+
var entities = require('./entities-310b46ee.js');
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
14
26
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
17
|
-
var _extends = require('./extends-1e24fc8d.js');
|
|
18
|
-
var index$3 = require('./index-80f57cff.js');
|
|
19
|
-
var _typeof$1 = require('./typeof-97065d40.js');
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
21
|
-
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var moment = require('./moment-aca40de1.js');
|
|
23
|
-
var _toObject = require('./_to-object-821a2927.js');
|
|
24
|
-
var _objectToArray = require('./_object-to-array-bec5fcf2.js');
|
|
25
|
-
var toConsumableArray = require('./toConsumableArray-cf0865fc.js');
|
|
26
|
-
var Pagination = require('react-bootstrap/Pagination');
|
|
27
|
-
var Button = require('react-bootstrap/Button');
|
|
28
|
-
var entities = require('./entities-3f9d0f2f.js');
|
|
27
|
+
var Beam = require('./Beam.js');
|
|
29
28
|
var AdSlot = require('./AdSlot.js');
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var index_esm = require('./index.esm-
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
43
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
44
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
45
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
46
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
47
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
29
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
30
|
+
var index$3 = require('./index-187c967e.js');
|
|
31
|
+
var GroupDeck = require('./GroupDeck.js');
|
|
32
|
+
var reactBootstrap = require('react-bootstrap');
|
|
33
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
34
|
+
var util = require('./util-f2c1b65b.js');
|
|
35
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
36
|
+
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
37
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
38
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
39
|
+
var Head = _interopDefault(require('next/head'));
|
|
40
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
48
41
|
|
|
49
42
|
var urlFor = function urlFor(source, builder) {
|
|
50
43
|
return builder.image(source).auto('format');
|
|
@@ -53,7 +46,7 @@ var urlFor = function urlFor(source, builder) {
|
|
|
53
46
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
54
47
|
var pageNumber = selectedIndex + 1;
|
|
55
48
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
56
|
-
Router__default
|
|
49
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
57
50
|
};
|
|
58
51
|
|
|
59
52
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -68,7 +61,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
68
61
|
carouselIndex = _useState2[0],
|
|
69
62
|
setCarouselIndex = _useState2[1];
|
|
70
63
|
|
|
71
|
-
var builder = index.imageUrlBuilder(client);
|
|
64
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
72
65
|
|
|
73
66
|
React.useEffect(function () {
|
|
74
67
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -81,24 +74,24 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
81
74
|
}, [router]);
|
|
82
75
|
|
|
83
76
|
React.useEffect(function () {
|
|
84
|
-
index
|
|
77
|
+
index.lib_3.refresh();
|
|
85
78
|
if (pageview) pageview(router.asPath);
|
|
86
79
|
}, [router]);
|
|
87
80
|
|
|
88
|
-
return React__default
|
|
81
|
+
return React__default.createElement(
|
|
89
82
|
'div',
|
|
90
83
|
{ className: 'mt-3 mb-3' },
|
|
91
|
-
React__default
|
|
84
|
+
React__default.createElement(
|
|
92
85
|
reactBootstrap.Carousel,
|
|
93
86
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
94
87
|
return onChangeSlide(selectedIndex, router);
|
|
95
88
|
}, interval: null },
|
|
96
89
|
slides && slides.map(function (slide) {
|
|
97
|
-
return React__default
|
|
90
|
+
return React__default.createElement(
|
|
98
91
|
reactBootstrap.Carousel.Item,
|
|
99
92
|
{ key: slide._key },
|
|
100
|
-
React__default
|
|
101
|
-
slide.caption && React__default
|
|
93
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
94
|
+
slide.caption && React__default.createElement(
|
|
102
95
|
'p',
|
|
103
96
|
{ className: 'p-2' },
|
|
104
97
|
slide.caption
|
|
@@ -109,18 +102,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
109
102
|
);
|
|
110
103
|
};
|
|
111
104
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
var isArray = Array.isArray;
|
|
106
|
+
var keyList = Object.keys;
|
|
107
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
115
108
|
|
|
116
109
|
var fastDeepEqual = function equal(a, b) {
|
|
117
110
|
if (a === b) return true;
|
|
118
111
|
|
|
119
112
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
120
|
-
|
|
113
|
+
var arrA = isArray(a)
|
|
114
|
+
, arrB = isArray(b)
|
|
115
|
+
, i
|
|
116
|
+
, length
|
|
117
|
+
, key;
|
|
121
118
|
|
|
122
|
-
|
|
123
|
-
if (Array.isArray(a)) {
|
|
119
|
+
if (arrA && arrB) {
|
|
124
120
|
length = a.length;
|
|
125
121
|
if (length != b.length) return false;
|
|
126
122
|
for (i = length; i-- !== 0;)
|
|
@@ -128,29 +124,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
128
124
|
return true;
|
|
129
125
|
}
|
|
130
126
|
|
|
127
|
+
if (arrA != arrB) return false;
|
|
131
128
|
|
|
129
|
+
var dateA = a instanceof Date
|
|
130
|
+
, dateB = b instanceof Date;
|
|
131
|
+
if (dateA != dateB) return false;
|
|
132
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
132
133
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (
|
|
134
|
+
var regexpA = a instanceof RegExp
|
|
135
|
+
, regexpB = b instanceof RegExp;
|
|
136
|
+
if (regexpA != regexpB) return false;
|
|
137
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
136
138
|
|
|
137
|
-
keys =
|
|
139
|
+
var keys = keyList(a);
|
|
138
140
|
length = keys.length;
|
|
139
|
-
|
|
141
|
+
|
|
142
|
+
if (length !== keyList(b).length)
|
|
143
|
+
return false;
|
|
140
144
|
|
|
141
145
|
for (i = length; i-- !== 0;)
|
|
142
|
-
if (!
|
|
146
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
143
147
|
|
|
144
148
|
for (i = length; i-- !== 0;) {
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
key = keys[i];
|
|
147
150
|
if (!equal(a[key], b[key])) return false;
|
|
148
151
|
}
|
|
149
152
|
|
|
150
153
|
return true;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
|
-
// true if both NaN, false otherwise
|
|
154
156
|
return a!==a && b!==b;
|
|
155
157
|
};
|
|
156
158
|
|
|
@@ -688,14 +690,14 @@ function coerce(val) {
|
|
|
688
690
|
return val;
|
|
689
691
|
}
|
|
690
692
|
});
|
|
691
|
-
debug.coerce;
|
|
692
|
-
debug.disable;
|
|
693
|
-
debug.enable;
|
|
694
|
-
debug.enabled;
|
|
695
|
-
debug.humanize;
|
|
696
|
-
debug.names;
|
|
697
|
-
debug.skips;
|
|
698
|
-
debug.formatters;
|
|
693
|
+
var debug_1 = debug.coerce;
|
|
694
|
+
var debug_2 = debug.disable;
|
|
695
|
+
var debug_3 = debug.enable;
|
|
696
|
+
var debug_4 = debug.enabled;
|
|
697
|
+
var debug_5 = debug.humanize;
|
|
698
|
+
var debug_6 = debug.names;
|
|
699
|
+
var debug_7 = debug.skips;
|
|
700
|
+
var debug_8 = debug.formatters;
|
|
699
701
|
|
|
700
702
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
701
703
|
/**
|
|
@@ -884,13 +886,13 @@ function localstorage() {
|
|
|
884
886
|
} catch (e) {}
|
|
885
887
|
}
|
|
886
888
|
});
|
|
887
|
-
browser.log;
|
|
888
|
-
browser.formatArgs;
|
|
889
|
-
browser.save;
|
|
890
|
-
browser.load;
|
|
891
|
-
browser.useColors;
|
|
892
|
-
browser.storage;
|
|
893
|
-
browser.colors;
|
|
889
|
+
var browser_1 = browser.log;
|
|
890
|
+
var browser_2 = browser.formatArgs;
|
|
891
|
+
var browser_3 = browser.save;
|
|
892
|
+
var browser_4 = browser.load;
|
|
893
|
+
var browser_5 = browser.useColors;
|
|
894
|
+
var browser_6 = browser.storage;
|
|
895
|
+
var browser_7 = browser.colors;
|
|
894
896
|
|
|
895
897
|
// MIT lisence
|
|
896
898
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1165,14 +1167,14 @@ function init (debug) {
|
|
|
1165
1167
|
|
|
1166
1168
|
exports.enable(load());
|
|
1167
1169
|
});
|
|
1168
|
-
node.init;
|
|
1169
|
-
node.log;
|
|
1170
|
-
node.formatArgs;
|
|
1171
|
-
node.save;
|
|
1172
|
-
node.load;
|
|
1173
|
-
node.useColors;
|
|
1174
|
-
node.colors;
|
|
1175
|
-
node.inspectOpts;
|
|
1170
|
+
var node_1 = node.init;
|
|
1171
|
+
var node_2 = node.log;
|
|
1172
|
+
var node_3 = node.formatArgs;
|
|
1173
|
+
var node_4 = node.save;
|
|
1174
|
+
var node_5 = node.load;
|
|
1175
|
+
var node_6 = node.useColors;
|
|
1176
|
+
var node_7 = node.colors;
|
|
1177
|
+
var node_8 = node.inspectOpts;
|
|
1176
1178
|
|
|
1177
1179
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1178
1180
|
/**
|
|
@@ -1573,239 +1575,199 @@ module.exports = exports['default'];
|
|
|
1573
1575
|
|
|
1574
1576
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1575
1577
|
|
|
1576
|
-
function
|
|
1577
|
-
|
|
1578
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1579
|
-
|
|
1580
|
-
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); } }
|
|
1581
|
-
|
|
1582
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1583
|
-
|
|
1584
|
-
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); }
|
|
1585
|
-
|
|
1586
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1587
|
-
|
|
1588
|
-
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); }; }
|
|
1589
|
-
|
|
1590
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1591
|
-
|
|
1592
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1578
|
+
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; }; }();
|
|
1593
1579
|
|
|
1594
|
-
function
|
|
1580
|
+
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; };
|
|
1595
1581
|
|
|
1596
|
-
function
|
|
1582
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1597
1583
|
|
|
1598
|
-
function
|
|
1584
|
+
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; }
|
|
1599
1585
|
|
|
1600
|
-
function
|
|
1586
|
+
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; }
|
|
1601
1587
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
* @param {Object}
|
|
1607
|
-
* @param {Object} props
|
|
1588
|
+
/**
|
|
1589
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1590
|
+
*
|
|
1591
|
+
* @param {Object} prevProps
|
|
1592
|
+
* @param {Object} props
|
|
1608
1593
|
*/
|
|
1609
|
-
|
|
1610
1594
|
function shouldUpdateVideo(prevProps, props) {
|
|
1611
1595
|
// A changing video should always trigger an update
|
|
1612
1596
|
if (prevProps.videoId !== props.videoId) {
|
|
1613
1597
|
return true;
|
|
1614
|
-
}
|
|
1615
|
-
// update.
|
|
1616
|
-
|
|
1598
|
+
}
|
|
1617
1599
|
|
|
1600
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1601
|
+
// update.
|
|
1618
1602
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1619
1603
|
var vars = props.opts.playerVars || {};
|
|
1604
|
+
|
|
1620
1605
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1621
1606
|
}
|
|
1622
|
-
/**
|
|
1623
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1624
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1625
|
-
* player reset is necessary.
|
|
1626
|
-
*
|
|
1627
|
-
* @param {Object} opts
|
|
1628
|
-
*/
|
|
1629
|
-
|
|
1630
1607
|
|
|
1608
|
+
/**
|
|
1609
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1610
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1611
|
+
* player reset is necessary.
|
|
1612
|
+
*
|
|
1613
|
+
* @param {Object} opts
|
|
1614
|
+
*/
|
|
1631
1615
|
function filterResetOptions(opts) {
|
|
1632
|
-
return
|
|
1633
|
-
playerVars:
|
|
1616
|
+
return _extends({}, opts, {
|
|
1617
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1634
1618
|
autoplay: 0,
|
|
1635
1619
|
start: 0,
|
|
1636
1620
|
end: 0
|
|
1637
|
-
}
|
|
1621
|
+
})
|
|
1638
1622
|
});
|
|
1639
1623
|
}
|
|
1640
|
-
/**
|
|
1641
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1642
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1643
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1644
|
-
* those.
|
|
1645
|
-
*
|
|
1646
|
-
* @param {Object} prevProps
|
|
1647
|
-
* @param {Object} props
|
|
1648
|
-
*/
|
|
1649
|
-
|
|
1650
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1627
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1628
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1629
|
+
* those.
|
|
1630
|
+
*
|
|
1631
|
+
* @param {Object} prevProps
|
|
1632
|
+
* @param {Object} props
|
|
1633
|
+
*/
|
|
1651
1634
|
function shouldResetPlayer(prevProps, props) {
|
|
1652
1635
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1653
1636
|
}
|
|
1654
|
-
/**
|
|
1655
|
-
* Check whether a props change should result in an id or className update.
|
|
1656
|
-
*
|
|
1657
|
-
* @param {Object} prevProps
|
|
1658
|
-
* @param {Object} props
|
|
1659
|
-
*/
|
|
1660
|
-
|
|
1661
1637
|
|
|
1638
|
+
/**
|
|
1639
|
+
* Check whether a props change should result in an id or className update.
|
|
1640
|
+
*
|
|
1641
|
+
* @param {Object} prevProps
|
|
1642
|
+
* @param {Object} props
|
|
1643
|
+
*/
|
|
1662
1644
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1663
1645
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1664
1646
|
}
|
|
1665
1647
|
|
|
1666
|
-
var YouTube =
|
|
1648
|
+
var YouTube = function (_React$Component) {
|
|
1667
1649
|
_inherits(YouTube, _React$Component);
|
|
1668
1650
|
|
|
1669
|
-
var _super = _createSuper(YouTube);
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1673
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1674
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1675
|
-
*/
|
|
1676
1651
|
function YouTube(props) {
|
|
1677
|
-
var _this;
|
|
1678
|
-
|
|
1679
1652
|
_classCallCheck(this, YouTube);
|
|
1680
1653
|
|
|
1681
|
-
_this =
|
|
1654
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1682
1655
|
|
|
1683
|
-
|
|
1656
|
+
_this.onPlayerReady = function (event) {
|
|
1684
1657
|
return _this.props.onReady(event);
|
|
1685
|
-
}
|
|
1658
|
+
};
|
|
1686
1659
|
|
|
1687
|
-
|
|
1660
|
+
_this.onPlayerError = function (event) {
|
|
1688
1661
|
return _this.props.onError(event);
|
|
1689
|
-
}
|
|
1662
|
+
};
|
|
1690
1663
|
|
|
1691
|
-
|
|
1664
|
+
_this.onPlayerStateChange = function (event) {
|
|
1692
1665
|
_this.props.onStateChange(event);
|
|
1693
|
-
|
|
1694
1666
|
switch (event.data) {
|
|
1667
|
+
|
|
1695
1668
|
case YouTube.PlayerState.ENDED:
|
|
1696
1669
|
_this.props.onEnd(event);
|
|
1697
|
-
|
|
1698
1670
|
break;
|
|
1699
1671
|
|
|
1700
1672
|
case YouTube.PlayerState.PLAYING:
|
|
1701
1673
|
_this.props.onPlay(event);
|
|
1702
|
-
|
|
1703
1674
|
break;
|
|
1704
1675
|
|
|
1705
1676
|
case YouTube.PlayerState.PAUSED:
|
|
1706
1677
|
_this.props.onPause(event);
|
|
1707
|
-
|
|
1708
1678
|
break;
|
|
1709
1679
|
}
|
|
1710
|
-
}
|
|
1680
|
+
};
|
|
1711
1681
|
|
|
1712
|
-
|
|
1682
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1713
1683
|
return _this.props.onPlaybackRateChange(event);
|
|
1714
|
-
}
|
|
1684
|
+
};
|
|
1715
1685
|
|
|
1716
|
-
|
|
1686
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1717
1687
|
return _this.props.onPlaybackQualityChange(event);
|
|
1718
|
-
}
|
|
1688
|
+
};
|
|
1719
1689
|
|
|
1720
|
-
|
|
1690
|
+
_this.createPlayer = function () {
|
|
1721
1691
|
// do not attempt to create a player server-side, it won't work
|
|
1722
|
-
if (typeof document === 'undefined') return;
|
|
1723
|
-
|
|
1724
|
-
var playerOpts =
|
|
1692
|
+
if (typeof document === 'undefined') return;
|
|
1693
|
+
// create player
|
|
1694
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1725
1695
|
// preload the `videoId` video if one is already given
|
|
1726
1696
|
videoId: _this.props.videoId
|
|
1727
1697
|
});
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1698
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1699
|
+
// attach event handlers
|
|
1731
1700
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1732
|
-
|
|
1733
1701
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1734
|
-
|
|
1735
1702
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1736
|
-
|
|
1737
1703
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1738
|
-
|
|
1739
1704
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1740
|
-
}
|
|
1705
|
+
};
|
|
1741
1706
|
|
|
1742
|
-
|
|
1707
|
+
_this.resetPlayer = function () {
|
|
1743
1708
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1744
|
-
}
|
|
1709
|
+
};
|
|
1745
1710
|
|
|
1746
|
-
|
|
1711
|
+
_this.updatePlayer = function () {
|
|
1747
1712
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1748
1713
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1749
1714
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1750
1715
|
});
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1754
|
-
return _this.internalPlayer;
|
|
1755
|
-
});
|
|
1716
|
+
};
|
|
1756
1717
|
|
|
1757
|
-
|
|
1718
|
+
_this.updateVideo = function () {
|
|
1758
1719
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1759
1720
|
_this.internalPlayer.stopVideo();
|
|
1760
|
-
|
|
1761
1721
|
return;
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1722
|
+
}
|
|
1764
1723
|
|
|
1724
|
+
// set queueing options
|
|
1765
1725
|
var autoplay = false;
|
|
1766
1726
|
var opts = {
|
|
1767
1727
|
videoId: _this.props.videoId
|
|
1768
1728
|
};
|
|
1769
|
-
|
|
1770
1729
|
if ('playerVars' in _this.props.opts) {
|
|
1771
1730
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1772
|
-
|
|
1773
1731
|
if ('start' in _this.props.opts.playerVars) {
|
|
1774
1732
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1775
1733
|
}
|
|
1776
|
-
|
|
1777
1734
|
if ('end' in _this.props.opts.playerVars) {
|
|
1778
1735
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1779
1736
|
}
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1737
|
+
}
|
|
1782
1738
|
|
|
1739
|
+
// if autoplay is enabled loadVideoById
|
|
1783
1740
|
if (autoplay) {
|
|
1784
1741
|
_this.internalPlayer.loadVideoById(opts);
|
|
1785
|
-
|
|
1786
1742
|
return;
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1743
|
+
}
|
|
1744
|
+
// default behaviour just cues the video
|
|
1790
1745
|
_this.internalPlayer.cueVideoById(opts);
|
|
1791
|
-
}
|
|
1746
|
+
};
|
|
1792
1747
|
|
|
1793
|
-
|
|
1748
|
+
_this.refContainer = function (container) {
|
|
1794
1749
|
_this.container = container;
|
|
1795
|
-
}
|
|
1750
|
+
};
|
|
1796
1751
|
|
|
1797
1752
|
_this.container = null;
|
|
1798
1753
|
_this.internalPlayer = null;
|
|
1799
1754
|
return _this;
|
|
1800
1755
|
}
|
|
1801
1756
|
|
|
1757
|
+
/**
|
|
1758
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1759
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1760
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1761
|
+
*/
|
|
1762
|
+
|
|
1763
|
+
|
|
1802
1764
|
_createClass(YouTube, [{
|
|
1803
|
-
key:
|
|
1765
|
+
key: 'componentDidMount',
|
|
1804
1766
|
value: function componentDidMount() {
|
|
1805
1767
|
this.createPlayer();
|
|
1806
1768
|
}
|
|
1807
1769
|
}, {
|
|
1808
|
-
key:
|
|
1770
|
+
key: 'componentDidUpdate',
|
|
1809
1771
|
value: function componentDidUpdate(prevProps) {
|
|
1810
1772
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1811
1773
|
this.updatePlayer();
|
|
@@ -1820,70 +1782,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1820
1782
|
}
|
|
1821
1783
|
}
|
|
1822
1784
|
}, {
|
|
1823
|
-
key:
|
|
1785
|
+
key: 'componentWillUnmount',
|
|
1824
1786
|
value: function componentWillUnmount() {
|
|
1825
|
-
/**
|
|
1826
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1827
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1828
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1829
|
-
* this method isn't quick enough to reset the container element.
|
|
1787
|
+
/**
|
|
1788
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1789
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1790
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1791
|
+
* this method isn't quick enough to reset the container element.
|
|
1830
1792
|
*/
|
|
1831
1793
|
this.internalPlayer.destroy();
|
|
1832
1794
|
}
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
*
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1798
|
+
*
|
|
1799
|
+
* @param {Object} event
|
|
1800
|
+
* @param {Object} target - player object
|
|
1801
|
+
*/
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1806
|
+
*
|
|
1807
|
+
* @param {Object} event
|
|
1808
|
+
* @param {Integer} data - error type
|
|
1809
|
+
* @param {Object} target - player object
|
|
1810
|
+
*/
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1815
|
+
*
|
|
1816
|
+
* @param {Object} event
|
|
1817
|
+
* @param {Integer} data - status change type
|
|
1818
|
+
* @param {Object} target - actual YT player
|
|
1819
|
+
*/
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1824
|
+
*
|
|
1825
|
+
* @param {Object} event
|
|
1826
|
+
* @param {Float} data - playback rate
|
|
1827
|
+
* @param {Object} target - actual YT player
|
|
1828
|
+
*/
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1833
|
+
*
|
|
1834
|
+
* @param {Object} event
|
|
1835
|
+
* @param {String} data - playback quality
|
|
1836
|
+
* @param {Object} target - actual YT player
|
|
1837
|
+
*/
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1847
|
+
*/
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1852
|
+
* React should update this automatically but since the Youtube Player API
|
|
1853
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1854
|
+
*/
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1859
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1860
|
+
* Youtube Player API methods to update the video.
|
|
1838
1861
|
*/
|
|
1839
1862
|
|
|
1840
1863
|
}, {
|
|
1841
|
-
key:
|
|
1864
|
+
key: 'render',
|
|
1842
1865
|
value: function render() {
|
|
1843
|
-
return
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
id: this.props.id,
|
|
1847
|
-
|
|
1848
|
-
ref: this.refContainer
|
|
1849
|
-
}));
|
|
1866
|
+
return React__default.createElement(
|
|
1867
|
+
'div',
|
|
1868
|
+
{ className: this.props.containerClassName },
|
|
1869
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1870
|
+
);
|
|
1850
1871
|
}
|
|
1851
1872
|
}]);
|
|
1852
1873
|
|
|
1853
1874
|
return YouTube;
|
|
1854
|
-
}(React__default
|
|
1855
|
-
|
|
1856
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1857
|
-
UNSTARTED: -1,
|
|
1858
|
-
ENDED: 0,
|
|
1859
|
-
PLAYING: 1,
|
|
1860
|
-
PAUSED: 2,
|
|
1861
|
-
BUFFERING: 3,
|
|
1862
|
-
CUED: 5
|
|
1863
|
-
});
|
|
1875
|
+
}(React__default.Component);
|
|
1864
1876
|
|
|
1865
1877
|
YouTube.propTypes = {
|
|
1866
|
-
videoId: PropTypes__default
|
|
1878
|
+
videoId: PropTypes__default.string,
|
|
1879
|
+
|
|
1867
1880
|
// custom ID for player element
|
|
1868
|
-
id: PropTypes__default
|
|
1881
|
+
id: PropTypes__default.string,
|
|
1882
|
+
|
|
1869
1883
|
// custom class name for player element
|
|
1870
|
-
className: PropTypes__default
|
|
1884
|
+
className: PropTypes__default.string,
|
|
1871
1885
|
// custom class name for player container element
|
|
1872
|
-
containerClassName: PropTypes__default
|
|
1886
|
+
containerClassName: PropTypes__default.string,
|
|
1887
|
+
|
|
1873
1888
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1874
|
-
opts: PropTypes__default
|
|
1889
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1890
|
+
|
|
1875
1891
|
// event subscriptions
|
|
1876
|
-
onReady: PropTypes__default
|
|
1877
|
-
onError: PropTypes__default
|
|
1878
|
-
onPlay: PropTypes__default
|
|
1879
|
-
onPause: PropTypes__default
|
|
1880
|
-
onEnd: PropTypes__default
|
|
1881
|
-
onStateChange: PropTypes__default
|
|
1882
|
-
onPlaybackRateChange: PropTypes__default
|
|
1883
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1892
|
+
onReady: PropTypes__default.func,
|
|
1893
|
+
onError: PropTypes__default.func,
|
|
1894
|
+
onPlay: PropTypes__default.func,
|
|
1895
|
+
onPause: PropTypes__default.func,
|
|
1896
|
+
onEnd: PropTypes__default.func,
|
|
1897
|
+
onStateChange: PropTypes__default.func,
|
|
1898
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1899
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1884
1900
|
};
|
|
1885
1901
|
YouTube.defaultProps = {
|
|
1886
|
-
videoId: null,
|
|
1887
1902
|
id: null,
|
|
1888
1903
|
className: null,
|
|
1889
1904
|
opts: {},
|
|
@@ -1897,11 +1912,19 @@ YouTube.defaultProps = {
|
|
|
1897
1912
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1898
1913
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1899
1914
|
};
|
|
1915
|
+
YouTube.PlayerState = {
|
|
1916
|
+
UNSTARTED: -1,
|
|
1917
|
+
ENDED: 0,
|
|
1918
|
+
PLAYING: 1,
|
|
1919
|
+
PAUSED: 2,
|
|
1920
|
+
BUFFERING: 3,
|
|
1921
|
+
CUED: 5
|
|
1922
|
+
};
|
|
1900
1923
|
|
|
1901
1924
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1902
1925
|
var url = _ref.url;
|
|
1903
1926
|
|
|
1904
|
-
var id = index$
|
|
1927
|
+
var id = index$3.getYoutubeId(url);
|
|
1905
1928
|
|
|
1906
1929
|
var _useState = React.useState(false),
|
|
1907
1930
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1996,11 +2019,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1996
2019
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1997
2020
|
};
|
|
1998
2021
|
|
|
1999
|
-
return React__default
|
|
2022
|
+
return React__default.createElement(
|
|
2000
2023
|
'div',
|
|
2001
2024
|
{ id: 'fluid-video-container' },
|
|
2002
|
-
React__default
|
|
2003
|
-
React__default
|
|
2025
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2026
|
+
React__default.createElement(
|
|
2004
2027
|
'style',
|
|
2005
2028
|
{ jsx: 'true' },
|
|
2006
2029
|
'\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 '
|
|
@@ -2013,20 +2036,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2013
2036
|
content = _ref.content,
|
|
2014
2037
|
getSerializers = _ref.getSerializers;
|
|
2015
2038
|
|
|
2016
|
-
return React__default
|
|
2039
|
+
return React__default.createElement(
|
|
2017
2040
|
'article',
|
|
2018
2041
|
{ className: 'sidebar' },
|
|
2019
|
-
React__default
|
|
2042
|
+
React__default.createElement(
|
|
2020
2043
|
'div',
|
|
2021
2044
|
null,
|
|
2022
|
-
React__default
|
|
2045
|
+
React__default.createElement(
|
|
2023
2046
|
'h3',
|
|
2024
2047
|
null,
|
|
2025
2048
|
caption
|
|
2026
2049
|
),
|
|
2027
|
-
React__default
|
|
2050
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2028
2051
|
),
|
|
2029
|
-
React__default
|
|
2052
|
+
React__default.createElement(
|
|
2030
2053
|
'style',
|
|
2031
2054
|
{ jsx: 'true' },
|
|
2032
2055
|
'\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 '
|
|
@@ -2037,18 +2060,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2037
2060
|
var TableShow = function TableShow(_ref) {
|
|
2038
2061
|
var rows = _ref.rows;
|
|
2039
2062
|
|
|
2040
|
-
return React__default
|
|
2063
|
+
return React__default.createElement(
|
|
2041
2064
|
reactBootstrap.Table,
|
|
2042
2065
|
{ bordered: true, hover: true, responsive: true },
|
|
2043
|
-
React__default
|
|
2066
|
+
React__default.createElement(
|
|
2044
2067
|
'tbody',
|
|
2045
2068
|
null,
|
|
2046
2069
|
rows && rows.map(function (row) {
|
|
2047
|
-
return React__default
|
|
2070
|
+
return React__default.createElement(
|
|
2048
2071
|
'tr',
|
|
2049
2072
|
{ key: row._key },
|
|
2050
2073
|
row.cells && row.cells.map(function (cell, index) {
|
|
2051
|
-
return cell && React__default
|
|
2074
|
+
return cell && React__default.createElement(
|
|
2052
2075
|
'td',
|
|
2053
2076
|
{ key: index },
|
|
2054
2077
|
cell
|
|
@@ -2076,7 +2099,7 @@ var Media = function Media(_ref) {
|
|
|
2076
2099
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2077
2100
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2078
2101
|
|
|
2079
|
-
var builder = index.imageUrlBuilder(client);
|
|
2102
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2080
2103
|
|
|
2081
2104
|
var urlFor = function urlFor(source) {
|
|
2082
2105
|
return builder.image(source).auto('format');
|
|
@@ -2151,18 +2174,18 @@ var Media = function Media(_ref) {
|
|
|
2151
2174
|
margin: imageMargin
|
|
2152
2175
|
};
|
|
2153
2176
|
|
|
2154
|
-
return React__default
|
|
2177
|
+
return React__default.createElement(
|
|
2155
2178
|
reactBootstrap.Figure,
|
|
2156
2179
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2157
|
-
React__default
|
|
2180
|
+
React__default.createElement(
|
|
2158
2181
|
'a',
|
|
2159
2182
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2160
|
-
React__default
|
|
2161
|
-
index$
|
|
2183
|
+
React__default.createElement(
|
|
2184
|
+
index$2.LazyLoad,
|
|
2162
2185
|
{ once: true },
|
|
2163
|
-
React__default
|
|
2186
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2164
2187
|
),
|
|
2165
|
-
caption && React__default
|
|
2188
|
+
caption && React__default.createElement(
|
|
2166
2189
|
reactBootstrap.Figure.Caption,
|
|
2167
2190
|
{ className: 'media-caption' },
|
|
2168
2191
|
caption
|
|
@@ -2170,9 +2193,9 @@ var Media = function Media(_ref) {
|
|
|
2170
2193
|
)
|
|
2171
2194
|
);
|
|
2172
2195
|
} else if (caption && caption !== '') {
|
|
2173
|
-
return React__default
|
|
2196
|
+
return React__default.createElement(
|
|
2174
2197
|
'a',
|
|
2175
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2198
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2176
2199
|
href: uploadDoc.asset.url + '?dl='
|
|
2177
2200
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2178
2201
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2187,10 +2210,10 @@ var Media = function Media(_ref) {
|
|
|
2187
2210
|
var IFrame = function IFrame(_ref) {
|
|
2188
2211
|
var url = _ref.url;
|
|
2189
2212
|
|
|
2190
|
-
return React__default
|
|
2213
|
+
return React__default.createElement(
|
|
2191
2214
|
'div',
|
|
2192
2215
|
{ className: 'd-block text-center mb-3' },
|
|
2193
|
-
React__default
|
|
2216
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2194
2217
|
);
|
|
2195
2218
|
};
|
|
2196
2219
|
|
|
@@ -2225,7 +2248,7 @@ var Video = function Video(_ref) {
|
|
|
2225
2248
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2226
2249
|
//console.log('success:', success.ref)
|
|
2227
2250
|
var player = success.ref;
|
|
2228
|
-
if (_typeof
|
|
2251
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2229
2252
|
player.ima3.settings.debug = true;
|
|
2230
2253
|
if (targeting.content_placement && targeting.document_url) {
|
|
2231
2254
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2323,44 +2346,44 @@ var Video = function Video(_ref) {
|
|
|
2323
2346
|
|
|
2324
2347
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2325
2348
|
if (videoID) {
|
|
2326
|
-
return React__default
|
|
2349
|
+
return React__default.createElement(
|
|
2327
2350
|
'div',
|
|
2328
2351
|
null,
|
|
2329
|
-
React__default
|
|
2352
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2330
2353
|
onSuccess: onVideoSuccess,
|
|
2331
2354
|
accountId: accountIDs.brightcove.accountId,
|
|
2332
2355
|
videoId: videoID,
|
|
2333
2356
|
playerId: accountIDs.brightcove.playerId,
|
|
2334
2357
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2335
2358
|
}),
|
|
2336
|
-
React__default
|
|
2359
|
+
React__default.createElement(
|
|
2337
2360
|
'style',
|
|
2338
2361
|
{ jsx: 'true' },
|
|
2339
2362
|
'\n .brightcove {\n position: relative;\n margin-bottom: 1rem;\n height: 100%;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n min-height: 411px;\n }\n '
|
|
2340
2363
|
)
|
|
2341
2364
|
);
|
|
2342
2365
|
} else if (playlistID) {
|
|
2343
|
-
return React__default
|
|
2366
|
+
return React__default.createElement(
|
|
2344
2367
|
'div',
|
|
2345
2368
|
null,
|
|
2346
|
-
React__default
|
|
2369
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2347
2370
|
accountId: accountIDs.brightcove.accountId,
|
|
2348
2371
|
playlistId: playlistID,
|
|
2349
2372
|
playerId: accountIDs.brightcove.playerId,
|
|
2350
2373
|
onSuccess: onVideoSuccess,
|
|
2351
2374
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2352
2375
|
}),
|
|
2353
|
-
React__default
|
|
2376
|
+
React__default.createElement(
|
|
2354
2377
|
'style',
|
|
2355
2378
|
{ jsx: 'true' },
|
|
2356
2379
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2357
2380
|
)
|
|
2358
2381
|
);
|
|
2359
2382
|
} else if (experienceID) {
|
|
2360
|
-
return React__default
|
|
2383
|
+
return React__default.createElement(
|
|
2361
2384
|
'div',
|
|
2362
2385
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2363
|
-
videoLoaded && React__default
|
|
2386
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2364
2387
|
);
|
|
2365
2388
|
}
|
|
2366
2389
|
return null;
|
|
@@ -2377,7 +2400,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2377
2400
|
});
|
|
2378
2401
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2379
2402
|
|
|
2380
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2403
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2381
2404
|
|
|
2382
2405
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2383
2406
|
|
|
@@ -2573,9 +2596,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2573
2596
|
});
|
|
2574
2597
|
|
|
2575
2598
|
_commonjsHelpers.unwrapExports(props);
|
|
2576
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2577
|
-
props.defaultProps;
|
|
2578
|
-
props.propTypes;
|
|
2599
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2600
|
+
var props_2 = props.defaultProps;
|
|
2601
|
+
var props_3 = props.propTypes;
|
|
2579
2602
|
|
|
2580
2603
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2581
2604
|
return isNonNullObject(value)
|
|
@@ -2740,17 +2763,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2740
2763
|
|
|
2741
2764
|
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; }
|
|
2742
2765
|
|
|
2743
|
-
function
|
|
2744
|
-
|
|
2745
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2746
|
-
|
|
2747
|
-
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."); }
|
|
2766
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2748
2767
|
|
|
2749
|
-
function
|
|
2768
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2750
2769
|
|
|
2751
|
-
function
|
|
2752
|
-
|
|
2753
|
-
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; }
|
|
2770
|
+
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; }
|
|
2754
2771
|
|
|
2755
2772
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2756
2773
|
|
|
@@ -2880,12 +2897,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2880
2897
|
|
|
2881
2898
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2882
2899
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2883
|
-
|
|
2884
|
-
var
|
|
2885
|
-
|
|
2900
|
+
var _iteratorNormalCompletion = true;
|
|
2901
|
+
var _didIteratorError = false;
|
|
2902
|
+
var _iteratorError = undefined;
|
|
2886
2903
|
|
|
2887
2904
|
try {
|
|
2888
|
-
for (_iterator.
|
|
2905
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2889
2906
|
var p = _step.value;
|
|
2890
2907
|
|
|
2891
2908
|
if (props$1[p]) {
|
|
@@ -2900,9 +2917,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2900
2917
|
}
|
|
2901
2918
|
}
|
|
2902
2919
|
} catch (err) {
|
|
2903
|
-
|
|
2920
|
+
_didIteratorError = true;
|
|
2921
|
+
_iteratorError = err;
|
|
2904
2922
|
} finally {
|
|
2905
|
-
|
|
2923
|
+
try {
|
|
2924
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2925
|
+
_iterator["return"]();
|
|
2926
|
+
}
|
|
2927
|
+
} finally {
|
|
2928
|
+
if (_didIteratorError) {
|
|
2929
|
+
throw _iteratorError;
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2906
2932
|
}
|
|
2907
2933
|
|
|
2908
2934
|
return config;
|
|
@@ -2967,7 +2993,7 @@ function isEqual(a, b) {
|
|
|
2967
2993
|
return true;
|
|
2968
2994
|
}
|
|
2969
2995
|
|
|
2970
|
-
if ((0, React__default
|
|
2996
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2971
2997
|
return true;
|
|
2972
2998
|
}
|
|
2973
2999
|
|
|
@@ -3010,17 +3036,17 @@ function isMediaStream(url) {
|
|
|
3010
3036
|
});
|
|
3011
3037
|
|
|
3012
3038
|
_commonjsHelpers.unwrapExports(utils);
|
|
3013
|
-
utils.parseStartTime;
|
|
3014
|
-
utils.parseEndTime;
|
|
3015
|
-
utils.randomString;
|
|
3016
|
-
utils.queryString;
|
|
3017
|
-
utils.getSDK;
|
|
3018
|
-
utils.getConfig;
|
|
3019
|
-
utils.omit;
|
|
3020
|
-
utils.callPlayer;
|
|
3021
|
-
utils.isObject;
|
|
3022
|
-
utils.isEqual;
|
|
3023
|
-
utils.isMediaStream;
|
|
3039
|
+
var utils_1 = utils.parseStartTime;
|
|
3040
|
+
var utils_2 = utils.parseEndTime;
|
|
3041
|
+
var utils_3 = utils.randomString;
|
|
3042
|
+
var utils_4 = utils.queryString;
|
|
3043
|
+
var utils_5 = utils.getSDK;
|
|
3044
|
+
var utils_6 = utils.getConfig;
|
|
3045
|
+
var utils_7 = utils.omit;
|
|
3046
|
+
var utils_8 = utils.callPlayer;
|
|
3047
|
+
var utils_9 = utils.isObject;
|
|
3048
|
+
var utils_10 = utils.isEqual;
|
|
3049
|
+
var utils_11 = utils.isMediaStream;
|
|
3024
3050
|
|
|
3025
3051
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3026
3052
|
|
|
@@ -3029,7 +3055,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3029
3055
|
});
|
|
3030
3056
|
exports["default"] = void 0;
|
|
3031
3057
|
|
|
3032
|
-
var _react = _interopRequireWildcard(React__default
|
|
3058
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3033
3059
|
|
|
3034
3060
|
|
|
3035
3061
|
|
|
@@ -3049,16 +3075,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3049
3075
|
|
|
3050
3076
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3051
3077
|
|
|
3052
|
-
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); }; }
|
|
3053
|
-
|
|
3054
3078
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3055
3079
|
|
|
3056
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3057
|
-
|
|
3058
|
-
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; } }
|
|
3059
|
-
|
|
3060
3080
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3061
3081
|
|
|
3082
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3083
|
+
|
|
3062
3084
|
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); }
|
|
3063
3085
|
|
|
3064
3086
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3067,12 +3089,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3067
3089
|
|
|
3068
3090
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3069
3091
|
|
|
3070
|
-
var Player =
|
|
3092
|
+
var Player =
|
|
3093
|
+
/*#__PURE__*/
|
|
3094
|
+
function (_Component) {
|
|
3071
3095
|
_inherits(Player, _Component);
|
|
3072
3096
|
|
|
3073
|
-
var _super = _createSuper(Player);
|
|
3074
|
-
|
|
3075
3097
|
function Player() {
|
|
3098
|
+
var _getPrototypeOf2;
|
|
3099
|
+
|
|
3076
3100
|
var _this;
|
|
3077
3101
|
|
|
3078
3102
|
_classCallCheck(this, Player);
|
|
@@ -3081,7 +3105,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3081
3105
|
_args[_key] = arguments[_key];
|
|
3082
3106
|
}
|
|
3083
3107
|
|
|
3084
|
-
_this =
|
|
3108
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3085
3109
|
|
|
3086
3110
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3087
3111
|
|
|
@@ -3406,7 +3430,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3406
3430
|
return null;
|
|
3407
3431
|
}
|
|
3408
3432
|
|
|
3409
|
-
return
|
|
3433
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3410
3434
|
ref: this.ref,
|
|
3411
3435
|
onReady: this.handleReady,
|
|
3412
3436
|
onPlay: this.handlePlay,
|
|
@@ -3439,7 +3463,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3439
3463
|
});
|
|
3440
3464
|
exports["default"] = createSinglePlayer;
|
|
3441
3465
|
|
|
3442
|
-
var _react = _interopRequireWildcard(React__default
|
|
3466
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3443
3467
|
|
|
3444
3468
|
|
|
3445
3469
|
|
|
@@ -3467,16 +3491,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3467
3491
|
|
|
3468
3492
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3469
3493
|
|
|
3470
|
-
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); }; }
|
|
3471
|
-
|
|
3472
3494
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3473
3495
|
|
|
3474
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3475
|
-
|
|
3476
|
-
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; } }
|
|
3477
|
-
|
|
3478
3496
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3479
3497
|
|
|
3498
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3499
|
+
|
|
3480
3500
|
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); }
|
|
3481
3501
|
|
|
3482
3502
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3488,12 +3508,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3488
3508
|
function createSinglePlayer(activePlayer) {
|
|
3489
3509
|
var _class, _temp;
|
|
3490
3510
|
|
|
3491
|
-
return _temp = _class =
|
|
3511
|
+
return _temp = _class =
|
|
3512
|
+
/*#__PURE__*/
|
|
3513
|
+
function (_Component) {
|
|
3492
3514
|
_inherits(SinglePlayer, _Component);
|
|
3493
3515
|
|
|
3494
|
-
var _super = _createSuper(SinglePlayer);
|
|
3495
|
-
|
|
3496
3516
|
function SinglePlayer() {
|
|
3517
|
+
var _getPrototypeOf2;
|
|
3518
|
+
|
|
3497
3519
|
var _this;
|
|
3498
3520
|
|
|
3499
3521
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3502,7 +3524,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3502
3524
|
args[_key] = arguments[_key];
|
|
3503
3525
|
}
|
|
3504
3526
|
|
|
3505
|
-
_this =
|
|
3527
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3506
3528
|
|
|
3507
3529
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3508
3530
|
|
|
@@ -3570,12 +3592,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3570
3592
|
height = _this$props.height,
|
|
3571
3593
|
Wrapper = _this$props.wrapper;
|
|
3572
3594
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3573
|
-
return
|
|
3595
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3574
3596
|
style: _objectSpread({}, style, {
|
|
3575
3597
|
width: width,
|
|
3576
3598
|
height: height
|
|
3577
3599
|
})
|
|
3578
|
-
}, otherProps),
|
|
3600
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3579
3601
|
ref: this.ref,
|
|
3580
3602
|
activePlayer: activePlayer,
|
|
3581
3603
|
config: this.config
|
|
@@ -3597,7 +3619,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3597
3619
|
});
|
|
3598
3620
|
exports["default"] = exports.YouTube = void 0;
|
|
3599
3621
|
|
|
3600
|
-
var _react = _interopRequireWildcard(React__default
|
|
3622
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3601
3623
|
|
|
3602
3624
|
|
|
3603
3625
|
|
|
@@ -3621,31 +3643,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3621
3643
|
|
|
3622
3644
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3623
3645
|
|
|
3624
|
-
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); }; }
|
|
3625
|
-
|
|
3626
3646
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3627
3647
|
|
|
3628
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3629
|
-
|
|
3630
|
-
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; } }
|
|
3631
|
-
|
|
3632
3648
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3633
3649
|
|
|
3650
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3651
|
+
|
|
3634
3652
|
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); }
|
|
3635
3653
|
|
|
3636
3654
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3637
3655
|
|
|
3638
3656
|
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; }
|
|
3639
3657
|
|
|
3640
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3641
|
-
|
|
3642
|
-
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."); }
|
|
3643
|
-
|
|
3644
|
-
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); }
|
|
3658
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3645
3659
|
|
|
3646
|
-
function
|
|
3660
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3647
3661
|
|
|
3648
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3662
|
+
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; }
|
|
3649
3663
|
|
|
3650
3664
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3651
3665
|
|
|
@@ -3670,12 +3684,14 @@ function parsePlaylist(url) {
|
|
|
3670
3684
|
return {};
|
|
3671
3685
|
}
|
|
3672
3686
|
|
|
3673
|
-
var YouTube =
|
|
3687
|
+
var YouTube =
|
|
3688
|
+
/*#__PURE__*/
|
|
3689
|
+
function (_Component) {
|
|
3674
3690
|
_inherits(YouTube, _Component);
|
|
3675
3691
|
|
|
3676
|
-
var _super = _createSuper(YouTube);
|
|
3677
|
-
|
|
3678
3692
|
function YouTube() {
|
|
3693
|
+
var _getPrototypeOf2;
|
|
3694
|
+
|
|
3679
3695
|
var _this;
|
|
3680
3696
|
|
|
3681
3697
|
_classCallCheck(this, YouTube);
|
|
@@ -3684,7 +3700,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3684
3700
|
args[_key] = arguments[_key];
|
|
3685
3701
|
}
|
|
3686
3702
|
|
|
3687
|
-
_this =
|
|
3703
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3688
3704
|
|
|
3689
3705
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3690
3706
|
|
|
@@ -3872,9 +3888,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3872
3888
|
height: '100%',
|
|
3873
3889
|
display: display
|
|
3874
3890
|
};
|
|
3875
|
-
return
|
|
3891
|
+
return _react["default"].createElement("div", {
|
|
3876
3892
|
style: style
|
|
3877
|
-
},
|
|
3893
|
+
}, _react["default"].createElement("div", {
|
|
3878
3894
|
ref: this.ref
|
|
3879
3895
|
}));
|
|
3880
3896
|
}
|
|
@@ -3897,7 +3913,7 @@ exports["default"] = _default;
|
|
|
3897
3913
|
});
|
|
3898
3914
|
|
|
3899
3915
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
3900
|
-
YouTube_1.YouTube;
|
|
3916
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
3901
3917
|
|
|
3902
3918
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3903
3919
|
|
|
@@ -3906,7 +3922,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3906
3922
|
});
|
|
3907
3923
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3908
3924
|
|
|
3909
|
-
var _react = _interopRequireWildcard(React__default
|
|
3925
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3910
3926
|
|
|
3911
3927
|
|
|
3912
3928
|
|
|
@@ -3930,16 +3946,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3930
3946
|
|
|
3931
3947
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3932
3948
|
|
|
3933
|
-
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); }; }
|
|
3934
|
-
|
|
3935
3949
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3936
3950
|
|
|
3937
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3938
|
-
|
|
3939
|
-
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; } }
|
|
3940
|
-
|
|
3941
3951
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3942
3952
|
|
|
3953
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3954
|
+
|
|
3943
3955
|
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); }
|
|
3944
3956
|
|
|
3945
3957
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3948,14 +3960,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3948
3960
|
|
|
3949
3961
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3950
3962
|
var SDK_GLOBAL = 'SC';
|
|
3951
|
-
var MATCH_URL = /(
|
|
3963
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3952
3964
|
|
|
3953
|
-
var SoundCloud =
|
|
3965
|
+
var SoundCloud =
|
|
3966
|
+
/*#__PURE__*/
|
|
3967
|
+
function (_Component) {
|
|
3954
3968
|
_inherits(SoundCloud, _Component);
|
|
3955
3969
|
|
|
3956
|
-
var _super = _createSuper(SoundCloud);
|
|
3957
|
-
|
|
3958
3970
|
function SoundCloud() {
|
|
3971
|
+
var _getPrototypeOf2;
|
|
3972
|
+
|
|
3959
3973
|
var _this;
|
|
3960
3974
|
|
|
3961
3975
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3964,7 +3978,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3964
3978
|
args[_key] = arguments[_key];
|
|
3965
3979
|
}
|
|
3966
3980
|
|
|
3967
|
-
_this =
|
|
3981
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3968
3982
|
|
|
3969
3983
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3970
3984
|
|
|
@@ -4085,7 +4099,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4085
4099
|
height: '100%',
|
|
4086
4100
|
display: display
|
|
4087
4101
|
};
|
|
4088
|
-
return
|
|
4102
|
+
return _react["default"].createElement("iframe", {
|
|
4089
4103
|
ref: this.ref,
|
|
4090
4104
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4091
4105
|
style: style,
|
|
@@ -4114,7 +4128,7 @@ exports["default"] = _default;
|
|
|
4114
4128
|
});
|
|
4115
4129
|
|
|
4116
4130
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4117
|
-
SoundCloud_1.SoundCloud;
|
|
4131
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4118
4132
|
|
|
4119
4133
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4120
4134
|
|
|
@@ -4123,7 +4137,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4123
4137
|
});
|
|
4124
4138
|
exports["default"] = exports.Vimeo = void 0;
|
|
4125
4139
|
|
|
4126
|
-
var _react = _interopRequireWildcard(React__default
|
|
4140
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4127
4141
|
|
|
4128
4142
|
|
|
4129
4143
|
|
|
@@ -4147,16 +4161,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4147
4161
|
|
|
4148
4162
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4149
4163
|
|
|
4150
|
-
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); }; }
|
|
4151
|
-
|
|
4152
4164
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4153
4165
|
|
|
4154
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4155
|
-
|
|
4156
|
-
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; } }
|
|
4157
|
-
|
|
4158
4166
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4159
4167
|
|
|
4168
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4169
|
+
|
|
4160
4170
|
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); }
|
|
4161
4171
|
|
|
4162
4172
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4168,12 +4178,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4168
4178
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4169
4179
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4170
4180
|
|
|
4171
|
-
var Vimeo =
|
|
4181
|
+
var Vimeo =
|
|
4182
|
+
/*#__PURE__*/
|
|
4183
|
+
function (_Component) {
|
|
4172
4184
|
_inherits(Vimeo, _Component);
|
|
4173
4185
|
|
|
4174
|
-
var _super = _createSuper(Vimeo);
|
|
4175
|
-
|
|
4176
4186
|
function Vimeo() {
|
|
4187
|
+
var _getPrototypeOf2;
|
|
4188
|
+
|
|
4177
4189
|
var _this;
|
|
4178
4190
|
|
|
4179
4191
|
_classCallCheck(this, Vimeo);
|
|
@@ -4182,7 +4194,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4182
4194
|
args[_key] = arguments[_key];
|
|
4183
4195
|
}
|
|
4184
4196
|
|
|
4185
|
-
_this =
|
|
4197
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4186
4198
|
|
|
4187
4199
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4188
4200
|
|
|
@@ -4339,7 +4351,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4339
4351
|
overflow: 'hidden',
|
|
4340
4352
|
display: display
|
|
4341
4353
|
};
|
|
4342
|
-
return
|
|
4354
|
+
return _react["default"].createElement("div", {
|
|
4343
4355
|
key: this.props.url,
|
|
4344
4356
|
ref: this.ref,
|
|
4345
4357
|
style: style
|
|
@@ -4370,7 +4382,7 @@ exports["default"] = _default;
|
|
|
4370
4382
|
});
|
|
4371
4383
|
|
|
4372
4384
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4373
|
-
Vimeo_1.Vimeo;
|
|
4385
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4374
4386
|
|
|
4375
4387
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4376
4388
|
|
|
@@ -4379,7 +4391,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4379
4391
|
});
|
|
4380
4392
|
exports["default"] = exports.Facebook = void 0;
|
|
4381
4393
|
|
|
4382
|
-
var _react = _interopRequireWildcard(React__default
|
|
4394
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4383
4395
|
|
|
4384
4396
|
|
|
4385
4397
|
|
|
@@ -4399,16 +4411,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4399
4411
|
|
|
4400
4412
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4401
4413
|
|
|
4402
|
-
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); }; }
|
|
4403
|
-
|
|
4404
4414
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4405
4415
|
|
|
4406
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4407
|
-
|
|
4408
|
-
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; } }
|
|
4409
|
-
|
|
4410
4416
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4411
4417
|
|
|
4418
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4419
|
+
|
|
4412
4420
|
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); }
|
|
4413
4421
|
|
|
4414
4422
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4421,12 +4429,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4421
4429
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4422
4430
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4423
4431
|
|
|
4424
|
-
var Facebook =
|
|
4432
|
+
var Facebook =
|
|
4433
|
+
/*#__PURE__*/
|
|
4434
|
+
function (_Component) {
|
|
4425
4435
|
_inherits(Facebook, _Component);
|
|
4426
4436
|
|
|
4427
|
-
var _super = _createSuper(Facebook);
|
|
4428
|
-
|
|
4429
4437
|
function Facebook() {
|
|
4438
|
+
var _getPrototypeOf2;
|
|
4439
|
+
|
|
4430
4440
|
var _this;
|
|
4431
4441
|
|
|
4432
4442
|
_classCallCheck(this, Facebook);
|
|
@@ -4435,7 +4445,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4435
4445
|
args[_key] = arguments[_key];
|
|
4436
4446
|
}
|
|
4437
4447
|
|
|
4438
|
-
_this =
|
|
4448
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4439
4449
|
|
|
4440
4450
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4441
4451
|
|
|
@@ -4551,7 +4561,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4551
4561
|
width: '100%',
|
|
4552
4562
|
height: '100%'
|
|
4553
4563
|
};
|
|
4554
|
-
return
|
|
4564
|
+
return _react["default"].createElement("div", {
|
|
4555
4565
|
style: style,
|
|
4556
4566
|
id: this.playerID,
|
|
4557
4567
|
className: "fb-video",
|
|
@@ -4582,7 +4592,7 @@ exports["default"] = _default;
|
|
|
4582
4592
|
});
|
|
4583
4593
|
|
|
4584
4594
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4585
|
-
Facebook_1.Facebook;
|
|
4595
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4586
4596
|
|
|
4587
4597
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4588
4598
|
|
|
@@ -4591,7 +4601,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4591
4601
|
});
|
|
4592
4602
|
exports["default"] = exports.Streamable = void 0;
|
|
4593
4603
|
|
|
4594
|
-
var _react = _interopRequireWildcard(React__default
|
|
4604
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4595
4605
|
|
|
4596
4606
|
|
|
4597
4607
|
|
|
@@ -4611,16 +4621,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4611
4621
|
|
|
4612
4622
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4613
4623
|
|
|
4614
|
-
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); }; }
|
|
4615
|
-
|
|
4616
4624
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4617
4625
|
|
|
4618
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4619
|
-
|
|
4620
|
-
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; } }
|
|
4621
|
-
|
|
4622
4626
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4623
4627
|
|
|
4628
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4629
|
+
|
|
4624
4630
|
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); }
|
|
4625
4631
|
|
|
4626
4632
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4631,12 +4637,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4631
4637
|
var SDK_GLOBAL = 'playerjs';
|
|
4632
4638
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4633
4639
|
|
|
4634
|
-
var Streamable =
|
|
4640
|
+
var Streamable =
|
|
4641
|
+
/*#__PURE__*/
|
|
4642
|
+
function (_Component) {
|
|
4635
4643
|
_inherits(Streamable, _Component);
|
|
4636
4644
|
|
|
4637
|
-
var _super = _createSuper(Streamable);
|
|
4638
|
-
|
|
4639
4645
|
function Streamable() {
|
|
4646
|
+
var _getPrototypeOf2;
|
|
4647
|
+
|
|
4640
4648
|
var _this;
|
|
4641
4649
|
|
|
4642
4650
|
_classCallCheck(this, Streamable);
|
|
@@ -4645,7 +4653,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4645
4653
|
args[_key] = arguments[_key];
|
|
4646
4654
|
}
|
|
4647
4655
|
|
|
4648
|
-
_this =
|
|
4656
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4649
4657
|
|
|
4650
4658
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4651
4659
|
|
|
@@ -4765,7 +4773,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4765
4773
|
width: '100%',
|
|
4766
4774
|
height: '100%'
|
|
4767
4775
|
};
|
|
4768
|
-
return
|
|
4776
|
+
return _react["default"].createElement("iframe", {
|
|
4769
4777
|
ref: this.ref,
|
|
4770
4778
|
src: "https://streamable.com/o/".concat(id),
|
|
4771
4779
|
frameBorder: "0",
|
|
@@ -4793,7 +4801,7 @@ exports["default"] = _default;
|
|
|
4793
4801
|
});
|
|
4794
4802
|
|
|
4795
4803
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4796
|
-
Streamable_1.Streamable;
|
|
4804
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4797
4805
|
|
|
4798
4806
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4799
4807
|
|
|
@@ -4802,7 +4810,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4802
4810
|
});
|
|
4803
4811
|
exports["default"] = exports.Wistia = void 0;
|
|
4804
4812
|
|
|
4805
|
-
var _react = _interopRequireWildcard(React__default
|
|
4813
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4806
4814
|
|
|
4807
4815
|
|
|
4808
4816
|
|
|
@@ -4826,16 +4834,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4826
4834
|
|
|
4827
4835
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4828
4836
|
|
|
4829
|
-
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); }; }
|
|
4830
|
-
|
|
4831
4837
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4832
4838
|
|
|
4833
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4834
|
-
|
|
4835
|
-
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; } }
|
|
4836
|
-
|
|
4837
4839
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4838
4840
|
|
|
4841
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4842
|
+
|
|
4839
4843
|
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); }
|
|
4840
4844
|
|
|
4841
4845
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4846,48 +4850,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4846
4850
|
var SDK_GLOBAL = 'Wistia';
|
|
4847
4851
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4848
4852
|
|
|
4849
|
-
var Wistia =
|
|
4853
|
+
var Wistia =
|
|
4854
|
+
/*#__PURE__*/
|
|
4855
|
+
function (_Component) {
|
|
4850
4856
|
_inherits(Wistia, _Component);
|
|
4851
4857
|
|
|
4852
|
-
var _super = _createSuper(Wistia);
|
|
4853
|
-
|
|
4854
4858
|
function Wistia() {
|
|
4859
|
+
var _getPrototypeOf2;
|
|
4860
|
+
|
|
4855
4861
|
var _this;
|
|
4856
4862
|
|
|
4857
4863
|
_classCallCheck(this, Wistia);
|
|
4858
4864
|
|
|
4859
|
-
for (var _len = arguments.length,
|
|
4860
|
-
|
|
4865
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4866
|
+
args[_key] = arguments[_key];
|
|
4861
4867
|
}
|
|
4862
4868
|
|
|
4863
|
-
_this =
|
|
4869
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4864
4870
|
|
|
4865
4871
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4866
4872
|
|
|
4867
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4868
|
-
var _this$props;
|
|
4869
|
-
|
|
4870
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4871
|
-
});
|
|
4872
|
-
|
|
4873
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4874
|
-
var _this$props2;
|
|
4875
|
-
|
|
4876
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4877
|
-
});
|
|
4878
|
-
|
|
4879
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4880
|
-
var _this$props3;
|
|
4881
|
-
|
|
4882
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4883
|
-
});
|
|
4884
|
-
|
|
4885
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4886
|
-
var _this$props4;
|
|
4887
|
-
|
|
4888
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4889
|
-
});
|
|
4890
|
-
|
|
4891
4873
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4892
4874
|
_this.callPlayer('mute');
|
|
4893
4875
|
});
|
|
@@ -4909,13 +4891,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4909
4891
|
value: function load(url) {
|
|
4910
4892
|
var _this2 = this;
|
|
4911
4893
|
|
|
4912
|
-
var _this$
|
|
4913
|
-
playing = _this$
|
|
4914
|
-
muted = _this$
|
|
4915
|
-
controls = _this$
|
|
4916
|
-
_onReady = _this$
|
|
4917
|
-
|
|
4918
|
-
|
|
4894
|
+
var _this$props = this.props,
|
|
4895
|
+
playing = _this$props.playing,
|
|
4896
|
+
muted = _this$props.muted,
|
|
4897
|
+
controls = _this$props.controls,
|
|
4898
|
+
_onReady = _this$props.onReady,
|
|
4899
|
+
onPlay = _this$props.onPlay,
|
|
4900
|
+
onPause = _this$props.onPause,
|
|
4901
|
+
onSeek = _this$props.onSeek,
|
|
4902
|
+
onEnded = _this$props.onEnded,
|
|
4903
|
+
config = _this$props.config,
|
|
4904
|
+
onError = _this$props.onError;
|
|
4919
4905
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4920
4906
|
window._wq = window._wq || [];
|
|
4921
4907
|
|
|
@@ -4932,28 +4918,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4932
4918
|
|
|
4933
4919
|
_this2.unbind();
|
|
4934
4920
|
|
|
4935
|
-
_this2.player.bind('play',
|
|
4921
|
+
_this2.player.bind('play', onPlay);
|
|
4936
4922
|
|
|
4937
|
-
_this2.player.bind('pause',
|
|
4923
|
+
_this2.player.bind('pause', onPause);
|
|
4938
4924
|
|
|
4939
|
-
_this2.player.bind('seek',
|
|
4925
|
+
_this2.player.bind('seek', onSeek);
|
|
4940
4926
|
|
|
4941
|
-
_this2.player.bind('end',
|
|
4927
|
+
_this2.player.bind('end', onEnded);
|
|
4942
4928
|
|
|
4943
4929
|
_onReady();
|
|
4944
4930
|
}
|
|
4945
4931
|
});
|
|
4946
4932
|
}, onError);
|
|
4947
4933
|
}
|
|
4948
|
-
}, {
|
|
4949
|
-
key: "unbind",
|
|
4950
|
-
value: function unbind() {
|
|
4951
|
-
this.player.unbind('play', this.onPlay);
|
|
4952
|
-
this.player.unbind('pause', this.onPause);
|
|
4953
|
-
this.player.unbind('seek', this.onSeek);
|
|
4954
|
-
this.player.unbind('end', this.onEnded);
|
|
4955
|
-
} // Proxy methods to prevent listener leaks
|
|
4956
|
-
|
|
4957
4934
|
}, {
|
|
4958
4935
|
key: "play",
|
|
4959
4936
|
value: function play() {
|
|
@@ -4964,6 +4941,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4964
4941
|
value: function pause() {
|
|
4965
4942
|
this.callPlayer('pause');
|
|
4966
4943
|
}
|
|
4944
|
+
}, {
|
|
4945
|
+
key: "unbind",
|
|
4946
|
+
value: function unbind() {
|
|
4947
|
+
var _this$props2 = this.props,
|
|
4948
|
+
onPlay = _this$props2.onPlay,
|
|
4949
|
+
onPause = _this$props2.onPause,
|
|
4950
|
+
onSeek = _this$props2.onSeek,
|
|
4951
|
+
onEnded = _this$props2.onEnded;
|
|
4952
|
+
this.player.unbind('play', onPlay);
|
|
4953
|
+
this.player.unbind('pause', onPause);
|
|
4954
|
+
this.player.unbind('seek', onSeek);
|
|
4955
|
+
this.player.unbind('end', onEnded);
|
|
4956
|
+
}
|
|
4967
4957
|
}, {
|
|
4968
4958
|
key: "stop",
|
|
4969
4959
|
value: function stop() {
|
|
@@ -5009,7 +4999,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5009
4999
|
width: '100%',
|
|
5010
5000
|
height: '100%'
|
|
5011
5001
|
};
|
|
5012
|
-
return
|
|
5002
|
+
return _react["default"].createElement("div", {
|
|
5013
5003
|
key: id,
|
|
5014
5004
|
className: className,
|
|
5015
5005
|
style: style
|
|
@@ -5036,7 +5026,7 @@ exports["default"] = _default;
|
|
|
5036
5026
|
});
|
|
5037
5027
|
|
|
5038
5028
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5039
|
-
Wistia_1.Wistia;
|
|
5029
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5040
5030
|
|
|
5041
5031
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5042
5032
|
|
|
@@ -5045,7 +5035,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5045
5035
|
});
|
|
5046
5036
|
exports["default"] = exports.Twitch = void 0;
|
|
5047
5037
|
|
|
5048
|
-
var _react = _interopRequireWildcard(React__default
|
|
5038
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5049
5039
|
|
|
5050
5040
|
|
|
5051
5041
|
|
|
@@ -5069,16 +5059,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5069
5059
|
|
|
5070
5060
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5071
5061
|
|
|
5072
|
-
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); }; }
|
|
5073
|
-
|
|
5074
5062
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5075
5063
|
|
|
5076
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5077
|
-
|
|
5078
|
-
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; } }
|
|
5079
|
-
|
|
5080
5064
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5081
5065
|
|
|
5066
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5067
|
+
|
|
5082
5068
|
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); }
|
|
5083
5069
|
|
|
5084
5070
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5091,12 +5077,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5091
5077
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5092
5078
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5093
5079
|
|
|
5094
|
-
var Twitch =
|
|
5080
|
+
var Twitch =
|
|
5081
|
+
/*#__PURE__*/
|
|
5082
|
+
function (_Component) {
|
|
5095
5083
|
_inherits(Twitch, _Component);
|
|
5096
5084
|
|
|
5097
|
-
var _super = _createSuper(Twitch);
|
|
5098
|
-
|
|
5099
5085
|
function Twitch() {
|
|
5086
|
+
var _getPrototypeOf2;
|
|
5087
|
+
|
|
5100
5088
|
var _this;
|
|
5101
5089
|
|
|
5102
5090
|
_classCallCheck(this, Twitch);
|
|
@@ -5105,7 +5093,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5105
5093
|
args[_key] = arguments[_key];
|
|
5106
5094
|
}
|
|
5107
5095
|
|
|
5108
|
-
_this =
|
|
5096
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5109
5097
|
|
|
5110
5098
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5111
5099
|
|
|
@@ -5226,7 +5214,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5226
5214
|
width: '100%',
|
|
5227
5215
|
height: '100%'
|
|
5228
5216
|
};
|
|
5229
|
-
return
|
|
5217
|
+
return _react["default"].createElement("div", {
|
|
5230
5218
|
style: style,
|
|
5231
5219
|
id: this.playerID
|
|
5232
5220
|
});
|
|
@@ -5252,7 +5240,7 @@ exports["default"] = _default;
|
|
|
5252
5240
|
});
|
|
5253
5241
|
|
|
5254
5242
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5255
|
-
Twitch_1.Twitch;
|
|
5243
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5256
5244
|
|
|
5257
5245
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5258
5246
|
|
|
@@ -5261,7 +5249,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5261
5249
|
});
|
|
5262
5250
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5263
5251
|
|
|
5264
|
-
var _react = _interopRequireWildcard(React__default
|
|
5252
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5265
5253
|
|
|
5266
5254
|
|
|
5267
5255
|
|
|
@@ -5279,15 +5267,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5279
5267
|
|
|
5280
5268
|
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; }
|
|
5281
5269
|
|
|
5282
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5270
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5283
5271
|
|
|
5284
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5272
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5285
5273
|
|
|
5286
|
-
function
|
|
5287
|
-
|
|
5288
|
-
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; }
|
|
5289
|
-
|
|
5290
|
-
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; }
|
|
5274
|
+
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; }
|
|
5291
5275
|
|
|
5292
5276
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5293
5277
|
|
|
@@ -5297,16 +5281,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5297
5281
|
|
|
5298
5282
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5299
5283
|
|
|
5300
|
-
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); }; }
|
|
5301
|
-
|
|
5302
5284
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5303
5285
|
|
|
5304
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5305
|
-
|
|
5306
|
-
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; } }
|
|
5307
|
-
|
|
5308
5286
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5309
5287
|
|
|
5288
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5289
|
+
|
|
5310
5290
|
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); }
|
|
5311
5291
|
|
|
5312
5292
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5318,12 +5298,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5318
5298
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5319
5299
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5320
5300
|
|
|
5321
|
-
var DailyMotion =
|
|
5301
|
+
var DailyMotion =
|
|
5302
|
+
/*#__PURE__*/
|
|
5303
|
+
function (_Component) {
|
|
5322
5304
|
_inherits(DailyMotion, _Component);
|
|
5323
5305
|
|
|
5324
|
-
var _super = _createSuper(DailyMotion);
|
|
5325
|
-
|
|
5326
5306
|
function DailyMotion() {
|
|
5307
|
+
var _getPrototypeOf2;
|
|
5308
|
+
|
|
5327
5309
|
var _this;
|
|
5328
5310
|
|
|
5329
5311
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5332,7 +5314,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5332
5314
|
args[_key] = arguments[_key];
|
|
5333
5315
|
}
|
|
5334
5316
|
|
|
5335
|
-
_this =
|
|
5317
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5336
5318
|
|
|
5337
5319
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5338
5320
|
|
|
@@ -5461,9 +5443,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5461
5443
|
height: '100%',
|
|
5462
5444
|
display: display
|
|
5463
5445
|
};
|
|
5464
|
-
return
|
|
5446
|
+
return _react["default"].createElement("div", {
|
|
5465
5447
|
style: style
|
|
5466
|
-
},
|
|
5448
|
+
}, _react["default"].createElement("div", {
|
|
5467
5449
|
ref: this.ref
|
|
5468
5450
|
}));
|
|
5469
5451
|
}
|
|
@@ -5488,7 +5470,7 @@ exports["default"] = _default;
|
|
|
5488
5470
|
});
|
|
5489
5471
|
|
|
5490
5472
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5491
|
-
DailyMotion_1.DailyMotion;
|
|
5473
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5492
5474
|
|
|
5493
5475
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5494
5476
|
|
|
@@ -5497,7 +5479,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5497
5479
|
});
|
|
5498
5480
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5499
5481
|
|
|
5500
|
-
var _react = _interopRequireWildcard(React__default
|
|
5482
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5501
5483
|
|
|
5502
5484
|
|
|
5503
5485
|
|
|
@@ -5521,16 +5503,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5521
5503
|
|
|
5522
5504
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5523
5505
|
|
|
5524
|
-
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); }; }
|
|
5525
|
-
|
|
5526
5506
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5527
5507
|
|
|
5528
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5529
|
-
|
|
5530
|
-
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; } }
|
|
5531
|
-
|
|
5532
5508
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5533
5509
|
|
|
5510
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5511
|
+
|
|
5534
5512
|
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); }
|
|
5535
5513
|
|
|
5536
5514
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5541,12 +5519,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5541
5519
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5542
5520
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5543
5521
|
|
|
5544
|
-
var Mixcloud =
|
|
5522
|
+
var Mixcloud =
|
|
5523
|
+
/*#__PURE__*/
|
|
5524
|
+
function (_Component) {
|
|
5545
5525
|
_inherits(Mixcloud, _Component);
|
|
5546
5526
|
|
|
5547
|
-
var _super = _createSuper(Mixcloud);
|
|
5548
|
-
|
|
5549
5527
|
function Mixcloud() {
|
|
5528
|
+
var _getPrototypeOf2;
|
|
5529
|
+
|
|
5550
5530
|
var _this;
|
|
5551
5531
|
|
|
5552
5532
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5555,7 +5535,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5555
5535
|
args[_key] = arguments[_key];
|
|
5556
5536
|
}
|
|
5557
5537
|
|
|
5558
|
-
_this =
|
|
5538
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5559
5539
|
|
|
5560
5540
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5561
5541
|
|
|
@@ -5658,7 +5638,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5658
5638
|
})); // We have to give the iframe a key here to prevent a
|
|
5659
5639
|
// weird dialog appearing when loading a new track
|
|
5660
5640
|
|
|
5661
|
-
return
|
|
5641
|
+
return _react["default"].createElement("iframe", {
|
|
5662
5642
|
key: id,
|
|
5663
5643
|
ref: this.ref,
|
|
5664
5644
|
style: style,
|
|
@@ -5687,7 +5667,7 @@ exports["default"] = _default;
|
|
|
5687
5667
|
});
|
|
5688
5668
|
|
|
5689
5669
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5690
|
-
Mixcloud_1.Mixcloud;
|
|
5670
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5691
5671
|
|
|
5692
5672
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5693
5673
|
|
|
@@ -5696,7 +5676,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5696
5676
|
});
|
|
5697
5677
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5698
5678
|
|
|
5699
|
-
var _react = _interopRequireWildcard(React__default
|
|
5679
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5700
5680
|
|
|
5701
5681
|
|
|
5702
5682
|
|
|
@@ -5718,33 +5698,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5718
5698
|
|
|
5719
5699
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5720
5700
|
|
|
5721
|
-
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); }; }
|
|
5722
|
-
|
|
5723
5701
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5724
5702
|
|
|
5725
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5726
|
-
|
|
5727
|
-
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; } }
|
|
5728
|
-
|
|
5729
5703
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5730
5704
|
|
|
5705
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5706
|
+
|
|
5731
5707
|
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); }
|
|
5732
5708
|
|
|
5733
5709
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5734
5710
|
|
|
5735
5711
|
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; }
|
|
5736
5712
|
|
|
5737
|
-
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; } } }; }
|
|
5738
|
-
|
|
5739
|
-
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); }
|
|
5740
|
-
|
|
5741
|
-
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; }
|
|
5742
|
-
|
|
5743
5713
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5744
5714
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5745
5715
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5746
5716
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5747
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5717
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5748
5718
|
var HLS_GLOBAL = 'Hls';
|
|
5749
5719
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5750
5720
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5753,11 +5723,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5753
5723
|
|
|
5754
5724
|
function canPlay(url) {
|
|
5755
5725
|
if (url instanceof Array) {
|
|
5756
|
-
var
|
|
5757
|
-
|
|
5726
|
+
var _iteratorNormalCompletion = true;
|
|
5727
|
+
var _didIteratorError = false;
|
|
5728
|
+
var _iteratorError = undefined;
|
|
5758
5729
|
|
|
5759
5730
|
try {
|
|
5760
|
-
for (_iterator.
|
|
5731
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5761
5732
|
var item = _step.value;
|
|
5762
5733
|
|
|
5763
5734
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5769,9 +5740,18 @@ function canPlay(url) {
|
|
|
5769
5740
|
}
|
|
5770
5741
|
}
|
|
5771
5742
|
} catch (err) {
|
|
5772
|
-
|
|
5743
|
+
_didIteratorError = true;
|
|
5744
|
+
_iteratorError = err;
|
|
5773
5745
|
} finally {
|
|
5774
|
-
|
|
5746
|
+
try {
|
|
5747
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5748
|
+
_iterator["return"]();
|
|
5749
|
+
}
|
|
5750
|
+
} finally {
|
|
5751
|
+
if (_didIteratorError) {
|
|
5752
|
+
throw _iteratorError;
|
|
5753
|
+
}
|
|
5754
|
+
}
|
|
5775
5755
|
}
|
|
5776
5756
|
|
|
5777
5757
|
return false;
|
|
@@ -5795,12 +5775,14 @@ function canEnablePIP(url) {
|
|
|
5795
5775
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5796
5776
|
}
|
|
5797
5777
|
|
|
5798
|
-
var FilePlayer =
|
|
5778
|
+
var FilePlayer =
|
|
5779
|
+
/*#__PURE__*/
|
|
5780
|
+
function (_Component) {
|
|
5799
5781
|
_inherits(FilePlayer, _Component);
|
|
5800
5782
|
|
|
5801
|
-
var _super = _createSuper(FilePlayer);
|
|
5802
|
-
|
|
5803
5783
|
function FilePlayer() {
|
|
5784
|
+
var _getPrototypeOf2;
|
|
5785
|
+
|
|
5804
5786
|
var _this;
|
|
5805
5787
|
|
|
5806
5788
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5809,7 +5791,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5809
5791
|
_args[_key] = arguments[_key];
|
|
5810
5792
|
}
|
|
5811
5793
|
|
|
5812
|
-
_this =
|
|
5794
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5813
5795
|
|
|
5814
5796
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5815
5797
|
var _this$props;
|
|
@@ -5896,19 +5878,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5896
5878
|
|
|
5897
5879
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5898
5880
|
if (typeof source === 'string') {
|
|
5899
|
-
return
|
|
5881
|
+
return _react["default"].createElement("source", {
|
|
5900
5882
|
key: index,
|
|
5901
5883
|
src: source
|
|
5902
5884
|
});
|
|
5903
5885
|
}
|
|
5904
5886
|
|
|
5905
|
-
return
|
|
5887
|
+
return _react["default"].createElement("source", _extends({
|
|
5906
5888
|
key: index
|
|
5907
5889
|
}, source));
|
|
5908
5890
|
});
|
|
5909
5891
|
|
|
5910
5892
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5911
|
-
return
|
|
5893
|
+
return _react["default"].createElement("track", _extends({
|
|
5912
5894
|
key: index
|
|
5913
5895
|
}, track));
|
|
5914
5896
|
});
|
|
@@ -5946,10 +5928,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5946
5928
|
key: "componentWillUnmount",
|
|
5947
5929
|
value: function componentWillUnmount() {
|
|
5948
5930
|
this.removeListeners(this.player);
|
|
5949
|
-
|
|
5950
|
-
if (this.hls) {
|
|
5951
|
-
this.hls.destroy();
|
|
5952
|
-
}
|
|
5953
5931
|
}
|
|
5954
5932
|
}, {
|
|
5955
5933
|
key: "addListeners",
|
|
@@ -6080,6 +6058,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6080
6058
|
value: function stop() {
|
|
6081
6059
|
this.player.removeAttribute('src');
|
|
6082
6060
|
|
|
6061
|
+
if (this.hls) {
|
|
6062
|
+
this.hls.destroy();
|
|
6063
|
+
}
|
|
6064
|
+
|
|
6083
6065
|
if (this.dash) {
|
|
6084
6066
|
this.dash.reset();
|
|
6085
6067
|
}
|
|
@@ -6191,7 +6173,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6191
6173
|
width: width === 'auto' ? width : '100%',
|
|
6192
6174
|
height: height === 'auto' ? height : '100%'
|
|
6193
6175
|
};
|
|
6194
|
-
return
|
|
6176
|
+
return _react["default"].createElement(Element, _extends({
|
|
6195
6177
|
ref: this.ref,
|
|
6196
6178
|
src: this.getSource(url),
|
|
6197
6179
|
style: style,
|
|
@@ -6221,7 +6203,7 @@ exports["default"] = _default;
|
|
|
6221
6203
|
});
|
|
6222
6204
|
|
|
6223
6205
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6224
|
-
FilePlayer_1.FilePlayer;
|
|
6206
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6225
6207
|
|
|
6226
6208
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6227
6209
|
|
|
@@ -6263,7 +6245,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6263
6245
|
});
|
|
6264
6246
|
exports["default"] = void 0;
|
|
6265
6247
|
|
|
6266
|
-
var _react = _interopRequireWildcard(React__default
|
|
6248
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6267
6249
|
|
|
6268
6250
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6269
6251
|
|
|
@@ -6281,16 +6263,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6281
6263
|
|
|
6282
6264
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6283
6265
|
|
|
6284
|
-
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); }; }
|
|
6285
|
-
|
|
6286
6266
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6287
6267
|
|
|
6288
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6289
|
-
|
|
6290
|
-
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; } }
|
|
6291
|
-
|
|
6292
6268
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6293
6269
|
|
|
6270
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6271
|
+
|
|
6294
6272
|
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); }
|
|
6295
6273
|
|
|
6296
6274
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6299,12 +6277,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6299
6277
|
|
|
6300
6278
|
var ICON_SIZE = '64px';
|
|
6301
6279
|
|
|
6302
|
-
var Preview =
|
|
6280
|
+
var Preview =
|
|
6281
|
+
/*#__PURE__*/
|
|
6282
|
+
function (_Component) {
|
|
6303
6283
|
_inherits(Preview, _Component);
|
|
6304
6284
|
|
|
6305
|
-
var _super = _createSuper(Preview);
|
|
6306
|
-
|
|
6307
6285
|
function Preview() {
|
|
6286
|
+
var _getPrototypeOf2;
|
|
6287
|
+
|
|
6308
6288
|
var _this;
|
|
6309
6289
|
|
|
6310
6290
|
_classCallCheck(this, Preview);
|
|
@@ -6313,7 +6293,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6313
6293
|
args[_key] = arguments[_key];
|
|
6314
6294
|
}
|
|
6315
6295
|
|
|
6316
|
-
_this =
|
|
6296
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6317
6297
|
|
|
6318
6298
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6319
6299
|
|
|
@@ -6411,15 +6391,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6411
6391
|
}
|
|
6412
6392
|
};
|
|
6413
6393
|
|
|
6414
|
-
var defaultPlayIcon =
|
|
6394
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6415
6395
|
style: styles.shadow,
|
|
6416
6396
|
className: "react-player__shadow"
|
|
6417
|
-
},
|
|
6397
|
+
}, _react["default"].createElement("div", {
|
|
6418
6398
|
style: styles.playIcon,
|
|
6419
6399
|
className: "react-player__play-icon"
|
|
6420
6400
|
}));
|
|
6421
6401
|
|
|
6422
|
-
return
|
|
6402
|
+
return _react["default"].createElement("div", {
|
|
6423
6403
|
style: styles.preview,
|
|
6424
6404
|
className: "react-player__preview",
|
|
6425
6405
|
onClick: onClick
|
|
@@ -6442,7 +6422,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6442
6422
|
});
|
|
6443
6423
|
exports["default"] = renderPreloadPlayers;
|
|
6444
6424
|
|
|
6445
|
-
var _react = _interopRequireDefault(React__default
|
|
6425
|
+
var _react = _interopRequireDefault(React__default);
|
|
6446
6426
|
|
|
6447
6427
|
var _Player = _interopRequireDefault(Player_1);
|
|
6448
6428
|
|
|
@@ -6456,12 +6436,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6456
6436
|
|
|
6457
6437
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6458
6438
|
|
|
6459
|
-
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; } } }; }
|
|
6460
|
-
|
|
6461
|
-
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); }
|
|
6462
|
-
|
|
6463
|
-
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; }
|
|
6464
|
-
|
|
6465
6439
|
var PRELOAD_PLAYERS = [{
|
|
6466
6440
|
Player: YouTube_1.YouTube,
|
|
6467
6441
|
configKey: 'youtube',
|
|
@@ -6482,16 +6456,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6482
6456
|
|
|
6483
6457
|
function renderPreloadPlayers(url, controls, config) {
|
|
6484
6458
|
var players = [];
|
|
6485
|
-
|
|
6486
|
-
var
|
|
6487
|
-
|
|
6459
|
+
var _iteratorNormalCompletion = true;
|
|
6460
|
+
var _didIteratorError = false;
|
|
6461
|
+
var _iteratorError = undefined;
|
|
6488
6462
|
|
|
6489
6463
|
try {
|
|
6490
|
-
for (_iterator.
|
|
6464
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6491
6465
|
var player = _step.value;
|
|
6492
6466
|
|
|
6493
6467
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6494
|
-
players.push(
|
|
6468
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6495
6469
|
key: player.Player.displayName,
|
|
6496
6470
|
activePlayer: player.Player,
|
|
6497
6471
|
url: player.url,
|
|
@@ -6503,9 +6477,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6503
6477
|
}
|
|
6504
6478
|
}
|
|
6505
6479
|
} catch (err) {
|
|
6506
|
-
|
|
6480
|
+
_didIteratorError = true;
|
|
6481
|
+
_iteratorError = err;
|
|
6507
6482
|
} finally {
|
|
6508
|
-
|
|
6483
|
+
try {
|
|
6484
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6485
|
+
_iterator["return"]();
|
|
6486
|
+
}
|
|
6487
|
+
} finally {
|
|
6488
|
+
if (_didIteratorError) {
|
|
6489
|
+
throw _iteratorError;
|
|
6490
|
+
}
|
|
6491
|
+
}
|
|
6509
6492
|
}
|
|
6510
6493
|
|
|
6511
6494
|
return players;
|
|
@@ -6581,7 +6564,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6581
6564
|
});
|
|
6582
6565
|
exports["default"] = void 0;
|
|
6583
6566
|
|
|
6584
|
-
var _react = _interopRequireWildcard(React__default
|
|
6567
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6585
6568
|
|
|
6586
6569
|
|
|
6587
6570
|
|
|
@@ -6629,17 +6612,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6629
6612
|
|
|
6630
6613
|
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); }
|
|
6631
6614
|
|
|
6632
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6633
|
-
|
|
6634
|
-
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."); }
|
|
6635
|
-
|
|
6636
|
-
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); }
|
|
6615
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6637
6616
|
|
|
6638
|
-
function
|
|
6617
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6639
6618
|
|
|
6640
|
-
function
|
|
6619
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6641
6620
|
|
|
6642
|
-
function
|
|
6621
|
+
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; } }
|
|
6643
6622
|
|
|
6644
6623
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6645
6624
|
|
|
@@ -6647,16 +6626,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6647
6626
|
|
|
6648
6627
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6649
6628
|
|
|
6650
|
-
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); }; }
|
|
6651
|
-
|
|
6652
6629
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6653
6630
|
|
|
6654
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6655
|
-
|
|
6656
|
-
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; } }
|
|
6657
|
-
|
|
6658
6631
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6659
6632
|
|
|
6633
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6634
|
+
|
|
6660
6635
|
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); }
|
|
6661
6636
|
|
|
6662
6637
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6666,12 +6641,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6666
6641
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6667
6642
|
var customPlayers = [];
|
|
6668
6643
|
|
|
6669
|
-
var ReactPlayer =
|
|
6644
|
+
var ReactPlayer =
|
|
6645
|
+
/*#__PURE__*/
|
|
6646
|
+
function (_Component) {
|
|
6670
6647
|
_inherits(ReactPlayer, _Component);
|
|
6671
6648
|
|
|
6672
|
-
var _super = _createSuper(ReactPlayer);
|
|
6673
|
-
|
|
6674
6649
|
function ReactPlayer() {
|
|
6650
|
+
var _getPrototypeOf2;
|
|
6651
|
+
|
|
6675
6652
|
var _this;
|
|
6676
6653
|
|
|
6677
6654
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6680,7 +6657,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6680
6657
|
args[_key] = arguments[_key];
|
|
6681
6658
|
}
|
|
6682
6659
|
|
|
6683
|
-
_this =
|
|
6660
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6684
6661
|
|
|
6685
6662
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6686
6663
|
|
|
@@ -6791,7 +6768,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6791
6768
|
key: "renderActivePlayer",
|
|
6792
6769
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6793
6770
|
if (!url) return null;
|
|
6794
|
-
return
|
|
6771
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6795
6772
|
key: activePlayer.displayName,
|
|
6796
6773
|
ref: this.activePlayerRef,
|
|
6797
6774
|
config: this.config,
|
|
@@ -6828,14 +6805,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6828
6805
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6829
6806
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6830
6807
|
|
|
6831
|
-
var preview =
|
|
6808
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6832
6809
|
url: url,
|
|
6833
6810
|
light: light,
|
|
6834
6811
|
playIcon: playIcon,
|
|
6835
6812
|
onClick: this.handleClickPreview
|
|
6836
6813
|
});
|
|
6837
6814
|
|
|
6838
|
-
return
|
|
6815
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6839
6816
|
ref: this.wrapperRef,
|
|
6840
6817
|
style: _objectSpread({}, style, {
|
|
6841
6818
|
width: width,
|
|
@@ -6895,20 +6872,20 @@ var Audio = function Audio(_ref) {
|
|
|
6895
6872
|
var node = _ref.node;
|
|
6896
6873
|
|
|
6897
6874
|
if (node.uploadAudio) {
|
|
6898
|
-
return React__default
|
|
6875
|
+
return React__default.createElement(
|
|
6899
6876
|
'div',
|
|
6900
6877
|
{ className: 'audio d-block text-center mb-3' },
|
|
6901
|
-
React__default
|
|
6878
|
+
React__default.createElement(
|
|
6902
6879
|
'audio',
|
|
6903
6880
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6904
|
-
React__default
|
|
6905
|
-
React__default
|
|
6881
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6882
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6906
6883
|
'Your browser does not support the audio element.'
|
|
6907
6884
|
),
|
|
6908
|
-
node.caption && React__default
|
|
6885
|
+
node.caption && React__default.createElement(
|
|
6909
6886
|
'p',
|
|
6910
6887
|
{ style: { fontSize: '.9rem' } },
|
|
6911
|
-
React__default
|
|
6888
|
+
React__default.createElement(
|
|
6912
6889
|
'em',
|
|
6913
6890
|
null,
|
|
6914
6891
|
node.caption
|
|
@@ -6918,15 +6895,15 @@ var Audio = function Audio(_ref) {
|
|
|
6918
6895
|
} else if (node.audioFilePth) {
|
|
6919
6896
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6920
6897
|
if (hostname === 'embeds.audioboom.com') {
|
|
6921
|
-
return React__default
|
|
6898
|
+
return React__default.createElement(
|
|
6922
6899
|
'div',
|
|
6923
6900
|
null,
|
|
6924
|
-
React__default
|
|
6901
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6925
6902
|
' ',
|
|
6926
|
-
node.caption && React__default
|
|
6903
|
+
node.caption && React__default.createElement(
|
|
6927
6904
|
'p',
|
|
6928
6905
|
{ style: { fontSize: '.9rem' } },
|
|
6929
|
-
React__default
|
|
6906
|
+
React__default.createElement(
|
|
6930
6907
|
'em',
|
|
6931
6908
|
null,
|
|
6932
6909
|
node.caption
|
|
@@ -6934,14 +6911,14 @@ var Audio = function Audio(_ref) {
|
|
|
6934
6911
|
)
|
|
6935
6912
|
);
|
|
6936
6913
|
}
|
|
6937
|
-
return React__default
|
|
6914
|
+
return React__default.createElement(
|
|
6938
6915
|
'div',
|
|
6939
6916
|
{ className: 'audio' },
|
|
6940
|
-
React__default
|
|
6941
|
-
node.caption && React__default
|
|
6917
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6918
|
+
node.caption && React__default.createElement(
|
|
6942
6919
|
'p',
|
|
6943
6920
|
{ style: { fontSize: '.9rem' } },
|
|
6944
|
-
React__default
|
|
6921
|
+
React__default.createElement(
|
|
6945
6922
|
'em',
|
|
6946
6923
|
null,
|
|
6947
6924
|
node.caption
|
|
@@ -7042,10 +7019,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7042
7019
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
7043
7020
|
};
|
|
7044
7021
|
|
|
7045
|
-
return React__default
|
|
7022
|
+
return React__default.createElement(
|
|
7046
7023
|
'div',
|
|
7047
7024
|
null,
|
|
7048
|
-
vidLoaded && React__default
|
|
7025
|
+
vidLoaded && React__default.createElement(
|
|
7049
7026
|
'video',
|
|
7050
7027
|
{
|
|
7051
7028
|
poster: thumbnail || '',
|
|
@@ -7063,7 +7040,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7063
7040
|
onPlay: function onPlay(e) {
|
|
7064
7041
|
return handleOnPlay(e);
|
|
7065
7042
|
} },
|
|
7066
|
-
React__default
|
|
7043
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7067
7044
|
'Your browser does not support the video tag.'
|
|
7068
7045
|
)
|
|
7069
7046
|
);
|
|
@@ -7088,7 +7065,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7088
7065
|
}
|
|
7089
7066
|
});
|
|
7090
7067
|
|
|
7091
|
-
var builder = index.imageUrlBuilder(client);
|
|
7068
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7092
7069
|
function urlFor(source) {
|
|
7093
7070
|
return builder.image(source);
|
|
7094
7071
|
}
|
|
@@ -7163,7 +7140,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7163
7140
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7164
7141
|
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
|
|
7165
7142
|
} else {
|
|
7166
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7143
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7167
7144
|
}
|
|
7168
7145
|
}
|
|
7169
7146
|
});
|
|
@@ -7223,7 +7200,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7223
7200
|
//Small pause before starting next video
|
|
7224
7201
|
setTimeout(function () {
|
|
7225
7202
|
//Youtube API to start video playing automatically
|
|
7226
|
-
var id = index$
|
|
7203
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7227
7204
|
event.target.loadVideoById(id);
|
|
7228
7205
|
}, 1500);
|
|
7229
7206
|
};
|
|
@@ -7333,15 +7310,15 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7333
7310
|
}
|
|
7334
7311
|
};
|
|
7335
7312
|
|
|
7336
|
-
return React__default
|
|
7313
|
+
return React__default.createElement(
|
|
7337
7314
|
'div',
|
|
7338
7315
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7339
|
-
React__default
|
|
7316
|
+
React__default.createElement(
|
|
7340
7317
|
'div',
|
|
7341
7318
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7342
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7319
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7343
7320
|
className: 'fluid-iframe',
|
|
7344
|
-
videoId: index$
|
|
7321
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7345
7322
|
opts: opts,
|
|
7346
7323
|
onReady: handleOnReady,
|
|
7347
7324
|
onPlay: handleOnPlay,
|
|
@@ -7350,10 +7327,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7350
7327
|
return handleOnEnd(e);
|
|
7351
7328
|
}
|
|
7352
7329
|
}),
|
|
7353
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7354
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7355
|
-
React__default
|
|
7356
|
-
series && React__default
|
|
7330
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7331
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7332
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7333
|
+
series && React__default.createElement(
|
|
7357
7334
|
'div',
|
|
7358
7335
|
{
|
|
7359
7336
|
className: 'vid-series',
|
|
@@ -7363,10 +7340,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7363
7340
|
maxHeight: '100%',
|
|
7364
7341
|
paddingBottom: '0'
|
|
7365
7342
|
} },
|
|
7366
|
-
React__default
|
|
7343
|
+
React__default.createElement(
|
|
7367
7344
|
'p',
|
|
7368
7345
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7369
|
-
React__default
|
|
7346
|
+
React__default.createElement(
|
|
7370
7347
|
'b',
|
|
7371
7348
|
{ style: { fontSize: '1.25em' } },
|
|
7372
7349
|
'Now Playing:'
|
|
@@ -7374,36 +7351,36 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7374
7351
|
' ',
|
|
7375
7352
|
seriesData[series ? series - 1 : 0].title
|
|
7376
7353
|
),
|
|
7377
|
-
vidUrl && React__default
|
|
7354
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7378
7355
|
)
|
|
7379
7356
|
),
|
|
7380
|
-
React__default
|
|
7381
|
-
React__default
|
|
7357
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7358
|
+
React__default.createElement(
|
|
7382
7359
|
'div',
|
|
7383
7360
|
{ className: 'mt-2 mb-5' },
|
|
7384
|
-
series && React__default
|
|
7361
|
+
series && React__default.createElement(
|
|
7385
7362
|
'h3',
|
|
7386
7363
|
null,
|
|
7387
7364
|
'Episode ',
|
|
7388
7365
|
series
|
|
7389
7366
|
),
|
|
7390
|
-
Videos[series - 1] && React__default
|
|
7367
|
+
Videos[series - 1] && React__default.createElement(
|
|
7391
7368
|
'h2',
|
|
7392
7369
|
{ className: 'mb-3' },
|
|
7393
7370
|
Videos[series - 1].title
|
|
7394
7371
|
),
|
|
7395
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7372
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7396
7373
|
'p',
|
|
7397
7374
|
{ className: 'mb-3' },
|
|
7398
|
-
React__default
|
|
7375
|
+
React__default.createElement(
|
|
7399
7376
|
'em',
|
|
7400
7377
|
null,
|
|
7401
7378
|
Videos[series - 1].intro
|
|
7402
7379
|
)
|
|
7403
7380
|
),
|
|
7404
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7381
|
+
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()))
|
|
7405
7382
|
),
|
|
7406
|
-
React__default
|
|
7383
|
+
React__default.createElement(
|
|
7407
7384
|
'style',
|
|
7408
7385
|
{ jsx: 'true' },
|
|
7409
7386
|
'\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7412,13 +7389,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7412
7389
|
};
|
|
7413
7390
|
|
|
7414
7391
|
var Poll = function Poll(_ref) {
|
|
7415
|
-
var node = _ref.node
|
|
7416
|
-
_ref.client
|
|
7417
|
-
_ref.pageview
|
|
7418
|
-
_ref.videoAccountIDs
|
|
7419
|
-
|
|
7420
|
-
_ref.showVotes
|
|
7421
|
-
|
|
7392
|
+
var node = _ref.node,
|
|
7393
|
+
client = _ref.client,
|
|
7394
|
+
pageview = _ref.pageview,
|
|
7395
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7396
|
+
onVote = _ref.onVote,
|
|
7397
|
+
_ref$showVotes = _ref.showVotes,
|
|
7398
|
+
getSerializers = _ref.getSerializers;
|
|
7422
7399
|
|
|
7423
7400
|
var _useState = React.useState(null),
|
|
7424
7401
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7456,67 +7433,67 @@ var Poll = function Poll(_ref) {
|
|
|
7456
7433
|
return acc;
|
|
7457
7434
|
}
|
|
7458
7435
|
}, 0);
|
|
7459
|
-
return React__default
|
|
7460
|
-
React__default
|
|
7436
|
+
return React__default.createElement(
|
|
7437
|
+
React__default.Fragment,
|
|
7461
7438
|
null,
|
|
7462
|
-
question && React__default
|
|
7439
|
+
question && React__default.createElement(
|
|
7463
7440
|
'p',
|
|
7464
7441
|
{ className: 'font-weight-bold' },
|
|
7465
7442
|
question
|
|
7466
7443
|
),
|
|
7467
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7444
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7468
7445
|
'form',
|
|
7469
7446
|
{ onSubmit: function onSubmit(e) {
|
|
7470
7447
|
return onSubmitPoll(e);
|
|
7471
7448
|
} },
|
|
7472
7449
|
choices && choices.map(function (choice) {
|
|
7473
|
-
return React__default
|
|
7450
|
+
return React__default.createElement(
|
|
7474
7451
|
'div',
|
|
7475
7452
|
{ key: choice._key },
|
|
7476
|
-
React__default
|
|
7453
|
+
React__default.createElement(
|
|
7477
7454
|
'label',
|
|
7478
7455
|
{ className: 'pl-2' },
|
|
7479
|
-
React__default
|
|
7456
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7480
7457
|
return setSelectedChoice(e.target.value);
|
|
7481
7458
|
} }),
|
|
7482
7459
|
' ' + choice.choiceText
|
|
7483
7460
|
)
|
|
7484
7461
|
);
|
|
7485
7462
|
}),
|
|
7486
|
-
React__default
|
|
7463
|
+
React__default.createElement(
|
|
7487
7464
|
reactBootstrap.Button,
|
|
7488
7465
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7489
7466
|
'Vote'
|
|
7490
7467
|
)
|
|
7491
7468
|
),
|
|
7492
|
-
React__default
|
|
7469
|
+
React__default.createElement(
|
|
7493
7470
|
'div',
|
|
7494
7471
|
{ className: 'progress-container' },
|
|
7495
7472
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7496
7473
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7497
|
-
return React__default
|
|
7474
|
+
return React__default.createElement(
|
|
7498
7475
|
'div',
|
|
7499
7476
|
{ key: choice._key, className: 'mb-3' },
|
|
7500
|
-
React__default
|
|
7477
|
+
React__default.createElement(
|
|
7501
7478
|
'div',
|
|
7502
7479
|
{ className: 'correct-answer' },
|
|
7503
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7504
7481
|
'div',
|
|
7505
7482
|
null,
|
|
7506
7483
|
choice.choiceText
|
|
7507
7484
|
),
|
|
7508
|
-
choice.choiceAnswer === true && React__default
|
|
7485
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7509
7486
|
'div',
|
|
7510
7487
|
null,
|
|
7511
|
-
React__default
|
|
7488
|
+
React__default.createElement(
|
|
7512
7489
|
'span',
|
|
7513
7490
|
{ style: { color: 'limegreen' } },
|
|
7514
7491
|
'Correct!'
|
|
7515
7492
|
)
|
|
7516
7493
|
)
|
|
7517
7494
|
),
|
|
7518
|
-
React__default
|
|
7519
|
-
React__default
|
|
7495
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7496
|
+
React__default.createElement(
|
|
7520
7497
|
'span',
|
|
7521
7498
|
{ className: 'float-right' },
|
|
7522
7499
|
percentage,
|
|
@@ -7527,14 +7504,14 @@ var Poll = function Poll(_ref) {
|
|
|
7527
7504
|
);
|
|
7528
7505
|
})
|
|
7529
7506
|
),
|
|
7530
|
-
showAnswer && React__default
|
|
7507
|
+
showAnswer && React__default.createElement(
|
|
7531
7508
|
'h4',
|
|
7532
7509
|
{ className: 'text-center small p-3' },
|
|
7533
7510
|
'Total Votes: ',
|
|
7534
7511
|
choicesTotalCount
|
|
7535
7512
|
),
|
|
7536
|
-
showAnswer && response && React__default
|
|
7537
|
-
React__default
|
|
7513
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7514
|
+
React__default.createElement(
|
|
7538
7515
|
'style',
|
|
7539
7516
|
{ jsx: 'true' },
|
|
7540
7517
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7561,13 +7538,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7561
7538
|
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7562
7539
|
|
|
7563
7540
|
var Poll$1 = function Poll(_ref) {
|
|
7564
|
-
var node = _ref.node
|
|
7565
|
-
_ref.client
|
|
7566
|
-
_ref.pageview
|
|
7567
|
-
_ref.videoAccountIDs
|
|
7568
|
-
|
|
7569
|
-
_ref.showVotes
|
|
7570
|
-
|
|
7541
|
+
var node = _ref.node,
|
|
7542
|
+
client = _ref.client,
|
|
7543
|
+
pageview = _ref.pageview,
|
|
7544
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7545
|
+
onVote = _ref.onVote,
|
|
7546
|
+
_ref$showVotes = _ref.showVotes,
|
|
7547
|
+
getSerializers = _ref.getSerializers;
|
|
7571
7548
|
|
|
7572
7549
|
var _useState = React.useState(null),
|
|
7573
7550
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7633,67 +7610,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7633
7610
|
return acc;
|
|
7634
7611
|
}
|
|
7635
7612
|
}, 0);
|
|
7636
|
-
return React__default
|
|
7637
|
-
React__default
|
|
7613
|
+
return React__default.createElement(
|
|
7614
|
+
React__default.Fragment,
|
|
7638
7615
|
null,
|
|
7639
|
-
question && React__default
|
|
7616
|
+
question && React__default.createElement(
|
|
7640
7617
|
'p',
|
|
7641
7618
|
{ className: 'font-weight-bold' },
|
|
7642
7619
|
question
|
|
7643
7620
|
),
|
|
7644
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7621
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7645
7622
|
'form',
|
|
7646
7623
|
{ onSubmit: function onSubmit(e) {
|
|
7647
7624
|
return onSubmitPoll(e);
|
|
7648
7625
|
} },
|
|
7649
7626
|
choices && choices.map(function (choice) {
|
|
7650
|
-
return React__default
|
|
7627
|
+
return React__default.createElement(
|
|
7651
7628
|
'div',
|
|
7652
7629
|
{ key: choice._key },
|
|
7653
|
-
React__default
|
|
7630
|
+
React__default.createElement(
|
|
7654
7631
|
'label',
|
|
7655
7632
|
{ className: 'pl-2' },
|
|
7656
|
-
React__default
|
|
7633
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7657
7634
|
return setSelectedChoice(e.target.value);
|
|
7658
7635
|
} }),
|
|
7659
7636
|
' ' + choice.choiceText
|
|
7660
7637
|
)
|
|
7661
7638
|
);
|
|
7662
7639
|
}),
|
|
7663
|
-
React__default
|
|
7640
|
+
React__default.createElement(
|
|
7664
7641
|
reactBootstrap.Button,
|
|
7665
7642
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7666
7643
|
'Vote'
|
|
7667
7644
|
)
|
|
7668
7645
|
),
|
|
7669
|
-
React__default
|
|
7646
|
+
React__default.createElement(
|
|
7670
7647
|
'div',
|
|
7671
7648
|
{ className: 'progress-container' },
|
|
7672
7649
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7673
7650
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7674
|
-
return React__default
|
|
7651
|
+
return React__default.createElement(
|
|
7675
7652
|
'div',
|
|
7676
7653
|
{ key: choice._key, className: 'mb-3' },
|
|
7677
|
-
React__default
|
|
7654
|
+
React__default.createElement(
|
|
7678
7655
|
'div',
|
|
7679
7656
|
{ className: 'correct-answer' },
|
|
7680
|
-
React__default
|
|
7657
|
+
React__default.createElement(
|
|
7681
7658
|
'div',
|
|
7682
7659
|
null,
|
|
7683
7660
|
choice.choiceText
|
|
7684
7661
|
),
|
|
7685
|
-
choice.choiceAnswer === true && React__default
|
|
7662
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7686
7663
|
'div',
|
|
7687
7664
|
null,
|
|
7688
|
-
React__default
|
|
7665
|
+
React__default.createElement(
|
|
7689
7666
|
'span',
|
|
7690
7667
|
{ style: { color: 'limegreen' } },
|
|
7691
7668
|
'Correct!'
|
|
7692
7669
|
)
|
|
7693
7670
|
)
|
|
7694
7671
|
),
|
|
7695
|
-
React__default
|
|
7696
|
-
React__default
|
|
7672
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7673
|
+
React__default.createElement(
|
|
7697
7674
|
'span',
|
|
7698
7675
|
{ className: 'float-right' },
|
|
7699
7676
|
percentage,
|
|
@@ -7704,14 +7681,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7704
7681
|
);
|
|
7705
7682
|
})
|
|
7706
7683
|
),
|
|
7707
|
-
showAnswer && React__default
|
|
7684
|
+
showAnswer && React__default.createElement(
|
|
7708
7685
|
'h4',
|
|
7709
7686
|
{ className: 'text-center small p-3' },
|
|
7710
7687
|
'Total Votes: ',
|
|
7711
7688
|
choicesTotalCount
|
|
7712
7689
|
),
|
|
7713
|
-
showAnswer && response && React__default
|
|
7714
|
-
React__default
|
|
7690
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7691
|
+
React__default.createElement(
|
|
7715
7692
|
'style',
|
|
7716
7693
|
{ jsx: 'true' },
|
|
7717
7694
|
'\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 '
|
|
@@ -7719,7 +7696,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7719
7696
|
);
|
|
7720
7697
|
};
|
|
7721
7698
|
|
|
7722
|
-
var numberOfPaginations = main.
|
|
7699
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7723
7700
|
|
|
7724
7701
|
var Quiz = function Quiz(_ref) {
|
|
7725
7702
|
var quizzes = _ref.quizzes,
|
|
@@ -7783,7 +7760,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7783
7760
|
setEndIndex(numberOfPaginations - 1);
|
|
7784
7761
|
newPath = window.location.pathname;
|
|
7785
7762
|
window.history.pushState(null, null, newPath);
|
|
7786
|
-
index
|
|
7763
|
+
index.lib_3.refresh();
|
|
7787
7764
|
if (pageview) pageview(newPath);
|
|
7788
7765
|
break;
|
|
7789
7766
|
case 'last':
|
|
@@ -7792,7 +7769,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7792
7769
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7793
7770
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7794
7771
|
window.history.pushState(null, null, newPath);
|
|
7795
|
-
index
|
|
7772
|
+
index.lib_3.refresh();
|
|
7796
7773
|
if (pageview) pageview(newPath);
|
|
7797
7774
|
break;
|
|
7798
7775
|
case 'next':
|
|
@@ -7803,7 +7780,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7803
7780
|
}
|
|
7804
7781
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7805
7782
|
window.history.pushState(null, null, newPath);
|
|
7806
|
-
index
|
|
7783
|
+
index.lib_3.refresh();
|
|
7807
7784
|
if (pageview) pageview(newPath);
|
|
7808
7785
|
break;
|
|
7809
7786
|
case 'prev':
|
|
@@ -7814,14 +7791,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7814
7791
|
}
|
|
7815
7792
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7816
7793
|
window.history.pushState(null, null, newPath);
|
|
7817
|
-
index
|
|
7794
|
+
index.lib_3.refresh();
|
|
7818
7795
|
if (pageview) pageview(newPath);
|
|
7819
7796
|
break;
|
|
7820
7797
|
default:
|
|
7821
7798
|
setCurrentPage(control);
|
|
7822
7799
|
newPath = window.location.pathname + '?page=' + control;
|
|
7823
7800
|
window.history.pushState(null, null, newPath);
|
|
7824
|
-
index
|
|
7801
|
+
index.lib_3.refresh();
|
|
7825
7802
|
if (pageview) pageview(newPath);
|
|
7826
7803
|
}
|
|
7827
7804
|
};
|
|
@@ -7837,34 +7814,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7837
7814
|
};
|
|
7838
7815
|
|
|
7839
7816
|
var renderPagination = function renderPagination() {
|
|
7840
|
-
return React__default
|
|
7841
|
-
|
|
7842
|
-
{ className: 'p-0 m-0', size: main.
|
|
7843
|
-
React__default
|
|
7817
|
+
return React__default.createElement(
|
|
7818
|
+
Pagination,
|
|
7819
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7820
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7844
7821
|
return changePage('first');
|
|
7845
7822
|
}, disabled: currentPage === 1 }),
|
|
7846
|
-
React__default
|
|
7823
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7847
7824
|
return changePage('prev');
|
|
7848
7825
|
}, disabled: currentPage === 1 }),
|
|
7849
|
-
React__default
|
|
7826
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7850
7827
|
return renderNewPages('prev');
|
|
7851
7828
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7852
7829
|
pages.map(function (page) {
|
|
7853
|
-
return React__default
|
|
7854
|
-
|
|
7830
|
+
return React__default.createElement(
|
|
7831
|
+
Pagination.Item,
|
|
7855
7832
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7856
7833
|
return changePage(page);
|
|
7857
7834
|
} },
|
|
7858
7835
|
page
|
|
7859
7836
|
);
|
|
7860
7837
|
}),
|
|
7861
|
-
React__default
|
|
7838
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7862
7839
|
return renderNewPages('next');
|
|
7863
7840
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7864
|
-
React__default
|
|
7841
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7865
7842
|
return changePage('next');
|
|
7866
7843
|
}, disabled: currentPage === pageCount }),
|
|
7867
|
-
React__default
|
|
7844
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7868
7845
|
return changePage('last');
|
|
7869
7846
|
}, disabled: currentPage === pageCount })
|
|
7870
7847
|
);
|
|
@@ -7947,51 +7924,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
7947
7924
|
}
|
|
7948
7925
|
};
|
|
7949
7926
|
|
|
7950
|
-
return React__default
|
|
7951
|
-
React__default
|
|
7927
|
+
return React__default.createElement(
|
|
7928
|
+
React__default.Fragment,
|
|
7952
7929
|
null,
|
|
7953
|
-
quizzes[currentPage - 1] && React__default
|
|
7954
|
-
React__default
|
|
7930
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
7931
|
+
React__default.Fragment,
|
|
7955
7932
|
null,
|
|
7956
|
-
React__default
|
|
7957
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
7933
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7934
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
7958
7935
|
'form',
|
|
7959
7936
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
7960
7937
|
return e.preventDefault();
|
|
7961
7938
|
} },
|
|
7962
7939
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
7963
|
-
return React__default
|
|
7940
|
+
return React__default.createElement(
|
|
7964
7941
|
'div',
|
|
7965
7942
|
{ key: answer._key },
|
|
7966
|
-
React__default
|
|
7943
|
+
React__default.createElement(
|
|
7967
7944
|
'label',
|
|
7968
7945
|
{ className: 'pl-2' },
|
|
7969
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
7946
|
+
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 }),
|
|
7970
7947
|
' ' + answer.answerText
|
|
7971
7948
|
)
|
|
7972
7949
|
);
|
|
7973
7950
|
})
|
|
7974
7951
|
)
|
|
7975
7952
|
),
|
|
7976
|
-
!showAnswer && React__default
|
|
7977
|
-
|
|
7953
|
+
!showAnswer && React__default.createElement(
|
|
7954
|
+
Button,
|
|
7978
7955
|
{ onClick: function onClick() {
|
|
7979
7956
|
return checkAnswers();
|
|
7980
7957
|
}, variant: 'info', block: true },
|
|
7981
7958
|
'Please click here for answer'
|
|
7982
7959
|
),
|
|
7983
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
7984
|
-
React__default
|
|
7960
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
7961
|
+
React__default.Fragment,
|
|
7985
7962
|
null,
|
|
7986
|
-
React__default
|
|
7963
|
+
React__default.createElement(
|
|
7987
7964
|
'h4',
|
|
7988
7965
|
null,
|
|
7989
7966
|
'Answer:'
|
|
7990
7967
|
),
|
|
7991
|
-
quizzes[currentPage - 1].answer && React__default
|
|
7968
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7992
7969
|
),
|
|
7993
|
-
React__default
|
|
7994
|
-
pageCount > 1 && React__default
|
|
7970
|
+
React__default.createElement('br', null),
|
|
7971
|
+
pageCount > 1 && React__default.createElement(
|
|
7995
7972
|
'div',
|
|
7996
7973
|
{ className: 'd-flex justify-content-center' },
|
|
7997
7974
|
renderPagination()
|
|
@@ -8002,15 +7979,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8002
7979
|
var Leads = function Leads(_ref) {
|
|
8003
7980
|
var url = _ref.url;
|
|
8004
7981
|
|
|
8005
|
-
return React__default
|
|
7982
|
+
return React__default.createElement(
|
|
8006
7983
|
'div',
|
|
8007
7984
|
{ className: 'd-block text-center mb-3' },
|
|
8008
|
-
url && React__default
|
|
7985
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8009
7986
|
);
|
|
8010
7987
|
};
|
|
8011
7988
|
|
|
8012
7989
|
var urlFor$1 = function urlFor(source, client) {
|
|
8013
|
-
var builder = index.imageUrlBuilder(client);
|
|
7990
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8014
7991
|
return builder.image(source).auto('format');
|
|
8015
7992
|
};
|
|
8016
7993
|
|
|
@@ -8026,8 +8003,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8026
8003
|
|
|
8027
8004
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8028
8005
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8029
|
-
carouselIndex = _useState2[0]
|
|
8030
|
-
_useState2[1];
|
|
8006
|
+
carouselIndex = _useState2[0],
|
|
8007
|
+
setCarouselIndex = _useState2[1];
|
|
8031
8008
|
|
|
8032
8009
|
// useEffect(() => {
|
|
8033
8010
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8040,7 +8017,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8040
8017
|
// }, [router])
|
|
8041
8018
|
|
|
8042
8019
|
React.useEffect(function () {
|
|
8043
|
-
index
|
|
8020
|
+
index.lib_3.refresh();
|
|
8044
8021
|
if (pageview) pageview(router.asPath);
|
|
8045
8022
|
}, [router]);
|
|
8046
8023
|
|
|
@@ -8053,42 +8030,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8053
8030
|
}
|
|
8054
8031
|
};
|
|
8055
8032
|
|
|
8056
|
-
return React__default
|
|
8033
|
+
return React__default.createElement(
|
|
8057
8034
|
'div',
|
|
8058
8035
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8059
|
-
React__default
|
|
8036
|
+
React__default.createElement(
|
|
8060
8037
|
reactBootstrap.Carousel,
|
|
8061
8038
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8062
8039
|
slides && slides.map(function (slide) {
|
|
8063
8040
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8064
|
-
return React__default
|
|
8041
|
+
return React__default.createElement(
|
|
8065
8042
|
reactBootstrap.Carousel.Item,
|
|
8066
8043
|
{ key: slide._key },
|
|
8067
|
-
React__default
|
|
8044
|
+
React__default.createElement(
|
|
8068
8045
|
'a',
|
|
8069
8046
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8070
|
-
React__default
|
|
8071
|
-
index$
|
|
8047
|
+
React__default.createElement(
|
|
8048
|
+
index$2.LazyLoad,
|
|
8072
8049
|
null,
|
|
8073
|
-
React__default
|
|
8050
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8074
8051
|
)
|
|
8075
8052
|
),
|
|
8076
|
-
React__default
|
|
8053
|
+
React__default.createElement(
|
|
8077
8054
|
'div',
|
|
8078
8055
|
{ className: 'p-2' },
|
|
8079
|
-
slide.slideshowImage.caption && React__default
|
|
8056
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8080
8057
|
'h3',
|
|
8081
8058
|
{ style: { padding: '0px' } },
|
|
8082
8059
|
slide.slideshowImage.caption
|
|
8083
8060
|
),
|
|
8084
|
-
slide.description && React__default
|
|
8061
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8085
8062
|
)
|
|
8086
8063
|
);
|
|
8087
8064
|
}
|
|
8088
8065
|
return null;
|
|
8089
8066
|
})
|
|
8090
8067
|
),
|
|
8091
|
-
React__default
|
|
8068
|
+
React__default.createElement(
|
|
8092
8069
|
'style',
|
|
8093
8070
|
{ jsx: 'true' },
|
|
8094
8071
|
'\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 '
|
|
@@ -8107,10 +8084,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8107
8084
|
sizes = _props$node.sizes,
|
|
8108
8085
|
sizeMapping = _props$node.sizeMapping;
|
|
8109
8086
|
|
|
8110
|
-
return React__default
|
|
8087
|
+
return React__default.createElement(
|
|
8111
8088
|
'div',
|
|
8112
8089
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8113
|
-
React__default
|
|
8090
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8114
8091
|
);
|
|
8115
8092
|
};
|
|
8116
8093
|
|
|
@@ -8131,20 +8108,20 @@ var Formstack = function Formstack(_ref) {
|
|
|
8131
8108
|
|
|
8132
8109
|
var htmlContent = '\n <script needsegmentsupport="true" type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
|
|
8133
8110
|
|
|
8134
|
-
return React__default
|
|
8111
|
+
return React__default.createElement(
|
|
8135
8112
|
'div',
|
|
8136
8113
|
{ ref: formstackRef },
|
|
8137
|
-
React__default
|
|
8114
|
+
React__default.createElement(
|
|
8138
8115
|
'h4',
|
|
8139
8116
|
{ className: 'formstack-caption' },
|
|
8140
8117
|
Caption
|
|
8141
8118
|
),
|
|
8142
|
-
React__default
|
|
8119
|
+
React__default.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
|
|
8143
8120
|
);
|
|
8144
8121
|
};
|
|
8145
8122
|
|
|
8146
8123
|
var urlFor$2 = function urlFor(source, client) {
|
|
8147
|
-
var builder = index.imageUrlBuilder(client);
|
|
8124
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8148
8125
|
return builder.image(source).auto('format');
|
|
8149
8126
|
};
|
|
8150
8127
|
var MultiMedia = function MultiMedia(props) {
|
|
@@ -8159,29 +8136,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8159
8136
|
}
|
|
8160
8137
|
});
|
|
8161
8138
|
if (medias && medias.length > 0) {
|
|
8162
|
-
return React__default
|
|
8139
|
+
return React__default.createElement(
|
|
8163
8140
|
'div',
|
|
8164
8141
|
{ className: 'multi-media-container' },
|
|
8165
|
-
React__default
|
|
8166
|
-
|
|
8142
|
+
React__default.createElement(
|
|
8143
|
+
Row,
|
|
8167
8144
|
{ noGutters: true },
|
|
8168
8145
|
medias.map(function (media) {
|
|
8169
|
-
return React__default
|
|
8170
|
-
|
|
8146
|
+
return React__default.createElement(
|
|
8147
|
+
Col,
|
|
8171
8148
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8172
|
-
React__default
|
|
8149
|
+
React__default.createElement(
|
|
8173
8150
|
'a',
|
|
8174
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8151
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8175
8152
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8176
|
-
React__default
|
|
8153
|
+
React__default.createElement(
|
|
8177
8154
|
'div',
|
|
8178
8155
|
{ className: 'multi-media-image-container' },
|
|
8179
|
-
imageBox && React__default
|
|
8180
|
-
index$
|
|
8156
|
+
imageBox && React__default.createElement(
|
|
8157
|
+
index$2.LazyLoad,
|
|
8181
8158
|
{ once: true },
|
|
8182
|
-
React__default
|
|
8159
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8183
8160
|
),
|
|
8184
|
-
media.caption && React__default
|
|
8161
|
+
media.caption && React__default.createElement(
|
|
8185
8162
|
'span',
|
|
8186
8163
|
{ className: 'multi-media-caption' },
|
|
8187
8164
|
media.caption
|
|
@@ -8191,7 +8168,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8191
8168
|
);
|
|
8192
8169
|
})
|
|
8193
8170
|
),
|
|
8194
|
-
React__default
|
|
8171
|
+
React__default.createElement(
|
|
8195
8172
|
'style',
|
|
8196
8173
|
{ jsx: 'true' },
|
|
8197
8174
|
'\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 '
|
|
@@ -8207,34 +8184,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8207
8184
|
var profileImage = arguments[6];
|
|
8208
8185
|
|
|
8209
8186
|
if (authorName && authorURL) {
|
|
8210
|
-
return React__default
|
|
8187
|
+
return React__default.createElement(
|
|
8211
8188
|
'span',
|
|
8212
8189
|
null,
|
|
8213
|
-
React__default
|
|
8190
|
+
React__default.createElement(
|
|
8214
8191
|
'a',
|
|
8215
8192
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
8216
8193
|
authorName
|
|
8217
8194
|
),
|
|
8218
|
-
React__default
|
|
8195
|
+
React__default.createElement(
|
|
8219
8196
|
reactBootstrap.Card,
|
|
8220
8197
|
{ className: 'author-details-card-' + index },
|
|
8221
|
-
React__default
|
|
8198
|
+
React__default.createElement(
|
|
8222
8199
|
reactBootstrap.Row,
|
|
8223
8200
|
null,
|
|
8224
|
-
profileImage && React__default
|
|
8201
|
+
profileImage && React__default.createElement(
|
|
8225
8202
|
reactBootstrap.Col,
|
|
8226
8203
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
8227
|
-
React__default
|
|
8204
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
8228
8205
|
),
|
|
8229
|
-
React__default
|
|
8206
|
+
React__default.createElement(
|
|
8230
8207
|
reactBootstrap.Col,
|
|
8231
8208
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
8232
|
-
React__default
|
|
8209
|
+
React__default.createElement(
|
|
8233
8210
|
'h5',
|
|
8234
8211
|
null,
|
|
8235
8212
|
authorName
|
|
8236
8213
|
),
|
|
8237
|
-
React__default
|
|
8214
|
+
React__default.createElement(
|
|
8238
8215
|
'p',
|
|
8239
8216
|
null,
|
|
8240
8217
|
biography
|
|
@@ -8242,7 +8219,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8242
8219
|
)
|
|
8243
8220
|
)
|
|
8244
8221
|
),
|
|
8245
|
-
React__default
|
|
8222
|
+
React__default.createElement(
|
|
8246
8223
|
'style',
|
|
8247
8224
|
{ jsx: 'true' },
|
|
8248
8225
|
'\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 '
|
|
@@ -8250,7 +8227,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8250
8227
|
length !== index + 1 && ' , '
|
|
8251
8228
|
);
|
|
8252
8229
|
} else if (authorName) {
|
|
8253
|
-
return React__default
|
|
8230
|
+
return React__default.createElement(
|
|
8254
8231
|
'span',
|
|
8255
8232
|
{ key: index },
|
|
8256
8233
|
authorName,
|
|
@@ -8296,7 +8273,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8296
8273
|
}
|
|
8297
8274
|
};
|
|
8298
8275
|
|
|
8299
|
-
_this.wraperRef = React__default
|
|
8276
|
+
_this.wraperRef = React__default.createRef();
|
|
8300
8277
|
_this.visible = false;
|
|
8301
8278
|
return _this;
|
|
8302
8279
|
}
|
|
@@ -8324,7 +8301,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8324
8301
|
_props$id = _props.id,
|
|
8325
8302
|
id = _props$id === undefined ? '' : _props$id;
|
|
8326
8303
|
|
|
8327
|
-
return React__default
|
|
8304
|
+
return React__default.createElement(
|
|
8328
8305
|
'div',
|
|
8329
8306
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8330
8307
|
this.props.children
|
|
@@ -8333,7 +8310,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8333
8310
|
}]);
|
|
8334
8311
|
|
|
8335
8312
|
return InscreenSensor;
|
|
8336
|
-
}(React__default
|
|
8313
|
+
}(React__default.Component);
|
|
8337
8314
|
|
|
8338
8315
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8339
8316
|
var nodes = _ref.nodes,
|
|
@@ -8351,7 +8328,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8351
8328
|
var today = moment.moment().utc().format();
|
|
8352
8329
|
|
|
8353
8330
|
var authorPrefix = 'authors';
|
|
8354
|
-
var builder = index.imageUrlBuilder(client);
|
|
8331
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8355
8332
|
function urlFor(source) {
|
|
8356
8333
|
return builder.image(source);
|
|
8357
8334
|
}
|
|
@@ -8446,33 +8423,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8446
8423
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8447
8424
|
var showReading = show ? 'showReading' : '';
|
|
8448
8425
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8449
|
-
return React__default
|
|
8426
|
+
return React__default.createElement(
|
|
8450
8427
|
'div',
|
|
8451
8428
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8452
|
-
React__default
|
|
8429
|
+
React__default.createElement(
|
|
8453
8430
|
'a',
|
|
8454
8431
|
{ onClick: function onClick(e) {
|
|
8455
8432
|
return articleCardClickHandler(e);
|
|
8456
8433
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8457
|
-
React__default
|
|
8434
|
+
React__default.createElement(
|
|
8458
8435
|
'div',
|
|
8459
8436
|
{ className: 'prevNext-thumbnail' },
|
|
8460
|
-
React__default
|
|
8461
|
-
React__default
|
|
8437
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8438
|
+
React__default.createElement(
|
|
8462
8439
|
'div',
|
|
8463
8440
|
{ className: 'prevNext-reading ' + showReading },
|
|
8464
8441
|
articleLabel
|
|
8465
8442
|
)
|
|
8466
8443
|
),
|
|
8467
|
-
React__default
|
|
8444
|
+
React__default.createElement(
|
|
8468
8445
|
'div',
|
|
8469
8446
|
{ className: 'prevNext-summary' },
|
|
8470
|
-
React__default
|
|
8447
|
+
React__default.createElement(
|
|
8471
8448
|
'div',
|
|
8472
8449
|
{ className: 'prevNext-publishDate' },
|
|
8473
8450
|
moment.moment(article.published).format('LL')
|
|
8474
8451
|
),
|
|
8475
|
-
React__default
|
|
8452
|
+
React__default.createElement(
|
|
8476
8453
|
'h2',
|
|
8477
8454
|
{ className: 'prevNext-title' },
|
|
8478
8455
|
article.title
|
|
@@ -8521,7 +8498,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8521
8498
|
|
|
8522
8499
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8523
8500
|
if (biography) {
|
|
8524
|
-
return React__default
|
|
8501
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8525
8502
|
}
|
|
8526
8503
|
};
|
|
8527
8504
|
|
|
@@ -8607,7 +8584,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8607
8584
|
//console.log('useLayoutEffect')
|
|
8608
8585
|
if (!firstLoad) {
|
|
8609
8586
|
setUpArrowClicked(false);
|
|
8610
|
-
if (main.
|
|
8587
|
+
if (main.main_36) {
|
|
8611
8588
|
grabLoadedAds();
|
|
8612
8589
|
} else {
|
|
8613
8590
|
scrollToArticle();
|
|
@@ -8616,7 +8593,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8616
8593
|
});
|
|
8617
8594
|
|
|
8618
8595
|
var grabLoadedAds = function grabLoadedAds() {
|
|
8619
|
-
index
|
|
8596
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8620
8597
|
var checkIfReady = window.setInterval(function () {
|
|
8621
8598
|
if (window.googletag && googletag.pubadsReady) {
|
|
8622
8599
|
clearInterval(checkIfReady);
|
|
@@ -8631,19 +8608,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8631
8608
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8632
8609
|
if (pageview) pageview(path);
|
|
8633
8610
|
|
|
8634
|
-
if (!main.
|
|
8635
|
-
index
|
|
8611
|
+
if (!main.main_36) {
|
|
8612
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8636
8613
|
if (window.googletag && googletag.pubadsReady) {
|
|
8637
|
-
index
|
|
8614
|
+
index.lib_3.refresh();
|
|
8638
8615
|
}
|
|
8639
8616
|
});
|
|
8640
8617
|
}
|
|
8641
8618
|
//Refresh leaderboard ad on mobile
|
|
8642
|
-
if (main.
|
|
8619
|
+
if (main.main_36) {
|
|
8643
8620
|
var leaderboardSlotId = '';
|
|
8644
|
-
index
|
|
8621
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8645
8622
|
if (window.googletag && googletag.pubadsReady) {
|
|
8646
|
-
index
|
|
8623
|
+
index.lib_3.refresh(leaderboardSlotId);
|
|
8647
8624
|
}
|
|
8648
8625
|
});
|
|
8649
8626
|
}
|
|
@@ -8679,38 +8656,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8679
8656
|
setSensorVisible(false);
|
|
8680
8657
|
};
|
|
8681
8658
|
|
|
8682
|
-
return React__default
|
|
8683
|
-
React__default
|
|
8659
|
+
return React__default.createElement(
|
|
8660
|
+
React__default.Fragment,
|
|
8684
8661
|
null,
|
|
8685
|
-
React__default
|
|
8662
|
+
React__default.createElement(
|
|
8686
8663
|
'div',
|
|
8687
8664
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8688
|
-
React__default
|
|
8665
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8689
8666
|
return handleArrowClick();
|
|
8690
8667
|
} })
|
|
8691
8668
|
),
|
|
8692
|
-
React__default
|
|
8693
|
-
React__default
|
|
8669
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8670
|
+
React__default.createElement(
|
|
8694
8671
|
'div',
|
|
8695
8672
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8696
|
-
React__default
|
|
8673
|
+
React__default.createElement(
|
|
8697
8674
|
'h5',
|
|
8698
8675
|
{ className: 'objective-title' },
|
|
8699
8676
|
nodes.seriesTitle
|
|
8700
8677
|
),
|
|
8701
|
-
React__default
|
|
8678
|
+
React__default.createElement(
|
|
8702
8679
|
'div',
|
|
8703
8680
|
{ className: 'prevNextWrapper' },
|
|
8704
8681
|
PrevNextCards(false, -1)
|
|
8705
8682
|
)
|
|
8706
8683
|
),
|
|
8707
|
-
React__default
|
|
8708
|
-
React__default
|
|
8684
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8685
|
+
React__default.createElement(
|
|
8709
8686
|
'div',
|
|
8710
8687
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8711
|
-
main.
|
|
8688
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8712
8689
|
if (index === 0) {
|
|
8713
|
-
return React__default
|
|
8690
|
+
return React__default.createElement(
|
|
8714
8691
|
'div',
|
|
8715
8692
|
{
|
|
8716
8693
|
key: 'addid-1',
|
|
@@ -8730,14 +8707,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8730
8707
|
}
|
|
8731
8708
|
})
|
|
8732
8709
|
),
|
|
8733
|
-
React__default
|
|
8710
|
+
React__default.createElement(
|
|
8734
8711
|
'div',
|
|
8735
8712
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8736
8713
|
Articles.map(function (article, index) {
|
|
8737
|
-
return React__default
|
|
8714
|
+
return React__default.createElement(
|
|
8738
8715
|
'div',
|
|
8739
8716
|
{ key: article.title },
|
|
8740
|
-
React__default
|
|
8717
|
+
React__default.createElement(
|
|
8741
8718
|
InscreenSensor,
|
|
8742
8719
|
{
|
|
8743
8720
|
visible: sensorVisible,
|
|
@@ -8755,84 +8732,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8755
8732
|
}
|
|
8756
8733
|
}
|
|
8757
8734
|
} },
|
|
8758
|
-
React__default
|
|
8759
|
-
|
|
8735
|
+
React__default.createElement(
|
|
8736
|
+
Head,
|
|
8760
8737
|
null,
|
|
8761
|
-
currentTitle !== null && React__default
|
|
8738
|
+
currentTitle !== null && React__default.createElement(
|
|
8762
8739
|
'title',
|
|
8763
8740
|
{ key: 'title' },
|
|
8764
8741
|
currentTitle
|
|
8765
8742
|
),
|
|
8766
|
-
currentSummary !== null && React__default
|
|
8767
|
-
currentURL !== null && React__default
|
|
8768
|
-
currentTitle !== null && React__default
|
|
8769
|
-
currentThumbnail !== null && React__default
|
|
8770
|
-
currentSummary !== null && React__default
|
|
8771
|
-
currentTitle !== null && React__default
|
|
8772
|
-
currentThumbnail !== null && React__default
|
|
8773
|
-
currentSummary !== null && React__default
|
|
8743
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8744
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8745
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8746
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8747
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8748
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8749
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8750
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8774
8751
|
),
|
|
8775
|
-
React__default
|
|
8752
|
+
React__default.createElement(
|
|
8776
8753
|
'article',
|
|
8777
8754
|
{ className: 'article-wrapper' },
|
|
8778
|
-
React__default
|
|
8755
|
+
React__default.createElement(
|
|
8779
8756
|
'div',
|
|
8780
8757
|
{ className: 'article-publishDate' },
|
|
8781
8758
|
moment.moment(article.published).format('LL')
|
|
8782
8759
|
),
|
|
8783
|
-
React__default
|
|
8760
|
+
React__default.createElement(
|
|
8784
8761
|
'div',
|
|
8785
8762
|
{ className: 'author-details-wrapper' },
|
|
8786
8763
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8787
|
-
return React__default
|
|
8764
|
+
return React__default.createElement(
|
|
8788
8765
|
'span',
|
|
8789
8766
|
{ key: index },
|
|
8790
8767
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8791
8768
|
);
|
|
8792
8769
|
})
|
|
8793
8770
|
),
|
|
8794
|
-
React__default
|
|
8771
|
+
React__default.createElement(
|
|
8795
8772
|
'h2',
|
|
8796
8773
|
{ className: 'article-title' },
|
|
8797
8774
|
article.title
|
|
8798
8775
|
),
|
|
8799
|
-
React__default
|
|
8776
|
+
React__default.createElement(
|
|
8800
8777
|
'div',
|
|
8801
8778
|
{ className: 'mt-2 mb-2' },
|
|
8802
|
-
React__default
|
|
8779
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8803
8780
|
serializers: getSerializers,
|
|
8804
8781
|
videoAccountIDs: accountIDs,
|
|
8805
8782
|
blocks: article.text,
|
|
8806
8783
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8807
8784
|
}, client.config())),
|
|
8808
|
-
React__default
|
|
8785
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8809
8786
|
),
|
|
8810
|
-
Articles.length > 1 && React__default
|
|
8811
|
-
React__default
|
|
8787
|
+
Articles.length > 1 && React__default.createElement(
|
|
8788
|
+
React__default.Fragment,
|
|
8812
8789
|
null,
|
|
8813
|
-
React__default
|
|
8790
|
+
React__default.createElement(
|
|
8814
8791
|
'div',
|
|
8815
8792
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8816
|
-
React__default
|
|
8793
|
+
React__default.createElement(
|
|
8817
8794
|
'h5',
|
|
8818
8795
|
{ className: 'objective-title' },
|
|
8819
8796
|
nodes.seriesTitle
|
|
8820
8797
|
),
|
|
8821
|
-
React__default
|
|
8798
|
+
React__default.createElement(
|
|
8822
8799
|
'div',
|
|
8823
8800
|
{ className: 'prevNextWrapper' },
|
|
8824
8801
|
PrevNextCards(true, index)
|
|
8825
8802
|
)
|
|
8826
8803
|
),
|
|
8827
|
-
React__default
|
|
8804
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8828
8805
|
)
|
|
8829
8806
|
),
|
|
8830
|
-
React__default
|
|
8807
|
+
React__default.createElement(
|
|
8831
8808
|
'div',
|
|
8832
8809
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8833
|
-
main.
|
|
8810
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8834
8811
|
if (innerIndex === 0) {
|
|
8835
|
-
return React__default
|
|
8812
|
+
return React__default.createElement(
|
|
8836
8813
|
'div',
|
|
8837
8814
|
{
|
|
8838
8815
|
key: 'addid-' + (index + 2),
|
|
@@ -8855,7 +8832,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8855
8832
|
)
|
|
8856
8833
|
);
|
|
8857
8834
|
}),
|
|
8858
|
-
React__default
|
|
8835
|
+
React__default.createElement(
|
|
8859
8836
|
'style',
|
|
8860
8837
|
{ jsx: 'true' },
|
|
8861
8838
|
'\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 '
|
|
@@ -8885,11 +8862,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8885
8862
|
};
|
|
8886
8863
|
}, [handleClickOutside]);
|
|
8887
8864
|
|
|
8888
|
-
return React__default
|
|
8865
|
+
return React__default.createElement(
|
|
8889
8866
|
'div',
|
|
8890
8867
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8891
|
-
React__default
|
|
8892
|
-
React__default
|
|
8868
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8869
|
+
React__default.createElement(
|
|
8893
8870
|
'style',
|
|
8894
8871
|
{ jsx: 'true' },
|
|
8895
8872
|
'\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 '
|
|
@@ -8898,7 +8875,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8898
8875
|
};
|
|
8899
8876
|
|
|
8900
8877
|
var urlFor$3 = function urlFor(source, client) {
|
|
8901
|
-
var builder = index.imageUrlBuilder(client);
|
|
8878
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8902
8879
|
return builder.image(source).auto('format');
|
|
8903
8880
|
};
|
|
8904
8881
|
|
|
@@ -8983,13 +8960,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8983
8960
|
|
|
8984
8961
|
var FigureCaption = React.useCallback(function () {
|
|
8985
8962
|
if (imgcaption && imgcaption.length > 0) {
|
|
8986
|
-
return React__default
|
|
8963
|
+
return React__default.createElement(
|
|
8987
8964
|
'div',
|
|
8988
8965
|
{ className: 'figure-caption' },
|
|
8989
|
-
React__default
|
|
8966
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8990
8967
|
);
|
|
8991
8968
|
} else if (caption) {
|
|
8992
|
-
return React__default
|
|
8969
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
8993
8970
|
} else return null;
|
|
8994
8971
|
}, [caption, imgcaption]);
|
|
8995
8972
|
|
|
@@ -9001,21 +8978,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9001
8978
|
margin: figureMargin
|
|
9002
8979
|
};
|
|
9003
8980
|
|
|
9004
|
-
return React__default
|
|
9005
|
-
React__default
|
|
8981
|
+
return React__default.createElement(
|
|
8982
|
+
React__default.Fragment,
|
|
9006
8983
|
null,
|
|
9007
|
-
React__default
|
|
9008
|
-
|
|
8984
|
+
React__default.createElement(
|
|
8985
|
+
Figure$1,
|
|
9009
8986
|
{ className: '' + class_name, style: figureStyle },
|
|
9010
|
-
link ? React__default
|
|
8987
|
+
link ? React__default.createElement(
|
|
9011
8988
|
'a',
|
|
9012
8989
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9013
|
-
React__default
|
|
9014
|
-
React__default
|
|
9015
|
-
) : React__default
|
|
9016
|
-
React__default
|
|
8990
|
+
React__default.createElement(Figure$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
8991
|
+
React__default.createElement(FigureCaption, null)
|
|
8992
|
+
) : React__default.createElement(
|
|
8993
|
+
React__default.Fragment,
|
|
9017
8994
|
null,
|
|
9018
|
-
React__default
|
|
8995
|
+
React__default.createElement(Figure$1.Image, {
|
|
9019
8996
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9020
8997
|
className: 'figure-image',
|
|
9021
8998
|
src: urlFor$3(node, client).url(),
|
|
@@ -9025,9 +9002,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9025
9002
|
setShowLightbox(true);
|
|
9026
9003
|
}
|
|
9027
9004
|
}),
|
|
9028
|
-
React__default
|
|
9005
|
+
React__default.createElement(FigureCaption, null)
|
|
9029
9006
|
),
|
|
9030
|
-
React__default
|
|
9007
|
+
React__default.createElement(LightBox, {
|
|
9031
9008
|
showLightbox: showLightbox,
|
|
9032
9009
|
lightboxImgSrc: lightboxImgSrc,
|
|
9033
9010
|
closeLightbox: function closeLightbox() {
|
|
@@ -9036,7 +9013,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9036
9013
|
}
|
|
9037
9014
|
})
|
|
9038
9015
|
),
|
|
9039
|
-
React__default
|
|
9016
|
+
React__default.createElement(
|
|
9040
9017
|
'style',
|
|
9041
9018
|
{ jsx: 'true' },
|
|
9042
9019
|
'\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 '
|
|
@@ -9044,10 +9021,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9044
9021
|
);
|
|
9045
9022
|
};
|
|
9046
9023
|
|
|
9047
|
-
var Figure = React__default
|
|
9024
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9048
9025
|
|
|
9049
9026
|
var urlFor$4 = function urlFor(source, client) {
|
|
9050
|
-
var builder = index.imageUrlBuilder(client);
|
|
9027
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
9051
9028
|
return builder.image(source).auto('format');
|
|
9052
9029
|
};
|
|
9053
9030
|
|
|
@@ -9090,47 +9067,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9090
9067
|
imgcaption = _ref.imgcaption;
|
|
9091
9068
|
|
|
9092
9069
|
if (imgcaption && imgcaption.length > 0) {
|
|
9093
|
-
return React__default
|
|
9070
|
+
return React__default.createElement(
|
|
9094
9071
|
'div',
|
|
9095
9072
|
{ className: 'multi-figure-caption' },
|
|
9096
|
-
React__default
|
|
9073
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9097
9074
|
);
|
|
9098
9075
|
} else if (caption) {
|
|
9099
|
-
return React__default
|
|
9076
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9100
9077
|
} else return null;
|
|
9101
9078
|
};
|
|
9102
9079
|
|
|
9103
9080
|
if (images && images.length > 0) {
|
|
9104
|
-
return React__default
|
|
9081
|
+
return React__default.createElement(
|
|
9105
9082
|
'div',
|
|
9106
9083
|
{ className: 'multi-figure-container' },
|
|
9107
|
-
React__default
|
|
9108
|
-
|
|
9109
|
-
{ noGutters: true },
|
|
9084
|
+
React__default.createElement(
|
|
9085
|
+
Row,
|
|
9086
|
+
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9110
9087
|
images.map(function (image, index) {
|
|
9111
|
-
return React__default
|
|
9112
|
-
|
|
9088
|
+
return React__default.createElement(
|
|
9089
|
+
Col,
|
|
9113
9090
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9114
|
-
image.link ? React__default
|
|
9091
|
+
image.link ? React__default.createElement(
|
|
9115
9092
|
'a',
|
|
9116
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9117
|
-
React__default
|
|
9093
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9094
|
+
React__default.createElement(
|
|
9118
9095
|
'div',
|
|
9119
9096
|
{ className: 'multi-figure-image-container' },
|
|
9120
|
-
React__default
|
|
9121
|
-
index$
|
|
9097
|
+
React__default.createElement(
|
|
9098
|
+
index$2.LazyLoad,
|
|
9122
9099
|
{ once: true },
|
|
9123
|
-
React__default
|
|
9100
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9124
9101
|
),
|
|
9125
|
-
React__default
|
|
9102
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9126
9103
|
)
|
|
9127
|
-
) : React__default
|
|
9104
|
+
) : React__default.createElement(
|
|
9128
9105
|
'div',
|
|
9129
9106
|
{ className: 'multi-figure-image-container' },
|
|
9130
|
-
React__default
|
|
9131
|
-
index$
|
|
9107
|
+
React__default.createElement(
|
|
9108
|
+
index$2.LazyLoad,
|
|
9132
9109
|
{ once: true },
|
|
9133
|
-
React__default
|
|
9110
|
+
React__default.createElement('img', {
|
|
9134
9111
|
'images-count': images.length,
|
|
9135
9112
|
className: 'multi-figure-image',
|
|
9136
9113
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9141,20 +9118,20 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9141
9118
|
}
|
|
9142
9119
|
})
|
|
9143
9120
|
),
|
|
9144
|
-
React__default
|
|
9121
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9145
9122
|
)
|
|
9146
9123
|
);
|
|
9147
9124
|
})
|
|
9148
9125
|
),
|
|
9149
|
-
React__default
|
|
9126
|
+
React__default.createElement(
|
|
9150
9127
|
'div',
|
|
9151
9128
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9152
|
-
React__default
|
|
9129
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9153
9130
|
),
|
|
9154
|
-
React__default
|
|
9131
|
+
React__default.createElement(
|
|
9155
9132
|
'style',
|
|
9156
9133
|
{ jsx: 'true' },
|
|
9157
|
-
'\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:
|
|
9134
|
+
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
9158
9135
|
)
|
|
9159
9136
|
);
|
|
9160
9137
|
}
|
|
@@ -9173,10 +9150,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9173
9150
|
|
|
9174
9151
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9175
9152
|
|
|
9176
|
-
return React__default
|
|
9153
|
+
return React__default.createElement(
|
|
9177
9154
|
'div',
|
|
9178
9155
|
{ id: elementId },
|
|
9179
|
-
React__default
|
|
9156
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9180
9157
|
);
|
|
9181
9158
|
};
|
|
9182
9159
|
|
|
@@ -9248,17 +9225,17 @@ var getSerializers = function getSerializers() {
|
|
|
9248
9225
|
var node = _ref.node;
|
|
9249
9226
|
var url = node.url;
|
|
9250
9227
|
|
|
9251
|
-
return React__default
|
|
9228
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
9252
9229
|
},
|
|
9253
9230
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9254
9231
|
var node = _ref2.node;
|
|
9255
9232
|
|
|
9256
|
-
return React__default
|
|
9233
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
9257
9234
|
},
|
|
9258
9235
|
articleSeries: function articleSeries(_ref3) {
|
|
9259
9236
|
var node = _ref3.node;
|
|
9260
9237
|
|
|
9261
|
-
return React__default
|
|
9238
|
+
return React__default.createElement(ArticleSeries, {
|
|
9262
9239
|
nodes: node,
|
|
9263
9240
|
accountIDs: videoAccountIDs || {},
|
|
9264
9241
|
pageview: pageview,
|
|
@@ -9271,61 +9248,61 @@ var getSerializers = function getSerializers() {
|
|
|
9271
9248
|
figure: function figure(_ref4) {
|
|
9272
9249
|
var node = _ref4.node;
|
|
9273
9250
|
|
|
9274
|
-
return React__default
|
|
9251
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9275
9252
|
},
|
|
9276
9253
|
multifigure: function multifigure(_ref5) {
|
|
9277
9254
|
var node = _ref5.node;
|
|
9278
9255
|
|
|
9279
|
-
return React__default
|
|
9256
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9280
9257
|
},
|
|
9281
9258
|
slideshow: function slideshow(_ref6) {
|
|
9282
9259
|
var node = _ref6.node;
|
|
9283
9260
|
var slides = node.slides;
|
|
9284
9261
|
|
|
9285
|
-
return React__default
|
|
9262
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9286
9263
|
},
|
|
9287
9264
|
sidebar: function sidebar(_ref7) {
|
|
9288
9265
|
var node = _ref7.node;
|
|
9289
9266
|
var caption = node.caption,
|
|
9290
9267
|
content = node.content;
|
|
9291
9268
|
|
|
9292
|
-
return React__default
|
|
9269
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9293
9270
|
},
|
|
9294
9271
|
datatable: function datatable(_ref8) {
|
|
9295
9272
|
var node = _ref8.node;
|
|
9296
9273
|
var table = node.table;
|
|
9297
9274
|
|
|
9298
|
-
return React__default
|
|
9275
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9299
9276
|
},
|
|
9300
9277
|
media: function media(_ref9) {
|
|
9301
9278
|
var node = _ref9.node;
|
|
9302
9279
|
|
|
9303
|
-
return React__default
|
|
9280
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9304
9281
|
},
|
|
9305
9282
|
iframe: function iframe(_ref10) {
|
|
9306
9283
|
var node = _ref10.node;
|
|
9307
9284
|
|
|
9308
|
-
return React__default
|
|
9285
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
9309
9286
|
},
|
|
9310
9287
|
video: function video(_ref11) {
|
|
9311
9288
|
var node = _ref11.node;
|
|
9312
9289
|
|
|
9313
|
-
return React__default
|
|
9290
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9314
9291
|
},
|
|
9315
9292
|
audio: function audio(_ref12) {
|
|
9316
9293
|
var node = _ref12.node;
|
|
9317
9294
|
|
|
9318
|
-
return React__default
|
|
9295
|
+
return React__default.createElement(Audio, { node: node });
|
|
9319
9296
|
},
|
|
9320
9297
|
poll: function poll(_ref13) {
|
|
9321
9298
|
var node = _ref13.node;
|
|
9322
9299
|
|
|
9323
|
-
return React__default
|
|
9300
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9324
9301
|
},
|
|
9325
9302
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9326
9303
|
var node = _ref14.node;
|
|
9327
9304
|
|
|
9328
|
-
return React__default
|
|
9305
|
+
return React__default.createElement(Poll$1, {
|
|
9329
9306
|
node: node,
|
|
9330
9307
|
client: client,
|
|
9331
9308
|
pageview: pageview,
|
|
@@ -9339,59 +9316,59 @@ var getSerializers = function getSerializers() {
|
|
|
9339
9316
|
var node = _ref15.node;
|
|
9340
9317
|
var quizzes = node.quizzes;
|
|
9341
9318
|
|
|
9342
|
-
return React__default
|
|
9319
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9343
9320
|
},
|
|
9344
9321
|
leads: function leads(_ref16) {
|
|
9345
9322
|
var node = _ref16.node;
|
|
9346
9323
|
var leadID = node.leadID;
|
|
9347
9324
|
|
|
9348
9325
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9349
|
-
return React__default
|
|
9326
|
+
return React__default.createElement(Leads, { url: url });
|
|
9350
9327
|
},
|
|
9351
9328
|
slideshows: function slideshows(_ref17) {
|
|
9352
9329
|
var node = _ref17.node;
|
|
9353
9330
|
|
|
9354
|
-
return React__default
|
|
9331
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9355
9332
|
},
|
|
9356
9333
|
nativeAd: function nativeAd(_ref18) {
|
|
9357
9334
|
var node = _ref18.node;
|
|
9358
9335
|
|
|
9359
|
-
return React__default
|
|
9336
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9360
9337
|
},
|
|
9361
9338
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9362
9339
|
var node = _ref19.node;
|
|
9363
9340
|
|
|
9364
|
-
return React__default
|
|
9341
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9365
9342
|
},
|
|
9366
9343
|
hrtag: function hrtag() {
|
|
9367
|
-
return React__default
|
|
9344
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9368
9345
|
},
|
|
9369
9346
|
brtag: function brtag() {
|
|
9370
|
-
return React__default
|
|
9347
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9371
9348
|
},
|
|
9372
9349
|
formstack: function formstack(_ref20) {
|
|
9373
9350
|
var node = _ref20.node;
|
|
9374
9351
|
var FormID = node.FormID,
|
|
9375
9352
|
Caption = node.Caption;
|
|
9376
9353
|
|
|
9377
|
-
return React__default
|
|
9354
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption });
|
|
9378
9355
|
},
|
|
9379
9356
|
multimedia: function multimedia(_ref21) {
|
|
9380
9357
|
var node = _ref21.node;
|
|
9381
9358
|
|
|
9382
|
-
return React__default
|
|
9359
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9383
9360
|
}
|
|
9384
9361
|
},
|
|
9385
9362
|
marks: {
|
|
9386
9363
|
superscript: function superscript(props) {
|
|
9387
|
-
return React__default
|
|
9364
|
+
return React__default.createElement(
|
|
9388
9365
|
'sup',
|
|
9389
9366
|
null,
|
|
9390
9367
|
props.children
|
|
9391
9368
|
);
|
|
9392
9369
|
},
|
|
9393
9370
|
subscript: function subscript(props) {
|
|
9394
|
-
return React__default
|
|
9371
|
+
return React__default.createElement(
|
|
9395
9372
|
'sub',
|
|
9396
9373
|
null,
|
|
9397
9374
|
props.children
|
|
@@ -9407,7 +9384,7 @@ var getSerializers = function getSerializers() {
|
|
|
9407
9384
|
if (href && href.charAt(0) === '#') {
|
|
9408
9385
|
var elementId = href.slice(1);
|
|
9409
9386
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9410
|
-
return React__default
|
|
9387
|
+
return React__default.createElement(
|
|
9411
9388
|
'a',
|
|
9412
9389
|
{ onClick: function onClick() {
|
|
9413
9390
|
return ScrollToElement(elementId);
|
|
@@ -9417,7 +9394,7 @@ var getSerializers = function getSerializers() {
|
|
|
9417
9394
|
}
|
|
9418
9395
|
|
|
9419
9396
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9420
|
-
return React__default
|
|
9397
|
+
return React__default.createElement(
|
|
9421
9398
|
'a',
|
|
9422
9399
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9423
9400
|
children
|
|
@@ -9425,7 +9402,7 @@ var getSerializers = function getSerializers() {
|
|
|
9425
9402
|
},
|
|
9426
9403
|
alignleft: function alignleft(_ref22) {
|
|
9427
9404
|
var children = _ref22.children;
|
|
9428
|
-
return React__default
|
|
9405
|
+
return React__default.createElement(
|
|
9429
9406
|
'div',
|
|
9430
9407
|
{ style: { textAlign: 'left' } },
|
|
9431
9408
|
children
|
|
@@ -9433,7 +9410,7 @@ var getSerializers = function getSerializers() {
|
|
|
9433
9410
|
},
|
|
9434
9411
|
alignright: function alignright(_ref23) {
|
|
9435
9412
|
var children = _ref23.children;
|
|
9436
|
-
return React__default
|
|
9413
|
+
return React__default.createElement(
|
|
9437
9414
|
'div',
|
|
9438
9415
|
{ style: { textAlign: 'right' } },
|
|
9439
9416
|
children
|
|
@@ -9441,7 +9418,7 @@ var getSerializers = function getSerializers() {
|
|
|
9441
9418
|
},
|
|
9442
9419
|
aligncenter: function aligncenter(_ref24) {
|
|
9443
9420
|
var children = _ref24.children;
|
|
9444
|
-
return React__default
|
|
9421
|
+
return React__default.createElement(
|
|
9445
9422
|
'div',
|
|
9446
9423
|
{ style: { textAlign: 'center' } },
|
|
9447
9424
|
children
|
|
@@ -9449,7 +9426,7 @@ var getSerializers = function getSerializers() {
|
|
|
9449
9426
|
},
|
|
9450
9427
|
alignjustify: function alignjustify(_ref25) {
|
|
9451
9428
|
var children = _ref25.children;
|
|
9452
|
-
return React__default
|
|
9429
|
+
return React__default.createElement(
|
|
9453
9430
|
'div',
|
|
9454
9431
|
{ style: { textAlign: 'justify' } },
|
|
9455
9432
|
children
|
|
@@ -9459,7 +9436,7 @@ var getSerializers = function getSerializers() {
|
|
|
9459
9436
|
var children = props.children,
|
|
9460
9437
|
color = props.mark.color;
|
|
9461
9438
|
|
|
9462
|
-
return React__default
|
|
9439
|
+
return React__default.createElement(
|
|
9463
9440
|
'span',
|
|
9464
9441
|
{ style: { color: color ? color.hex : null } },
|
|
9465
9442
|
children
|