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