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