@mjhls/mjh-framework 1.0.769 → 1.0.770-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 +27 -28
- package/dist/cjs/AD300x250x600.js +27 -28
- package/dist/cjs/AD728x90.js +30 -31
- package/dist/cjs/ADFloatingFooter.js +29 -30
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +29 -30
- package/dist/cjs/{ADInfeed-32dc37f4.js → ADInfeed-547e399f.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +29 -30
- package/dist/cjs/ADSponsoredResources.js +29 -30
- package/dist/cjs/ADWebcast.js +29 -30
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-a8dc2b08.js → ADlgInfeed-84cd6750.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +16 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +55 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +335 -821
- 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 +23 -24
- 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-80146e98.js → Dfp-ce7ac168.js} +30 -31
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +77 -78
- 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 +131 -136
- 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 +69 -70
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +70 -71
- package/dist/cjs/MediaSeriesLanding.js +37 -39
- 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 +106 -107
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +39 -40
- package/dist/cjs/PubToc.js +16 -17
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +83 -83
- 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/SeriesListingDeck.js +38 -39
- package/dist/cjs/{SeriesSlider-8b500128.js → SeriesSlider-0a4b30a7.js} +37 -38
- 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 +52 -53
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +71 -75
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +46 -47
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +263 -257
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_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/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +13 -424
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +43 -43
- 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-33d0daca.js → index-4ec63018.js} +902 -925
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +160 -162
- 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 +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +26 -26
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +26 -26
- package/dist/esm/{ADInfeed-6315ccfc.js → ADInfeed-892282a8.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -26
- package/dist/esm/ADSponsoredResources.js +26 -26
- package/dist/esm/ADWebcast.js +26 -26
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-4e05a45c.js → ADlgInfeed-4cc9ead9.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +52 -52
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +322 -804
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +19 -19
- 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-8bfbd310.js → Dfp-e9a07597.js} +20 -20
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +71 -71
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +105 -105
- 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 +66 -66
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +64 -64
- package/dist/esm/MediaSeriesLanding.js +30 -30
- 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 -102
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +36 -36
- package/dist/esm/PubToc.js +13 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +59 -55
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SeriesListingDeck.js +33 -33
- package/dist/esm/{SeriesSlider-00ad2992.js → SeriesSlider-f629bded.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +47 -47
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +61 -61
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +39 -39
- package/dist/esm/VideoSeriesListing.js +70 -70
- package/dist/esm/View.js +247 -237
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +13 -424
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-47730283.js → index-c6e49ea4.js} +844 -860
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +129 -128
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
|
@@ -1,51 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-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-0e4427c8.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var index$2 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-8bf6c863.js');
|
|
10
14
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var index$1 = require('./index-be0c82be.js');
|
|
22
|
+
var index$2 = require('./index-da796b8c.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
24
|
+
var entities = require('./entities-310b46ee.js');
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
14
26
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var index$3 = require('./index-
|
|
19
|
-
var _typeof$1 = require('./typeof-97065d40.js');
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
27
|
+
var Beam = require('./Beam.js');
|
|
28
|
+
var AdSlot = require('./AdSlot.js');
|
|
29
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
30
|
+
var index$3 = require('./index-187c967e.js');
|
|
21
31
|
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var
|
|
32
|
+
var reactBootstrap = require('react-bootstrap');
|
|
33
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
34
|
+
var util = require('./util-f2c1b65b.js');
|
|
35
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
36
|
+
var Head = _interopDefault(require('next/head'));
|
|
23
37
|
var SocialShare = require('./SocialShare.js');
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var Button = require('react-bootstrap/Button');
|
|
29
|
-
var entities = require('./entities-3f9d0f2f.js');
|
|
30
|
-
var AdSlot = require('./AdSlot.js');
|
|
31
|
-
var Row = require('react-bootstrap/Row');
|
|
32
|
-
var Col = require('react-bootstrap/Col');
|
|
33
|
-
var Head = require('next/head');
|
|
34
|
-
var inherits = require('./inherits-2eb23889.js');
|
|
35
|
-
var index_esm = require('./index.esm-974f47d9.js');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
|
|
38
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
39
|
-
|
|
40
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
41
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
42
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
43
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
44
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
45
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
46
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
47
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
48
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
38
|
+
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
39
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
40
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
49
42
|
|
|
50
43
|
var urlFor = function urlFor(source, builder) {
|
|
51
44
|
return builder.image(source).auto('format');
|
|
@@ -54,7 +47,7 @@ var urlFor = function urlFor(source, builder) {
|
|
|
54
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
55
48
|
var pageNumber = selectedIndex + 1;
|
|
56
49
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
57
|
-
Router__default
|
|
50
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
58
51
|
};
|
|
59
52
|
|
|
60
53
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -69,7 +62,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
62
|
carouselIndex = _useState2[0],
|
|
70
63
|
setCarouselIndex = _useState2[1];
|
|
71
64
|
|
|
72
|
-
var builder = index.imageUrlBuilder(client);
|
|
65
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
73
66
|
|
|
74
67
|
React.useEffect(function () {
|
|
75
68
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -82,24 +75,24 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
82
75
|
}, [router]);
|
|
83
76
|
|
|
84
77
|
React.useEffect(function () {
|
|
85
|
-
index
|
|
78
|
+
index.lib_3.refresh();
|
|
86
79
|
if (pageview) pageview(router.asPath);
|
|
87
80
|
}, [router]);
|
|
88
81
|
|
|
89
|
-
return React__default
|
|
82
|
+
return React__default.createElement(
|
|
90
83
|
'div',
|
|
91
84
|
{ className: 'mt-3 mb-3' },
|
|
92
|
-
React__default
|
|
85
|
+
React__default.createElement(
|
|
93
86
|
reactBootstrap.Carousel,
|
|
94
87
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
95
88
|
return onChangeSlide(selectedIndex, router);
|
|
96
89
|
}, interval: null },
|
|
97
90
|
slides && slides.map(function (slide) {
|
|
98
|
-
return React__default
|
|
91
|
+
return React__default.createElement(
|
|
99
92
|
reactBootstrap.Carousel.Item,
|
|
100
93
|
{ key: slide._key },
|
|
101
|
-
React__default
|
|
102
|
-
slide.caption && React__default
|
|
94
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
95
|
+
slide.caption && React__default.createElement(
|
|
103
96
|
'p',
|
|
104
97
|
{ className: 'p-2' },
|
|
105
98
|
slide.caption
|
|
@@ -110,18 +103,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
110
103
|
);
|
|
111
104
|
};
|
|
112
105
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
var isArray = Array.isArray;
|
|
107
|
+
var keyList = Object.keys;
|
|
108
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
116
109
|
|
|
117
110
|
var fastDeepEqual = function equal(a, b) {
|
|
118
111
|
if (a === b) return true;
|
|
119
112
|
|
|
120
113
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
121
|
-
|
|
114
|
+
var arrA = isArray(a)
|
|
115
|
+
, arrB = isArray(b)
|
|
116
|
+
, i
|
|
117
|
+
, length
|
|
118
|
+
, key;
|
|
122
119
|
|
|
123
|
-
|
|
124
|
-
if (Array.isArray(a)) {
|
|
120
|
+
if (arrA && arrB) {
|
|
125
121
|
length = a.length;
|
|
126
122
|
if (length != b.length) return false;
|
|
127
123
|
for (i = length; i-- !== 0;)
|
|
@@ -129,29 +125,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
129
125
|
return true;
|
|
130
126
|
}
|
|
131
127
|
|
|
128
|
+
if (arrA != arrB) return false;
|
|
132
129
|
|
|
130
|
+
var dateA = a instanceof Date
|
|
131
|
+
, dateB = b instanceof Date;
|
|
132
|
+
if (dateA != dateB) return false;
|
|
133
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (
|
|
135
|
+
var regexpA = a instanceof RegExp
|
|
136
|
+
, regexpB = b instanceof RegExp;
|
|
137
|
+
if (regexpA != regexpB) return false;
|
|
138
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
137
139
|
|
|
138
|
-
keys =
|
|
140
|
+
var keys = keyList(a);
|
|
139
141
|
length = keys.length;
|
|
140
|
-
|
|
142
|
+
|
|
143
|
+
if (length !== keyList(b).length)
|
|
144
|
+
return false;
|
|
141
145
|
|
|
142
146
|
for (i = length; i-- !== 0;)
|
|
143
|
-
if (!
|
|
147
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
144
148
|
|
|
145
149
|
for (i = length; i-- !== 0;) {
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
key = keys[i];
|
|
148
151
|
if (!equal(a[key], b[key])) return false;
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
return true;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
|
-
// true if both NaN, false otherwise
|
|
155
157
|
return a!==a && b!==b;
|
|
156
158
|
};
|
|
157
159
|
|
|
@@ -689,14 +691,14 @@ function coerce(val) {
|
|
|
689
691
|
return val;
|
|
690
692
|
}
|
|
691
693
|
});
|
|
692
|
-
debug.coerce;
|
|
693
|
-
debug.disable;
|
|
694
|
-
debug.enable;
|
|
695
|
-
debug.enabled;
|
|
696
|
-
debug.humanize;
|
|
697
|
-
debug.names;
|
|
698
|
-
debug.skips;
|
|
699
|
-
debug.formatters;
|
|
694
|
+
var debug_1 = debug.coerce;
|
|
695
|
+
var debug_2 = debug.disable;
|
|
696
|
+
var debug_3 = debug.enable;
|
|
697
|
+
var debug_4 = debug.enabled;
|
|
698
|
+
var debug_5 = debug.humanize;
|
|
699
|
+
var debug_6 = debug.names;
|
|
700
|
+
var debug_7 = debug.skips;
|
|
701
|
+
var debug_8 = debug.formatters;
|
|
700
702
|
|
|
701
703
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
702
704
|
/**
|
|
@@ -885,13 +887,13 @@ function localstorage() {
|
|
|
885
887
|
} catch (e) {}
|
|
886
888
|
}
|
|
887
889
|
});
|
|
888
|
-
browser.log;
|
|
889
|
-
browser.formatArgs;
|
|
890
|
-
browser.save;
|
|
891
|
-
browser.load;
|
|
892
|
-
browser.useColors;
|
|
893
|
-
browser.storage;
|
|
894
|
-
browser.colors;
|
|
890
|
+
var browser_1 = browser.log;
|
|
891
|
+
var browser_2 = browser.formatArgs;
|
|
892
|
+
var browser_3 = browser.save;
|
|
893
|
+
var browser_4 = browser.load;
|
|
894
|
+
var browser_5 = browser.useColors;
|
|
895
|
+
var browser_6 = browser.storage;
|
|
896
|
+
var browser_7 = browser.colors;
|
|
895
897
|
|
|
896
898
|
// MIT lisence
|
|
897
899
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1166,14 +1168,14 @@ function init (debug) {
|
|
|
1166
1168
|
|
|
1167
1169
|
exports.enable(load());
|
|
1168
1170
|
});
|
|
1169
|
-
node.init;
|
|
1170
|
-
node.log;
|
|
1171
|
-
node.formatArgs;
|
|
1172
|
-
node.save;
|
|
1173
|
-
node.load;
|
|
1174
|
-
node.useColors;
|
|
1175
|
-
node.colors;
|
|
1176
|
-
node.inspectOpts;
|
|
1171
|
+
var node_1 = node.init;
|
|
1172
|
+
var node_2 = node.log;
|
|
1173
|
+
var node_3 = node.formatArgs;
|
|
1174
|
+
var node_4 = node.save;
|
|
1175
|
+
var node_5 = node.load;
|
|
1176
|
+
var node_6 = node.useColors;
|
|
1177
|
+
var node_7 = node.colors;
|
|
1178
|
+
var node_8 = node.inspectOpts;
|
|
1177
1179
|
|
|
1178
1180
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1179
1181
|
/**
|
|
@@ -1574,239 +1576,199 @@ module.exports = exports['default'];
|
|
|
1574
1576
|
|
|
1575
1577
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1576
1578
|
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1579
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1580
|
-
|
|
1581
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1582
|
-
|
|
1583
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1584
|
-
|
|
1585
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1586
|
-
|
|
1587
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1588
|
-
|
|
1589
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1590
|
-
|
|
1591
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1592
|
-
|
|
1593
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1579
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1594
1580
|
|
|
1595
|
-
function
|
|
1581
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1596
1582
|
|
|
1597
|
-
function
|
|
1583
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1598
1584
|
|
|
1599
|
-
function
|
|
1585
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1600
1586
|
|
|
1601
|
-
function
|
|
1587
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1602
1588
|
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param {Object}
|
|
1608
|
-
* @param {Object} props
|
|
1589
|
+
/**
|
|
1590
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1591
|
+
*
|
|
1592
|
+
* @param {Object} prevProps
|
|
1593
|
+
* @param {Object} props
|
|
1609
1594
|
*/
|
|
1610
|
-
|
|
1611
1595
|
function shouldUpdateVideo(prevProps, props) {
|
|
1612
1596
|
// A changing video should always trigger an update
|
|
1613
1597
|
if (prevProps.videoId !== props.videoId) {
|
|
1614
1598
|
return true;
|
|
1615
|
-
}
|
|
1616
|
-
// update.
|
|
1617
|
-
|
|
1599
|
+
}
|
|
1618
1600
|
|
|
1601
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
// update.
|
|
1619
1603
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1620
1604
|
var vars = props.opts.playerVars || {};
|
|
1605
|
+
|
|
1621
1606
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1622
1607
|
}
|
|
1623
|
-
/**
|
|
1624
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1625
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1626
|
-
* player reset is necessary.
|
|
1627
|
-
*
|
|
1628
|
-
* @param {Object} opts
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
1608
|
|
|
1609
|
+
/**
|
|
1610
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1611
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1612
|
+
* player reset is necessary.
|
|
1613
|
+
*
|
|
1614
|
+
* @param {Object} opts
|
|
1615
|
+
*/
|
|
1632
1616
|
function filterResetOptions(opts) {
|
|
1633
|
-
return
|
|
1634
|
-
playerVars:
|
|
1617
|
+
return _extends({}, opts, {
|
|
1618
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1635
1619
|
autoplay: 0,
|
|
1636
1620
|
start: 0,
|
|
1637
1621
|
end: 0
|
|
1638
|
-
}
|
|
1622
|
+
})
|
|
1639
1623
|
});
|
|
1640
1624
|
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1643
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1644
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1645
|
-
* those.
|
|
1646
|
-
*
|
|
1647
|
-
* @param {Object} prevProps
|
|
1648
|
-
* @param {Object} props
|
|
1649
|
-
*/
|
|
1650
|
-
|
|
1651
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1628
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1629
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1630
|
+
* those.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {Object} prevProps
|
|
1633
|
+
* @param {Object} props
|
|
1634
|
+
*/
|
|
1652
1635
|
function shouldResetPlayer(prevProps, props) {
|
|
1653
1636
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1654
1637
|
}
|
|
1655
|
-
/**
|
|
1656
|
-
* Check whether a props change should result in an id or className update.
|
|
1657
|
-
*
|
|
1658
|
-
* @param {Object} prevProps
|
|
1659
|
-
* @param {Object} props
|
|
1660
|
-
*/
|
|
1661
|
-
|
|
1662
1638
|
|
|
1639
|
+
/**
|
|
1640
|
+
* Check whether a props change should result in an id or className update.
|
|
1641
|
+
*
|
|
1642
|
+
* @param {Object} prevProps
|
|
1643
|
+
* @param {Object} props
|
|
1644
|
+
*/
|
|
1663
1645
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1664
1646
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1665
1647
|
}
|
|
1666
1648
|
|
|
1667
|
-
var YouTube =
|
|
1649
|
+
var YouTube = function (_React$Component) {
|
|
1668
1650
|
_inherits(YouTube, _React$Component);
|
|
1669
1651
|
|
|
1670
|
-
var _super = _createSuper(YouTube);
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1674
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1675
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1676
|
-
*/
|
|
1677
1652
|
function YouTube(props) {
|
|
1678
|
-
var _this;
|
|
1679
|
-
|
|
1680
1653
|
_classCallCheck(this, YouTube);
|
|
1681
1654
|
|
|
1682
|
-
_this =
|
|
1655
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1683
1656
|
|
|
1684
|
-
|
|
1657
|
+
_this.onPlayerReady = function (event) {
|
|
1685
1658
|
return _this.props.onReady(event);
|
|
1686
|
-
}
|
|
1659
|
+
};
|
|
1687
1660
|
|
|
1688
|
-
|
|
1661
|
+
_this.onPlayerError = function (event) {
|
|
1689
1662
|
return _this.props.onError(event);
|
|
1690
|
-
}
|
|
1663
|
+
};
|
|
1691
1664
|
|
|
1692
|
-
|
|
1665
|
+
_this.onPlayerStateChange = function (event) {
|
|
1693
1666
|
_this.props.onStateChange(event);
|
|
1694
|
-
|
|
1695
1667
|
switch (event.data) {
|
|
1668
|
+
|
|
1696
1669
|
case YouTube.PlayerState.ENDED:
|
|
1697
1670
|
_this.props.onEnd(event);
|
|
1698
|
-
|
|
1699
1671
|
break;
|
|
1700
1672
|
|
|
1701
1673
|
case YouTube.PlayerState.PLAYING:
|
|
1702
1674
|
_this.props.onPlay(event);
|
|
1703
|
-
|
|
1704
1675
|
break;
|
|
1705
1676
|
|
|
1706
1677
|
case YouTube.PlayerState.PAUSED:
|
|
1707
1678
|
_this.props.onPause(event);
|
|
1708
|
-
|
|
1709
1679
|
break;
|
|
1710
1680
|
}
|
|
1711
|
-
}
|
|
1681
|
+
};
|
|
1712
1682
|
|
|
1713
|
-
|
|
1683
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1714
1684
|
return _this.props.onPlaybackRateChange(event);
|
|
1715
|
-
}
|
|
1685
|
+
};
|
|
1716
1686
|
|
|
1717
|
-
|
|
1687
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1718
1688
|
return _this.props.onPlaybackQualityChange(event);
|
|
1719
|
-
}
|
|
1689
|
+
};
|
|
1720
1690
|
|
|
1721
|
-
|
|
1691
|
+
_this.createPlayer = function () {
|
|
1722
1692
|
// do not attempt to create a player server-side, it won't work
|
|
1723
|
-
if (typeof document === 'undefined') return;
|
|
1724
|
-
|
|
1725
|
-
var playerOpts =
|
|
1693
|
+
if (typeof document === 'undefined') return;
|
|
1694
|
+
// create player
|
|
1695
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1726
1696
|
// preload the `videoId` video if one is already given
|
|
1727
1697
|
videoId: _this.props.videoId
|
|
1728
1698
|
});
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1699
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1700
|
+
// attach event handlers
|
|
1732
1701
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1733
|
-
|
|
1734
1702
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1735
|
-
|
|
1736
1703
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1737
|
-
|
|
1738
1704
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1739
|
-
|
|
1740
1705
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1741
|
-
}
|
|
1706
|
+
};
|
|
1742
1707
|
|
|
1743
|
-
|
|
1708
|
+
_this.resetPlayer = function () {
|
|
1744
1709
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1745
|
-
}
|
|
1710
|
+
};
|
|
1746
1711
|
|
|
1747
|
-
|
|
1712
|
+
_this.updatePlayer = function () {
|
|
1748
1713
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1749
1714
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1750
1715
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1751
1716
|
});
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1755
|
-
return _this.internalPlayer;
|
|
1756
|
-
});
|
|
1717
|
+
};
|
|
1757
1718
|
|
|
1758
|
-
|
|
1719
|
+
_this.updateVideo = function () {
|
|
1759
1720
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1760
1721
|
_this.internalPlayer.stopVideo();
|
|
1761
|
-
|
|
1762
1722
|
return;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1723
|
+
}
|
|
1765
1724
|
|
|
1725
|
+
// set queueing options
|
|
1766
1726
|
var autoplay = false;
|
|
1767
1727
|
var opts = {
|
|
1768
1728
|
videoId: _this.props.videoId
|
|
1769
1729
|
};
|
|
1770
|
-
|
|
1771
1730
|
if ('playerVars' in _this.props.opts) {
|
|
1772
1731
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1773
|
-
|
|
1774
1732
|
if ('start' in _this.props.opts.playerVars) {
|
|
1775
1733
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1776
1734
|
}
|
|
1777
|
-
|
|
1778
1735
|
if ('end' in _this.props.opts.playerVars) {
|
|
1779
1736
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1780
1737
|
}
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1738
|
+
}
|
|
1783
1739
|
|
|
1740
|
+
// if autoplay is enabled loadVideoById
|
|
1784
1741
|
if (autoplay) {
|
|
1785
1742
|
_this.internalPlayer.loadVideoById(opts);
|
|
1786
|
-
|
|
1787
1743
|
return;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1744
|
+
}
|
|
1745
|
+
// default behaviour just cues the video
|
|
1791
1746
|
_this.internalPlayer.cueVideoById(opts);
|
|
1792
|
-
}
|
|
1747
|
+
};
|
|
1793
1748
|
|
|
1794
|
-
|
|
1749
|
+
_this.refContainer = function (container) {
|
|
1795
1750
|
_this.container = container;
|
|
1796
|
-
}
|
|
1751
|
+
};
|
|
1797
1752
|
|
|
1798
1753
|
_this.container = null;
|
|
1799
1754
|
_this.internalPlayer = null;
|
|
1800
1755
|
return _this;
|
|
1801
1756
|
}
|
|
1802
1757
|
|
|
1758
|
+
/**
|
|
1759
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1760
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1761
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1762
|
+
*/
|
|
1763
|
+
|
|
1764
|
+
|
|
1803
1765
|
_createClass(YouTube, [{
|
|
1804
|
-
key:
|
|
1766
|
+
key: 'componentDidMount',
|
|
1805
1767
|
value: function componentDidMount() {
|
|
1806
1768
|
this.createPlayer();
|
|
1807
1769
|
}
|
|
1808
1770
|
}, {
|
|
1809
|
-
key:
|
|
1771
|
+
key: 'componentDidUpdate',
|
|
1810
1772
|
value: function componentDidUpdate(prevProps) {
|
|
1811
1773
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1812
1774
|
this.updatePlayer();
|
|
@@ -1821,70 +1783,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1821
1783
|
}
|
|
1822
1784
|
}
|
|
1823
1785
|
}, {
|
|
1824
|
-
key:
|
|
1786
|
+
key: 'componentWillUnmount',
|
|
1825
1787
|
value: function componentWillUnmount() {
|
|
1826
|
-
/**
|
|
1827
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1828
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1829
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1830
|
-
* this method isn't quick enough to reset the container element.
|
|
1788
|
+
/**
|
|
1789
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1790
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1791
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1792
|
+
* this method isn't quick enough to reset the container element.
|
|
1831
1793
|
*/
|
|
1832
1794
|
this.internalPlayer.destroy();
|
|
1833
1795
|
}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1799
|
+
*
|
|
1800
|
+
* @param {Object} event
|
|
1801
|
+
* @param {Object} target - player object
|
|
1802
|
+
*/
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1807
|
+
*
|
|
1808
|
+
* @param {Object} event
|
|
1809
|
+
* @param {Integer} data - error type
|
|
1810
|
+
* @param {Object} target - player object
|
|
1811
|
+
*/
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Integer} data - status change type
|
|
1819
|
+
* @param {Object} target - actual YT player
|
|
1820
|
+
*/
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1825
|
+
*
|
|
1826
|
+
* @param {Object} event
|
|
1827
|
+
* @param {Float} data - playback rate
|
|
1828
|
+
* @param {Object} target - actual YT player
|
|
1829
|
+
*/
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1834
|
+
*
|
|
1835
|
+
* @param {Object} event
|
|
1836
|
+
* @param {String} data - playback quality
|
|
1837
|
+
* @param {Object} target - actual YT player
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1853
|
+
* React should update this automatically but since the Youtube Player API
|
|
1854
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1855
|
+
*/
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1860
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1861
|
+
* Youtube Player API methods to update the video.
|
|
1839
1862
|
*/
|
|
1840
1863
|
|
|
1841
1864
|
}, {
|
|
1842
|
-
key:
|
|
1865
|
+
key: 'render',
|
|
1843
1866
|
value: function render() {
|
|
1844
|
-
return
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
id: this.props.id,
|
|
1848
|
-
|
|
1849
|
-
ref: this.refContainer
|
|
1850
|
-
}));
|
|
1867
|
+
return React__default.createElement(
|
|
1868
|
+
'div',
|
|
1869
|
+
{ className: this.props.containerClassName },
|
|
1870
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1871
|
+
);
|
|
1851
1872
|
}
|
|
1852
1873
|
}]);
|
|
1853
1874
|
|
|
1854
1875
|
return YouTube;
|
|
1855
|
-
}(React__default
|
|
1856
|
-
|
|
1857
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1858
|
-
UNSTARTED: -1,
|
|
1859
|
-
ENDED: 0,
|
|
1860
|
-
PLAYING: 1,
|
|
1861
|
-
PAUSED: 2,
|
|
1862
|
-
BUFFERING: 3,
|
|
1863
|
-
CUED: 5
|
|
1864
|
-
});
|
|
1876
|
+
}(React__default.Component);
|
|
1865
1877
|
|
|
1866
1878
|
YouTube.propTypes = {
|
|
1867
|
-
videoId: PropTypes__default
|
|
1879
|
+
videoId: PropTypes__default.string,
|
|
1880
|
+
|
|
1868
1881
|
// custom ID for player element
|
|
1869
|
-
id: PropTypes__default
|
|
1882
|
+
id: PropTypes__default.string,
|
|
1883
|
+
|
|
1870
1884
|
// custom class name for player element
|
|
1871
|
-
className: PropTypes__default
|
|
1885
|
+
className: PropTypes__default.string,
|
|
1872
1886
|
// custom class name for player container element
|
|
1873
|
-
containerClassName: PropTypes__default
|
|
1887
|
+
containerClassName: PropTypes__default.string,
|
|
1888
|
+
|
|
1874
1889
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1875
|
-
opts: PropTypes__default
|
|
1890
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1891
|
+
|
|
1876
1892
|
// event subscriptions
|
|
1877
|
-
onReady: PropTypes__default
|
|
1878
|
-
onError: PropTypes__default
|
|
1879
|
-
onPlay: PropTypes__default
|
|
1880
|
-
onPause: PropTypes__default
|
|
1881
|
-
onEnd: PropTypes__default
|
|
1882
|
-
onStateChange: PropTypes__default
|
|
1883
|
-
onPlaybackRateChange: PropTypes__default
|
|
1884
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1893
|
+
onReady: PropTypes__default.func,
|
|
1894
|
+
onError: PropTypes__default.func,
|
|
1895
|
+
onPlay: PropTypes__default.func,
|
|
1896
|
+
onPause: PropTypes__default.func,
|
|
1897
|
+
onEnd: PropTypes__default.func,
|
|
1898
|
+
onStateChange: PropTypes__default.func,
|
|
1899
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1900
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1885
1901
|
};
|
|
1886
1902
|
YouTube.defaultProps = {
|
|
1887
|
-
videoId: null,
|
|
1888
1903
|
id: null,
|
|
1889
1904
|
className: null,
|
|
1890
1905
|
opts: {},
|
|
@@ -1898,11 +1913,19 @@ YouTube.defaultProps = {
|
|
|
1898
1913
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1899
1914
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1900
1915
|
};
|
|
1916
|
+
YouTube.PlayerState = {
|
|
1917
|
+
UNSTARTED: -1,
|
|
1918
|
+
ENDED: 0,
|
|
1919
|
+
PLAYING: 1,
|
|
1920
|
+
PAUSED: 2,
|
|
1921
|
+
BUFFERING: 3,
|
|
1922
|
+
CUED: 5
|
|
1923
|
+
};
|
|
1901
1924
|
|
|
1902
1925
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1903
1926
|
var url = _ref.url;
|
|
1904
1927
|
|
|
1905
|
-
var id = index$
|
|
1928
|
+
var id = index$3.getYoutubeId(url);
|
|
1906
1929
|
|
|
1907
1930
|
var _useState = React.useState(false),
|
|
1908
1931
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1997,11 +2020,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1997
2020
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1998
2021
|
};
|
|
1999
2022
|
|
|
2000
|
-
return React__default
|
|
2023
|
+
return React__default.createElement(
|
|
2001
2024
|
'div',
|
|
2002
2025
|
{ id: 'fluid-video-container' },
|
|
2003
|
-
React__default
|
|
2004
|
-
React__default
|
|
2026
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2027
|
+
React__default.createElement(
|
|
2005
2028
|
'style',
|
|
2006
2029
|
{ jsx: 'true' },
|
|
2007
2030
|
'\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 '
|
|
@@ -2014,20 +2037,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2014
2037
|
content = _ref.content,
|
|
2015
2038
|
getSerializers = _ref.getSerializers;
|
|
2016
2039
|
|
|
2017
|
-
return React__default
|
|
2040
|
+
return React__default.createElement(
|
|
2018
2041
|
'article',
|
|
2019
2042
|
{ className: 'sidebar' },
|
|
2020
|
-
React__default
|
|
2043
|
+
React__default.createElement(
|
|
2021
2044
|
'div',
|
|
2022
2045
|
null,
|
|
2023
|
-
React__default
|
|
2046
|
+
React__default.createElement(
|
|
2024
2047
|
'h3',
|
|
2025
2048
|
null,
|
|
2026
2049
|
caption
|
|
2027
2050
|
),
|
|
2028
|
-
React__default
|
|
2051
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2029
2052
|
),
|
|
2030
|
-
React__default
|
|
2053
|
+
React__default.createElement(
|
|
2031
2054
|
'style',
|
|
2032
2055
|
{ jsx: 'true' },
|
|
2033
2056
|
'\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 '
|
|
@@ -2038,18 +2061,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2038
2061
|
var TableShow = function TableShow(_ref) {
|
|
2039
2062
|
var rows = _ref.rows;
|
|
2040
2063
|
|
|
2041
|
-
return React__default
|
|
2064
|
+
return React__default.createElement(
|
|
2042
2065
|
reactBootstrap.Table,
|
|
2043
2066
|
{ bordered: true, hover: true, responsive: true },
|
|
2044
|
-
React__default
|
|
2067
|
+
React__default.createElement(
|
|
2045
2068
|
'tbody',
|
|
2046
2069
|
null,
|
|
2047
2070
|
rows && rows.map(function (row) {
|
|
2048
|
-
return React__default
|
|
2071
|
+
return React__default.createElement(
|
|
2049
2072
|
'tr',
|
|
2050
2073
|
{ key: row._key },
|
|
2051
2074
|
row.cells && row.cells.map(function (cell, index) {
|
|
2052
|
-
return cell && React__default
|
|
2075
|
+
return cell && React__default.createElement(
|
|
2053
2076
|
'td',
|
|
2054
2077
|
{ key: index },
|
|
2055
2078
|
cell
|
|
@@ -2077,7 +2100,7 @@ var Media = function Media(_ref) {
|
|
|
2077
2100
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2078
2101
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2079
2102
|
|
|
2080
|
-
var builder = index.imageUrlBuilder(client);
|
|
2103
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2081
2104
|
|
|
2082
2105
|
var urlFor = function urlFor(source) {
|
|
2083
2106
|
return builder.image(source).auto('format');
|
|
@@ -2152,18 +2175,18 @@ var Media = function Media(_ref) {
|
|
|
2152
2175
|
margin: imageMargin
|
|
2153
2176
|
};
|
|
2154
2177
|
|
|
2155
|
-
return React__default
|
|
2178
|
+
return React__default.createElement(
|
|
2156
2179
|
reactBootstrap.Figure,
|
|
2157
2180
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2158
|
-
React__default
|
|
2181
|
+
React__default.createElement(
|
|
2159
2182
|
'a',
|
|
2160
2183
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2161
|
-
React__default
|
|
2162
|
-
index$
|
|
2184
|
+
React__default.createElement(
|
|
2185
|
+
index$2.LazyLoad,
|
|
2163
2186
|
{ once: true },
|
|
2164
|
-
React__default
|
|
2187
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2165
2188
|
),
|
|
2166
|
-
caption && React__default
|
|
2189
|
+
caption && React__default.createElement(
|
|
2167
2190
|
reactBootstrap.Figure.Caption,
|
|
2168
2191
|
{ className: 'media-caption' },
|
|
2169
2192
|
caption
|
|
@@ -2171,9 +2194,9 @@ var Media = function Media(_ref) {
|
|
|
2171
2194
|
)
|
|
2172
2195
|
);
|
|
2173
2196
|
} else if (caption && caption !== '') {
|
|
2174
|
-
return React__default
|
|
2197
|
+
return React__default.createElement(
|
|
2175
2198
|
'a',
|
|
2176
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2199
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2177
2200
|
href: uploadDoc.asset.url + '?dl='
|
|
2178
2201
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2179
2202
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2191,10 +2214,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2191
2214
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2192
2215
|
|
|
2193
2216
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2194
|
-
return React__default
|
|
2217
|
+
return React__default.createElement(
|
|
2195
2218
|
'div',
|
|
2196
2219
|
{ className: 'd-block text-center mb-3' },
|
|
2197
|
-
React__default
|
|
2220
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2198
2221
|
);
|
|
2199
2222
|
};
|
|
2200
2223
|
|
|
@@ -2229,7 +2252,7 @@ var Video = function Video(_ref) {
|
|
|
2229
2252
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2230
2253
|
//console.log('success:', success.ref)
|
|
2231
2254
|
var player = success.ref;
|
|
2232
|
-
if (_typeof
|
|
2255
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2233
2256
|
player.ima3.settings.debug = true;
|
|
2234
2257
|
if (targeting.content_placement && targeting.document_url) {
|
|
2235
2258
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2327,44 +2350,44 @@ var Video = function Video(_ref) {
|
|
|
2327
2350
|
|
|
2328
2351
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2329
2352
|
if (videoID) {
|
|
2330
|
-
return React__default
|
|
2353
|
+
return React__default.createElement(
|
|
2331
2354
|
'div',
|
|
2332
2355
|
null,
|
|
2333
|
-
React__default
|
|
2356
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2334
2357
|
onSuccess: onVideoSuccess,
|
|
2335
2358
|
accountId: accountIDs.brightcove.accountId,
|
|
2336
2359
|
videoId: videoID,
|
|
2337
2360
|
playerId: accountIDs.brightcove.playerId,
|
|
2338
2361
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2339
2362
|
}),
|
|
2340
|
-
React__default
|
|
2363
|
+
React__default.createElement(
|
|
2341
2364
|
'style',
|
|
2342
2365
|
{ jsx: 'true' },
|
|
2343
2366
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2344
2367
|
)
|
|
2345
2368
|
);
|
|
2346
2369
|
} else if (playlistID) {
|
|
2347
|
-
return React__default
|
|
2370
|
+
return React__default.createElement(
|
|
2348
2371
|
'div',
|
|
2349
2372
|
null,
|
|
2350
|
-
React__default
|
|
2373
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2351
2374
|
accountId: accountIDs.brightcove.accountId,
|
|
2352
2375
|
playlistId: playlistID,
|
|
2353
2376
|
playerId: accountIDs.brightcove.playerId,
|
|
2354
2377
|
onSuccess: onVideoSuccess,
|
|
2355
2378
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2356
2379
|
}),
|
|
2357
|
-
React__default
|
|
2380
|
+
React__default.createElement(
|
|
2358
2381
|
'style',
|
|
2359
2382
|
{ jsx: 'true' },
|
|
2360
2383
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2361
2384
|
)
|
|
2362
2385
|
);
|
|
2363
2386
|
} else if (experienceID) {
|
|
2364
|
-
return React__default
|
|
2387
|
+
return React__default.createElement(
|
|
2365
2388
|
'div',
|
|
2366
2389
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2367
|
-
videoLoaded && React__default
|
|
2390
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2368
2391
|
);
|
|
2369
2392
|
}
|
|
2370
2393
|
return null;
|
|
@@ -2381,7 +2404,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2381
2404
|
});
|
|
2382
2405
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2383
2406
|
|
|
2384
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2407
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2385
2408
|
|
|
2386
2409
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2387
2410
|
|
|
@@ -2577,9 +2600,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2577
2600
|
});
|
|
2578
2601
|
|
|
2579
2602
|
_commonjsHelpers.unwrapExports(props);
|
|
2580
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2581
|
-
props.defaultProps;
|
|
2582
|
-
props.propTypes;
|
|
2603
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2604
|
+
var props_2 = props.defaultProps;
|
|
2605
|
+
var props_3 = props.propTypes;
|
|
2583
2606
|
|
|
2584
2607
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2585
2608
|
return isNonNullObject(value)
|
|
@@ -2744,17 +2767,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2744
2767
|
|
|
2745
2768
|
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; }
|
|
2746
2769
|
|
|
2747
|
-
function
|
|
2748
|
-
|
|
2749
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2750
|
-
|
|
2751
|
-
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."); }
|
|
2770
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2752
2771
|
|
|
2753
|
-
function
|
|
2772
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2754
2773
|
|
|
2755
|
-
function
|
|
2756
|
-
|
|
2757
|
-
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; }
|
|
2774
|
+
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; }
|
|
2758
2775
|
|
|
2759
2776
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2760
2777
|
|
|
@@ -2884,12 +2901,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2884
2901
|
|
|
2885
2902
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2886
2903
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2887
|
-
|
|
2888
|
-
var
|
|
2889
|
-
|
|
2904
|
+
var _iteratorNormalCompletion = true;
|
|
2905
|
+
var _didIteratorError = false;
|
|
2906
|
+
var _iteratorError = undefined;
|
|
2890
2907
|
|
|
2891
2908
|
try {
|
|
2892
|
-
for (_iterator.
|
|
2909
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2893
2910
|
var p = _step.value;
|
|
2894
2911
|
|
|
2895
2912
|
if (props$1[p]) {
|
|
@@ -2904,9 +2921,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2904
2921
|
}
|
|
2905
2922
|
}
|
|
2906
2923
|
} catch (err) {
|
|
2907
|
-
|
|
2924
|
+
_didIteratorError = true;
|
|
2925
|
+
_iteratorError = err;
|
|
2908
2926
|
} finally {
|
|
2909
|
-
|
|
2927
|
+
try {
|
|
2928
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2929
|
+
_iterator["return"]();
|
|
2930
|
+
}
|
|
2931
|
+
} finally {
|
|
2932
|
+
if (_didIteratorError) {
|
|
2933
|
+
throw _iteratorError;
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2910
2936
|
}
|
|
2911
2937
|
|
|
2912
2938
|
return config;
|
|
@@ -2971,7 +2997,7 @@ function isEqual(a, b) {
|
|
|
2971
2997
|
return true;
|
|
2972
2998
|
}
|
|
2973
2999
|
|
|
2974
|
-
if ((0, React__default
|
|
3000
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2975
3001
|
return true;
|
|
2976
3002
|
}
|
|
2977
3003
|
|
|
@@ -3014,17 +3040,17 @@ function isMediaStream(url) {
|
|
|
3014
3040
|
});
|
|
3015
3041
|
|
|
3016
3042
|
_commonjsHelpers.unwrapExports(utils);
|
|
3017
|
-
utils.parseStartTime;
|
|
3018
|
-
utils.parseEndTime;
|
|
3019
|
-
utils.randomString;
|
|
3020
|
-
utils.queryString;
|
|
3021
|
-
utils.getSDK;
|
|
3022
|
-
utils.getConfig;
|
|
3023
|
-
utils.omit;
|
|
3024
|
-
utils.callPlayer;
|
|
3025
|
-
utils.isObject;
|
|
3026
|
-
utils.isEqual;
|
|
3027
|
-
utils.isMediaStream;
|
|
3043
|
+
var utils_1 = utils.parseStartTime;
|
|
3044
|
+
var utils_2 = utils.parseEndTime;
|
|
3045
|
+
var utils_3 = utils.randomString;
|
|
3046
|
+
var utils_4 = utils.queryString;
|
|
3047
|
+
var utils_5 = utils.getSDK;
|
|
3048
|
+
var utils_6 = utils.getConfig;
|
|
3049
|
+
var utils_7 = utils.omit;
|
|
3050
|
+
var utils_8 = utils.callPlayer;
|
|
3051
|
+
var utils_9 = utils.isObject;
|
|
3052
|
+
var utils_10 = utils.isEqual;
|
|
3053
|
+
var utils_11 = utils.isMediaStream;
|
|
3028
3054
|
|
|
3029
3055
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3030
3056
|
|
|
@@ -3033,7 +3059,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3033
3059
|
});
|
|
3034
3060
|
exports["default"] = void 0;
|
|
3035
3061
|
|
|
3036
|
-
var _react = _interopRequireWildcard(React__default
|
|
3062
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3037
3063
|
|
|
3038
3064
|
|
|
3039
3065
|
|
|
@@ -3053,16 +3079,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3053
3079
|
|
|
3054
3080
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3055
3081
|
|
|
3056
|
-
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); }; }
|
|
3057
|
-
|
|
3058
3082
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3059
3083
|
|
|
3060
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3061
|
-
|
|
3062
|
-
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; } }
|
|
3063
|
-
|
|
3064
3084
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3065
3085
|
|
|
3086
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3087
|
+
|
|
3066
3088
|
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); }
|
|
3067
3089
|
|
|
3068
3090
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3071,12 +3093,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3071
3093
|
|
|
3072
3094
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3073
3095
|
|
|
3074
|
-
var Player =
|
|
3096
|
+
var Player =
|
|
3097
|
+
/*#__PURE__*/
|
|
3098
|
+
function (_Component) {
|
|
3075
3099
|
_inherits(Player, _Component);
|
|
3076
3100
|
|
|
3077
|
-
var _super = _createSuper(Player);
|
|
3078
|
-
|
|
3079
3101
|
function Player() {
|
|
3102
|
+
var _getPrototypeOf2;
|
|
3103
|
+
|
|
3080
3104
|
var _this;
|
|
3081
3105
|
|
|
3082
3106
|
_classCallCheck(this, Player);
|
|
@@ -3085,7 +3109,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3085
3109
|
_args[_key] = arguments[_key];
|
|
3086
3110
|
}
|
|
3087
3111
|
|
|
3088
|
-
_this =
|
|
3112
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3089
3113
|
|
|
3090
3114
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3091
3115
|
|
|
@@ -3410,7 +3434,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3410
3434
|
return null;
|
|
3411
3435
|
}
|
|
3412
3436
|
|
|
3413
|
-
return
|
|
3437
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3414
3438
|
ref: this.ref,
|
|
3415
3439
|
onReady: this.handleReady,
|
|
3416
3440
|
onPlay: this.handlePlay,
|
|
@@ -3443,7 +3467,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3443
3467
|
});
|
|
3444
3468
|
exports["default"] = createSinglePlayer;
|
|
3445
3469
|
|
|
3446
|
-
var _react = _interopRequireWildcard(React__default
|
|
3470
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3447
3471
|
|
|
3448
3472
|
|
|
3449
3473
|
|
|
@@ -3471,16 +3495,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3471
3495
|
|
|
3472
3496
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3473
3497
|
|
|
3474
|
-
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); }; }
|
|
3475
|
-
|
|
3476
3498
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3477
3499
|
|
|
3478
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3479
|
-
|
|
3480
|
-
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; } }
|
|
3481
|
-
|
|
3482
3500
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3483
3501
|
|
|
3502
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3503
|
+
|
|
3484
3504
|
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); }
|
|
3485
3505
|
|
|
3486
3506
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3492,12 +3512,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3492
3512
|
function createSinglePlayer(activePlayer) {
|
|
3493
3513
|
var _class, _temp;
|
|
3494
3514
|
|
|
3495
|
-
return _temp = _class =
|
|
3515
|
+
return _temp = _class =
|
|
3516
|
+
/*#__PURE__*/
|
|
3517
|
+
function (_Component) {
|
|
3496
3518
|
_inherits(SinglePlayer, _Component);
|
|
3497
3519
|
|
|
3498
|
-
var _super = _createSuper(SinglePlayer);
|
|
3499
|
-
|
|
3500
3520
|
function SinglePlayer() {
|
|
3521
|
+
var _getPrototypeOf2;
|
|
3522
|
+
|
|
3501
3523
|
var _this;
|
|
3502
3524
|
|
|
3503
3525
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3506,7 +3528,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3506
3528
|
args[_key] = arguments[_key];
|
|
3507
3529
|
}
|
|
3508
3530
|
|
|
3509
|
-
_this =
|
|
3531
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3510
3532
|
|
|
3511
3533
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3512
3534
|
|
|
@@ -3574,12 +3596,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3574
3596
|
height = _this$props.height,
|
|
3575
3597
|
Wrapper = _this$props.wrapper;
|
|
3576
3598
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3577
|
-
return
|
|
3599
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3578
3600
|
style: _objectSpread({}, style, {
|
|
3579
3601
|
width: width,
|
|
3580
3602
|
height: height
|
|
3581
3603
|
})
|
|
3582
|
-
}, otherProps),
|
|
3604
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3583
3605
|
ref: this.ref,
|
|
3584
3606
|
activePlayer: activePlayer,
|
|
3585
3607
|
config: this.config
|
|
@@ -3601,7 +3623,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3601
3623
|
});
|
|
3602
3624
|
exports["default"] = exports.YouTube = void 0;
|
|
3603
3625
|
|
|
3604
|
-
var _react = _interopRequireWildcard(React__default
|
|
3626
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3605
3627
|
|
|
3606
3628
|
|
|
3607
3629
|
|
|
@@ -3625,31 +3647,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3625
3647
|
|
|
3626
3648
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3627
3649
|
|
|
3628
|
-
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); }; }
|
|
3629
|
-
|
|
3630
3650
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3631
3651
|
|
|
3632
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3633
|
-
|
|
3634
|
-
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; } }
|
|
3635
|
-
|
|
3636
3652
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3637
3653
|
|
|
3654
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3655
|
+
|
|
3638
3656
|
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); }
|
|
3639
3657
|
|
|
3640
3658
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3641
3659
|
|
|
3642
3660
|
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; }
|
|
3643
3661
|
|
|
3644
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3645
|
-
|
|
3646
|
-
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."); }
|
|
3647
|
-
|
|
3648
|
-
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); }
|
|
3662
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3649
3663
|
|
|
3650
|
-
function
|
|
3664
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3651
3665
|
|
|
3652
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3666
|
+
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; }
|
|
3653
3667
|
|
|
3654
3668
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3655
3669
|
|
|
@@ -3674,12 +3688,14 @@ function parsePlaylist(url) {
|
|
|
3674
3688
|
return {};
|
|
3675
3689
|
}
|
|
3676
3690
|
|
|
3677
|
-
var YouTube =
|
|
3691
|
+
var YouTube =
|
|
3692
|
+
/*#__PURE__*/
|
|
3693
|
+
function (_Component) {
|
|
3678
3694
|
_inherits(YouTube, _Component);
|
|
3679
3695
|
|
|
3680
|
-
var _super = _createSuper(YouTube);
|
|
3681
|
-
|
|
3682
3696
|
function YouTube() {
|
|
3697
|
+
var _getPrototypeOf2;
|
|
3698
|
+
|
|
3683
3699
|
var _this;
|
|
3684
3700
|
|
|
3685
3701
|
_classCallCheck(this, YouTube);
|
|
@@ -3688,7 +3704,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3688
3704
|
args[_key] = arguments[_key];
|
|
3689
3705
|
}
|
|
3690
3706
|
|
|
3691
|
-
_this =
|
|
3707
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3692
3708
|
|
|
3693
3709
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3694
3710
|
|
|
@@ -3876,9 +3892,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3876
3892
|
height: '100%',
|
|
3877
3893
|
display: display
|
|
3878
3894
|
};
|
|
3879
|
-
return
|
|
3895
|
+
return _react["default"].createElement("div", {
|
|
3880
3896
|
style: style
|
|
3881
|
-
},
|
|
3897
|
+
}, _react["default"].createElement("div", {
|
|
3882
3898
|
ref: this.ref
|
|
3883
3899
|
}));
|
|
3884
3900
|
}
|
|
@@ -3901,7 +3917,7 @@ exports["default"] = _default;
|
|
|
3901
3917
|
});
|
|
3902
3918
|
|
|
3903
3919
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
3904
|
-
YouTube_1.YouTube;
|
|
3920
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
3905
3921
|
|
|
3906
3922
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3907
3923
|
|
|
@@ -3910,7 +3926,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3910
3926
|
});
|
|
3911
3927
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3912
3928
|
|
|
3913
|
-
var _react = _interopRequireWildcard(React__default
|
|
3929
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3914
3930
|
|
|
3915
3931
|
|
|
3916
3932
|
|
|
@@ -3934,16 +3950,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3934
3950
|
|
|
3935
3951
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3936
3952
|
|
|
3937
|
-
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); }; }
|
|
3938
|
-
|
|
3939
3953
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3940
3954
|
|
|
3941
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3942
|
-
|
|
3943
|
-
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; } }
|
|
3944
|
-
|
|
3945
3955
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3946
3956
|
|
|
3957
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3958
|
+
|
|
3947
3959
|
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); }
|
|
3948
3960
|
|
|
3949
3961
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3952,14 +3964,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3952
3964
|
|
|
3953
3965
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3954
3966
|
var SDK_GLOBAL = 'SC';
|
|
3955
|
-
var MATCH_URL = /(
|
|
3967
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3956
3968
|
|
|
3957
|
-
var SoundCloud =
|
|
3969
|
+
var SoundCloud =
|
|
3970
|
+
/*#__PURE__*/
|
|
3971
|
+
function (_Component) {
|
|
3958
3972
|
_inherits(SoundCloud, _Component);
|
|
3959
3973
|
|
|
3960
|
-
var _super = _createSuper(SoundCloud);
|
|
3961
|
-
|
|
3962
3974
|
function SoundCloud() {
|
|
3975
|
+
var _getPrototypeOf2;
|
|
3976
|
+
|
|
3963
3977
|
var _this;
|
|
3964
3978
|
|
|
3965
3979
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3968,7 +3982,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3968
3982
|
args[_key] = arguments[_key];
|
|
3969
3983
|
}
|
|
3970
3984
|
|
|
3971
|
-
_this =
|
|
3985
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3972
3986
|
|
|
3973
3987
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3974
3988
|
|
|
@@ -4089,7 +4103,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4089
4103
|
height: '100%',
|
|
4090
4104
|
display: display
|
|
4091
4105
|
};
|
|
4092
|
-
return
|
|
4106
|
+
return _react["default"].createElement("iframe", {
|
|
4093
4107
|
ref: this.ref,
|
|
4094
4108
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4095
4109
|
style: style,
|
|
@@ -4118,7 +4132,7 @@ exports["default"] = _default;
|
|
|
4118
4132
|
});
|
|
4119
4133
|
|
|
4120
4134
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4121
|
-
SoundCloud_1.SoundCloud;
|
|
4135
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4122
4136
|
|
|
4123
4137
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4124
4138
|
|
|
@@ -4127,7 +4141,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4127
4141
|
});
|
|
4128
4142
|
exports["default"] = exports.Vimeo = void 0;
|
|
4129
4143
|
|
|
4130
|
-
var _react = _interopRequireWildcard(React__default
|
|
4144
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4131
4145
|
|
|
4132
4146
|
|
|
4133
4147
|
|
|
@@ -4151,16 +4165,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4151
4165
|
|
|
4152
4166
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4153
4167
|
|
|
4154
|
-
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); }; }
|
|
4155
|
-
|
|
4156
4168
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4157
4169
|
|
|
4158
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4159
|
-
|
|
4160
|
-
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; } }
|
|
4161
|
-
|
|
4162
4170
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4163
4171
|
|
|
4172
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4173
|
+
|
|
4164
4174
|
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); }
|
|
4165
4175
|
|
|
4166
4176
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4172,12 +4182,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4172
4182
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4173
4183
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4174
4184
|
|
|
4175
|
-
var Vimeo =
|
|
4185
|
+
var Vimeo =
|
|
4186
|
+
/*#__PURE__*/
|
|
4187
|
+
function (_Component) {
|
|
4176
4188
|
_inherits(Vimeo, _Component);
|
|
4177
4189
|
|
|
4178
|
-
var _super = _createSuper(Vimeo);
|
|
4179
|
-
|
|
4180
4190
|
function Vimeo() {
|
|
4191
|
+
var _getPrototypeOf2;
|
|
4192
|
+
|
|
4181
4193
|
var _this;
|
|
4182
4194
|
|
|
4183
4195
|
_classCallCheck(this, Vimeo);
|
|
@@ -4186,7 +4198,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4186
4198
|
args[_key] = arguments[_key];
|
|
4187
4199
|
}
|
|
4188
4200
|
|
|
4189
|
-
_this =
|
|
4201
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4190
4202
|
|
|
4191
4203
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4192
4204
|
|
|
@@ -4343,7 +4355,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4343
4355
|
overflow: 'hidden',
|
|
4344
4356
|
display: display
|
|
4345
4357
|
};
|
|
4346
|
-
return
|
|
4358
|
+
return _react["default"].createElement("div", {
|
|
4347
4359
|
key: this.props.url,
|
|
4348
4360
|
ref: this.ref,
|
|
4349
4361
|
style: style
|
|
@@ -4374,7 +4386,7 @@ exports["default"] = _default;
|
|
|
4374
4386
|
});
|
|
4375
4387
|
|
|
4376
4388
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4377
|
-
Vimeo_1.Vimeo;
|
|
4389
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4378
4390
|
|
|
4379
4391
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4380
4392
|
|
|
@@ -4383,7 +4395,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4383
4395
|
});
|
|
4384
4396
|
exports["default"] = exports.Facebook = void 0;
|
|
4385
4397
|
|
|
4386
|
-
var _react = _interopRequireWildcard(React__default
|
|
4398
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4387
4399
|
|
|
4388
4400
|
|
|
4389
4401
|
|
|
@@ -4403,16 +4415,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4403
4415
|
|
|
4404
4416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4405
4417
|
|
|
4406
|
-
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); }; }
|
|
4407
|
-
|
|
4408
4418
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4409
4419
|
|
|
4410
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4411
|
-
|
|
4412
|
-
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; } }
|
|
4413
|
-
|
|
4414
4420
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4415
4421
|
|
|
4422
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4423
|
+
|
|
4416
4424
|
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); }
|
|
4417
4425
|
|
|
4418
4426
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4425,12 +4433,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4425
4433
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4426
4434
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4427
4435
|
|
|
4428
|
-
var Facebook =
|
|
4436
|
+
var Facebook =
|
|
4437
|
+
/*#__PURE__*/
|
|
4438
|
+
function (_Component) {
|
|
4429
4439
|
_inherits(Facebook, _Component);
|
|
4430
4440
|
|
|
4431
|
-
var _super = _createSuper(Facebook);
|
|
4432
|
-
|
|
4433
4441
|
function Facebook() {
|
|
4442
|
+
var _getPrototypeOf2;
|
|
4443
|
+
|
|
4434
4444
|
var _this;
|
|
4435
4445
|
|
|
4436
4446
|
_classCallCheck(this, Facebook);
|
|
@@ -4439,7 +4449,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4439
4449
|
args[_key] = arguments[_key];
|
|
4440
4450
|
}
|
|
4441
4451
|
|
|
4442
|
-
_this =
|
|
4452
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4443
4453
|
|
|
4444
4454
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4445
4455
|
|
|
@@ -4555,7 +4565,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4555
4565
|
width: '100%',
|
|
4556
4566
|
height: '100%'
|
|
4557
4567
|
};
|
|
4558
|
-
return
|
|
4568
|
+
return _react["default"].createElement("div", {
|
|
4559
4569
|
style: style,
|
|
4560
4570
|
id: this.playerID,
|
|
4561
4571
|
className: "fb-video",
|
|
@@ -4586,7 +4596,7 @@ exports["default"] = _default;
|
|
|
4586
4596
|
});
|
|
4587
4597
|
|
|
4588
4598
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4589
|
-
Facebook_1.Facebook;
|
|
4599
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4590
4600
|
|
|
4591
4601
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4592
4602
|
|
|
@@ -4595,7 +4605,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4595
4605
|
});
|
|
4596
4606
|
exports["default"] = exports.Streamable = void 0;
|
|
4597
4607
|
|
|
4598
|
-
var _react = _interopRequireWildcard(React__default
|
|
4608
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4599
4609
|
|
|
4600
4610
|
|
|
4601
4611
|
|
|
@@ -4615,16 +4625,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4615
4625
|
|
|
4616
4626
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4617
4627
|
|
|
4618
|
-
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); }; }
|
|
4619
|
-
|
|
4620
4628
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4621
4629
|
|
|
4622
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4623
|
-
|
|
4624
|
-
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; } }
|
|
4625
|
-
|
|
4626
4630
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4627
4631
|
|
|
4632
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4633
|
+
|
|
4628
4634
|
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); }
|
|
4629
4635
|
|
|
4630
4636
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4635,12 +4641,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4635
4641
|
var SDK_GLOBAL = 'playerjs';
|
|
4636
4642
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4637
4643
|
|
|
4638
|
-
var Streamable =
|
|
4644
|
+
var Streamable =
|
|
4645
|
+
/*#__PURE__*/
|
|
4646
|
+
function (_Component) {
|
|
4639
4647
|
_inherits(Streamable, _Component);
|
|
4640
4648
|
|
|
4641
|
-
var _super = _createSuper(Streamable);
|
|
4642
|
-
|
|
4643
4649
|
function Streamable() {
|
|
4650
|
+
var _getPrototypeOf2;
|
|
4651
|
+
|
|
4644
4652
|
var _this;
|
|
4645
4653
|
|
|
4646
4654
|
_classCallCheck(this, Streamable);
|
|
@@ -4649,7 +4657,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4649
4657
|
args[_key] = arguments[_key];
|
|
4650
4658
|
}
|
|
4651
4659
|
|
|
4652
|
-
_this =
|
|
4660
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4653
4661
|
|
|
4654
4662
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4655
4663
|
|
|
@@ -4769,7 +4777,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4769
4777
|
width: '100%',
|
|
4770
4778
|
height: '100%'
|
|
4771
4779
|
};
|
|
4772
|
-
return
|
|
4780
|
+
return _react["default"].createElement("iframe", {
|
|
4773
4781
|
ref: this.ref,
|
|
4774
4782
|
src: "https://streamable.com/o/".concat(id),
|
|
4775
4783
|
frameBorder: "0",
|
|
@@ -4797,7 +4805,7 @@ exports["default"] = _default;
|
|
|
4797
4805
|
});
|
|
4798
4806
|
|
|
4799
4807
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4800
|
-
Streamable_1.Streamable;
|
|
4808
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4801
4809
|
|
|
4802
4810
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4803
4811
|
|
|
@@ -4806,7 +4814,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4806
4814
|
});
|
|
4807
4815
|
exports["default"] = exports.Wistia = void 0;
|
|
4808
4816
|
|
|
4809
|
-
var _react = _interopRequireWildcard(React__default
|
|
4817
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4810
4818
|
|
|
4811
4819
|
|
|
4812
4820
|
|
|
@@ -4830,16 +4838,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4830
4838
|
|
|
4831
4839
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4832
4840
|
|
|
4833
|
-
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); }; }
|
|
4834
|
-
|
|
4835
4841
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4836
4842
|
|
|
4837
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4838
|
-
|
|
4839
|
-
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; } }
|
|
4840
|
-
|
|
4841
4843
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4842
4844
|
|
|
4845
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4846
|
+
|
|
4843
4847
|
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); }
|
|
4844
4848
|
|
|
4845
4849
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4850,48 +4854,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4850
4854
|
var SDK_GLOBAL = 'Wistia';
|
|
4851
4855
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4852
4856
|
|
|
4853
|
-
var Wistia =
|
|
4857
|
+
var Wistia =
|
|
4858
|
+
/*#__PURE__*/
|
|
4859
|
+
function (_Component) {
|
|
4854
4860
|
_inherits(Wistia, _Component);
|
|
4855
4861
|
|
|
4856
|
-
var _super = _createSuper(Wistia);
|
|
4857
|
-
|
|
4858
4862
|
function Wistia() {
|
|
4863
|
+
var _getPrototypeOf2;
|
|
4864
|
+
|
|
4859
4865
|
var _this;
|
|
4860
4866
|
|
|
4861
4867
|
_classCallCheck(this, Wistia);
|
|
4862
4868
|
|
|
4863
|
-
for (var _len = arguments.length,
|
|
4864
|
-
|
|
4869
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4870
|
+
args[_key] = arguments[_key];
|
|
4865
4871
|
}
|
|
4866
4872
|
|
|
4867
|
-
_this =
|
|
4873
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4868
4874
|
|
|
4869
4875
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4870
4876
|
|
|
4871
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4872
|
-
var _this$props;
|
|
4873
|
-
|
|
4874
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4875
|
-
});
|
|
4876
|
-
|
|
4877
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4878
|
-
var _this$props2;
|
|
4879
|
-
|
|
4880
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4881
|
-
});
|
|
4882
|
-
|
|
4883
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4884
|
-
var _this$props3;
|
|
4885
|
-
|
|
4886
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4887
|
-
});
|
|
4888
|
-
|
|
4889
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4890
|
-
var _this$props4;
|
|
4891
|
-
|
|
4892
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4893
|
-
});
|
|
4894
|
-
|
|
4895
4877
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4896
4878
|
_this.callPlayer('mute');
|
|
4897
4879
|
});
|
|
@@ -4913,13 +4895,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4913
4895
|
value: function load(url) {
|
|
4914
4896
|
var _this2 = this;
|
|
4915
4897
|
|
|
4916
|
-
var _this$
|
|
4917
|
-
playing = _this$
|
|
4918
|
-
muted = _this$
|
|
4919
|
-
controls = _this$
|
|
4920
|
-
_onReady = _this$
|
|
4921
|
-
|
|
4922
|
-
|
|
4898
|
+
var _this$props = this.props,
|
|
4899
|
+
playing = _this$props.playing,
|
|
4900
|
+
muted = _this$props.muted,
|
|
4901
|
+
controls = _this$props.controls,
|
|
4902
|
+
_onReady = _this$props.onReady,
|
|
4903
|
+
onPlay = _this$props.onPlay,
|
|
4904
|
+
onPause = _this$props.onPause,
|
|
4905
|
+
onSeek = _this$props.onSeek,
|
|
4906
|
+
onEnded = _this$props.onEnded,
|
|
4907
|
+
config = _this$props.config,
|
|
4908
|
+
onError = _this$props.onError;
|
|
4923
4909
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4924
4910
|
window._wq = window._wq || [];
|
|
4925
4911
|
|
|
@@ -4936,28 +4922,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4936
4922
|
|
|
4937
4923
|
_this2.unbind();
|
|
4938
4924
|
|
|
4939
|
-
_this2.player.bind('play',
|
|
4925
|
+
_this2.player.bind('play', onPlay);
|
|
4940
4926
|
|
|
4941
|
-
_this2.player.bind('pause',
|
|
4927
|
+
_this2.player.bind('pause', onPause);
|
|
4942
4928
|
|
|
4943
|
-
_this2.player.bind('seek',
|
|
4929
|
+
_this2.player.bind('seek', onSeek);
|
|
4944
4930
|
|
|
4945
|
-
_this2.player.bind('end',
|
|
4931
|
+
_this2.player.bind('end', onEnded);
|
|
4946
4932
|
|
|
4947
4933
|
_onReady();
|
|
4948
4934
|
}
|
|
4949
4935
|
});
|
|
4950
4936
|
}, onError);
|
|
4951
4937
|
}
|
|
4952
|
-
}, {
|
|
4953
|
-
key: "unbind",
|
|
4954
|
-
value: function unbind() {
|
|
4955
|
-
this.player.unbind('play', this.onPlay);
|
|
4956
|
-
this.player.unbind('pause', this.onPause);
|
|
4957
|
-
this.player.unbind('seek', this.onSeek);
|
|
4958
|
-
this.player.unbind('end', this.onEnded);
|
|
4959
|
-
} // Proxy methods to prevent listener leaks
|
|
4960
|
-
|
|
4961
4938
|
}, {
|
|
4962
4939
|
key: "play",
|
|
4963
4940
|
value: function play() {
|
|
@@ -4968,6 +4945,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4968
4945
|
value: function pause() {
|
|
4969
4946
|
this.callPlayer('pause');
|
|
4970
4947
|
}
|
|
4948
|
+
}, {
|
|
4949
|
+
key: "unbind",
|
|
4950
|
+
value: function unbind() {
|
|
4951
|
+
var _this$props2 = this.props,
|
|
4952
|
+
onPlay = _this$props2.onPlay,
|
|
4953
|
+
onPause = _this$props2.onPause,
|
|
4954
|
+
onSeek = _this$props2.onSeek,
|
|
4955
|
+
onEnded = _this$props2.onEnded;
|
|
4956
|
+
this.player.unbind('play', onPlay);
|
|
4957
|
+
this.player.unbind('pause', onPause);
|
|
4958
|
+
this.player.unbind('seek', onSeek);
|
|
4959
|
+
this.player.unbind('end', onEnded);
|
|
4960
|
+
}
|
|
4971
4961
|
}, {
|
|
4972
4962
|
key: "stop",
|
|
4973
4963
|
value: function stop() {
|
|
@@ -5013,7 +5003,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5013
5003
|
width: '100%',
|
|
5014
5004
|
height: '100%'
|
|
5015
5005
|
};
|
|
5016
|
-
return
|
|
5006
|
+
return _react["default"].createElement("div", {
|
|
5017
5007
|
key: id,
|
|
5018
5008
|
className: className,
|
|
5019
5009
|
style: style
|
|
@@ -5040,7 +5030,7 @@ exports["default"] = _default;
|
|
|
5040
5030
|
});
|
|
5041
5031
|
|
|
5042
5032
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5043
|
-
Wistia_1.Wistia;
|
|
5033
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5044
5034
|
|
|
5045
5035
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5046
5036
|
|
|
@@ -5049,7 +5039,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5049
5039
|
});
|
|
5050
5040
|
exports["default"] = exports.Twitch = void 0;
|
|
5051
5041
|
|
|
5052
|
-
var _react = _interopRequireWildcard(React__default
|
|
5042
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5053
5043
|
|
|
5054
5044
|
|
|
5055
5045
|
|
|
@@ -5073,16 +5063,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5073
5063
|
|
|
5074
5064
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5075
5065
|
|
|
5076
|
-
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); }; }
|
|
5077
|
-
|
|
5078
5066
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5079
5067
|
|
|
5080
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5081
|
-
|
|
5082
|
-
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; } }
|
|
5083
|
-
|
|
5084
5068
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5085
5069
|
|
|
5070
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5071
|
+
|
|
5086
5072
|
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); }
|
|
5087
5073
|
|
|
5088
5074
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5095,12 +5081,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5095
5081
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5096
5082
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5097
5083
|
|
|
5098
|
-
var Twitch =
|
|
5084
|
+
var Twitch =
|
|
5085
|
+
/*#__PURE__*/
|
|
5086
|
+
function (_Component) {
|
|
5099
5087
|
_inherits(Twitch, _Component);
|
|
5100
5088
|
|
|
5101
|
-
var _super = _createSuper(Twitch);
|
|
5102
|
-
|
|
5103
5089
|
function Twitch() {
|
|
5090
|
+
var _getPrototypeOf2;
|
|
5091
|
+
|
|
5104
5092
|
var _this;
|
|
5105
5093
|
|
|
5106
5094
|
_classCallCheck(this, Twitch);
|
|
@@ -5109,7 +5097,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5109
5097
|
args[_key] = arguments[_key];
|
|
5110
5098
|
}
|
|
5111
5099
|
|
|
5112
|
-
_this =
|
|
5100
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5113
5101
|
|
|
5114
5102
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5115
5103
|
|
|
@@ -5230,7 +5218,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5230
5218
|
width: '100%',
|
|
5231
5219
|
height: '100%'
|
|
5232
5220
|
};
|
|
5233
|
-
return
|
|
5221
|
+
return _react["default"].createElement("div", {
|
|
5234
5222
|
style: style,
|
|
5235
5223
|
id: this.playerID
|
|
5236
5224
|
});
|
|
@@ -5256,7 +5244,7 @@ exports["default"] = _default;
|
|
|
5256
5244
|
});
|
|
5257
5245
|
|
|
5258
5246
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5259
|
-
Twitch_1.Twitch;
|
|
5247
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5260
5248
|
|
|
5261
5249
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5262
5250
|
|
|
@@ -5265,7 +5253,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5265
5253
|
});
|
|
5266
5254
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5267
5255
|
|
|
5268
|
-
var _react = _interopRequireWildcard(React__default
|
|
5256
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5269
5257
|
|
|
5270
5258
|
|
|
5271
5259
|
|
|
@@ -5283,15 +5271,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5283
5271
|
|
|
5284
5272
|
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; }
|
|
5285
5273
|
|
|
5286
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5274
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5287
5275
|
|
|
5288
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5276
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5289
5277
|
|
|
5290
|
-
function
|
|
5291
|
-
|
|
5292
|
-
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; }
|
|
5293
|
-
|
|
5294
|
-
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; }
|
|
5278
|
+
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; }
|
|
5295
5279
|
|
|
5296
5280
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5297
5281
|
|
|
@@ -5301,16 +5285,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5301
5285
|
|
|
5302
5286
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5303
5287
|
|
|
5304
|
-
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); }; }
|
|
5305
|
-
|
|
5306
5288
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5307
5289
|
|
|
5308
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5309
|
-
|
|
5310
|
-
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; } }
|
|
5311
|
-
|
|
5312
5290
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5313
5291
|
|
|
5292
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5293
|
+
|
|
5314
5294
|
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); }
|
|
5315
5295
|
|
|
5316
5296
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5322,12 +5302,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5322
5302
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5323
5303
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5324
5304
|
|
|
5325
|
-
var DailyMotion =
|
|
5305
|
+
var DailyMotion =
|
|
5306
|
+
/*#__PURE__*/
|
|
5307
|
+
function (_Component) {
|
|
5326
5308
|
_inherits(DailyMotion, _Component);
|
|
5327
5309
|
|
|
5328
|
-
var _super = _createSuper(DailyMotion);
|
|
5329
|
-
|
|
5330
5310
|
function DailyMotion() {
|
|
5311
|
+
var _getPrototypeOf2;
|
|
5312
|
+
|
|
5331
5313
|
var _this;
|
|
5332
5314
|
|
|
5333
5315
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5336,7 +5318,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5336
5318
|
args[_key] = arguments[_key];
|
|
5337
5319
|
}
|
|
5338
5320
|
|
|
5339
|
-
_this =
|
|
5321
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5340
5322
|
|
|
5341
5323
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5342
5324
|
|
|
@@ -5465,9 +5447,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5465
5447
|
height: '100%',
|
|
5466
5448
|
display: display
|
|
5467
5449
|
};
|
|
5468
|
-
return
|
|
5450
|
+
return _react["default"].createElement("div", {
|
|
5469
5451
|
style: style
|
|
5470
|
-
},
|
|
5452
|
+
}, _react["default"].createElement("div", {
|
|
5471
5453
|
ref: this.ref
|
|
5472
5454
|
}));
|
|
5473
5455
|
}
|
|
@@ -5492,7 +5474,7 @@ exports["default"] = _default;
|
|
|
5492
5474
|
});
|
|
5493
5475
|
|
|
5494
5476
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5495
|
-
DailyMotion_1.DailyMotion;
|
|
5477
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5496
5478
|
|
|
5497
5479
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5498
5480
|
|
|
@@ -5501,7 +5483,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5501
5483
|
});
|
|
5502
5484
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5503
5485
|
|
|
5504
|
-
var _react = _interopRequireWildcard(React__default
|
|
5486
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5505
5487
|
|
|
5506
5488
|
|
|
5507
5489
|
|
|
@@ -5525,16 +5507,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5525
5507
|
|
|
5526
5508
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5527
5509
|
|
|
5528
|
-
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); }; }
|
|
5529
|
-
|
|
5530
5510
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5531
5511
|
|
|
5532
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5533
|
-
|
|
5534
|
-
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; } }
|
|
5535
|
-
|
|
5536
5512
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5537
5513
|
|
|
5514
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5515
|
+
|
|
5538
5516
|
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); }
|
|
5539
5517
|
|
|
5540
5518
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5545,12 +5523,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5545
5523
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5546
5524
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5547
5525
|
|
|
5548
|
-
var Mixcloud =
|
|
5526
|
+
var Mixcloud =
|
|
5527
|
+
/*#__PURE__*/
|
|
5528
|
+
function (_Component) {
|
|
5549
5529
|
_inherits(Mixcloud, _Component);
|
|
5550
5530
|
|
|
5551
|
-
var _super = _createSuper(Mixcloud);
|
|
5552
|
-
|
|
5553
5531
|
function Mixcloud() {
|
|
5532
|
+
var _getPrototypeOf2;
|
|
5533
|
+
|
|
5554
5534
|
var _this;
|
|
5555
5535
|
|
|
5556
5536
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5559,7 +5539,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5559
5539
|
args[_key] = arguments[_key];
|
|
5560
5540
|
}
|
|
5561
5541
|
|
|
5562
|
-
_this =
|
|
5542
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5563
5543
|
|
|
5564
5544
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5565
5545
|
|
|
@@ -5662,7 +5642,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5662
5642
|
})); // We have to give the iframe a key here to prevent a
|
|
5663
5643
|
// weird dialog appearing when loading a new track
|
|
5664
5644
|
|
|
5665
|
-
return
|
|
5645
|
+
return _react["default"].createElement("iframe", {
|
|
5666
5646
|
key: id,
|
|
5667
5647
|
ref: this.ref,
|
|
5668
5648
|
style: style,
|
|
@@ -5691,7 +5671,7 @@ exports["default"] = _default;
|
|
|
5691
5671
|
});
|
|
5692
5672
|
|
|
5693
5673
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5694
|
-
Mixcloud_1.Mixcloud;
|
|
5674
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5695
5675
|
|
|
5696
5676
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5697
5677
|
|
|
@@ -5700,7 +5680,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5700
5680
|
});
|
|
5701
5681
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5702
5682
|
|
|
5703
|
-
var _react = _interopRequireWildcard(React__default
|
|
5683
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5704
5684
|
|
|
5705
5685
|
|
|
5706
5686
|
|
|
@@ -5722,33 +5702,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5722
5702
|
|
|
5723
5703
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5724
5704
|
|
|
5725
|
-
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); }; }
|
|
5726
|
-
|
|
5727
5705
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5728
5706
|
|
|
5729
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5730
|
-
|
|
5731
|
-
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; } }
|
|
5732
|
-
|
|
5733
5707
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5734
5708
|
|
|
5709
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5710
|
+
|
|
5735
5711
|
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); }
|
|
5736
5712
|
|
|
5737
5713
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5738
5714
|
|
|
5739
5715
|
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; }
|
|
5740
5716
|
|
|
5741
|
-
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; } } }; }
|
|
5742
|
-
|
|
5743
|
-
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); }
|
|
5744
|
-
|
|
5745
|
-
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; }
|
|
5746
|
-
|
|
5747
5717
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5748
5718
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5749
5719
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5750
5720
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5751
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5721
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5752
5722
|
var HLS_GLOBAL = 'Hls';
|
|
5753
5723
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5754
5724
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5757,11 +5727,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5757
5727
|
|
|
5758
5728
|
function canPlay(url) {
|
|
5759
5729
|
if (url instanceof Array) {
|
|
5760
|
-
var
|
|
5761
|
-
|
|
5730
|
+
var _iteratorNormalCompletion = true;
|
|
5731
|
+
var _didIteratorError = false;
|
|
5732
|
+
var _iteratorError = undefined;
|
|
5762
5733
|
|
|
5763
5734
|
try {
|
|
5764
|
-
for (_iterator.
|
|
5735
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5765
5736
|
var item = _step.value;
|
|
5766
5737
|
|
|
5767
5738
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5773,9 +5744,18 @@ function canPlay(url) {
|
|
|
5773
5744
|
}
|
|
5774
5745
|
}
|
|
5775
5746
|
} catch (err) {
|
|
5776
|
-
|
|
5747
|
+
_didIteratorError = true;
|
|
5748
|
+
_iteratorError = err;
|
|
5777
5749
|
} finally {
|
|
5778
|
-
|
|
5750
|
+
try {
|
|
5751
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5752
|
+
_iterator["return"]();
|
|
5753
|
+
}
|
|
5754
|
+
} finally {
|
|
5755
|
+
if (_didIteratorError) {
|
|
5756
|
+
throw _iteratorError;
|
|
5757
|
+
}
|
|
5758
|
+
}
|
|
5779
5759
|
}
|
|
5780
5760
|
|
|
5781
5761
|
return false;
|
|
@@ -5799,12 +5779,14 @@ function canEnablePIP(url) {
|
|
|
5799
5779
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5800
5780
|
}
|
|
5801
5781
|
|
|
5802
|
-
var FilePlayer =
|
|
5782
|
+
var FilePlayer =
|
|
5783
|
+
/*#__PURE__*/
|
|
5784
|
+
function (_Component) {
|
|
5803
5785
|
_inherits(FilePlayer, _Component);
|
|
5804
5786
|
|
|
5805
|
-
var _super = _createSuper(FilePlayer);
|
|
5806
|
-
|
|
5807
5787
|
function FilePlayer() {
|
|
5788
|
+
var _getPrototypeOf2;
|
|
5789
|
+
|
|
5808
5790
|
var _this;
|
|
5809
5791
|
|
|
5810
5792
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5813,7 +5795,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5813
5795
|
_args[_key] = arguments[_key];
|
|
5814
5796
|
}
|
|
5815
5797
|
|
|
5816
|
-
_this =
|
|
5798
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5817
5799
|
|
|
5818
5800
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5819
5801
|
var _this$props;
|
|
@@ -5900,19 +5882,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5900
5882
|
|
|
5901
5883
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5902
5884
|
if (typeof source === 'string') {
|
|
5903
|
-
return
|
|
5885
|
+
return _react["default"].createElement("source", {
|
|
5904
5886
|
key: index,
|
|
5905
5887
|
src: source
|
|
5906
5888
|
});
|
|
5907
5889
|
}
|
|
5908
5890
|
|
|
5909
|
-
return
|
|
5891
|
+
return _react["default"].createElement("source", _extends({
|
|
5910
5892
|
key: index
|
|
5911
5893
|
}, source));
|
|
5912
5894
|
});
|
|
5913
5895
|
|
|
5914
5896
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5915
|
-
return
|
|
5897
|
+
return _react["default"].createElement("track", _extends({
|
|
5916
5898
|
key: index
|
|
5917
5899
|
}, track));
|
|
5918
5900
|
});
|
|
@@ -5950,10 +5932,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5950
5932
|
key: "componentWillUnmount",
|
|
5951
5933
|
value: function componentWillUnmount() {
|
|
5952
5934
|
this.removeListeners(this.player);
|
|
5953
|
-
|
|
5954
|
-
if (this.hls) {
|
|
5955
|
-
this.hls.destroy();
|
|
5956
|
-
}
|
|
5957
5935
|
}
|
|
5958
5936
|
}, {
|
|
5959
5937
|
key: "addListeners",
|
|
@@ -6084,6 +6062,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6084
6062
|
value: function stop() {
|
|
6085
6063
|
this.player.removeAttribute('src');
|
|
6086
6064
|
|
|
6065
|
+
if (this.hls) {
|
|
6066
|
+
this.hls.destroy();
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6087
6069
|
if (this.dash) {
|
|
6088
6070
|
this.dash.reset();
|
|
6089
6071
|
}
|
|
@@ -6195,7 +6177,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6195
6177
|
width: width === 'auto' ? width : '100%',
|
|
6196
6178
|
height: height === 'auto' ? height : '100%'
|
|
6197
6179
|
};
|
|
6198
|
-
return
|
|
6180
|
+
return _react["default"].createElement(Element, _extends({
|
|
6199
6181
|
ref: this.ref,
|
|
6200
6182
|
src: this.getSource(url),
|
|
6201
6183
|
style: style,
|
|
@@ -6225,7 +6207,7 @@ exports["default"] = _default;
|
|
|
6225
6207
|
});
|
|
6226
6208
|
|
|
6227
6209
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6228
|
-
FilePlayer_1.FilePlayer;
|
|
6210
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6229
6211
|
|
|
6230
6212
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6231
6213
|
|
|
@@ -6267,7 +6249,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6267
6249
|
});
|
|
6268
6250
|
exports["default"] = void 0;
|
|
6269
6251
|
|
|
6270
|
-
var _react = _interopRequireWildcard(React__default
|
|
6252
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6271
6253
|
|
|
6272
6254
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6273
6255
|
|
|
@@ -6285,16 +6267,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6285
6267
|
|
|
6286
6268
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6287
6269
|
|
|
6288
|
-
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); }; }
|
|
6289
|
-
|
|
6290
6270
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6291
6271
|
|
|
6292
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6293
|
-
|
|
6294
|
-
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; } }
|
|
6295
|
-
|
|
6296
6272
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6297
6273
|
|
|
6274
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6275
|
+
|
|
6298
6276
|
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); }
|
|
6299
6277
|
|
|
6300
6278
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6303,12 +6281,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6303
6281
|
|
|
6304
6282
|
var ICON_SIZE = '64px';
|
|
6305
6283
|
|
|
6306
|
-
var Preview =
|
|
6284
|
+
var Preview =
|
|
6285
|
+
/*#__PURE__*/
|
|
6286
|
+
function (_Component) {
|
|
6307
6287
|
_inherits(Preview, _Component);
|
|
6308
6288
|
|
|
6309
|
-
var _super = _createSuper(Preview);
|
|
6310
|
-
|
|
6311
6289
|
function Preview() {
|
|
6290
|
+
var _getPrototypeOf2;
|
|
6291
|
+
|
|
6312
6292
|
var _this;
|
|
6313
6293
|
|
|
6314
6294
|
_classCallCheck(this, Preview);
|
|
@@ -6317,7 +6297,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6317
6297
|
args[_key] = arguments[_key];
|
|
6318
6298
|
}
|
|
6319
6299
|
|
|
6320
|
-
_this =
|
|
6300
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6321
6301
|
|
|
6322
6302
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6323
6303
|
|
|
@@ -6415,15 +6395,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6415
6395
|
}
|
|
6416
6396
|
};
|
|
6417
6397
|
|
|
6418
|
-
var defaultPlayIcon =
|
|
6398
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6419
6399
|
style: styles.shadow,
|
|
6420
6400
|
className: "react-player__shadow"
|
|
6421
|
-
},
|
|
6401
|
+
}, _react["default"].createElement("div", {
|
|
6422
6402
|
style: styles.playIcon,
|
|
6423
6403
|
className: "react-player__play-icon"
|
|
6424
6404
|
}));
|
|
6425
6405
|
|
|
6426
|
-
return
|
|
6406
|
+
return _react["default"].createElement("div", {
|
|
6427
6407
|
style: styles.preview,
|
|
6428
6408
|
className: "react-player__preview",
|
|
6429
6409
|
onClick: onClick
|
|
@@ -6446,7 +6426,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6446
6426
|
});
|
|
6447
6427
|
exports["default"] = renderPreloadPlayers;
|
|
6448
6428
|
|
|
6449
|
-
var _react = _interopRequireDefault(React__default
|
|
6429
|
+
var _react = _interopRequireDefault(React__default);
|
|
6450
6430
|
|
|
6451
6431
|
var _Player = _interopRequireDefault(Player_1);
|
|
6452
6432
|
|
|
@@ -6460,12 +6440,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6460
6440
|
|
|
6461
6441
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6462
6442
|
|
|
6463
|
-
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; } } }; }
|
|
6464
|
-
|
|
6465
|
-
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); }
|
|
6466
|
-
|
|
6467
|
-
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; }
|
|
6468
|
-
|
|
6469
6443
|
var PRELOAD_PLAYERS = [{
|
|
6470
6444
|
Player: YouTube_1.YouTube,
|
|
6471
6445
|
configKey: 'youtube',
|
|
@@ -6486,16 +6460,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6486
6460
|
|
|
6487
6461
|
function renderPreloadPlayers(url, controls, config) {
|
|
6488
6462
|
var players = [];
|
|
6489
|
-
|
|
6490
|
-
var
|
|
6491
|
-
|
|
6463
|
+
var _iteratorNormalCompletion = true;
|
|
6464
|
+
var _didIteratorError = false;
|
|
6465
|
+
var _iteratorError = undefined;
|
|
6492
6466
|
|
|
6493
6467
|
try {
|
|
6494
|
-
for (_iterator.
|
|
6468
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6495
6469
|
var player = _step.value;
|
|
6496
6470
|
|
|
6497
6471
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6498
|
-
players.push(
|
|
6472
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6499
6473
|
key: player.Player.displayName,
|
|
6500
6474
|
activePlayer: player.Player,
|
|
6501
6475
|
url: player.url,
|
|
@@ -6507,9 +6481,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6507
6481
|
}
|
|
6508
6482
|
}
|
|
6509
6483
|
} catch (err) {
|
|
6510
|
-
|
|
6484
|
+
_didIteratorError = true;
|
|
6485
|
+
_iteratorError = err;
|
|
6511
6486
|
} finally {
|
|
6512
|
-
|
|
6487
|
+
try {
|
|
6488
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6489
|
+
_iterator["return"]();
|
|
6490
|
+
}
|
|
6491
|
+
} finally {
|
|
6492
|
+
if (_didIteratorError) {
|
|
6493
|
+
throw _iteratorError;
|
|
6494
|
+
}
|
|
6495
|
+
}
|
|
6513
6496
|
}
|
|
6514
6497
|
|
|
6515
6498
|
return players;
|
|
@@ -6585,7 +6568,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6585
6568
|
});
|
|
6586
6569
|
exports["default"] = void 0;
|
|
6587
6570
|
|
|
6588
|
-
var _react = _interopRequireWildcard(React__default
|
|
6571
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6589
6572
|
|
|
6590
6573
|
|
|
6591
6574
|
|
|
@@ -6633,17 +6616,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6633
6616
|
|
|
6634
6617
|
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); }
|
|
6635
6618
|
|
|
6636
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6637
|
-
|
|
6638
|
-
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."); }
|
|
6619
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6639
6620
|
|
|
6640
|
-
function
|
|
6621
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6641
6622
|
|
|
6642
|
-
function _iterableToArray(iter) { if (
|
|
6623
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6643
6624
|
|
|
6644
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6645
|
-
|
|
6646
|
-
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; }
|
|
6625
|
+
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; } }
|
|
6647
6626
|
|
|
6648
6627
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6649
6628
|
|
|
@@ -6651,16 +6630,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6651
6630
|
|
|
6652
6631
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6653
6632
|
|
|
6654
|
-
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); }; }
|
|
6655
|
-
|
|
6656
6633
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6657
6634
|
|
|
6658
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6659
|
-
|
|
6660
|
-
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; } }
|
|
6661
|
-
|
|
6662
6635
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6663
6636
|
|
|
6637
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6638
|
+
|
|
6664
6639
|
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); }
|
|
6665
6640
|
|
|
6666
6641
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6670,12 +6645,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6670
6645
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6671
6646
|
var customPlayers = [];
|
|
6672
6647
|
|
|
6673
|
-
var ReactPlayer =
|
|
6648
|
+
var ReactPlayer =
|
|
6649
|
+
/*#__PURE__*/
|
|
6650
|
+
function (_Component) {
|
|
6674
6651
|
_inherits(ReactPlayer, _Component);
|
|
6675
6652
|
|
|
6676
|
-
var _super = _createSuper(ReactPlayer);
|
|
6677
|
-
|
|
6678
6653
|
function ReactPlayer() {
|
|
6654
|
+
var _getPrototypeOf2;
|
|
6655
|
+
|
|
6679
6656
|
var _this;
|
|
6680
6657
|
|
|
6681
6658
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6684,7 +6661,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6684
6661
|
args[_key] = arguments[_key];
|
|
6685
6662
|
}
|
|
6686
6663
|
|
|
6687
|
-
_this =
|
|
6664
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6688
6665
|
|
|
6689
6666
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6690
6667
|
|
|
@@ -6795,7 +6772,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6795
6772
|
key: "renderActivePlayer",
|
|
6796
6773
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6797
6774
|
if (!url) return null;
|
|
6798
|
-
return
|
|
6775
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6799
6776
|
key: activePlayer.displayName,
|
|
6800
6777
|
ref: this.activePlayerRef,
|
|
6801
6778
|
config: this.config,
|
|
@@ -6832,14 +6809,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6832
6809
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6833
6810
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6834
6811
|
|
|
6835
|
-
var preview =
|
|
6812
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6836
6813
|
url: url,
|
|
6837
6814
|
light: light,
|
|
6838
6815
|
playIcon: playIcon,
|
|
6839
6816
|
onClick: this.handleClickPreview
|
|
6840
6817
|
});
|
|
6841
6818
|
|
|
6842
|
-
return
|
|
6819
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6843
6820
|
ref: this.wrapperRef,
|
|
6844
6821
|
style: _objectSpread({}, style, {
|
|
6845
6822
|
width: width,
|
|
@@ -6899,20 +6876,20 @@ var Audio = function Audio(_ref) {
|
|
|
6899
6876
|
var node = _ref.node;
|
|
6900
6877
|
|
|
6901
6878
|
if (node.uploadAudio) {
|
|
6902
|
-
return React__default
|
|
6879
|
+
return React__default.createElement(
|
|
6903
6880
|
'div',
|
|
6904
6881
|
{ className: 'audio d-block text-center mb-3' },
|
|
6905
|
-
React__default
|
|
6882
|
+
React__default.createElement(
|
|
6906
6883
|
'audio',
|
|
6907
6884
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6908
|
-
React__default
|
|
6909
|
-
React__default
|
|
6885
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6886
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6910
6887
|
'Your browser does not support the audio element.'
|
|
6911
6888
|
),
|
|
6912
|
-
node.caption && React__default
|
|
6889
|
+
node.caption && React__default.createElement(
|
|
6913
6890
|
'p',
|
|
6914
6891
|
{ style: { fontSize: '.9rem' } },
|
|
6915
|
-
React__default
|
|
6892
|
+
React__default.createElement(
|
|
6916
6893
|
'em',
|
|
6917
6894
|
null,
|
|
6918
6895
|
node.caption
|
|
@@ -6922,15 +6899,15 @@ var Audio = function Audio(_ref) {
|
|
|
6922
6899
|
} else if (node.audioFilePth) {
|
|
6923
6900
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6924
6901
|
if (hostname === 'embeds.audioboom.com') {
|
|
6925
|
-
return React__default
|
|
6902
|
+
return React__default.createElement(
|
|
6926
6903
|
'div',
|
|
6927
6904
|
null,
|
|
6928
|
-
React__default
|
|
6905
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6929
6906
|
' ',
|
|
6930
|
-
node.caption && React__default
|
|
6907
|
+
node.caption && React__default.createElement(
|
|
6931
6908
|
'p',
|
|
6932
6909
|
{ style: { fontSize: '.9rem' } },
|
|
6933
|
-
React__default
|
|
6910
|
+
React__default.createElement(
|
|
6934
6911
|
'em',
|
|
6935
6912
|
null,
|
|
6936
6913
|
node.caption
|
|
@@ -6938,14 +6915,14 @@ var Audio = function Audio(_ref) {
|
|
|
6938
6915
|
)
|
|
6939
6916
|
);
|
|
6940
6917
|
}
|
|
6941
|
-
return React__default
|
|
6918
|
+
return React__default.createElement(
|
|
6942
6919
|
'div',
|
|
6943
6920
|
{ className: 'audio' },
|
|
6944
|
-
React__default
|
|
6945
|
-
node.caption && React__default
|
|
6921
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6922
|
+
node.caption && React__default.createElement(
|
|
6946
6923
|
'p',
|
|
6947
6924
|
{ style: { fontSize: '.9rem' } },
|
|
6948
|
-
React__default
|
|
6925
|
+
React__default.createElement(
|
|
6949
6926
|
'em',
|
|
6950
6927
|
null,
|
|
6951
6928
|
node.caption
|
|
@@ -7046,10 +7023,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7046
7023
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
7047
7024
|
};
|
|
7048
7025
|
|
|
7049
|
-
return React__default
|
|
7026
|
+
return React__default.createElement(
|
|
7050
7027
|
'div',
|
|
7051
7028
|
null,
|
|
7052
|
-
vidLoaded && React__default
|
|
7029
|
+
vidLoaded && React__default.createElement(
|
|
7053
7030
|
'video',
|
|
7054
7031
|
{
|
|
7055
7032
|
poster: thumbnail || '',
|
|
@@ -7067,7 +7044,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7067
7044
|
onPlay: function onPlay(e) {
|
|
7068
7045
|
return handleOnPlay(e);
|
|
7069
7046
|
} },
|
|
7070
|
-
React__default
|
|
7047
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7071
7048
|
'Your browser does not support the video tag.'
|
|
7072
7049
|
)
|
|
7073
7050
|
);
|
|
@@ -7079,34 +7056,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7079
7056
|
var profileImage = arguments[6];
|
|
7080
7057
|
|
|
7081
7058
|
if (authorName && authorURL) {
|
|
7082
|
-
return React__default
|
|
7059
|
+
return React__default.createElement(
|
|
7083
7060
|
'span',
|
|
7084
7061
|
null,
|
|
7085
|
-
React__default
|
|
7062
|
+
React__default.createElement(
|
|
7086
7063
|
'a',
|
|
7087
7064
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7088
7065
|
authorName
|
|
7089
7066
|
),
|
|
7090
|
-
React__default
|
|
7067
|
+
React__default.createElement(
|
|
7091
7068
|
reactBootstrap.Card,
|
|
7092
7069
|
{ className: 'author-details-card-' + index },
|
|
7093
|
-
React__default
|
|
7070
|
+
React__default.createElement(
|
|
7094
7071
|
reactBootstrap.Row,
|
|
7095
7072
|
null,
|
|
7096
|
-
profileImage && React__default
|
|
7073
|
+
profileImage && React__default.createElement(
|
|
7097
7074
|
reactBootstrap.Col,
|
|
7098
7075
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7099
|
-
React__default
|
|
7076
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7100
7077
|
),
|
|
7101
|
-
React__default
|
|
7078
|
+
React__default.createElement(
|
|
7102
7079
|
reactBootstrap.Col,
|
|
7103
7080
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7104
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7105
7082
|
'div',
|
|
7106
7083
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7107
7084
|
authorName
|
|
7108
7085
|
),
|
|
7109
|
-
React__default
|
|
7086
|
+
React__default.createElement(
|
|
7110
7087
|
'p',
|
|
7111
7088
|
null,
|
|
7112
7089
|
biography
|
|
@@ -7114,7 +7091,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7114
7091
|
)
|
|
7115
7092
|
)
|
|
7116
7093
|
),
|
|
7117
|
-
React__default
|
|
7094
|
+
React__default.createElement(
|
|
7118
7095
|
'style',
|
|
7119
7096
|
{ jsx: 'true' },
|
|
7120
7097
|
'\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 '
|
|
@@ -7122,7 +7099,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7122
7099
|
length !== index + 1 && ' , '
|
|
7123
7100
|
);
|
|
7124
7101
|
} else if (authorName) {
|
|
7125
|
-
return React__default
|
|
7102
|
+
return React__default.createElement(
|
|
7126
7103
|
'span',
|
|
7127
7104
|
{ key: index },
|
|
7128
7105
|
authorName,
|
|
@@ -7154,7 +7131,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7154
7131
|
}
|
|
7155
7132
|
});
|
|
7156
7133
|
|
|
7157
|
-
var builder = index.imageUrlBuilder(client);
|
|
7134
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7158
7135
|
function urlFor(source) {
|
|
7159
7136
|
return builder.image(source);
|
|
7160
7137
|
}
|
|
@@ -7229,7 +7206,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7229
7206
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7230
7207
|
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
|
|
7231
7208
|
} else {
|
|
7232
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7209
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7233
7210
|
}
|
|
7234
7211
|
}
|
|
7235
7212
|
});
|
|
@@ -7289,7 +7266,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7289
7266
|
//Small pause before starting next video
|
|
7290
7267
|
setTimeout(function () {
|
|
7291
7268
|
//Youtube API to start video playing automatically
|
|
7292
|
-
var id = index$
|
|
7269
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7293
7270
|
event.target.loadVideoById(id);
|
|
7294
7271
|
}, 1500);
|
|
7295
7272
|
};
|
|
@@ -7399,44 +7376,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7399
7376
|
}
|
|
7400
7377
|
};
|
|
7401
7378
|
|
|
7402
|
-
return React__default
|
|
7379
|
+
return React__default.createElement(
|
|
7403
7380
|
'div',
|
|
7404
7381
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7405
|
-
React__default
|
|
7382
|
+
React__default.createElement(
|
|
7406
7383
|
'div',
|
|
7407
7384
|
{ className: 'mt-2 mb-5' },
|
|
7408
|
-
series && React__default
|
|
7385
|
+
series && React__default.createElement(
|
|
7409
7386
|
'div',
|
|
7410
7387
|
{ style: { fontSize: '0.9rem' } },
|
|
7411
7388
|
article.title,
|
|
7412
7389
|
' - Episode ',
|
|
7413
7390
|
series
|
|
7414
7391
|
),
|
|
7415
|
-
Videos[series - 1] && React__default
|
|
7392
|
+
Videos[series - 1] && React__default.createElement(
|
|
7416
7393
|
'h1',
|
|
7417
7394
|
{ className: 'mb-3' },
|
|
7418
7395
|
Videos[series - 1].title
|
|
7419
7396
|
),
|
|
7420
|
-
React__default
|
|
7397
|
+
React__default.createElement(
|
|
7421
7398
|
'div',
|
|
7422
7399
|
null,
|
|
7423
7400
|
moment.moment(article.published).format('LL')
|
|
7424
7401
|
),
|
|
7425
|
-
React__default
|
|
7402
|
+
React__default.createElement(
|
|
7426
7403
|
'div',
|
|
7427
7404
|
{ className: 'mb-3' },
|
|
7428
7405
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7429
|
-
return React__default
|
|
7406
|
+
return React__default.createElement(
|
|
7430
7407
|
'span',
|
|
7431
7408
|
{ key: index },
|
|
7432
7409
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7433
7410
|
);
|
|
7434
7411
|
})
|
|
7435
7412
|
),
|
|
7436
|
-
React__default
|
|
7413
|
+
React__default.createElement(
|
|
7437
7414
|
'p',
|
|
7438
7415
|
null,
|
|
7439
|
-
React__default
|
|
7416
|
+
React__default.createElement(SocialShare, {
|
|
7440
7417
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7441
7418
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7442
7419
|
shareVia: meta.shareVia,
|
|
@@ -7451,22 +7428,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7451
7428
|
hideFacebook: meta.hideFBShare
|
|
7452
7429
|
})
|
|
7453
7430
|
),
|
|
7454
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7431
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7455
7432
|
'p',
|
|
7456
7433
|
{ className: 'mb-3' },
|
|
7457
|
-
React__default
|
|
7434
|
+
React__default.createElement(
|
|
7458
7435
|
'em',
|
|
7459
7436
|
null,
|
|
7460
7437
|
Videos[series - 1].intro
|
|
7461
7438
|
)
|
|
7462
7439
|
)
|
|
7463
7440
|
),
|
|
7464
|
-
React__default
|
|
7441
|
+
React__default.createElement(
|
|
7465
7442
|
'div',
|
|
7466
7443
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7467
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7444
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7468
7445
|
className: 'fluid-iframe',
|
|
7469
|
-
videoId: index$
|
|
7446
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7470
7447
|
opts: opts,
|
|
7471
7448
|
onReady: handleOnReady,
|
|
7472
7449
|
onPlay: handleOnPlay,
|
|
@@ -7475,10 +7452,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7475
7452
|
return handleOnEnd(e);
|
|
7476
7453
|
}
|
|
7477
7454
|
}),
|
|
7478
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7479
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7480
|
-
React__default
|
|
7481
|
-
series && React__default
|
|
7455
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7456
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7457
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7458
|
+
series && React__default.createElement(
|
|
7482
7459
|
'div',
|
|
7483
7460
|
{
|
|
7484
7461
|
className: 'vid-series',
|
|
@@ -7488,10 +7465,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7488
7465
|
maxHeight: '100%',
|
|
7489
7466
|
paddingBottom: '0'
|
|
7490
7467
|
} },
|
|
7491
|
-
React__default
|
|
7468
|
+
React__default.createElement(
|
|
7492
7469
|
'p',
|
|
7493
7470
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7494
|
-
React__default
|
|
7471
|
+
React__default.createElement(
|
|
7495
7472
|
'b',
|
|
7496
7473
|
{ style: { fontSize: '1.25em' } },
|
|
7497
7474
|
'Now Playing:'
|
|
@@ -7499,16 +7476,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7499
7476
|
' ',
|
|
7500
7477
|
seriesData[series ? series - 1 : 0].title
|
|
7501
7478
|
),
|
|
7502
|
-
vidUrl && React__default
|
|
7479
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7503
7480
|
)
|
|
7504
7481
|
),
|
|
7505
|
-
React__default
|
|
7506
|
-
React__default
|
|
7482
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7483
|
+
React__default.createElement(
|
|
7507
7484
|
'div',
|
|
7508
7485
|
{ className: 'vid-text' },
|
|
7509
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7486
|
+
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()))
|
|
7510
7487
|
),
|
|
7511
|
-
React__default
|
|
7488
|
+
React__default.createElement(
|
|
7512
7489
|
'style',
|
|
7513
7490
|
{ jsx: 'true' },
|
|
7514
7491
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7517,13 +7494,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7517
7494
|
};
|
|
7518
7495
|
|
|
7519
7496
|
var Poll = function Poll(_ref) {
|
|
7520
|
-
var node = _ref.node
|
|
7521
|
-
_ref.client
|
|
7522
|
-
_ref.pageview
|
|
7523
|
-
_ref.videoAccountIDs
|
|
7524
|
-
|
|
7525
|
-
_ref.showVotes
|
|
7526
|
-
|
|
7497
|
+
var node = _ref.node,
|
|
7498
|
+
client = _ref.client,
|
|
7499
|
+
pageview = _ref.pageview,
|
|
7500
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7501
|
+
onVote = _ref.onVote,
|
|
7502
|
+
_ref$showVotes = _ref.showVotes,
|
|
7503
|
+
getSerializers = _ref.getSerializers;
|
|
7527
7504
|
|
|
7528
7505
|
var _useState = React.useState(null),
|
|
7529
7506
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7561,67 +7538,67 @@ var Poll = function Poll(_ref) {
|
|
|
7561
7538
|
return acc;
|
|
7562
7539
|
}
|
|
7563
7540
|
}, 0);
|
|
7564
|
-
return React__default
|
|
7565
|
-
React__default
|
|
7541
|
+
return React__default.createElement(
|
|
7542
|
+
React__default.Fragment,
|
|
7566
7543
|
null,
|
|
7567
|
-
question && React__default
|
|
7544
|
+
question && React__default.createElement(
|
|
7568
7545
|
'p',
|
|
7569
7546
|
{ className: 'font-weight-bold' },
|
|
7570
7547
|
question
|
|
7571
7548
|
),
|
|
7572
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7549
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7573
7550
|
'form',
|
|
7574
7551
|
{ onSubmit: function onSubmit(e) {
|
|
7575
7552
|
return onSubmitPoll(e);
|
|
7576
7553
|
} },
|
|
7577
7554
|
choices && choices.map(function (choice) {
|
|
7578
|
-
return React__default
|
|
7555
|
+
return React__default.createElement(
|
|
7579
7556
|
'div',
|
|
7580
7557
|
{ key: choice._key },
|
|
7581
|
-
React__default
|
|
7558
|
+
React__default.createElement(
|
|
7582
7559
|
'label',
|
|
7583
7560
|
{ className: 'pl-2' },
|
|
7584
|
-
React__default
|
|
7561
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7585
7562
|
return setSelectedChoice(e.target.value);
|
|
7586
7563
|
} }),
|
|
7587
7564
|
' ' + choice.choiceText
|
|
7588
7565
|
)
|
|
7589
7566
|
);
|
|
7590
7567
|
}),
|
|
7591
|
-
React__default
|
|
7568
|
+
React__default.createElement(
|
|
7592
7569
|
reactBootstrap.Button,
|
|
7593
7570
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7594
7571
|
'Vote'
|
|
7595
7572
|
)
|
|
7596
7573
|
),
|
|
7597
|
-
React__default
|
|
7574
|
+
React__default.createElement(
|
|
7598
7575
|
'div',
|
|
7599
7576
|
{ className: 'progress-container' },
|
|
7600
7577
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7601
7578
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7602
|
-
return React__default
|
|
7579
|
+
return React__default.createElement(
|
|
7603
7580
|
'div',
|
|
7604
7581
|
{ key: choice._key, className: 'mb-3' },
|
|
7605
|
-
React__default
|
|
7582
|
+
React__default.createElement(
|
|
7606
7583
|
'div',
|
|
7607
7584
|
{ className: 'correct-answer' },
|
|
7608
|
-
React__default
|
|
7585
|
+
React__default.createElement(
|
|
7609
7586
|
'div',
|
|
7610
7587
|
null,
|
|
7611
7588
|
choice.choiceText
|
|
7612
7589
|
),
|
|
7613
|
-
choice.choiceAnswer === true && React__default
|
|
7590
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7614
7591
|
'div',
|
|
7615
7592
|
null,
|
|
7616
|
-
React__default
|
|
7593
|
+
React__default.createElement(
|
|
7617
7594
|
'span',
|
|
7618
7595
|
{ style: { color: 'limegreen' } },
|
|
7619
7596
|
'Correct!'
|
|
7620
7597
|
)
|
|
7621
7598
|
)
|
|
7622
7599
|
),
|
|
7623
|
-
React__default
|
|
7624
|
-
React__default
|
|
7600
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7601
|
+
React__default.createElement(
|
|
7625
7602
|
'span',
|
|
7626
7603
|
{ className: 'float-right' },
|
|
7627
7604
|
percentage,
|
|
@@ -7632,14 +7609,14 @@ var Poll = function Poll(_ref) {
|
|
|
7632
7609
|
);
|
|
7633
7610
|
})
|
|
7634
7611
|
),
|
|
7635
|
-
showAnswer && React__default
|
|
7612
|
+
showAnswer && React__default.createElement(
|
|
7636
7613
|
'h4',
|
|
7637
7614
|
{ className: 'text-center small p-3' },
|
|
7638
7615
|
'Total Votes: ',
|
|
7639
7616
|
choicesTotalCount
|
|
7640
7617
|
),
|
|
7641
|
-
showAnswer && response && React__default
|
|
7642
|
-
React__default
|
|
7618
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7619
|
+
React__default.createElement(
|
|
7643
7620
|
'style',
|
|
7644
7621
|
{ jsx: 'true' },
|
|
7645
7622
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7666,13 +7643,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7666
7643
|
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7667
7644
|
|
|
7668
7645
|
var Poll$1 = function Poll(_ref) {
|
|
7669
|
-
var node = _ref.node
|
|
7670
|
-
_ref.client
|
|
7671
|
-
_ref.pageview
|
|
7672
|
-
_ref.videoAccountIDs
|
|
7673
|
-
|
|
7674
|
-
_ref.showVotes
|
|
7675
|
-
|
|
7646
|
+
var node = _ref.node,
|
|
7647
|
+
client = _ref.client,
|
|
7648
|
+
pageview = _ref.pageview,
|
|
7649
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7650
|
+
onVote = _ref.onVote,
|
|
7651
|
+
_ref$showVotes = _ref.showVotes,
|
|
7652
|
+
getSerializers = _ref.getSerializers;
|
|
7676
7653
|
|
|
7677
7654
|
var _useState = React.useState(null),
|
|
7678
7655
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7738,67 +7715,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7738
7715
|
return acc;
|
|
7739
7716
|
}
|
|
7740
7717
|
}, 0);
|
|
7741
|
-
return React__default
|
|
7742
|
-
React__default
|
|
7718
|
+
return React__default.createElement(
|
|
7719
|
+
React__default.Fragment,
|
|
7743
7720
|
null,
|
|
7744
|
-
question && React__default
|
|
7721
|
+
question && React__default.createElement(
|
|
7745
7722
|
'p',
|
|
7746
7723
|
{ className: 'font-weight-bold' },
|
|
7747
7724
|
question
|
|
7748
7725
|
),
|
|
7749
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7726
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7750
7727
|
'form',
|
|
7751
7728
|
{ onSubmit: function onSubmit(e) {
|
|
7752
7729
|
return onSubmitPoll(e);
|
|
7753
7730
|
} },
|
|
7754
7731
|
choices && choices.map(function (choice) {
|
|
7755
|
-
return React__default
|
|
7732
|
+
return React__default.createElement(
|
|
7756
7733
|
'div',
|
|
7757
7734
|
{ key: choice._key },
|
|
7758
|
-
React__default
|
|
7735
|
+
React__default.createElement(
|
|
7759
7736
|
'label',
|
|
7760
7737
|
{ className: 'pl-2' },
|
|
7761
|
-
React__default
|
|
7738
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7762
7739
|
return setSelectedChoice(e.target.value);
|
|
7763
7740
|
} }),
|
|
7764
7741
|
' ' + choice.choiceText
|
|
7765
7742
|
)
|
|
7766
7743
|
);
|
|
7767
7744
|
}),
|
|
7768
|
-
React__default
|
|
7745
|
+
React__default.createElement(
|
|
7769
7746
|
reactBootstrap.Button,
|
|
7770
7747
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7771
7748
|
'Vote'
|
|
7772
7749
|
)
|
|
7773
7750
|
),
|
|
7774
|
-
React__default
|
|
7751
|
+
React__default.createElement(
|
|
7775
7752
|
'div',
|
|
7776
7753
|
{ className: 'progress-container' },
|
|
7777
7754
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7778
7755
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7779
|
-
return React__default
|
|
7756
|
+
return React__default.createElement(
|
|
7780
7757
|
'div',
|
|
7781
7758
|
{ key: choice._key, className: 'mb-3' },
|
|
7782
|
-
React__default
|
|
7759
|
+
React__default.createElement(
|
|
7783
7760
|
'div',
|
|
7784
7761
|
{ className: 'correct-answer' },
|
|
7785
|
-
React__default
|
|
7762
|
+
React__default.createElement(
|
|
7786
7763
|
'div',
|
|
7787
7764
|
null,
|
|
7788
7765
|
choice.choiceText
|
|
7789
7766
|
),
|
|
7790
|
-
choice.choiceAnswer === true && React__default
|
|
7767
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7791
7768
|
'div',
|
|
7792
7769
|
null,
|
|
7793
|
-
React__default
|
|
7770
|
+
React__default.createElement(
|
|
7794
7771
|
'span',
|
|
7795
7772
|
{ style: { color: 'limegreen' } },
|
|
7796
7773
|
'Correct!'
|
|
7797
7774
|
)
|
|
7798
7775
|
)
|
|
7799
7776
|
),
|
|
7800
|
-
React__default
|
|
7801
|
-
React__default
|
|
7777
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7778
|
+
React__default.createElement(
|
|
7802
7779
|
'span',
|
|
7803
7780
|
{ className: 'float-right' },
|
|
7804
7781
|
percentage,
|
|
@@ -7809,14 +7786,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7809
7786
|
);
|
|
7810
7787
|
})
|
|
7811
7788
|
),
|
|
7812
|
-
showAnswer && React__default
|
|
7789
|
+
showAnswer && React__default.createElement(
|
|
7813
7790
|
'h4',
|
|
7814
7791
|
{ className: 'text-center small p-3' },
|
|
7815
7792
|
'Total Votes: ',
|
|
7816
7793
|
choicesTotalCount
|
|
7817
7794
|
),
|
|
7818
|
-
showAnswer && response && React__default
|
|
7819
|
-
React__default
|
|
7795
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7796
|
+
React__default.createElement(
|
|
7820
7797
|
'style',
|
|
7821
7798
|
{ jsx: 'true' },
|
|
7822
7799
|
'\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 '
|
|
@@ -7824,7 +7801,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7824
7801
|
);
|
|
7825
7802
|
};
|
|
7826
7803
|
|
|
7827
|
-
var numberOfPaginations = main.
|
|
7804
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7828
7805
|
|
|
7829
7806
|
var Quiz = function Quiz(_ref) {
|
|
7830
7807
|
var quizzes = _ref.quizzes,
|
|
@@ -7888,7 +7865,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7888
7865
|
setEndIndex(numberOfPaginations - 1);
|
|
7889
7866
|
newPath = window.location.pathname;
|
|
7890
7867
|
window.history.pushState(null, null, newPath);
|
|
7891
|
-
index
|
|
7868
|
+
index.lib_3.refresh();
|
|
7892
7869
|
if (pageview) pageview(newPath);
|
|
7893
7870
|
break;
|
|
7894
7871
|
case 'last':
|
|
@@ -7897,7 +7874,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7897
7874
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7898
7875
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7899
7876
|
window.history.pushState(null, null, newPath);
|
|
7900
|
-
index
|
|
7877
|
+
index.lib_3.refresh();
|
|
7901
7878
|
if (pageview) pageview(newPath);
|
|
7902
7879
|
break;
|
|
7903
7880
|
case 'next':
|
|
@@ -7908,7 +7885,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7908
7885
|
}
|
|
7909
7886
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7910
7887
|
window.history.pushState(null, null, newPath);
|
|
7911
|
-
index
|
|
7888
|
+
index.lib_3.refresh();
|
|
7912
7889
|
if (pageview) pageview(newPath);
|
|
7913
7890
|
break;
|
|
7914
7891
|
case 'prev':
|
|
@@ -7919,14 +7896,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7919
7896
|
}
|
|
7920
7897
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7921
7898
|
window.history.pushState(null, null, newPath);
|
|
7922
|
-
index
|
|
7899
|
+
index.lib_3.refresh();
|
|
7923
7900
|
if (pageview) pageview(newPath);
|
|
7924
7901
|
break;
|
|
7925
7902
|
default:
|
|
7926
7903
|
setCurrentPage(control);
|
|
7927
7904
|
newPath = window.location.pathname + '?page=' + control;
|
|
7928
7905
|
window.history.pushState(null, null, newPath);
|
|
7929
|
-
index
|
|
7906
|
+
index.lib_3.refresh();
|
|
7930
7907
|
if (pageview) pageview(newPath);
|
|
7931
7908
|
}
|
|
7932
7909
|
};
|
|
@@ -7942,34 +7919,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7942
7919
|
};
|
|
7943
7920
|
|
|
7944
7921
|
var renderPagination = function renderPagination() {
|
|
7945
|
-
return React__default
|
|
7946
|
-
|
|
7947
|
-
{ className: 'p-0 m-0', size: main.
|
|
7948
|
-
React__default
|
|
7922
|
+
return React__default.createElement(
|
|
7923
|
+
Pagination,
|
|
7924
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7925
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7949
7926
|
return changePage('first');
|
|
7950
7927
|
}, disabled: currentPage === 1 }),
|
|
7951
|
-
React__default
|
|
7928
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7952
7929
|
return changePage('prev');
|
|
7953
7930
|
}, disabled: currentPage === 1 }),
|
|
7954
|
-
React__default
|
|
7931
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7955
7932
|
return renderNewPages('prev');
|
|
7956
7933
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7957
7934
|
pages.map(function (page) {
|
|
7958
|
-
return React__default
|
|
7959
|
-
|
|
7935
|
+
return React__default.createElement(
|
|
7936
|
+
Pagination.Item,
|
|
7960
7937
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7961
7938
|
return changePage(page);
|
|
7962
7939
|
} },
|
|
7963
7940
|
page
|
|
7964
7941
|
);
|
|
7965
7942
|
}),
|
|
7966
|
-
React__default
|
|
7943
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7967
7944
|
return renderNewPages('next');
|
|
7968
7945
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7969
|
-
React__default
|
|
7946
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7970
7947
|
return changePage('next');
|
|
7971
7948
|
}, disabled: currentPage === pageCount }),
|
|
7972
|
-
React__default
|
|
7949
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7973
7950
|
return changePage('last');
|
|
7974
7951
|
}, disabled: currentPage === pageCount })
|
|
7975
7952
|
);
|
|
@@ -8052,51 +8029,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8052
8029
|
}
|
|
8053
8030
|
};
|
|
8054
8031
|
|
|
8055
|
-
return React__default
|
|
8056
|
-
React__default
|
|
8032
|
+
return React__default.createElement(
|
|
8033
|
+
React__default.Fragment,
|
|
8057
8034
|
null,
|
|
8058
|
-
quizzes[currentPage - 1] && React__default
|
|
8059
|
-
React__default
|
|
8035
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8036
|
+
React__default.Fragment,
|
|
8060
8037
|
null,
|
|
8061
|
-
React__default
|
|
8062
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8038
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8039
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8063
8040
|
'form',
|
|
8064
8041
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8065
8042
|
return e.preventDefault();
|
|
8066
8043
|
} },
|
|
8067
8044
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8068
|
-
return React__default
|
|
8045
|
+
return React__default.createElement(
|
|
8069
8046
|
'div',
|
|
8070
8047
|
{ key: answer._key },
|
|
8071
|
-
React__default
|
|
8048
|
+
React__default.createElement(
|
|
8072
8049
|
'label',
|
|
8073
8050
|
{ className: 'pl-2' },
|
|
8074
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8051
|
+
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 }),
|
|
8075
8052
|
' ' + answer.answerText
|
|
8076
8053
|
)
|
|
8077
8054
|
);
|
|
8078
8055
|
})
|
|
8079
8056
|
)
|
|
8080
8057
|
),
|
|
8081
|
-
!showAnswer && React__default
|
|
8082
|
-
|
|
8058
|
+
!showAnswer && React__default.createElement(
|
|
8059
|
+
Button,
|
|
8083
8060
|
{ onClick: function onClick() {
|
|
8084
8061
|
return checkAnswers();
|
|
8085
8062
|
}, variant: 'info', block: true },
|
|
8086
8063
|
'Please click here for answer'
|
|
8087
8064
|
),
|
|
8088
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8089
|
-
React__default
|
|
8065
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8066
|
+
React__default.Fragment,
|
|
8090
8067
|
null,
|
|
8091
|
-
React__default
|
|
8068
|
+
React__default.createElement(
|
|
8092
8069
|
'h4',
|
|
8093
8070
|
null,
|
|
8094
8071
|
'Answer:'
|
|
8095
8072
|
),
|
|
8096
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8073
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8097
8074
|
),
|
|
8098
|
-
React__default
|
|
8099
|
-
pageCount > 1 && React__default
|
|
8075
|
+
React__default.createElement('br', null),
|
|
8076
|
+
pageCount > 1 && React__default.createElement(
|
|
8100
8077
|
'div',
|
|
8101
8078
|
{ className: 'd-flex justify-content-center' },
|
|
8102
8079
|
renderPagination()
|
|
@@ -8107,15 +8084,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8107
8084
|
var Leads = function Leads(_ref) {
|
|
8108
8085
|
var url = _ref.url;
|
|
8109
8086
|
|
|
8110
|
-
return React__default
|
|
8087
|
+
return React__default.createElement(
|
|
8111
8088
|
'div',
|
|
8112
8089
|
{ className: 'd-block text-center mb-3' },
|
|
8113
|
-
url && React__default
|
|
8090
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8114
8091
|
);
|
|
8115
8092
|
};
|
|
8116
8093
|
|
|
8117
8094
|
var urlFor$1 = function urlFor(source, client) {
|
|
8118
|
-
var builder = index.imageUrlBuilder(client);
|
|
8095
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8119
8096
|
return builder.image(source).auto('format');
|
|
8120
8097
|
};
|
|
8121
8098
|
|
|
@@ -8131,8 +8108,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8131
8108
|
|
|
8132
8109
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8133
8110
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8134
|
-
carouselIndex = _useState2[0]
|
|
8135
|
-
_useState2[1];
|
|
8111
|
+
carouselIndex = _useState2[0],
|
|
8112
|
+
setCarouselIndex = _useState2[1];
|
|
8136
8113
|
|
|
8137
8114
|
// useEffect(() => {
|
|
8138
8115
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8145,7 +8122,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8145
8122
|
// }, [router])
|
|
8146
8123
|
|
|
8147
8124
|
React.useEffect(function () {
|
|
8148
|
-
index
|
|
8125
|
+
index.lib_3.refresh();
|
|
8149
8126
|
if (pageview) pageview(router.asPath);
|
|
8150
8127
|
}, [router]);
|
|
8151
8128
|
|
|
@@ -8158,42 +8135,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8158
8135
|
}
|
|
8159
8136
|
};
|
|
8160
8137
|
|
|
8161
|
-
return React__default
|
|
8138
|
+
return React__default.createElement(
|
|
8162
8139
|
'div',
|
|
8163
8140
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8164
|
-
React__default
|
|
8141
|
+
React__default.createElement(
|
|
8165
8142
|
reactBootstrap.Carousel,
|
|
8166
8143
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8167
8144
|
slides && slides.map(function (slide) {
|
|
8168
8145
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8169
|
-
return React__default
|
|
8146
|
+
return React__default.createElement(
|
|
8170
8147
|
reactBootstrap.Carousel.Item,
|
|
8171
8148
|
{ key: slide._key },
|
|
8172
|
-
React__default
|
|
8149
|
+
React__default.createElement(
|
|
8173
8150
|
'a',
|
|
8174
8151
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8175
|
-
React__default
|
|
8176
|
-
index$
|
|
8152
|
+
React__default.createElement(
|
|
8153
|
+
index$2.LazyLoad,
|
|
8177
8154
|
null,
|
|
8178
|
-
React__default
|
|
8155
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8179
8156
|
)
|
|
8180
8157
|
),
|
|
8181
|
-
React__default
|
|
8158
|
+
React__default.createElement(
|
|
8182
8159
|
'div',
|
|
8183
8160
|
{ className: 'p-2' },
|
|
8184
|
-
slide.slideshowImage.caption && React__default
|
|
8161
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8185
8162
|
'h3',
|
|
8186
8163
|
{ style: { padding: '0px' } },
|
|
8187
8164
|
slide.slideshowImage.caption
|
|
8188
8165
|
),
|
|
8189
|
-
slide.description && React__default
|
|
8166
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8190
8167
|
)
|
|
8191
8168
|
);
|
|
8192
8169
|
}
|
|
8193
8170
|
return null;
|
|
8194
8171
|
})
|
|
8195
8172
|
),
|
|
8196
|
-
React__default
|
|
8173
|
+
React__default.createElement(
|
|
8197
8174
|
'style',
|
|
8198
8175
|
{ jsx: 'true' },
|
|
8199
8176
|
'\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 '
|
|
@@ -8212,10 +8189,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8212
8189
|
sizes = _props$node.sizes,
|
|
8213
8190
|
sizeMapping = _props$node.sizeMapping;
|
|
8214
8191
|
|
|
8215
|
-
return React__default
|
|
8192
|
+
return React__default.createElement(
|
|
8216
8193
|
'div',
|
|
8217
8194
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8218
|
-
React__default
|
|
8195
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8219
8196
|
);
|
|
8220
8197
|
};
|
|
8221
8198
|
|
|
@@ -8226,20 +8203,20 @@ var Formstack = function Formstack(_ref) {
|
|
|
8226
8203
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8227
8204
|
|
|
8228
8205
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8229
|
-
return React__default
|
|
8206
|
+
return React__default.createElement(
|
|
8230
8207
|
'section',
|
|
8231
8208
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8232
|
-
Caption && React__default
|
|
8209
|
+
Caption && React__default.createElement(
|
|
8233
8210
|
'h4',
|
|
8234
8211
|
{ className: 'formstack-caption' },
|
|
8235
8212
|
Caption
|
|
8236
8213
|
),
|
|
8237
|
-
React__default
|
|
8214
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8238
8215
|
);
|
|
8239
8216
|
};
|
|
8240
8217
|
|
|
8241
8218
|
var urlFor$2 = function urlFor(source, client) {
|
|
8242
|
-
var builder = index.imageUrlBuilder(client);
|
|
8219
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8243
8220
|
return builder.image(source).auto('format');
|
|
8244
8221
|
};
|
|
8245
8222
|
var MultiMedia = function MultiMedia(props) {
|
|
@@ -8254,29 +8231,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8254
8231
|
}
|
|
8255
8232
|
});
|
|
8256
8233
|
if (medias && medias.length > 0) {
|
|
8257
|
-
return React__default
|
|
8234
|
+
return React__default.createElement(
|
|
8258
8235
|
'div',
|
|
8259
8236
|
{ className: 'multi-media-container' },
|
|
8260
|
-
React__default
|
|
8261
|
-
|
|
8237
|
+
React__default.createElement(
|
|
8238
|
+
Row,
|
|
8262
8239
|
{ noGutters: true },
|
|
8263
8240
|
medias.map(function (media) {
|
|
8264
|
-
return React__default
|
|
8265
|
-
|
|
8241
|
+
return React__default.createElement(
|
|
8242
|
+
Col,
|
|
8266
8243
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8267
|
-
React__default
|
|
8244
|
+
React__default.createElement(
|
|
8268
8245
|
'a',
|
|
8269
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8246
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8270
8247
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8271
|
-
React__default
|
|
8248
|
+
React__default.createElement(
|
|
8272
8249
|
'div',
|
|
8273
8250
|
{ className: 'multi-media-image-container' },
|
|
8274
|
-
imageBox && React__default
|
|
8275
|
-
index$
|
|
8251
|
+
imageBox && React__default.createElement(
|
|
8252
|
+
index$2.LazyLoad,
|
|
8276
8253
|
{ once: true },
|
|
8277
|
-
React__default
|
|
8254
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8278
8255
|
),
|
|
8279
|
-
media.caption && React__default
|
|
8256
|
+
media.caption && React__default.createElement(
|
|
8280
8257
|
'span',
|
|
8281
8258
|
{ className: 'multi-media-caption' },
|
|
8282
8259
|
media.caption
|
|
@@ -8286,7 +8263,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8286
8263
|
);
|
|
8287
8264
|
})
|
|
8288
8265
|
),
|
|
8289
|
-
React__default
|
|
8266
|
+
React__default.createElement(
|
|
8290
8267
|
'style',
|
|
8291
8268
|
{ jsx: 'true' },
|
|
8292
8269
|
'\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 '
|
|
@@ -8333,7 +8310,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8333
8310
|
}
|
|
8334
8311
|
};
|
|
8335
8312
|
|
|
8336
|
-
_this.wraperRef = React__default
|
|
8313
|
+
_this.wraperRef = React__default.createRef();
|
|
8337
8314
|
_this.visible = false;
|
|
8338
8315
|
return _this;
|
|
8339
8316
|
}
|
|
@@ -8361,7 +8338,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8361
8338
|
_props$id = _props.id,
|
|
8362
8339
|
id = _props$id === undefined ? '' : _props$id;
|
|
8363
8340
|
|
|
8364
|
-
return React__default
|
|
8341
|
+
return React__default.createElement(
|
|
8365
8342
|
'div',
|
|
8366
8343
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8367
8344
|
this.props.children
|
|
@@ -8370,7 +8347,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8370
8347
|
}]);
|
|
8371
8348
|
|
|
8372
8349
|
return InscreenSensor;
|
|
8373
|
-
}(React__default
|
|
8350
|
+
}(React__default.Component);
|
|
8374
8351
|
|
|
8375
8352
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8376
8353
|
var nodes = _ref.nodes,
|
|
@@ -8388,7 +8365,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8388
8365
|
var today = moment.moment().utc().format();
|
|
8389
8366
|
|
|
8390
8367
|
var authorPrefix = 'authors';
|
|
8391
|
-
var builder = index.imageUrlBuilder(client);
|
|
8368
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8392
8369
|
function urlFor(source) {
|
|
8393
8370
|
return builder.image(source);
|
|
8394
8371
|
}
|
|
@@ -8483,33 +8460,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8483
8460
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8484
8461
|
var showReading = show ? 'showReading' : '';
|
|
8485
8462
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8486
|
-
return React__default
|
|
8463
|
+
return React__default.createElement(
|
|
8487
8464
|
'div',
|
|
8488
8465
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8489
|
-
React__default
|
|
8466
|
+
React__default.createElement(
|
|
8490
8467
|
'a',
|
|
8491
8468
|
{ onClick: function onClick(e) {
|
|
8492
8469
|
return articleCardClickHandler(e);
|
|
8493
8470
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8494
|
-
React__default
|
|
8471
|
+
React__default.createElement(
|
|
8495
8472
|
'div',
|
|
8496
8473
|
{ className: 'prevNext-thumbnail' },
|
|
8497
|
-
React__default
|
|
8498
|
-
React__default
|
|
8474
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8475
|
+
React__default.createElement(
|
|
8499
8476
|
'div',
|
|
8500
8477
|
{ className: 'prevNext-reading ' + showReading },
|
|
8501
8478
|
articleLabel
|
|
8502
8479
|
)
|
|
8503
8480
|
),
|
|
8504
|
-
React__default
|
|
8481
|
+
React__default.createElement(
|
|
8505
8482
|
'div',
|
|
8506
8483
|
{ className: 'prevNext-summary' },
|
|
8507
|
-
React__default
|
|
8484
|
+
React__default.createElement(
|
|
8508
8485
|
'div',
|
|
8509
8486
|
{ className: 'prevNext-publishDate' },
|
|
8510
8487
|
moment.moment(article.published).format('LL')
|
|
8511
8488
|
),
|
|
8512
|
-
React__default
|
|
8489
|
+
React__default.createElement(
|
|
8513
8490
|
'h2',
|
|
8514
8491
|
{ className: 'prevNext-title' },
|
|
8515
8492
|
article.title
|
|
@@ -8558,7 +8535,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8558
8535
|
|
|
8559
8536
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8560
8537
|
if (biography) {
|
|
8561
|
-
return React__default
|
|
8538
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8562
8539
|
}
|
|
8563
8540
|
};
|
|
8564
8541
|
|
|
@@ -8644,7 +8621,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8621
|
//console.log('useLayoutEffect')
|
|
8645
8622
|
if (!firstLoad) {
|
|
8646
8623
|
setUpArrowClicked(false);
|
|
8647
|
-
if (main.
|
|
8624
|
+
if (main.main_36) {
|
|
8648
8625
|
grabLoadedAds();
|
|
8649
8626
|
} else {
|
|
8650
8627
|
scrollToArticle();
|
|
@@ -8653,7 +8630,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8653
8630
|
});
|
|
8654
8631
|
|
|
8655
8632
|
var grabLoadedAds = function grabLoadedAds() {
|
|
8656
|
-
index
|
|
8633
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8657
8634
|
var checkIfReady = window.setInterval(function () {
|
|
8658
8635
|
if (window.googletag && googletag.pubadsReady) {
|
|
8659
8636
|
clearInterval(checkIfReady);
|
|
@@ -8668,19 +8645,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8668
8645
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8669
8646
|
if (pageview) pageview(path);
|
|
8670
8647
|
|
|
8671
|
-
if (!main.
|
|
8672
|
-
index
|
|
8648
|
+
if (!main.main_36) {
|
|
8649
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8673
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
8674
|
-
index
|
|
8651
|
+
index.lib_3.refresh();
|
|
8675
8652
|
}
|
|
8676
8653
|
});
|
|
8677
8654
|
}
|
|
8678
8655
|
//Refresh leaderboard ad on mobile
|
|
8679
|
-
if (main.
|
|
8656
|
+
if (main.main_36) {
|
|
8680
8657
|
var leaderboardSlotId = '';
|
|
8681
|
-
index
|
|
8658
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8682
8659
|
if (window.googletag && googletag.pubadsReady) {
|
|
8683
|
-
index
|
|
8660
|
+
index.lib_3.refresh(leaderboardSlotId);
|
|
8684
8661
|
}
|
|
8685
8662
|
});
|
|
8686
8663
|
}
|
|
@@ -8716,38 +8693,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8716
8693
|
setSensorVisible(false);
|
|
8717
8694
|
};
|
|
8718
8695
|
|
|
8719
|
-
return React__default
|
|
8720
|
-
React__default
|
|
8696
|
+
return React__default.createElement(
|
|
8697
|
+
React__default.Fragment,
|
|
8721
8698
|
null,
|
|
8722
|
-
React__default
|
|
8699
|
+
React__default.createElement(
|
|
8723
8700
|
'div',
|
|
8724
8701
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8725
|
-
React__default
|
|
8702
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8726
8703
|
return handleArrowClick();
|
|
8727
8704
|
} })
|
|
8728
8705
|
),
|
|
8729
|
-
React__default
|
|
8730
|
-
React__default
|
|
8706
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8707
|
+
React__default.createElement(
|
|
8731
8708
|
'div',
|
|
8732
8709
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8733
|
-
React__default
|
|
8710
|
+
React__default.createElement(
|
|
8734
8711
|
'h5',
|
|
8735
8712
|
{ className: 'objective-title' },
|
|
8736
8713
|
nodes.seriesTitle
|
|
8737
8714
|
),
|
|
8738
|
-
React__default
|
|
8715
|
+
React__default.createElement(
|
|
8739
8716
|
'div',
|
|
8740
8717
|
{ className: 'prevNextWrapper' },
|
|
8741
8718
|
PrevNextCards(false, -1)
|
|
8742
8719
|
)
|
|
8743
8720
|
),
|
|
8744
|
-
React__default
|
|
8745
|
-
React__default
|
|
8721
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8722
|
+
React__default.createElement(
|
|
8746
8723
|
'div',
|
|
8747
8724
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8748
|
-
main.
|
|
8725
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8749
8726
|
if (index === 0) {
|
|
8750
|
-
return React__default
|
|
8727
|
+
return React__default.createElement(
|
|
8751
8728
|
'div',
|
|
8752
8729
|
{
|
|
8753
8730
|
key: 'addid-1',
|
|
@@ -8767,14 +8744,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8767
8744
|
}
|
|
8768
8745
|
})
|
|
8769
8746
|
),
|
|
8770
|
-
React__default
|
|
8747
|
+
React__default.createElement(
|
|
8771
8748
|
'div',
|
|
8772
8749
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8773
8750
|
Articles.map(function (article, index) {
|
|
8774
|
-
return React__default
|
|
8751
|
+
return React__default.createElement(
|
|
8775
8752
|
'div',
|
|
8776
8753
|
{ key: article.title },
|
|
8777
|
-
React__default
|
|
8754
|
+
React__default.createElement(
|
|
8778
8755
|
InscreenSensor,
|
|
8779
8756
|
{
|
|
8780
8757
|
visible: sensorVisible,
|
|
@@ -8792,84 +8769,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8792
8769
|
}
|
|
8793
8770
|
}
|
|
8794
8771
|
} },
|
|
8795
|
-
React__default
|
|
8796
|
-
|
|
8772
|
+
React__default.createElement(
|
|
8773
|
+
Head,
|
|
8797
8774
|
null,
|
|
8798
|
-
currentTitle !== null && React__default
|
|
8775
|
+
currentTitle !== null && React__default.createElement(
|
|
8799
8776
|
'title',
|
|
8800
8777
|
{ key: 'title' },
|
|
8801
8778
|
currentTitle
|
|
8802
8779
|
),
|
|
8803
|
-
currentSummary !== null && React__default
|
|
8804
|
-
currentURL !== null && React__default
|
|
8805
|
-
currentTitle !== null && React__default
|
|
8806
|
-
currentThumbnail !== null && React__default
|
|
8807
|
-
currentSummary !== null && React__default
|
|
8808
|
-
currentTitle !== null && React__default
|
|
8809
|
-
currentThumbnail !== null && React__default
|
|
8810
|
-
currentSummary !== null && React__default
|
|
8780
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8781
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8782
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8783
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8784
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8785
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8786
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8787
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8811
8788
|
),
|
|
8812
|
-
React__default
|
|
8789
|
+
React__default.createElement(
|
|
8813
8790
|
'article',
|
|
8814
8791
|
{ className: 'article-wrapper' },
|
|
8815
|
-
React__default
|
|
8792
|
+
React__default.createElement(
|
|
8816
8793
|
'div',
|
|
8817
8794
|
{ className: 'article-publishDate' },
|
|
8818
8795
|
moment.moment(article.published).format('LL')
|
|
8819
8796
|
),
|
|
8820
|
-
React__default
|
|
8797
|
+
React__default.createElement(
|
|
8821
8798
|
'div',
|
|
8822
8799
|
{ className: 'author-details-wrapper' },
|
|
8823
8800
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8824
|
-
return React__default
|
|
8801
|
+
return React__default.createElement(
|
|
8825
8802
|
'span',
|
|
8826
8803
|
{ key: index },
|
|
8827
8804
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8828
8805
|
);
|
|
8829
8806
|
})
|
|
8830
8807
|
),
|
|
8831
|
-
React__default
|
|
8808
|
+
React__default.createElement(
|
|
8832
8809
|
'h2',
|
|
8833
8810
|
{ className: 'article-title' },
|
|
8834
8811
|
article.title
|
|
8835
8812
|
),
|
|
8836
|
-
React__default
|
|
8813
|
+
React__default.createElement(
|
|
8837
8814
|
'div',
|
|
8838
8815
|
{ className: 'mt-2 mb-2' },
|
|
8839
|
-
React__default
|
|
8816
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8840
8817
|
serializers: getSerializers,
|
|
8841
8818
|
videoAccountIDs: accountIDs,
|
|
8842
8819
|
blocks: article.text,
|
|
8843
8820
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8844
8821
|
}, client.config())),
|
|
8845
|
-
React__default
|
|
8822
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8846
8823
|
),
|
|
8847
|
-
Articles.length > 1 && React__default
|
|
8848
|
-
React__default
|
|
8824
|
+
Articles.length > 1 && React__default.createElement(
|
|
8825
|
+
React__default.Fragment,
|
|
8849
8826
|
null,
|
|
8850
|
-
React__default
|
|
8827
|
+
React__default.createElement(
|
|
8851
8828
|
'div',
|
|
8852
8829
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8853
|
-
React__default
|
|
8830
|
+
React__default.createElement(
|
|
8854
8831
|
'h5',
|
|
8855
8832
|
{ className: 'objective-title' },
|
|
8856
8833
|
nodes.seriesTitle
|
|
8857
8834
|
),
|
|
8858
|
-
React__default
|
|
8835
|
+
React__default.createElement(
|
|
8859
8836
|
'div',
|
|
8860
8837
|
{ className: 'prevNextWrapper' },
|
|
8861
8838
|
PrevNextCards(true, index)
|
|
8862
8839
|
)
|
|
8863
8840
|
),
|
|
8864
|
-
React__default
|
|
8841
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8865
8842
|
)
|
|
8866
8843
|
),
|
|
8867
|
-
React__default
|
|
8844
|
+
React__default.createElement(
|
|
8868
8845
|
'div',
|
|
8869
8846
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8870
|
-
main.
|
|
8847
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8871
8848
|
if (innerIndex === 0) {
|
|
8872
|
-
return React__default
|
|
8849
|
+
return React__default.createElement(
|
|
8873
8850
|
'div',
|
|
8874
8851
|
{
|
|
8875
8852
|
key: 'addid-' + (index + 2),
|
|
@@ -8892,7 +8869,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8892
8869
|
)
|
|
8893
8870
|
);
|
|
8894
8871
|
}),
|
|
8895
|
-
React__default
|
|
8872
|
+
React__default.createElement(
|
|
8896
8873
|
'style',
|
|
8897
8874
|
{ jsx: 'true' },
|
|
8898
8875
|
'\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 '
|
|
@@ -8922,11 +8899,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8922
8899
|
};
|
|
8923
8900
|
}, [handleClickOutside]);
|
|
8924
8901
|
|
|
8925
|
-
return React__default
|
|
8902
|
+
return React__default.createElement(
|
|
8926
8903
|
'div',
|
|
8927
8904
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8928
|
-
React__default
|
|
8929
|
-
React__default
|
|
8905
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8906
|
+
React__default.createElement(
|
|
8930
8907
|
'style',
|
|
8931
8908
|
{ jsx: 'true' },
|
|
8932
8909
|
'\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 '
|
|
@@ -8935,7 +8912,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8935
8912
|
};
|
|
8936
8913
|
|
|
8937
8914
|
var urlFor$3 = function urlFor(source, client) {
|
|
8938
|
-
var builder = index.imageUrlBuilder(client);
|
|
8915
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8939
8916
|
return builder.image(source).auto('format');
|
|
8940
8917
|
};
|
|
8941
8918
|
|
|
@@ -9020,13 +8997,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9020
8997
|
|
|
9021
8998
|
var FigureCaption = React.useCallback(function () {
|
|
9022
8999
|
if (imgcaption && imgcaption.length > 0) {
|
|
9023
|
-
return React__default
|
|
9000
|
+
return React__default.createElement(
|
|
9024
9001
|
'div',
|
|
9025
9002
|
{ className: 'figure-caption' },
|
|
9026
|
-
React__default
|
|
9003
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9027
9004
|
);
|
|
9028
9005
|
} else if (caption) {
|
|
9029
|
-
return React__default
|
|
9006
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9030
9007
|
} else return null;
|
|
9031
9008
|
}, [caption, imgcaption]);
|
|
9032
9009
|
|
|
@@ -9038,21 +9015,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9038
9015
|
margin: figureMargin
|
|
9039
9016
|
};
|
|
9040
9017
|
|
|
9041
|
-
return React__default
|
|
9042
|
-
React__default
|
|
9018
|
+
return React__default.createElement(
|
|
9019
|
+
React__default.Fragment,
|
|
9043
9020
|
null,
|
|
9044
|
-
React__default
|
|
9045
|
-
|
|
9021
|
+
React__default.createElement(
|
|
9022
|
+
Figure$1,
|
|
9046
9023
|
{ className: '' + class_name, style: figureStyle },
|
|
9047
|
-
link ? React__default
|
|
9024
|
+
link ? React__default.createElement(
|
|
9048
9025
|
'a',
|
|
9049
9026
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9050
|
-
React__default
|
|
9051
|
-
React__default
|
|
9052
|
-
) : React__default
|
|
9053
|
-
React__default
|
|
9027
|
+
React__default.createElement(Figure$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9028
|
+
React__default.createElement(FigureCaption, null)
|
|
9029
|
+
) : React__default.createElement(
|
|
9030
|
+
React__default.Fragment,
|
|
9054
9031
|
null,
|
|
9055
|
-
React__default
|
|
9032
|
+
React__default.createElement(Figure$1.Image, {
|
|
9056
9033
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9057
9034
|
className: 'figure-image',
|
|
9058
9035
|
src: urlFor$3(node, client).url(),
|
|
@@ -9062,9 +9039,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9062
9039
|
setShowLightbox(true);
|
|
9063
9040
|
}
|
|
9064
9041
|
}),
|
|
9065
|
-
React__default
|
|
9042
|
+
React__default.createElement(FigureCaption, null)
|
|
9066
9043
|
),
|
|
9067
|
-
React__default
|
|
9044
|
+
React__default.createElement(LightBox, {
|
|
9068
9045
|
showLightbox: showLightbox,
|
|
9069
9046
|
lightboxImgSrc: lightboxImgSrc,
|
|
9070
9047
|
closeLightbox: function closeLightbox() {
|
|
@@ -9073,7 +9050,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9073
9050
|
}
|
|
9074
9051
|
})
|
|
9075
9052
|
),
|
|
9076
|
-
React__default
|
|
9053
|
+
React__default.createElement(
|
|
9077
9054
|
'style',
|
|
9078
9055
|
{ jsx: 'true' },
|
|
9079
9056
|
'\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 '
|
|
@@ -9081,10 +9058,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9081
9058
|
);
|
|
9082
9059
|
};
|
|
9083
9060
|
|
|
9084
|
-
var Figure = React__default
|
|
9061
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9085
9062
|
|
|
9086
9063
|
var urlFor$4 = function urlFor(source, client) {
|
|
9087
|
-
var builder = index.imageUrlBuilder(client);
|
|
9064
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
9088
9065
|
return builder.image(source).auto('format');
|
|
9089
9066
|
};
|
|
9090
9067
|
|
|
@@ -9127,47 +9104,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9127
9104
|
imgcaption = _ref.imgcaption;
|
|
9128
9105
|
|
|
9129
9106
|
if (imgcaption && imgcaption.length > 0) {
|
|
9130
|
-
return React__default
|
|
9107
|
+
return React__default.createElement(
|
|
9131
9108
|
'div',
|
|
9132
9109
|
{ className: 'multi-figure-caption' },
|
|
9133
|
-
React__default
|
|
9110
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9134
9111
|
);
|
|
9135
9112
|
} else if (caption) {
|
|
9136
|
-
return React__default
|
|
9113
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9137
9114
|
} else return null;
|
|
9138
9115
|
};
|
|
9139
9116
|
|
|
9140
9117
|
if (images && images.length > 0) {
|
|
9141
|
-
return React__default
|
|
9118
|
+
return React__default.createElement(
|
|
9142
9119
|
'div',
|
|
9143
9120
|
{ className: 'multi-figure-container' },
|
|
9144
|
-
React__default
|
|
9145
|
-
|
|
9121
|
+
React__default.createElement(
|
|
9122
|
+
Row,
|
|
9146
9123
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9147
9124
|
images.map(function (image, index) {
|
|
9148
|
-
return React__default
|
|
9149
|
-
|
|
9125
|
+
return React__default.createElement(
|
|
9126
|
+
Col,
|
|
9150
9127
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9151
|
-
image.link ? React__default
|
|
9128
|
+
image.link ? React__default.createElement(
|
|
9152
9129
|
'a',
|
|
9153
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9154
|
-
React__default
|
|
9130
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9131
|
+
React__default.createElement(
|
|
9155
9132
|
'div',
|
|
9156
9133
|
{ className: 'multi-figure-image-container' },
|
|
9157
|
-
React__default
|
|
9158
|
-
index$
|
|
9134
|
+
React__default.createElement(
|
|
9135
|
+
index$2.LazyLoad,
|
|
9159
9136
|
{ once: true },
|
|
9160
|
-
React__default
|
|
9137
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9161
9138
|
),
|
|
9162
|
-
React__default
|
|
9139
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9163
9140
|
)
|
|
9164
|
-
) : React__default
|
|
9141
|
+
) : React__default.createElement(
|
|
9165
9142
|
'div',
|
|
9166
9143
|
{ className: 'multi-figure-image-container' },
|
|
9167
|
-
React__default
|
|
9168
|
-
index$
|
|
9144
|
+
React__default.createElement(
|
|
9145
|
+
index$2.LazyLoad,
|
|
9169
9146
|
{ once: true },
|
|
9170
|
-
React__default
|
|
9147
|
+
React__default.createElement('img', {
|
|
9171
9148
|
'images-count': images.length,
|
|
9172
9149
|
className: 'multi-figure-image',
|
|
9173
9150
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9178,17 +9155,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9178
9155
|
}
|
|
9179
9156
|
})
|
|
9180
9157
|
),
|
|
9181
|
-
React__default
|
|
9158
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9182
9159
|
)
|
|
9183
9160
|
);
|
|
9184
9161
|
})
|
|
9185
9162
|
),
|
|
9186
|
-
React__default
|
|
9163
|
+
React__default.createElement(
|
|
9187
9164
|
'div',
|
|
9188
9165
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9189
|
-
React__default
|
|
9166
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9190
9167
|
),
|
|
9191
|
-
React__default
|
|
9168
|
+
React__default.createElement(
|
|
9192
9169
|
'style',
|
|
9193
9170
|
{ jsx: 'true' },
|
|
9194
9171
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9210,10 +9187,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9210
9187
|
|
|
9211
9188
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9212
9189
|
|
|
9213
|
-
return React__default
|
|
9190
|
+
return React__default.createElement(
|
|
9214
9191
|
'div',
|
|
9215
9192
|
{ id: elementId },
|
|
9216
|
-
React__default
|
|
9193
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9217
9194
|
);
|
|
9218
9195
|
};
|
|
9219
9196
|
|
|
@@ -9288,17 +9265,17 @@ var getSerializers = function getSerializers() {
|
|
|
9288
9265
|
var node = _ref.node;
|
|
9289
9266
|
var url = node.url;
|
|
9290
9267
|
|
|
9291
|
-
return React__default
|
|
9268
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
9292
9269
|
},
|
|
9293
9270
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9294
9271
|
var node = _ref2.node;
|
|
9295
9272
|
|
|
9296
|
-
return React__default
|
|
9273
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, article: article, meta: meta, authorPrefix: authorPrefix, authorImgHeight: authorImgHeight, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
9297
9274
|
},
|
|
9298
9275
|
articleSeries: function articleSeries(_ref3) {
|
|
9299
9276
|
var node = _ref3.node;
|
|
9300
9277
|
|
|
9301
|
-
return React__default
|
|
9278
|
+
return React__default.createElement(ArticleSeries, {
|
|
9302
9279
|
nodes: node,
|
|
9303
9280
|
accountIDs: videoAccountIDs || {},
|
|
9304
9281
|
pageview: pageview,
|
|
@@ -9311,61 +9288,61 @@ var getSerializers = function getSerializers() {
|
|
|
9311
9288
|
figure: function figure(_ref4) {
|
|
9312
9289
|
var node = _ref4.node;
|
|
9313
9290
|
|
|
9314
|
-
return React__default
|
|
9291
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9315
9292
|
},
|
|
9316
9293
|
multifigure: function multifigure(_ref5) {
|
|
9317
9294
|
var node = _ref5.node;
|
|
9318
9295
|
|
|
9319
|
-
return React__default
|
|
9296
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9320
9297
|
},
|
|
9321
9298
|
slideshow: function slideshow(_ref6) {
|
|
9322
9299
|
var node = _ref6.node;
|
|
9323
9300
|
var slides = node.slides;
|
|
9324
9301
|
|
|
9325
|
-
return React__default
|
|
9302
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9326
9303
|
},
|
|
9327
9304
|
sidebar: function sidebar(_ref7) {
|
|
9328
9305
|
var node = _ref7.node;
|
|
9329
9306
|
var caption = node.caption,
|
|
9330
9307
|
content = node.content;
|
|
9331
9308
|
|
|
9332
|
-
return React__default
|
|
9309
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9333
9310
|
},
|
|
9334
9311
|
datatable: function datatable(_ref8) {
|
|
9335
9312
|
var node = _ref8.node;
|
|
9336
9313
|
var table = node.table;
|
|
9337
9314
|
|
|
9338
|
-
return React__default
|
|
9315
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9339
9316
|
},
|
|
9340
9317
|
media: function media(_ref9) {
|
|
9341
9318
|
var node = _ref9.node;
|
|
9342
9319
|
|
|
9343
|
-
return React__default
|
|
9320
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9344
9321
|
},
|
|
9345
9322
|
iframe: function iframe(_ref10) {
|
|
9346
9323
|
var node = _ref10.node;
|
|
9347
9324
|
|
|
9348
|
-
return React__default
|
|
9325
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9349
9326
|
},
|
|
9350
9327
|
video: function video(_ref11) {
|
|
9351
9328
|
var node = _ref11.node;
|
|
9352
9329
|
|
|
9353
|
-
return React__default
|
|
9330
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9354
9331
|
},
|
|
9355
9332
|
audio: function audio(_ref12) {
|
|
9356
9333
|
var node = _ref12.node;
|
|
9357
9334
|
|
|
9358
|
-
return React__default
|
|
9335
|
+
return React__default.createElement(Audio, { node: node });
|
|
9359
9336
|
},
|
|
9360
9337
|
poll: function poll(_ref13) {
|
|
9361
9338
|
var node = _ref13.node;
|
|
9362
9339
|
|
|
9363
|
-
return React__default
|
|
9340
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9364
9341
|
},
|
|
9365
9342
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9366
9343
|
var node = _ref14.node;
|
|
9367
9344
|
|
|
9368
|
-
return React__default
|
|
9345
|
+
return React__default.createElement(Poll$1, {
|
|
9369
9346
|
node: node,
|
|
9370
9347
|
client: client,
|
|
9371
9348
|
pageview: pageview,
|
|
@@ -9379,35 +9356,35 @@ var getSerializers = function getSerializers() {
|
|
|
9379
9356
|
var node = _ref15.node;
|
|
9380
9357
|
var quizzes = node.quizzes;
|
|
9381
9358
|
|
|
9382
|
-
return React__default
|
|
9359
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9383
9360
|
},
|
|
9384
9361
|
leads: function leads(_ref16) {
|
|
9385
9362
|
var node = _ref16.node;
|
|
9386
9363
|
var leadID = node.leadID;
|
|
9387
9364
|
|
|
9388
9365
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9389
|
-
return React__default
|
|
9366
|
+
return React__default.createElement(Leads, { url: url });
|
|
9390
9367
|
},
|
|
9391
9368
|
slideshows: function slideshows(_ref17) {
|
|
9392
9369
|
var node = _ref17.node;
|
|
9393
9370
|
|
|
9394
|
-
return React__default
|
|
9371
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9395
9372
|
},
|
|
9396
9373
|
nativeAd: function nativeAd(_ref18) {
|
|
9397
9374
|
var node = _ref18.node;
|
|
9398
9375
|
|
|
9399
|
-
return React__default
|
|
9376
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9400
9377
|
},
|
|
9401
9378
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9402
9379
|
var node = _ref19.node;
|
|
9403
9380
|
|
|
9404
|
-
return React__default
|
|
9381
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9405
9382
|
},
|
|
9406
9383
|
hrtag: function hrtag() {
|
|
9407
|
-
return React__default
|
|
9384
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9408
9385
|
},
|
|
9409
9386
|
brtag: function brtag() {
|
|
9410
|
-
return React__default
|
|
9387
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9411
9388
|
},
|
|
9412
9389
|
formstack: function formstack(_ref20) {
|
|
9413
9390
|
var node = _ref20.node;
|
|
@@ -9415,24 +9392,24 @@ var getSerializers = function getSerializers() {
|
|
|
9415
9392
|
Caption = node.Caption,
|
|
9416
9393
|
needSegmentSupport = node.needSegmentSupport;
|
|
9417
9394
|
|
|
9418
|
-
return React__default
|
|
9395
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9419
9396
|
},
|
|
9420
9397
|
multimedia: function multimedia(_ref21) {
|
|
9421
9398
|
var node = _ref21.node;
|
|
9422
9399
|
|
|
9423
|
-
return React__default
|
|
9400
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9424
9401
|
}
|
|
9425
9402
|
},
|
|
9426
9403
|
marks: {
|
|
9427
9404
|
superscript: function superscript(props) {
|
|
9428
|
-
return React__default
|
|
9405
|
+
return React__default.createElement(
|
|
9429
9406
|
'sup',
|
|
9430
9407
|
null,
|
|
9431
9408
|
props.children
|
|
9432
9409
|
);
|
|
9433
9410
|
},
|
|
9434
9411
|
subscript: function subscript(props) {
|
|
9435
|
-
return React__default
|
|
9412
|
+
return React__default.createElement(
|
|
9436
9413
|
'sub',
|
|
9437
9414
|
null,
|
|
9438
9415
|
props.children
|
|
@@ -9448,7 +9425,7 @@ var getSerializers = function getSerializers() {
|
|
|
9448
9425
|
if (href && href.charAt(0) === '#') {
|
|
9449
9426
|
var elementId = href.slice(1);
|
|
9450
9427
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9451
|
-
return React__default
|
|
9428
|
+
return React__default.createElement(
|
|
9452
9429
|
'a',
|
|
9453
9430
|
{ onClick: function onClick() {
|
|
9454
9431
|
return ScrollToElement(elementId);
|
|
@@ -9458,7 +9435,7 @@ var getSerializers = function getSerializers() {
|
|
|
9458
9435
|
}
|
|
9459
9436
|
|
|
9460
9437
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9461
|
-
return React__default
|
|
9438
|
+
return React__default.createElement(
|
|
9462
9439
|
'a',
|
|
9463
9440
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9464
9441
|
children
|
|
@@ -9466,7 +9443,7 @@ var getSerializers = function getSerializers() {
|
|
|
9466
9443
|
},
|
|
9467
9444
|
alignleft: function alignleft(_ref22) {
|
|
9468
9445
|
var children = _ref22.children;
|
|
9469
|
-
return React__default
|
|
9446
|
+
return React__default.createElement(
|
|
9470
9447
|
'div',
|
|
9471
9448
|
{ style: { textAlign: 'left' } },
|
|
9472
9449
|
children
|
|
@@ -9474,7 +9451,7 @@ var getSerializers = function getSerializers() {
|
|
|
9474
9451
|
},
|
|
9475
9452
|
alignright: function alignright(_ref23) {
|
|
9476
9453
|
var children = _ref23.children;
|
|
9477
|
-
return React__default
|
|
9454
|
+
return React__default.createElement(
|
|
9478
9455
|
'div',
|
|
9479
9456
|
{ style: { textAlign: 'right' } },
|
|
9480
9457
|
children
|
|
@@ -9482,7 +9459,7 @@ var getSerializers = function getSerializers() {
|
|
|
9482
9459
|
},
|
|
9483
9460
|
aligncenter: function aligncenter(_ref24) {
|
|
9484
9461
|
var children = _ref24.children;
|
|
9485
|
-
return React__default
|
|
9462
|
+
return React__default.createElement(
|
|
9486
9463
|
'div',
|
|
9487
9464
|
{ style: { textAlign: 'center' } },
|
|
9488
9465
|
children
|
|
@@ -9490,7 +9467,7 @@ var getSerializers = function getSerializers() {
|
|
|
9490
9467
|
},
|
|
9491
9468
|
alignjustify: function alignjustify(_ref25) {
|
|
9492
9469
|
var children = _ref25.children;
|
|
9493
|
-
return React__default
|
|
9470
|
+
return React__default.createElement(
|
|
9494
9471
|
'div',
|
|
9495
9472
|
{ style: { textAlign: 'justify' } },
|
|
9496
9473
|
children
|
|
@@ -9500,7 +9477,7 @@ var getSerializers = function getSerializers() {
|
|
|
9500
9477
|
var children = props.children,
|
|
9501
9478
|
color = props.mark.color;
|
|
9502
9479
|
|
|
9503
|
-
return React__default
|
|
9480
|
+
return React__default.createElement(
|
|
9504
9481
|
'span',
|
|
9505
9482
|
{ style: { color: color ? color.hex : null } },
|
|
9506
9483
|
children
|