@mjhls/mjh-framework 1.0.762 → 1.0.764-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 +3 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -28
- package/dist/cjs/AD300x250x600.js +28 -28
- package/dist/cjs/AD728x90.js +31 -31
- package/dist/cjs/ADFloatingFooter.js +30 -30
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +30 -30
- package/dist/cjs/{ADInfeed-67ba5ac4.js → ADInfeed-89761278.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -30
- package/dist/cjs/ADSponsoredResources.js +30 -30
- package/dist/cjs/ADWebcast.js +30 -30
- package/dist/cjs/ADWelcome.js +31 -31
- package/dist/cjs/{ADlgInfeed-42534448.js → ADlgInfeed-853ddc3d.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +36 -33
- 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 +56 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -39
- package/dist/cjs/ArticleSeriesListing.js +60 -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 +84 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -35
- package/dist/cjs/Column3.js +57 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +95 -98
- package/dist/cjs/DeckQueue.js +88 -90
- package/dist/cjs/{Dfp-80146e98.js → Dfp-b807d8fa.js} +32 -32
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +78 -78
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +179 -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 +70 -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 +41 -41
- package/dist/cjs/LeftNav.js +37 -38
- package/dist/cjs/MasterDeck.js +71 -71
- package/dist/cjs/MediaSeriesLanding.js +121 -0
- 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 +447 -122
- 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 +107 -107
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +40 -40
- package/dist/cjs/PubToc.js +16 -17
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +293 -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 +171 -0
- package/dist/cjs/SeriesSlider-e761f83b.js +307 -0
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -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 +53 -53
- package/dist/cjs/TemplateNormal.js +74 -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 +72 -75
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +47 -47
- package/dist/cjs/VideoSeriesListing.js +77 -77
- package/dist/cjs/View.js +359 -273
- 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/{debounce-eb287781.js → debounce-529c8d06.js} +3 -66
- 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/eq-bb2843ed.js +79 -0
- 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/{get-68c52cb1.js → get-adbb11e3.js} +3 -75
- 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 +44 -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-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-9e0ebc87.js → index-a1a9f1f7.js} +902 -925
- 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 +162 -161
- 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/toNumber-36d1e7e5.js +69 -0
- 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 +26 -25
- package/dist/esm/AD300x250x600.js +26 -25
- package/dist/esm/AD728x90.js +29 -28
- package/dist/esm/ADFloatingFooter.js +28 -27
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -27
- package/dist/esm/{ADInfeed-d1e9b645.js → ADInfeed-1e0d374f.js} +9 -9
- package/dist/esm/ADSkyscraper.js +28 -27
- package/dist/esm/ADSponsoredResources.js +28 -27
- package/dist/esm/ADWebcast.js +28 -27
- package/dist/esm/ADWelcome.js +29 -28
- package/dist/esm/{ADlgInfeed-f6128af4.js → ADlgInfeed-c089deab.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +28 -24
- 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 +53 -52
- package/dist/esm/ArticleSeriesLandingPage.js +37 -36
- package/dist/esm/ArticleSeriesListing.js +55 -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 +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +28 -27
- package/dist/esm/Column3.js +51 -49
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +78 -77
- package/dist/esm/DeckQueue.js +67 -65
- package/dist/esm/{Dfp-8bfbd310.js → Dfp-ebc4b22f.js} +22 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +72 -71
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +142 -140
- 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 +67 -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 +39 -38
- package/dist/esm/LeftNav.js +34 -33
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +116 -0
- 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 +425 -92
- 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 +104 -103
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -37
- package/dist/esm/PubToc.js +13 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +274 -273
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SeriesListingDeck.js +166 -0
- package/dist/esm/SeriesSlider-4bfc8f53.js +302 -0
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +33 -32
- 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 +48 -47
- package/dist/esm/TemplateNormal.js +69 -67
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +62 -61
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +41 -40
- package/dist/esm/VideoSeriesListing.js +71 -70
- package/dist/esm/View.js +343 -253
- 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/{debounce-1a993acf.js → debounce-9207d8ee.js} +2 -65
- 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/eq-b470f743.js +76 -0
- 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/{get-5ee14cda.js → get-1e515072.js} +2 -74
- 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 +44 -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-98643e12.js → index-929b89ed.js} +844 -860
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +131 -127
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{isSymbol-807e927e.js → isSymbol-1981418f.js} +1 -1
- 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/toNumber-2f7a84cd.js +67 -0
- 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,37 +1,37 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-cdeaee08.js';
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { l as lib_3 } from './index-888f9253.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-eb69e8ac.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-fb9b6e8f.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-a9e53f80.js';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
+
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
16
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
12
19
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-e9cea9e8.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
24
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
25
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
26
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
+
import { u as util } from './util-7700fc59.js';
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
29
|
+
import Head from 'next/head';
|
|
21
30
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-8f409e54.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
31
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
25
32
|
import Pagination from 'react-bootstrap/Pagination';
|
|
26
33
|
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
-
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-5906fbea.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var urlFor = function urlFor(source, builder) {
|
|
37
37
|
return builder.image(source).auto('format');
|
|
@@ -72,20 +72,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
72
72
|
if (pageview) pageview(router.asPath);
|
|
73
73
|
}, [router]);
|
|
74
74
|
|
|
75
|
-
return
|
|
75
|
+
return React__default.createElement(
|
|
76
76
|
'div',
|
|
77
77
|
{ className: 'mt-3 mb-3' },
|
|
78
|
-
|
|
78
|
+
React__default.createElement(
|
|
79
79
|
Carousel,
|
|
80
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
81
81
|
return onChangeSlide(selectedIndex, router);
|
|
82
82
|
}, interval: null },
|
|
83
83
|
slides && slides.map(function (slide) {
|
|
84
|
-
return
|
|
84
|
+
return React__default.createElement(
|
|
85
85
|
Carousel.Item,
|
|
86
86
|
{ key: slide._key },
|
|
87
|
-
|
|
88
|
-
slide.caption &&
|
|
87
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
slide.caption && React__default.createElement(
|
|
89
89
|
'p',
|
|
90
90
|
{ className: 'p-2' },
|
|
91
91
|
slide.caption
|
|
@@ -96,18 +96,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
96
96
|
);
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
var isArray = Array.isArray;
|
|
100
|
+
var keyList = Object.keys;
|
|
101
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
102
102
|
|
|
103
103
|
var fastDeepEqual = function equal(a, b) {
|
|
104
104
|
if (a === b) return true;
|
|
105
105
|
|
|
106
106
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
107
|
-
|
|
107
|
+
var arrA = isArray(a)
|
|
108
|
+
, arrB = isArray(b)
|
|
109
|
+
, i
|
|
110
|
+
, length
|
|
111
|
+
, key;
|
|
108
112
|
|
|
109
|
-
|
|
110
|
-
if (Array.isArray(a)) {
|
|
113
|
+
if (arrA && arrB) {
|
|
111
114
|
length = a.length;
|
|
112
115
|
if (length != b.length) return false;
|
|
113
116
|
for (i = length; i-- !== 0;)
|
|
@@ -115,29 +118,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
115
118
|
return true;
|
|
116
119
|
}
|
|
117
120
|
|
|
121
|
+
if (arrA != arrB) return false;
|
|
118
122
|
|
|
123
|
+
var dateA = a instanceof Date
|
|
124
|
+
, dateB = b instanceof Date;
|
|
125
|
+
if (dateA != dateB) return false;
|
|
126
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
119
127
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (
|
|
128
|
+
var regexpA = a instanceof RegExp
|
|
129
|
+
, regexpB = b instanceof RegExp;
|
|
130
|
+
if (regexpA != regexpB) return false;
|
|
131
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
123
132
|
|
|
124
|
-
keys =
|
|
133
|
+
var keys = keyList(a);
|
|
125
134
|
length = keys.length;
|
|
126
|
-
|
|
135
|
+
|
|
136
|
+
if (length !== keyList(b).length)
|
|
137
|
+
return false;
|
|
127
138
|
|
|
128
139
|
for (i = length; i-- !== 0;)
|
|
129
|
-
if (!
|
|
140
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
130
141
|
|
|
131
142
|
for (i = length; i-- !== 0;) {
|
|
132
|
-
|
|
133
|
-
|
|
143
|
+
key = keys[i];
|
|
134
144
|
if (!equal(a[key], b[key])) return false;
|
|
135
145
|
}
|
|
136
146
|
|
|
137
147
|
return true;
|
|
138
148
|
}
|
|
139
149
|
|
|
140
|
-
// true if both NaN, false otherwise
|
|
141
150
|
return a!==a && b!==b;
|
|
142
151
|
};
|
|
143
152
|
|
|
@@ -675,14 +684,14 @@ function coerce(val) {
|
|
|
675
684
|
return val;
|
|
676
685
|
}
|
|
677
686
|
});
|
|
678
|
-
debug.coerce;
|
|
679
|
-
debug.disable;
|
|
680
|
-
debug.enable;
|
|
681
|
-
debug.enabled;
|
|
682
|
-
debug.humanize;
|
|
683
|
-
debug.names;
|
|
684
|
-
debug.skips;
|
|
685
|
-
debug.formatters;
|
|
687
|
+
var debug_1 = debug.coerce;
|
|
688
|
+
var debug_2 = debug.disable;
|
|
689
|
+
var debug_3 = debug.enable;
|
|
690
|
+
var debug_4 = debug.enabled;
|
|
691
|
+
var debug_5 = debug.humanize;
|
|
692
|
+
var debug_6 = debug.names;
|
|
693
|
+
var debug_7 = debug.skips;
|
|
694
|
+
var debug_8 = debug.formatters;
|
|
686
695
|
|
|
687
696
|
var browser = createCommonjsModule(function (module, exports) {
|
|
688
697
|
/**
|
|
@@ -871,13 +880,13 @@ function localstorage() {
|
|
|
871
880
|
} catch (e) {}
|
|
872
881
|
}
|
|
873
882
|
});
|
|
874
|
-
browser.log;
|
|
875
|
-
browser.formatArgs;
|
|
876
|
-
browser.save;
|
|
877
|
-
browser.load;
|
|
878
|
-
browser.useColors;
|
|
879
|
-
browser.storage;
|
|
880
|
-
browser.colors;
|
|
883
|
+
var browser_1 = browser.log;
|
|
884
|
+
var browser_2 = browser.formatArgs;
|
|
885
|
+
var browser_3 = browser.save;
|
|
886
|
+
var browser_4 = browser.load;
|
|
887
|
+
var browser_5 = browser.useColors;
|
|
888
|
+
var browser_6 = browser.storage;
|
|
889
|
+
var browser_7 = browser.colors;
|
|
881
890
|
|
|
882
891
|
// MIT lisence
|
|
883
892
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1152,14 +1161,14 @@ function init (debug) {
|
|
|
1152
1161
|
|
|
1153
1162
|
exports.enable(load());
|
|
1154
1163
|
});
|
|
1155
|
-
node.init;
|
|
1156
|
-
node.log;
|
|
1157
|
-
node.formatArgs;
|
|
1158
|
-
node.save;
|
|
1159
|
-
node.load;
|
|
1160
|
-
node.useColors;
|
|
1161
|
-
node.colors;
|
|
1162
|
-
node.inspectOpts;
|
|
1164
|
+
var node_1 = node.init;
|
|
1165
|
+
var node_2 = node.log;
|
|
1166
|
+
var node_3 = node.formatArgs;
|
|
1167
|
+
var node_4 = node.save;
|
|
1168
|
+
var node_5 = node.load;
|
|
1169
|
+
var node_6 = node.useColors;
|
|
1170
|
+
var node_7 = node.colors;
|
|
1171
|
+
var node_8 = node.inspectOpts;
|
|
1163
1172
|
|
|
1164
1173
|
var src = createCommonjsModule(function (module) {
|
|
1165
1174
|
/**
|
|
@@ -1560,239 +1569,199 @@ module.exports = exports['default'];
|
|
|
1560
1569
|
|
|
1561
1570
|
var youTubePlayer = unwrapExports(dist);
|
|
1562
1571
|
|
|
1563
|
-
function
|
|
1572
|
+
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; }; }();
|
|
1564
1573
|
|
|
1565
|
-
function
|
|
1574
|
+
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; };
|
|
1566
1575
|
|
|
1567
|
-
function
|
|
1568
|
-
|
|
1569
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1570
|
-
|
|
1571
|
-
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); }
|
|
1572
|
-
|
|
1573
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1574
|
-
|
|
1575
|
-
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); }; }
|
|
1576
|
-
|
|
1577
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1578
|
-
|
|
1579
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1580
|
-
|
|
1581
|
-
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; } }
|
|
1582
|
-
|
|
1583
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1576
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1584
1577
|
|
|
1585
|
-
function
|
|
1578
|
+
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; }
|
|
1586
1579
|
|
|
1587
|
-
function
|
|
1580
|
+
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; }
|
|
1588
1581
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
*
|
|
1592
|
-
*
|
|
1593
|
-
* @param {Object}
|
|
1594
|
-
* @param {Object} props
|
|
1582
|
+
/**
|
|
1583
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1584
|
+
*
|
|
1585
|
+
* @param {Object} prevProps
|
|
1586
|
+
* @param {Object} props
|
|
1595
1587
|
*/
|
|
1596
|
-
|
|
1597
1588
|
function shouldUpdateVideo(prevProps, props) {
|
|
1598
1589
|
// A changing video should always trigger an update
|
|
1599
1590
|
if (prevProps.videoId !== props.videoId) {
|
|
1600
1591
|
return true;
|
|
1601
|
-
}
|
|
1602
|
-
// update.
|
|
1603
|
-
|
|
1592
|
+
}
|
|
1604
1593
|
|
|
1594
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
// update.
|
|
1605
1596
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1606
1597
|
var vars = props.opts.playerVars || {};
|
|
1598
|
+
|
|
1607
1599
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1608
1600
|
}
|
|
1609
|
-
/**
|
|
1610
|
-
* Neutralize 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
|
-
*/
|
|
1616
|
-
|
|
1617
1601
|
|
|
1602
|
+
/**
|
|
1603
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1604
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1605
|
+
* player reset is necessary.
|
|
1606
|
+
*
|
|
1607
|
+
* @param {Object} opts
|
|
1608
|
+
*/
|
|
1618
1609
|
function filterResetOptions(opts) {
|
|
1619
|
-
return
|
|
1620
|
-
playerVars:
|
|
1610
|
+
return _extends({}, opts, {
|
|
1611
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1621
1612
|
autoplay: 0,
|
|
1622
1613
|
start: 0,
|
|
1623
1614
|
end: 0
|
|
1624
|
-
}
|
|
1615
|
+
})
|
|
1625
1616
|
});
|
|
1626
1617
|
}
|
|
1627
|
-
/**
|
|
1628
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1629
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1630
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1631
|
-
* those.
|
|
1632
|
-
*
|
|
1633
|
-
* @param {Object} prevProps
|
|
1634
|
-
* @param {Object} props
|
|
1635
|
-
*/
|
|
1636
|
-
|
|
1637
1618
|
|
|
1619
|
+
/**
|
|
1620
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1621
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1622
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1623
|
+
* those.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {Object} prevProps
|
|
1626
|
+
* @param {Object} props
|
|
1627
|
+
*/
|
|
1638
1628
|
function shouldResetPlayer(prevProps, props) {
|
|
1639
1629
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1640
1630
|
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Check whether a props change should result in an id or className update.
|
|
1643
|
-
*
|
|
1644
|
-
* @param {Object} prevProps
|
|
1645
|
-
* @param {Object} props
|
|
1646
|
-
*/
|
|
1647
|
-
|
|
1648
1631
|
|
|
1632
|
+
/**
|
|
1633
|
+
* Check whether a props change should result in an id or className update.
|
|
1634
|
+
*
|
|
1635
|
+
* @param {Object} prevProps
|
|
1636
|
+
* @param {Object} props
|
|
1637
|
+
*/
|
|
1649
1638
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1650
1639
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1651
1640
|
}
|
|
1652
1641
|
|
|
1653
|
-
var YouTube =
|
|
1642
|
+
var YouTube = function (_React$Component) {
|
|
1654
1643
|
_inherits(YouTube, _React$Component);
|
|
1655
1644
|
|
|
1656
|
-
var _super = _createSuper(YouTube);
|
|
1657
|
-
|
|
1658
|
-
/**
|
|
1659
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1660
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1661
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1662
|
-
*/
|
|
1663
1645
|
function YouTube(props) {
|
|
1664
|
-
var _this;
|
|
1665
|
-
|
|
1666
1646
|
_classCallCheck(this, YouTube);
|
|
1667
1647
|
|
|
1668
|
-
_this =
|
|
1648
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1669
1649
|
|
|
1670
|
-
|
|
1650
|
+
_this.onPlayerReady = function (event) {
|
|
1671
1651
|
return _this.props.onReady(event);
|
|
1672
|
-
}
|
|
1652
|
+
};
|
|
1673
1653
|
|
|
1674
|
-
|
|
1654
|
+
_this.onPlayerError = function (event) {
|
|
1675
1655
|
return _this.props.onError(event);
|
|
1676
|
-
}
|
|
1656
|
+
};
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerStateChange = function (event) {
|
|
1679
1659
|
_this.props.onStateChange(event);
|
|
1680
|
-
|
|
1681
1660
|
switch (event.data) {
|
|
1661
|
+
|
|
1682
1662
|
case YouTube.PlayerState.ENDED:
|
|
1683
1663
|
_this.props.onEnd(event);
|
|
1684
|
-
|
|
1685
1664
|
break;
|
|
1686
1665
|
|
|
1687
1666
|
case YouTube.PlayerState.PLAYING:
|
|
1688
1667
|
_this.props.onPlay(event);
|
|
1689
|
-
|
|
1690
1668
|
break;
|
|
1691
1669
|
|
|
1692
1670
|
case YouTube.PlayerState.PAUSED:
|
|
1693
1671
|
_this.props.onPause(event);
|
|
1694
|
-
|
|
1695
1672
|
break;
|
|
1696
1673
|
}
|
|
1697
|
-
}
|
|
1674
|
+
};
|
|
1698
1675
|
|
|
1699
|
-
|
|
1676
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1700
1677
|
return _this.props.onPlaybackRateChange(event);
|
|
1701
|
-
}
|
|
1678
|
+
};
|
|
1702
1679
|
|
|
1703
|
-
|
|
1680
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1704
1681
|
return _this.props.onPlaybackQualityChange(event);
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.createPlayer = function () {
|
|
1708
1685
|
// do not attempt to create a player server-side, it won't work
|
|
1709
|
-
if (typeof document === 'undefined') return;
|
|
1710
|
-
|
|
1711
|
-
var playerOpts =
|
|
1686
|
+
if (typeof document === 'undefined') return;
|
|
1687
|
+
// create player
|
|
1688
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1712
1689
|
// preload the `videoId` video if one is already given
|
|
1713
1690
|
videoId: _this.props.videoId
|
|
1714
1691
|
});
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1692
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1693
|
+
// attach event handlers
|
|
1718
1694
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1719
|
-
|
|
1720
1695
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1721
|
-
|
|
1722
1696
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1723
|
-
|
|
1724
1697
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1725
|
-
|
|
1726
1698
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1727
|
-
}
|
|
1699
|
+
};
|
|
1728
1700
|
|
|
1729
|
-
|
|
1701
|
+
_this.resetPlayer = function () {
|
|
1730
1702
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1731
|
-
}
|
|
1703
|
+
};
|
|
1732
1704
|
|
|
1733
|
-
|
|
1705
|
+
_this.updatePlayer = function () {
|
|
1734
1706
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1735
1707
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1736
1708
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1737
1709
|
});
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1741
|
-
return _this.internalPlayer;
|
|
1742
|
-
});
|
|
1710
|
+
};
|
|
1743
1711
|
|
|
1744
|
-
|
|
1712
|
+
_this.updateVideo = function () {
|
|
1745
1713
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1746
1714
|
_this.internalPlayer.stopVideo();
|
|
1747
|
-
|
|
1748
1715
|
return;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1716
|
+
}
|
|
1751
1717
|
|
|
1718
|
+
// set queueing options
|
|
1752
1719
|
var autoplay = false;
|
|
1753
1720
|
var opts = {
|
|
1754
1721
|
videoId: _this.props.videoId
|
|
1755
1722
|
};
|
|
1756
|
-
|
|
1757
1723
|
if ('playerVars' in _this.props.opts) {
|
|
1758
1724
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1759
|
-
|
|
1760
1725
|
if ('start' in _this.props.opts.playerVars) {
|
|
1761
1726
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1762
1727
|
}
|
|
1763
|
-
|
|
1764
1728
|
if ('end' in _this.props.opts.playerVars) {
|
|
1765
1729
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1766
1730
|
}
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1731
|
+
}
|
|
1769
1732
|
|
|
1733
|
+
// if autoplay is enabled loadVideoById
|
|
1770
1734
|
if (autoplay) {
|
|
1771
1735
|
_this.internalPlayer.loadVideoById(opts);
|
|
1772
|
-
|
|
1773
1736
|
return;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
|
|
1737
|
+
}
|
|
1738
|
+
// default behaviour just cues the video
|
|
1777
1739
|
_this.internalPlayer.cueVideoById(opts);
|
|
1778
|
-
}
|
|
1740
|
+
};
|
|
1779
1741
|
|
|
1780
|
-
|
|
1742
|
+
_this.refContainer = function (container) {
|
|
1781
1743
|
_this.container = container;
|
|
1782
|
-
}
|
|
1744
|
+
};
|
|
1783
1745
|
|
|
1784
1746
|
_this.container = null;
|
|
1785
1747
|
_this.internalPlayer = null;
|
|
1786
1748
|
return _this;
|
|
1787
1749
|
}
|
|
1788
1750
|
|
|
1751
|
+
/**
|
|
1752
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1753
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1754
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1755
|
+
*/
|
|
1756
|
+
|
|
1757
|
+
|
|
1789
1758
|
_createClass(YouTube, [{
|
|
1790
|
-
key:
|
|
1759
|
+
key: 'componentDidMount',
|
|
1791
1760
|
value: function componentDidMount() {
|
|
1792
1761
|
this.createPlayer();
|
|
1793
1762
|
}
|
|
1794
1763
|
}, {
|
|
1795
|
-
key:
|
|
1764
|
+
key: 'componentDidUpdate',
|
|
1796
1765
|
value: function componentDidUpdate(prevProps) {
|
|
1797
1766
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1798
1767
|
this.updatePlayer();
|
|
@@ -1807,58 +1776,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1807
1776
|
}
|
|
1808
1777
|
}
|
|
1809
1778
|
}, {
|
|
1810
|
-
key:
|
|
1779
|
+
key: 'componentWillUnmount',
|
|
1811
1780
|
value: function componentWillUnmount() {
|
|
1812
|
-
/**
|
|
1813
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1814
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1815
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1816
|
-
* this method isn't quick enough to reset the container element.
|
|
1781
|
+
/**
|
|
1782
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1783
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1784
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1785
|
+
* this method isn't quick enough to reset the container element.
|
|
1817
1786
|
*/
|
|
1818
1787
|
this.internalPlayer.destroy();
|
|
1819
1788
|
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
*
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1792
|
+
*
|
|
1793
|
+
* @param {Object} event
|
|
1794
|
+
* @param {Object} target - player object
|
|
1795
|
+
*/
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1800
|
+
*
|
|
1801
|
+
* @param {Object} event
|
|
1802
|
+
* @param {Integer} data - error type
|
|
1803
|
+
* @param {Object} target - player object
|
|
1804
|
+
*/
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1809
|
+
*
|
|
1810
|
+
* @param {Object} event
|
|
1811
|
+
* @param {Integer} data - status change type
|
|
1812
|
+
* @param {Object} target - actual YT player
|
|
1813
|
+
*/
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1818
|
+
*
|
|
1819
|
+
* @param {Object} event
|
|
1820
|
+
* @param {Float} data - playback rate
|
|
1821
|
+
* @param {Object} target - actual YT player
|
|
1822
|
+
*/
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1827
|
+
*
|
|
1828
|
+
* @param {Object} event
|
|
1829
|
+
* @param {String} data - playback quality
|
|
1830
|
+
* @param {Object} target - actual YT player
|
|
1831
|
+
*/
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1836
|
+
*/
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1841
|
+
*/
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1846
|
+
* React should update this automatically but since the Youtube Player API
|
|
1847
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1853
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1854
|
+
* Youtube Player API methods to update the video.
|
|
1825
1855
|
*/
|
|
1826
1856
|
|
|
1827
1857
|
}, {
|
|
1828
|
-
key:
|
|
1858
|
+
key: 'render',
|
|
1829
1859
|
value: function render() {
|
|
1830
|
-
return
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
id: this.props.id,
|
|
1834
|
-
|
|
1835
|
-
ref: this.refContainer
|
|
1836
|
-
}));
|
|
1860
|
+
return React__default.createElement(
|
|
1861
|
+
'div',
|
|
1862
|
+
{ className: this.props.containerClassName },
|
|
1863
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1864
|
+
);
|
|
1837
1865
|
}
|
|
1838
1866
|
}]);
|
|
1839
1867
|
|
|
1840
1868
|
return YouTube;
|
|
1841
|
-
}(
|
|
1842
|
-
|
|
1843
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1844
|
-
UNSTARTED: -1,
|
|
1845
|
-
ENDED: 0,
|
|
1846
|
-
PLAYING: 1,
|
|
1847
|
-
PAUSED: 2,
|
|
1848
|
-
BUFFERING: 3,
|
|
1849
|
-
CUED: 5
|
|
1850
|
-
});
|
|
1869
|
+
}(React__default.Component);
|
|
1851
1870
|
|
|
1852
1871
|
YouTube.propTypes = {
|
|
1853
1872
|
videoId: PropTypes.string,
|
|
1873
|
+
|
|
1854
1874
|
// custom ID for player element
|
|
1855
1875
|
id: PropTypes.string,
|
|
1876
|
+
|
|
1856
1877
|
// custom class name for player element
|
|
1857
1878
|
className: PropTypes.string,
|
|
1858
1879
|
// custom class name for player container element
|
|
1859
1880
|
containerClassName: PropTypes.string,
|
|
1881
|
+
|
|
1860
1882
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1861
1883
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
|
+
|
|
1862
1885
|
// event subscriptions
|
|
1863
1886
|
onReady: PropTypes.func,
|
|
1864
1887
|
onError: PropTypes.func,
|
|
@@ -1870,7 +1893,6 @@ YouTube.propTypes = {
|
|
|
1870
1893
|
onPlaybackQualityChange: PropTypes.func
|
|
1871
1894
|
};
|
|
1872
1895
|
YouTube.defaultProps = {
|
|
1873
|
-
videoId: null,
|
|
1874
1896
|
id: null,
|
|
1875
1897
|
className: null,
|
|
1876
1898
|
opts: {},
|
|
@@ -1884,6 +1906,14 @@ YouTube.defaultProps = {
|
|
|
1884
1906
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1885
1907
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1886
1908
|
};
|
|
1909
|
+
YouTube.PlayerState = {
|
|
1910
|
+
UNSTARTED: -1,
|
|
1911
|
+
ENDED: 0,
|
|
1912
|
+
PLAYING: 1,
|
|
1913
|
+
PAUSED: 2,
|
|
1914
|
+
BUFFERING: 3,
|
|
1915
|
+
CUED: 5
|
|
1916
|
+
};
|
|
1887
1917
|
|
|
1888
1918
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1889
1919
|
var url = _ref.url;
|
|
@@ -1983,11 +2013,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1983
2013
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1984
2014
|
};
|
|
1985
2015
|
|
|
1986
|
-
return
|
|
2016
|
+
return React__default.createElement(
|
|
1987
2017
|
'div',
|
|
1988
2018
|
{ id: 'fluid-video-container' },
|
|
1989
|
-
|
|
1990
|
-
|
|
2019
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2020
|
+
React__default.createElement(
|
|
1991
2021
|
'style',
|
|
1992
2022
|
{ jsx: 'true' },
|
|
1993
2023
|
'\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 '
|
|
@@ -2000,20 +2030,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2000
2030
|
content = _ref.content,
|
|
2001
2031
|
getSerializers = _ref.getSerializers;
|
|
2002
2032
|
|
|
2003
|
-
return
|
|
2033
|
+
return React__default.createElement(
|
|
2004
2034
|
'article',
|
|
2005
2035
|
{ className: 'sidebar' },
|
|
2006
|
-
|
|
2036
|
+
React__default.createElement(
|
|
2007
2037
|
'div',
|
|
2008
2038
|
null,
|
|
2009
|
-
|
|
2039
|
+
React__default.createElement(
|
|
2010
2040
|
'h3',
|
|
2011
2041
|
null,
|
|
2012
2042
|
caption
|
|
2013
2043
|
),
|
|
2014
|
-
|
|
2044
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2015
2045
|
),
|
|
2016
|
-
|
|
2046
|
+
React__default.createElement(
|
|
2017
2047
|
'style',
|
|
2018
2048
|
{ jsx: 'true' },
|
|
2019
2049
|
'\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 '
|
|
@@ -2024,18 +2054,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2024
2054
|
var TableShow = function TableShow(_ref) {
|
|
2025
2055
|
var rows = _ref.rows;
|
|
2026
2056
|
|
|
2027
|
-
return
|
|
2057
|
+
return React__default.createElement(
|
|
2028
2058
|
Table,
|
|
2029
2059
|
{ bordered: true, hover: true, responsive: true },
|
|
2030
|
-
|
|
2060
|
+
React__default.createElement(
|
|
2031
2061
|
'tbody',
|
|
2032
2062
|
null,
|
|
2033
2063
|
rows && rows.map(function (row) {
|
|
2034
|
-
return
|
|
2064
|
+
return React__default.createElement(
|
|
2035
2065
|
'tr',
|
|
2036
2066
|
{ key: row._key },
|
|
2037
2067
|
row.cells && row.cells.map(function (cell, index) {
|
|
2038
|
-
return cell &&
|
|
2068
|
+
return cell && React__default.createElement(
|
|
2039
2069
|
'td',
|
|
2040
2070
|
{ key: index },
|
|
2041
2071
|
cell
|
|
@@ -2138,18 +2168,18 @@ var Media = function Media(_ref) {
|
|
|
2138
2168
|
margin: imageMargin
|
|
2139
2169
|
};
|
|
2140
2170
|
|
|
2141
|
-
return
|
|
2171
|
+
return React__default.createElement(
|
|
2142
2172
|
Figure$1,
|
|
2143
2173
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2144
|
-
|
|
2174
|
+
React__default.createElement(
|
|
2145
2175
|
'a',
|
|
2146
2176
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2147
|
-
|
|
2177
|
+
React__default.createElement(
|
|
2148
2178
|
LazyLoad,
|
|
2149
2179
|
{ once: true },
|
|
2150
|
-
|
|
2180
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2151
2181
|
),
|
|
2152
|
-
caption &&
|
|
2182
|
+
caption && React__default.createElement(
|
|
2153
2183
|
Figure$1.Caption,
|
|
2154
2184
|
{ className: 'media-caption' },
|
|
2155
2185
|
caption
|
|
@@ -2157,9 +2187,9 @@ var Media = function Media(_ref) {
|
|
|
2157
2187
|
)
|
|
2158
2188
|
);
|
|
2159
2189
|
} else if (caption && caption !== '') {
|
|
2160
|
-
return
|
|
2190
|
+
return React__default.createElement(
|
|
2161
2191
|
'a',
|
|
2162
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2192
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2163
2193
|
href: uploadDoc.asset.url + '?dl='
|
|
2164
2194
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2165
2195
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2177,10 +2207,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2177
2207
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2178
2208
|
|
|
2179
2209
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2180
|
-
return
|
|
2210
|
+
return React__default.createElement(
|
|
2181
2211
|
'div',
|
|
2182
2212
|
{ className: 'd-block text-center mb-3' },
|
|
2183
|
-
|
|
2213
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2184
2214
|
);
|
|
2185
2215
|
};
|
|
2186
2216
|
|
|
@@ -2215,7 +2245,7 @@ var Video = function Video(_ref) {
|
|
|
2215
2245
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2216
2246
|
//console.log('success:', success.ref)
|
|
2217
2247
|
var player = success.ref;
|
|
2218
|
-
if (_typeof
|
|
2248
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2219
2249
|
player.ima3.settings.debug = true;
|
|
2220
2250
|
if (targeting.content_placement && targeting.document_url) {
|
|
2221
2251
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2313,44 +2343,44 @@ var Video = function Video(_ref) {
|
|
|
2313
2343
|
|
|
2314
2344
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2315
2345
|
if (videoID) {
|
|
2316
|
-
return
|
|
2346
|
+
return React__default.createElement(
|
|
2317
2347
|
'div',
|
|
2318
2348
|
null,
|
|
2319
|
-
|
|
2349
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2320
2350
|
onSuccess: onVideoSuccess,
|
|
2321
2351
|
accountId: accountIDs.brightcove.accountId,
|
|
2322
2352
|
videoId: videoID,
|
|
2323
2353
|
playerId: accountIDs.brightcove.playerId,
|
|
2324
2354
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2325
2355
|
}),
|
|
2326
|
-
|
|
2356
|
+
React__default.createElement(
|
|
2327
2357
|
'style',
|
|
2328
2358
|
{ jsx: 'true' },
|
|
2329
2359
|
'\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 '
|
|
2330
2360
|
)
|
|
2331
2361
|
);
|
|
2332
2362
|
} else if (playlistID) {
|
|
2333
|
-
return
|
|
2363
|
+
return React__default.createElement(
|
|
2334
2364
|
'div',
|
|
2335
2365
|
null,
|
|
2336
|
-
|
|
2366
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2337
2367
|
accountId: accountIDs.brightcove.accountId,
|
|
2338
2368
|
playlistId: playlistID,
|
|
2339
2369
|
playerId: accountIDs.brightcove.playerId,
|
|
2340
2370
|
onSuccess: onVideoSuccess,
|
|
2341
2371
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2342
2372
|
}),
|
|
2343
|
-
|
|
2373
|
+
React__default.createElement(
|
|
2344
2374
|
'style',
|
|
2345
2375
|
{ jsx: 'true' },
|
|
2346
2376
|
'\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 '
|
|
2347
2377
|
)
|
|
2348
2378
|
);
|
|
2349
2379
|
} else if (experienceID) {
|
|
2350
|
-
return
|
|
2380
|
+
return React__default.createElement(
|
|
2351
2381
|
'div',
|
|
2352
2382
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2353
|
-
videoLoaded &&
|
|
2383
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2354
2384
|
);
|
|
2355
2385
|
}
|
|
2356
2386
|
return null;
|
|
@@ -2563,9 +2593,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2563
2593
|
});
|
|
2564
2594
|
|
|
2565
2595
|
unwrapExports(props);
|
|
2566
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2567
|
-
props.defaultProps;
|
|
2568
|
-
props.propTypes;
|
|
2596
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2597
|
+
var props_2 = props.defaultProps;
|
|
2598
|
+
var props_3 = props.propTypes;
|
|
2569
2599
|
|
|
2570
2600
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2571
2601
|
return isNonNullObject(value)
|
|
@@ -2730,17 +2760,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2730
2760
|
|
|
2731
2761
|
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; }
|
|
2732
2762
|
|
|
2733
|
-
function
|
|
2734
|
-
|
|
2735
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2763
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2736
2764
|
|
|
2737
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2765
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2738
2766
|
|
|
2739
|
-
function
|
|
2740
|
-
|
|
2741
|
-
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; }
|
|
2742
|
-
|
|
2743
|
-
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; }
|
|
2767
|
+
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; }
|
|
2744
2768
|
|
|
2745
2769
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2746
2770
|
|
|
@@ -2870,12 +2894,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2870
2894
|
|
|
2871
2895
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2872
2896
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2873
|
-
|
|
2874
|
-
var
|
|
2875
|
-
|
|
2897
|
+
var _iteratorNormalCompletion = true;
|
|
2898
|
+
var _didIteratorError = false;
|
|
2899
|
+
var _iteratorError = undefined;
|
|
2876
2900
|
|
|
2877
2901
|
try {
|
|
2878
|
-
for (_iterator.
|
|
2902
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2879
2903
|
var p = _step.value;
|
|
2880
2904
|
|
|
2881
2905
|
if (props$1[p]) {
|
|
@@ -2890,9 +2914,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2890
2914
|
}
|
|
2891
2915
|
}
|
|
2892
2916
|
} catch (err) {
|
|
2893
|
-
|
|
2917
|
+
_didIteratorError = true;
|
|
2918
|
+
_iteratorError = err;
|
|
2894
2919
|
} finally {
|
|
2895
|
-
|
|
2920
|
+
try {
|
|
2921
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2922
|
+
_iterator["return"]();
|
|
2923
|
+
}
|
|
2924
|
+
} finally {
|
|
2925
|
+
if (_didIteratorError) {
|
|
2926
|
+
throw _iteratorError;
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2896
2929
|
}
|
|
2897
2930
|
|
|
2898
2931
|
return config;
|
|
@@ -2957,7 +2990,7 @@ function isEqual(a, b) {
|
|
|
2957
2990
|
return true;
|
|
2958
2991
|
}
|
|
2959
2992
|
|
|
2960
|
-
if ((0,
|
|
2993
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2961
2994
|
return true;
|
|
2962
2995
|
}
|
|
2963
2996
|
|
|
@@ -3000,17 +3033,17 @@ function isMediaStream(url) {
|
|
|
3000
3033
|
});
|
|
3001
3034
|
|
|
3002
3035
|
unwrapExports(utils);
|
|
3003
|
-
utils.parseStartTime;
|
|
3004
|
-
utils.parseEndTime;
|
|
3005
|
-
utils.randomString;
|
|
3006
|
-
utils.queryString;
|
|
3007
|
-
utils.getSDK;
|
|
3008
|
-
utils.getConfig;
|
|
3009
|
-
utils.omit;
|
|
3010
|
-
utils.callPlayer;
|
|
3011
|
-
utils.isObject;
|
|
3012
|
-
utils.isEqual;
|
|
3013
|
-
utils.isMediaStream;
|
|
3036
|
+
var utils_1 = utils.parseStartTime;
|
|
3037
|
+
var utils_2 = utils.parseEndTime;
|
|
3038
|
+
var utils_3 = utils.randomString;
|
|
3039
|
+
var utils_4 = utils.queryString;
|
|
3040
|
+
var utils_5 = utils.getSDK;
|
|
3041
|
+
var utils_6 = utils.getConfig;
|
|
3042
|
+
var utils_7 = utils.omit;
|
|
3043
|
+
var utils_8 = utils.callPlayer;
|
|
3044
|
+
var utils_9 = utils.isObject;
|
|
3045
|
+
var utils_10 = utils.isEqual;
|
|
3046
|
+
var utils_11 = utils.isMediaStream;
|
|
3014
3047
|
|
|
3015
3048
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3016
3049
|
|
|
@@ -3019,7 +3052,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3019
3052
|
});
|
|
3020
3053
|
exports["default"] = void 0;
|
|
3021
3054
|
|
|
3022
|
-
var _react = _interopRequireWildcard(
|
|
3055
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3023
3056
|
|
|
3024
3057
|
|
|
3025
3058
|
|
|
@@ -3039,16 +3072,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3039
3072
|
|
|
3040
3073
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3041
3074
|
|
|
3042
|
-
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); }; }
|
|
3043
|
-
|
|
3044
3075
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3045
3076
|
|
|
3046
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3047
|
-
|
|
3048
|
-
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; } }
|
|
3049
|
-
|
|
3050
3077
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3051
3078
|
|
|
3079
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3080
|
+
|
|
3052
3081
|
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); }
|
|
3053
3082
|
|
|
3054
3083
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3057,12 +3086,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3057
3086
|
|
|
3058
3087
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3059
3088
|
|
|
3060
|
-
var Player =
|
|
3089
|
+
var Player =
|
|
3090
|
+
/*#__PURE__*/
|
|
3091
|
+
function (_Component) {
|
|
3061
3092
|
_inherits(Player, _Component);
|
|
3062
3093
|
|
|
3063
|
-
var _super = _createSuper(Player);
|
|
3064
|
-
|
|
3065
3094
|
function Player() {
|
|
3095
|
+
var _getPrototypeOf2;
|
|
3096
|
+
|
|
3066
3097
|
var _this;
|
|
3067
3098
|
|
|
3068
3099
|
_classCallCheck(this, Player);
|
|
@@ -3071,7 +3102,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3071
3102
|
_args[_key] = arguments[_key];
|
|
3072
3103
|
}
|
|
3073
3104
|
|
|
3074
|
-
_this =
|
|
3105
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3075
3106
|
|
|
3076
3107
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3077
3108
|
|
|
@@ -3396,7 +3427,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3396
3427
|
return null;
|
|
3397
3428
|
}
|
|
3398
3429
|
|
|
3399
|
-
return
|
|
3430
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3400
3431
|
ref: this.ref,
|
|
3401
3432
|
onReady: this.handleReady,
|
|
3402
3433
|
onPlay: this.handlePlay,
|
|
@@ -3429,7 +3460,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3429
3460
|
});
|
|
3430
3461
|
exports["default"] = createSinglePlayer;
|
|
3431
3462
|
|
|
3432
|
-
var _react = _interopRequireWildcard(
|
|
3463
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3433
3464
|
|
|
3434
3465
|
|
|
3435
3466
|
|
|
@@ -3457,16 +3488,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3457
3488
|
|
|
3458
3489
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3459
3490
|
|
|
3460
|
-
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); }; }
|
|
3461
|
-
|
|
3462
3491
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3463
3492
|
|
|
3464
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3465
|
-
|
|
3466
|
-
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; } }
|
|
3467
|
-
|
|
3468
3493
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3469
3494
|
|
|
3495
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3496
|
+
|
|
3470
3497
|
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); }
|
|
3471
3498
|
|
|
3472
3499
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3478,12 +3505,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3478
3505
|
function createSinglePlayer(activePlayer) {
|
|
3479
3506
|
var _class, _temp;
|
|
3480
3507
|
|
|
3481
|
-
return _temp = _class =
|
|
3508
|
+
return _temp = _class =
|
|
3509
|
+
/*#__PURE__*/
|
|
3510
|
+
function (_Component) {
|
|
3482
3511
|
_inherits(SinglePlayer, _Component);
|
|
3483
3512
|
|
|
3484
|
-
var _super = _createSuper(SinglePlayer);
|
|
3485
|
-
|
|
3486
3513
|
function SinglePlayer() {
|
|
3514
|
+
var _getPrototypeOf2;
|
|
3515
|
+
|
|
3487
3516
|
var _this;
|
|
3488
3517
|
|
|
3489
3518
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3492,7 +3521,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3492
3521
|
args[_key] = arguments[_key];
|
|
3493
3522
|
}
|
|
3494
3523
|
|
|
3495
|
-
_this =
|
|
3524
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3496
3525
|
|
|
3497
3526
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3498
3527
|
|
|
@@ -3560,12 +3589,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3560
3589
|
height = _this$props.height,
|
|
3561
3590
|
Wrapper = _this$props.wrapper;
|
|
3562
3591
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3563
|
-
return
|
|
3592
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3564
3593
|
style: _objectSpread({}, style, {
|
|
3565
3594
|
width: width,
|
|
3566
3595
|
height: height
|
|
3567
3596
|
})
|
|
3568
|
-
}, otherProps),
|
|
3597
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3569
3598
|
ref: this.ref,
|
|
3570
3599
|
activePlayer: activePlayer,
|
|
3571
3600
|
config: this.config
|
|
@@ -3587,7 +3616,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3587
3616
|
});
|
|
3588
3617
|
exports["default"] = exports.YouTube = void 0;
|
|
3589
3618
|
|
|
3590
|
-
var _react = _interopRequireWildcard(
|
|
3619
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3591
3620
|
|
|
3592
3621
|
|
|
3593
3622
|
|
|
@@ -3611,31 +3640,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3611
3640
|
|
|
3612
3641
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3613
3642
|
|
|
3614
|
-
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); }; }
|
|
3615
|
-
|
|
3616
3643
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3617
3644
|
|
|
3618
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3619
|
-
|
|
3620
|
-
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; } }
|
|
3621
|
-
|
|
3622
3645
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3623
3646
|
|
|
3647
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3648
|
+
|
|
3624
3649
|
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); }
|
|
3625
3650
|
|
|
3626
3651
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3627
3652
|
|
|
3628
3653
|
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; }
|
|
3629
3654
|
|
|
3630
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3631
|
-
|
|
3632
|
-
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."); }
|
|
3655
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3633
3656
|
|
|
3634
|
-
function
|
|
3657
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3635
3658
|
|
|
3636
|
-
function
|
|
3637
|
-
|
|
3638
|
-
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; }
|
|
3659
|
+
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; }
|
|
3639
3660
|
|
|
3640
3661
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3641
3662
|
|
|
@@ -3660,12 +3681,14 @@ function parsePlaylist(url) {
|
|
|
3660
3681
|
return {};
|
|
3661
3682
|
}
|
|
3662
3683
|
|
|
3663
|
-
var YouTube =
|
|
3684
|
+
var YouTube =
|
|
3685
|
+
/*#__PURE__*/
|
|
3686
|
+
function (_Component) {
|
|
3664
3687
|
_inherits(YouTube, _Component);
|
|
3665
3688
|
|
|
3666
|
-
var _super = _createSuper(YouTube);
|
|
3667
|
-
|
|
3668
3689
|
function YouTube() {
|
|
3690
|
+
var _getPrototypeOf2;
|
|
3691
|
+
|
|
3669
3692
|
var _this;
|
|
3670
3693
|
|
|
3671
3694
|
_classCallCheck(this, YouTube);
|
|
@@ -3674,7 +3697,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3674
3697
|
args[_key] = arguments[_key];
|
|
3675
3698
|
}
|
|
3676
3699
|
|
|
3677
|
-
_this =
|
|
3700
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3678
3701
|
|
|
3679
3702
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3680
3703
|
|
|
@@ -3862,9 +3885,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3862
3885
|
height: '100%',
|
|
3863
3886
|
display: display
|
|
3864
3887
|
};
|
|
3865
|
-
return
|
|
3888
|
+
return _react["default"].createElement("div", {
|
|
3866
3889
|
style: style
|
|
3867
|
-
},
|
|
3890
|
+
}, _react["default"].createElement("div", {
|
|
3868
3891
|
ref: this.ref
|
|
3869
3892
|
}));
|
|
3870
3893
|
}
|
|
@@ -3887,7 +3910,7 @@ exports["default"] = _default;
|
|
|
3887
3910
|
});
|
|
3888
3911
|
|
|
3889
3912
|
unwrapExports(YouTube_1);
|
|
3890
|
-
YouTube_1.YouTube;
|
|
3913
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
3891
3914
|
|
|
3892
3915
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
3893
3916
|
|
|
@@ -3896,7 +3919,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3896
3919
|
});
|
|
3897
3920
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3898
3921
|
|
|
3899
|
-
var _react = _interopRequireWildcard(
|
|
3922
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3900
3923
|
|
|
3901
3924
|
|
|
3902
3925
|
|
|
@@ -3920,16 +3943,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3920
3943
|
|
|
3921
3944
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3922
3945
|
|
|
3923
|
-
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); }; }
|
|
3924
|
-
|
|
3925
3946
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3926
3947
|
|
|
3927
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3928
|
-
|
|
3929
|
-
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; } }
|
|
3930
|
-
|
|
3931
3948
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3932
3949
|
|
|
3950
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3951
|
+
|
|
3933
3952
|
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); }
|
|
3934
3953
|
|
|
3935
3954
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3938,14 +3957,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3938
3957
|
|
|
3939
3958
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3940
3959
|
var SDK_GLOBAL = 'SC';
|
|
3941
|
-
var MATCH_URL = /(
|
|
3960
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3942
3961
|
|
|
3943
|
-
var SoundCloud =
|
|
3962
|
+
var SoundCloud =
|
|
3963
|
+
/*#__PURE__*/
|
|
3964
|
+
function (_Component) {
|
|
3944
3965
|
_inherits(SoundCloud, _Component);
|
|
3945
3966
|
|
|
3946
|
-
var _super = _createSuper(SoundCloud);
|
|
3947
|
-
|
|
3948
3967
|
function SoundCloud() {
|
|
3968
|
+
var _getPrototypeOf2;
|
|
3969
|
+
|
|
3949
3970
|
var _this;
|
|
3950
3971
|
|
|
3951
3972
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3954,7 +3975,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3954
3975
|
args[_key] = arguments[_key];
|
|
3955
3976
|
}
|
|
3956
3977
|
|
|
3957
|
-
_this =
|
|
3978
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3958
3979
|
|
|
3959
3980
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3960
3981
|
|
|
@@ -4075,7 +4096,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4075
4096
|
height: '100%',
|
|
4076
4097
|
display: display
|
|
4077
4098
|
};
|
|
4078
|
-
return
|
|
4099
|
+
return _react["default"].createElement("iframe", {
|
|
4079
4100
|
ref: this.ref,
|
|
4080
4101
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4081
4102
|
style: style,
|
|
@@ -4104,7 +4125,7 @@ exports["default"] = _default;
|
|
|
4104
4125
|
});
|
|
4105
4126
|
|
|
4106
4127
|
unwrapExports(SoundCloud_1);
|
|
4107
|
-
SoundCloud_1.SoundCloud;
|
|
4128
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4108
4129
|
|
|
4109
4130
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4110
4131
|
|
|
@@ -4113,7 +4134,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4113
4134
|
});
|
|
4114
4135
|
exports["default"] = exports.Vimeo = void 0;
|
|
4115
4136
|
|
|
4116
|
-
var _react = _interopRequireWildcard(
|
|
4137
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4117
4138
|
|
|
4118
4139
|
|
|
4119
4140
|
|
|
@@ -4137,16 +4158,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4137
4158
|
|
|
4138
4159
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4139
4160
|
|
|
4140
|
-
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); }; }
|
|
4141
|
-
|
|
4142
4161
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4143
4162
|
|
|
4144
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4145
|
-
|
|
4146
|
-
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; } }
|
|
4147
|
-
|
|
4148
4163
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4149
4164
|
|
|
4165
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4166
|
+
|
|
4150
4167
|
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); }
|
|
4151
4168
|
|
|
4152
4169
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4158,12 +4175,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4158
4175
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4159
4176
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4160
4177
|
|
|
4161
|
-
var Vimeo =
|
|
4178
|
+
var Vimeo =
|
|
4179
|
+
/*#__PURE__*/
|
|
4180
|
+
function (_Component) {
|
|
4162
4181
|
_inherits(Vimeo, _Component);
|
|
4163
4182
|
|
|
4164
|
-
var _super = _createSuper(Vimeo);
|
|
4165
|
-
|
|
4166
4183
|
function Vimeo() {
|
|
4184
|
+
var _getPrototypeOf2;
|
|
4185
|
+
|
|
4167
4186
|
var _this;
|
|
4168
4187
|
|
|
4169
4188
|
_classCallCheck(this, Vimeo);
|
|
@@ -4172,7 +4191,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4172
4191
|
args[_key] = arguments[_key];
|
|
4173
4192
|
}
|
|
4174
4193
|
|
|
4175
|
-
_this =
|
|
4194
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4176
4195
|
|
|
4177
4196
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4178
4197
|
|
|
@@ -4329,7 +4348,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4329
4348
|
overflow: 'hidden',
|
|
4330
4349
|
display: display
|
|
4331
4350
|
};
|
|
4332
|
-
return
|
|
4351
|
+
return _react["default"].createElement("div", {
|
|
4333
4352
|
key: this.props.url,
|
|
4334
4353
|
ref: this.ref,
|
|
4335
4354
|
style: style
|
|
@@ -4360,7 +4379,7 @@ exports["default"] = _default;
|
|
|
4360
4379
|
});
|
|
4361
4380
|
|
|
4362
4381
|
unwrapExports(Vimeo_1);
|
|
4363
|
-
Vimeo_1.Vimeo;
|
|
4382
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4364
4383
|
|
|
4365
4384
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4366
4385
|
|
|
@@ -4369,7 +4388,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4369
4388
|
});
|
|
4370
4389
|
exports["default"] = exports.Facebook = void 0;
|
|
4371
4390
|
|
|
4372
|
-
var _react = _interopRequireWildcard(
|
|
4391
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4373
4392
|
|
|
4374
4393
|
|
|
4375
4394
|
|
|
@@ -4389,16 +4408,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4389
4408
|
|
|
4390
4409
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4391
4410
|
|
|
4392
|
-
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); }; }
|
|
4393
|
-
|
|
4394
4411
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4395
4412
|
|
|
4396
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4397
|
-
|
|
4398
|
-
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; } }
|
|
4399
|
-
|
|
4400
4413
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4401
4414
|
|
|
4415
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4416
|
+
|
|
4402
4417
|
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); }
|
|
4403
4418
|
|
|
4404
4419
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4411,12 +4426,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4411
4426
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4412
4427
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4413
4428
|
|
|
4414
|
-
var Facebook =
|
|
4429
|
+
var Facebook =
|
|
4430
|
+
/*#__PURE__*/
|
|
4431
|
+
function (_Component) {
|
|
4415
4432
|
_inherits(Facebook, _Component);
|
|
4416
4433
|
|
|
4417
|
-
var _super = _createSuper(Facebook);
|
|
4418
|
-
|
|
4419
4434
|
function Facebook() {
|
|
4435
|
+
var _getPrototypeOf2;
|
|
4436
|
+
|
|
4420
4437
|
var _this;
|
|
4421
4438
|
|
|
4422
4439
|
_classCallCheck(this, Facebook);
|
|
@@ -4425,7 +4442,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4425
4442
|
args[_key] = arguments[_key];
|
|
4426
4443
|
}
|
|
4427
4444
|
|
|
4428
|
-
_this =
|
|
4445
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4429
4446
|
|
|
4430
4447
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4431
4448
|
|
|
@@ -4541,7 +4558,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4541
4558
|
width: '100%',
|
|
4542
4559
|
height: '100%'
|
|
4543
4560
|
};
|
|
4544
|
-
return
|
|
4561
|
+
return _react["default"].createElement("div", {
|
|
4545
4562
|
style: style,
|
|
4546
4563
|
id: this.playerID,
|
|
4547
4564
|
className: "fb-video",
|
|
@@ -4572,7 +4589,7 @@ exports["default"] = _default;
|
|
|
4572
4589
|
});
|
|
4573
4590
|
|
|
4574
4591
|
unwrapExports(Facebook_1);
|
|
4575
|
-
Facebook_1.Facebook;
|
|
4592
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4576
4593
|
|
|
4577
4594
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4578
4595
|
|
|
@@ -4581,7 +4598,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4581
4598
|
});
|
|
4582
4599
|
exports["default"] = exports.Streamable = void 0;
|
|
4583
4600
|
|
|
4584
|
-
var _react = _interopRequireWildcard(
|
|
4601
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4585
4602
|
|
|
4586
4603
|
|
|
4587
4604
|
|
|
@@ -4601,16 +4618,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4601
4618
|
|
|
4602
4619
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4603
4620
|
|
|
4604
|
-
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); }; }
|
|
4605
|
-
|
|
4606
4621
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4607
4622
|
|
|
4608
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4609
|
-
|
|
4610
|
-
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; } }
|
|
4611
|
-
|
|
4612
4623
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4613
4624
|
|
|
4625
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4626
|
+
|
|
4614
4627
|
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); }
|
|
4615
4628
|
|
|
4616
4629
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4621,12 +4634,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4621
4634
|
var SDK_GLOBAL = 'playerjs';
|
|
4622
4635
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4623
4636
|
|
|
4624
|
-
var Streamable =
|
|
4637
|
+
var Streamable =
|
|
4638
|
+
/*#__PURE__*/
|
|
4639
|
+
function (_Component) {
|
|
4625
4640
|
_inherits(Streamable, _Component);
|
|
4626
4641
|
|
|
4627
|
-
var _super = _createSuper(Streamable);
|
|
4628
|
-
|
|
4629
4642
|
function Streamable() {
|
|
4643
|
+
var _getPrototypeOf2;
|
|
4644
|
+
|
|
4630
4645
|
var _this;
|
|
4631
4646
|
|
|
4632
4647
|
_classCallCheck(this, Streamable);
|
|
@@ -4635,7 +4650,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4635
4650
|
args[_key] = arguments[_key];
|
|
4636
4651
|
}
|
|
4637
4652
|
|
|
4638
|
-
_this =
|
|
4653
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4639
4654
|
|
|
4640
4655
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4641
4656
|
|
|
@@ -4755,7 +4770,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4755
4770
|
width: '100%',
|
|
4756
4771
|
height: '100%'
|
|
4757
4772
|
};
|
|
4758
|
-
return
|
|
4773
|
+
return _react["default"].createElement("iframe", {
|
|
4759
4774
|
ref: this.ref,
|
|
4760
4775
|
src: "https://streamable.com/o/".concat(id),
|
|
4761
4776
|
frameBorder: "0",
|
|
@@ -4783,7 +4798,7 @@ exports["default"] = _default;
|
|
|
4783
4798
|
});
|
|
4784
4799
|
|
|
4785
4800
|
unwrapExports(Streamable_1);
|
|
4786
|
-
Streamable_1.Streamable;
|
|
4801
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4787
4802
|
|
|
4788
4803
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4789
4804
|
|
|
@@ -4792,7 +4807,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4792
4807
|
});
|
|
4793
4808
|
exports["default"] = exports.Wistia = void 0;
|
|
4794
4809
|
|
|
4795
|
-
var _react = _interopRequireWildcard(
|
|
4810
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4796
4811
|
|
|
4797
4812
|
|
|
4798
4813
|
|
|
@@ -4816,16 +4831,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4816
4831
|
|
|
4817
4832
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4818
4833
|
|
|
4819
|
-
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); }; }
|
|
4820
|
-
|
|
4821
4834
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4822
4835
|
|
|
4823
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4824
|
-
|
|
4825
|
-
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; } }
|
|
4826
|
-
|
|
4827
4836
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4828
4837
|
|
|
4838
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4839
|
+
|
|
4829
4840
|
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); }
|
|
4830
4841
|
|
|
4831
4842
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4836,48 +4847,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4836
4847
|
var SDK_GLOBAL = 'Wistia';
|
|
4837
4848
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4838
4849
|
|
|
4839
|
-
var Wistia =
|
|
4850
|
+
var Wistia =
|
|
4851
|
+
/*#__PURE__*/
|
|
4852
|
+
function (_Component) {
|
|
4840
4853
|
_inherits(Wistia, _Component);
|
|
4841
4854
|
|
|
4842
|
-
var _super = _createSuper(Wistia);
|
|
4843
|
-
|
|
4844
4855
|
function Wistia() {
|
|
4856
|
+
var _getPrototypeOf2;
|
|
4857
|
+
|
|
4845
4858
|
var _this;
|
|
4846
4859
|
|
|
4847
4860
|
_classCallCheck(this, Wistia);
|
|
4848
4861
|
|
|
4849
|
-
for (var _len = arguments.length,
|
|
4850
|
-
|
|
4862
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4863
|
+
args[_key] = arguments[_key];
|
|
4851
4864
|
}
|
|
4852
4865
|
|
|
4853
|
-
_this =
|
|
4866
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4854
4867
|
|
|
4855
4868
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4856
4869
|
|
|
4857
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4858
|
-
var _this$props;
|
|
4859
|
-
|
|
4860
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4861
|
-
});
|
|
4862
|
-
|
|
4863
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4864
|
-
var _this$props2;
|
|
4865
|
-
|
|
4866
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4867
|
-
});
|
|
4868
|
-
|
|
4869
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4870
|
-
var _this$props3;
|
|
4871
|
-
|
|
4872
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4873
|
-
});
|
|
4874
|
-
|
|
4875
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4876
|
-
var _this$props4;
|
|
4877
|
-
|
|
4878
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4879
|
-
});
|
|
4880
|
-
|
|
4881
4870
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4882
4871
|
_this.callPlayer('mute');
|
|
4883
4872
|
});
|
|
@@ -4899,13 +4888,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4899
4888
|
value: function load(url) {
|
|
4900
4889
|
var _this2 = this;
|
|
4901
4890
|
|
|
4902
|
-
var _this$
|
|
4903
|
-
playing = _this$
|
|
4904
|
-
muted = _this$
|
|
4905
|
-
controls = _this$
|
|
4906
|
-
_onReady = _this$
|
|
4907
|
-
|
|
4908
|
-
|
|
4891
|
+
var _this$props = this.props,
|
|
4892
|
+
playing = _this$props.playing,
|
|
4893
|
+
muted = _this$props.muted,
|
|
4894
|
+
controls = _this$props.controls,
|
|
4895
|
+
_onReady = _this$props.onReady,
|
|
4896
|
+
onPlay = _this$props.onPlay,
|
|
4897
|
+
onPause = _this$props.onPause,
|
|
4898
|
+
onSeek = _this$props.onSeek,
|
|
4899
|
+
onEnded = _this$props.onEnded,
|
|
4900
|
+
config = _this$props.config,
|
|
4901
|
+
onError = _this$props.onError;
|
|
4909
4902
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4910
4903
|
window._wq = window._wq || [];
|
|
4911
4904
|
|
|
@@ -4922,28 +4915,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4922
4915
|
|
|
4923
4916
|
_this2.unbind();
|
|
4924
4917
|
|
|
4925
|
-
_this2.player.bind('play',
|
|
4918
|
+
_this2.player.bind('play', onPlay);
|
|
4926
4919
|
|
|
4927
|
-
_this2.player.bind('pause',
|
|
4920
|
+
_this2.player.bind('pause', onPause);
|
|
4928
4921
|
|
|
4929
|
-
_this2.player.bind('seek',
|
|
4922
|
+
_this2.player.bind('seek', onSeek);
|
|
4930
4923
|
|
|
4931
|
-
_this2.player.bind('end',
|
|
4924
|
+
_this2.player.bind('end', onEnded);
|
|
4932
4925
|
|
|
4933
4926
|
_onReady();
|
|
4934
4927
|
}
|
|
4935
4928
|
});
|
|
4936
4929
|
}, onError);
|
|
4937
4930
|
}
|
|
4938
|
-
}, {
|
|
4939
|
-
key: "unbind",
|
|
4940
|
-
value: function unbind() {
|
|
4941
|
-
this.player.unbind('play', this.onPlay);
|
|
4942
|
-
this.player.unbind('pause', this.onPause);
|
|
4943
|
-
this.player.unbind('seek', this.onSeek);
|
|
4944
|
-
this.player.unbind('end', this.onEnded);
|
|
4945
|
-
} // Proxy methods to prevent listener leaks
|
|
4946
|
-
|
|
4947
4931
|
}, {
|
|
4948
4932
|
key: "play",
|
|
4949
4933
|
value: function play() {
|
|
@@ -4954,6 +4938,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4954
4938
|
value: function pause() {
|
|
4955
4939
|
this.callPlayer('pause');
|
|
4956
4940
|
}
|
|
4941
|
+
}, {
|
|
4942
|
+
key: "unbind",
|
|
4943
|
+
value: function unbind() {
|
|
4944
|
+
var _this$props2 = this.props,
|
|
4945
|
+
onPlay = _this$props2.onPlay,
|
|
4946
|
+
onPause = _this$props2.onPause,
|
|
4947
|
+
onSeek = _this$props2.onSeek,
|
|
4948
|
+
onEnded = _this$props2.onEnded;
|
|
4949
|
+
this.player.unbind('play', onPlay);
|
|
4950
|
+
this.player.unbind('pause', onPause);
|
|
4951
|
+
this.player.unbind('seek', onSeek);
|
|
4952
|
+
this.player.unbind('end', onEnded);
|
|
4953
|
+
}
|
|
4957
4954
|
}, {
|
|
4958
4955
|
key: "stop",
|
|
4959
4956
|
value: function stop() {
|
|
@@ -4999,7 +4996,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4999
4996
|
width: '100%',
|
|
5000
4997
|
height: '100%'
|
|
5001
4998
|
};
|
|
5002
|
-
return
|
|
4999
|
+
return _react["default"].createElement("div", {
|
|
5003
5000
|
key: id,
|
|
5004
5001
|
className: className,
|
|
5005
5002
|
style: style
|
|
@@ -5026,7 +5023,7 @@ exports["default"] = _default;
|
|
|
5026
5023
|
});
|
|
5027
5024
|
|
|
5028
5025
|
unwrapExports(Wistia_1);
|
|
5029
|
-
Wistia_1.Wistia;
|
|
5026
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5030
5027
|
|
|
5031
5028
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5032
5029
|
|
|
@@ -5035,7 +5032,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5035
5032
|
});
|
|
5036
5033
|
exports["default"] = exports.Twitch = void 0;
|
|
5037
5034
|
|
|
5038
|
-
var _react = _interopRequireWildcard(
|
|
5035
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5039
5036
|
|
|
5040
5037
|
|
|
5041
5038
|
|
|
@@ -5059,16 +5056,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5059
5056
|
|
|
5060
5057
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5061
5058
|
|
|
5062
|
-
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); }; }
|
|
5063
|
-
|
|
5064
5059
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5065
5060
|
|
|
5066
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5067
|
-
|
|
5068
|
-
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; } }
|
|
5069
|
-
|
|
5070
5061
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5071
5062
|
|
|
5063
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5064
|
+
|
|
5072
5065
|
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); }
|
|
5073
5066
|
|
|
5074
5067
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5081,12 +5074,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5081
5074
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5082
5075
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5083
5076
|
|
|
5084
|
-
var Twitch =
|
|
5077
|
+
var Twitch =
|
|
5078
|
+
/*#__PURE__*/
|
|
5079
|
+
function (_Component) {
|
|
5085
5080
|
_inherits(Twitch, _Component);
|
|
5086
5081
|
|
|
5087
|
-
var _super = _createSuper(Twitch);
|
|
5088
|
-
|
|
5089
5082
|
function Twitch() {
|
|
5083
|
+
var _getPrototypeOf2;
|
|
5084
|
+
|
|
5090
5085
|
var _this;
|
|
5091
5086
|
|
|
5092
5087
|
_classCallCheck(this, Twitch);
|
|
@@ -5095,7 +5090,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5095
5090
|
args[_key] = arguments[_key];
|
|
5096
5091
|
}
|
|
5097
5092
|
|
|
5098
|
-
_this =
|
|
5093
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5099
5094
|
|
|
5100
5095
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5101
5096
|
|
|
@@ -5216,7 +5211,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5216
5211
|
width: '100%',
|
|
5217
5212
|
height: '100%'
|
|
5218
5213
|
};
|
|
5219
|
-
return
|
|
5214
|
+
return _react["default"].createElement("div", {
|
|
5220
5215
|
style: style,
|
|
5221
5216
|
id: this.playerID
|
|
5222
5217
|
});
|
|
@@ -5242,7 +5237,7 @@ exports["default"] = _default;
|
|
|
5242
5237
|
});
|
|
5243
5238
|
|
|
5244
5239
|
unwrapExports(Twitch_1);
|
|
5245
|
-
Twitch_1.Twitch;
|
|
5240
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5246
5241
|
|
|
5247
5242
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5248
5243
|
|
|
@@ -5251,7 +5246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5251
5246
|
});
|
|
5252
5247
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5253
5248
|
|
|
5254
|
-
var _react = _interopRequireWildcard(
|
|
5249
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5255
5250
|
|
|
5256
5251
|
|
|
5257
5252
|
|
|
@@ -5269,15 +5264,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5269
5264
|
|
|
5270
5265
|
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; }
|
|
5271
5266
|
|
|
5272
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5273
|
-
|
|
5274
|
-
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."); }
|
|
5267
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5275
5268
|
|
|
5276
|
-
function
|
|
5269
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5277
5270
|
|
|
5278
|
-
function
|
|
5279
|
-
|
|
5280
|
-
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; }
|
|
5271
|
+
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; }
|
|
5281
5272
|
|
|
5282
5273
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5283
5274
|
|
|
@@ -5287,16 +5278,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5287
5278
|
|
|
5288
5279
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5289
5280
|
|
|
5290
|
-
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); }; }
|
|
5291
|
-
|
|
5292
5281
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5293
5282
|
|
|
5294
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5295
|
-
|
|
5296
|
-
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; } }
|
|
5297
|
-
|
|
5298
5283
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5299
5284
|
|
|
5285
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5286
|
+
|
|
5300
5287
|
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); }
|
|
5301
5288
|
|
|
5302
5289
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5308,12 +5295,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5308
5295
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5309
5296
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5310
5297
|
|
|
5311
|
-
var DailyMotion =
|
|
5298
|
+
var DailyMotion =
|
|
5299
|
+
/*#__PURE__*/
|
|
5300
|
+
function (_Component) {
|
|
5312
5301
|
_inherits(DailyMotion, _Component);
|
|
5313
5302
|
|
|
5314
|
-
var _super = _createSuper(DailyMotion);
|
|
5315
|
-
|
|
5316
5303
|
function DailyMotion() {
|
|
5304
|
+
var _getPrototypeOf2;
|
|
5305
|
+
|
|
5317
5306
|
var _this;
|
|
5318
5307
|
|
|
5319
5308
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5322,7 +5311,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5322
5311
|
args[_key] = arguments[_key];
|
|
5323
5312
|
}
|
|
5324
5313
|
|
|
5325
|
-
_this =
|
|
5314
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5326
5315
|
|
|
5327
5316
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5328
5317
|
|
|
@@ -5451,9 +5440,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5451
5440
|
height: '100%',
|
|
5452
5441
|
display: display
|
|
5453
5442
|
};
|
|
5454
|
-
return
|
|
5443
|
+
return _react["default"].createElement("div", {
|
|
5455
5444
|
style: style
|
|
5456
|
-
},
|
|
5445
|
+
}, _react["default"].createElement("div", {
|
|
5457
5446
|
ref: this.ref
|
|
5458
5447
|
}));
|
|
5459
5448
|
}
|
|
@@ -5478,7 +5467,7 @@ exports["default"] = _default;
|
|
|
5478
5467
|
});
|
|
5479
5468
|
|
|
5480
5469
|
unwrapExports(DailyMotion_1);
|
|
5481
|
-
DailyMotion_1.DailyMotion;
|
|
5470
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5482
5471
|
|
|
5483
5472
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5484
5473
|
|
|
@@ -5487,7 +5476,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5487
5476
|
});
|
|
5488
5477
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5489
5478
|
|
|
5490
|
-
var _react = _interopRequireWildcard(
|
|
5479
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5491
5480
|
|
|
5492
5481
|
|
|
5493
5482
|
|
|
@@ -5511,16 +5500,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5511
5500
|
|
|
5512
5501
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5513
5502
|
|
|
5514
|
-
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); }; }
|
|
5515
|
-
|
|
5516
5503
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5517
5504
|
|
|
5518
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5519
|
-
|
|
5520
|
-
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; } }
|
|
5521
|
-
|
|
5522
5505
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5523
5506
|
|
|
5507
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5508
|
+
|
|
5524
5509
|
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); }
|
|
5525
5510
|
|
|
5526
5511
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5531,12 +5516,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5531
5516
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5532
5517
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5533
5518
|
|
|
5534
|
-
var Mixcloud =
|
|
5519
|
+
var Mixcloud =
|
|
5520
|
+
/*#__PURE__*/
|
|
5521
|
+
function (_Component) {
|
|
5535
5522
|
_inherits(Mixcloud, _Component);
|
|
5536
5523
|
|
|
5537
|
-
var _super = _createSuper(Mixcloud);
|
|
5538
|
-
|
|
5539
5524
|
function Mixcloud() {
|
|
5525
|
+
var _getPrototypeOf2;
|
|
5526
|
+
|
|
5540
5527
|
var _this;
|
|
5541
5528
|
|
|
5542
5529
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5545,7 +5532,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5545
5532
|
args[_key] = arguments[_key];
|
|
5546
5533
|
}
|
|
5547
5534
|
|
|
5548
|
-
_this =
|
|
5535
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5549
5536
|
|
|
5550
5537
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5551
5538
|
|
|
@@ -5648,7 +5635,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5648
5635
|
})); // We have to give the iframe a key here to prevent a
|
|
5649
5636
|
// weird dialog appearing when loading a new track
|
|
5650
5637
|
|
|
5651
|
-
return
|
|
5638
|
+
return _react["default"].createElement("iframe", {
|
|
5652
5639
|
key: id,
|
|
5653
5640
|
ref: this.ref,
|
|
5654
5641
|
style: style,
|
|
@@ -5677,7 +5664,7 @@ exports["default"] = _default;
|
|
|
5677
5664
|
});
|
|
5678
5665
|
|
|
5679
5666
|
unwrapExports(Mixcloud_1);
|
|
5680
|
-
Mixcloud_1.Mixcloud;
|
|
5667
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5681
5668
|
|
|
5682
5669
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5683
5670
|
|
|
@@ -5686,7 +5673,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5686
5673
|
});
|
|
5687
5674
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5688
5675
|
|
|
5689
|
-
var _react = _interopRequireWildcard(
|
|
5676
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5690
5677
|
|
|
5691
5678
|
|
|
5692
5679
|
|
|
@@ -5708,33 +5695,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5708
5695
|
|
|
5709
5696
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5710
5697
|
|
|
5711
|
-
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); }; }
|
|
5712
|
-
|
|
5713
5698
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5714
5699
|
|
|
5715
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5716
|
-
|
|
5717
|
-
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; } }
|
|
5718
|
-
|
|
5719
5700
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5720
5701
|
|
|
5702
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5703
|
+
|
|
5721
5704
|
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); }
|
|
5722
5705
|
|
|
5723
5706
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5724
5707
|
|
|
5725
5708
|
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; }
|
|
5726
5709
|
|
|
5727
|
-
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; } } }; }
|
|
5728
|
-
|
|
5729
|
-
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); }
|
|
5730
|
-
|
|
5731
|
-
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; }
|
|
5732
|
-
|
|
5733
5710
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5734
5711
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5735
5712
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5736
5713
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5737
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5714
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5738
5715
|
var HLS_GLOBAL = 'Hls';
|
|
5739
5716
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5740
5717
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5743,11 +5720,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5743
5720
|
|
|
5744
5721
|
function canPlay(url) {
|
|
5745
5722
|
if (url instanceof Array) {
|
|
5746
|
-
var
|
|
5747
|
-
|
|
5723
|
+
var _iteratorNormalCompletion = true;
|
|
5724
|
+
var _didIteratorError = false;
|
|
5725
|
+
var _iteratorError = undefined;
|
|
5748
5726
|
|
|
5749
5727
|
try {
|
|
5750
|
-
for (_iterator.
|
|
5728
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5751
5729
|
var item = _step.value;
|
|
5752
5730
|
|
|
5753
5731
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5759,9 +5737,18 @@ function canPlay(url) {
|
|
|
5759
5737
|
}
|
|
5760
5738
|
}
|
|
5761
5739
|
} catch (err) {
|
|
5762
|
-
|
|
5740
|
+
_didIteratorError = true;
|
|
5741
|
+
_iteratorError = err;
|
|
5763
5742
|
} finally {
|
|
5764
|
-
|
|
5743
|
+
try {
|
|
5744
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5745
|
+
_iterator["return"]();
|
|
5746
|
+
}
|
|
5747
|
+
} finally {
|
|
5748
|
+
if (_didIteratorError) {
|
|
5749
|
+
throw _iteratorError;
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5765
5752
|
}
|
|
5766
5753
|
|
|
5767
5754
|
return false;
|
|
@@ -5785,12 +5772,14 @@ function canEnablePIP(url) {
|
|
|
5785
5772
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5786
5773
|
}
|
|
5787
5774
|
|
|
5788
|
-
var FilePlayer =
|
|
5775
|
+
var FilePlayer =
|
|
5776
|
+
/*#__PURE__*/
|
|
5777
|
+
function (_Component) {
|
|
5789
5778
|
_inherits(FilePlayer, _Component);
|
|
5790
5779
|
|
|
5791
|
-
var _super = _createSuper(FilePlayer);
|
|
5792
|
-
|
|
5793
5780
|
function FilePlayer() {
|
|
5781
|
+
var _getPrototypeOf2;
|
|
5782
|
+
|
|
5794
5783
|
var _this;
|
|
5795
5784
|
|
|
5796
5785
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5799,7 +5788,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5799
5788
|
_args[_key] = arguments[_key];
|
|
5800
5789
|
}
|
|
5801
5790
|
|
|
5802
|
-
_this =
|
|
5791
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5803
5792
|
|
|
5804
5793
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5805
5794
|
var _this$props;
|
|
@@ -5886,19 +5875,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5886
5875
|
|
|
5887
5876
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5888
5877
|
if (typeof source === 'string') {
|
|
5889
|
-
return
|
|
5878
|
+
return _react["default"].createElement("source", {
|
|
5890
5879
|
key: index,
|
|
5891
5880
|
src: source
|
|
5892
5881
|
});
|
|
5893
5882
|
}
|
|
5894
5883
|
|
|
5895
|
-
return
|
|
5884
|
+
return _react["default"].createElement("source", _extends({
|
|
5896
5885
|
key: index
|
|
5897
5886
|
}, source));
|
|
5898
5887
|
});
|
|
5899
5888
|
|
|
5900
5889
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5901
|
-
return
|
|
5890
|
+
return _react["default"].createElement("track", _extends({
|
|
5902
5891
|
key: index
|
|
5903
5892
|
}, track));
|
|
5904
5893
|
});
|
|
@@ -5936,10 +5925,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5936
5925
|
key: "componentWillUnmount",
|
|
5937
5926
|
value: function componentWillUnmount() {
|
|
5938
5927
|
this.removeListeners(this.player);
|
|
5939
|
-
|
|
5940
|
-
if (this.hls) {
|
|
5941
|
-
this.hls.destroy();
|
|
5942
|
-
}
|
|
5943
5928
|
}
|
|
5944
5929
|
}, {
|
|
5945
5930
|
key: "addListeners",
|
|
@@ -6070,6 +6055,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6070
6055
|
value: function stop() {
|
|
6071
6056
|
this.player.removeAttribute('src');
|
|
6072
6057
|
|
|
6058
|
+
if (this.hls) {
|
|
6059
|
+
this.hls.destroy();
|
|
6060
|
+
}
|
|
6061
|
+
|
|
6073
6062
|
if (this.dash) {
|
|
6074
6063
|
this.dash.reset();
|
|
6075
6064
|
}
|
|
@@ -6181,7 +6170,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6181
6170
|
width: width === 'auto' ? width : '100%',
|
|
6182
6171
|
height: height === 'auto' ? height : '100%'
|
|
6183
6172
|
};
|
|
6184
|
-
return
|
|
6173
|
+
return _react["default"].createElement(Element, _extends({
|
|
6185
6174
|
ref: this.ref,
|
|
6186
6175
|
src: this.getSource(url),
|
|
6187
6176
|
style: style,
|
|
@@ -6211,7 +6200,7 @@ exports["default"] = _default;
|
|
|
6211
6200
|
});
|
|
6212
6201
|
|
|
6213
6202
|
unwrapExports(FilePlayer_1);
|
|
6214
|
-
FilePlayer_1.FilePlayer;
|
|
6203
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6215
6204
|
|
|
6216
6205
|
var players = createCommonjsModule(function (module, exports) {
|
|
6217
6206
|
|
|
@@ -6253,7 +6242,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6253
6242
|
});
|
|
6254
6243
|
exports["default"] = void 0;
|
|
6255
6244
|
|
|
6256
|
-
var _react = _interopRequireWildcard(
|
|
6245
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6257
6246
|
|
|
6258
6247
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6259
6248
|
|
|
@@ -6271,16 +6260,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6271
6260
|
|
|
6272
6261
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6273
6262
|
|
|
6274
|
-
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); }; }
|
|
6275
|
-
|
|
6276
6263
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6277
6264
|
|
|
6278
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6279
|
-
|
|
6280
|
-
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; } }
|
|
6281
|
-
|
|
6282
6265
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6283
6266
|
|
|
6267
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6268
|
+
|
|
6284
6269
|
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); }
|
|
6285
6270
|
|
|
6286
6271
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6289,12 +6274,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6289
6274
|
|
|
6290
6275
|
var ICON_SIZE = '64px';
|
|
6291
6276
|
|
|
6292
|
-
var Preview =
|
|
6277
|
+
var Preview =
|
|
6278
|
+
/*#__PURE__*/
|
|
6279
|
+
function (_Component) {
|
|
6293
6280
|
_inherits(Preview, _Component);
|
|
6294
6281
|
|
|
6295
|
-
var _super = _createSuper(Preview);
|
|
6296
|
-
|
|
6297
6282
|
function Preview() {
|
|
6283
|
+
var _getPrototypeOf2;
|
|
6284
|
+
|
|
6298
6285
|
var _this;
|
|
6299
6286
|
|
|
6300
6287
|
_classCallCheck(this, Preview);
|
|
@@ -6303,7 +6290,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6303
6290
|
args[_key] = arguments[_key];
|
|
6304
6291
|
}
|
|
6305
6292
|
|
|
6306
|
-
_this =
|
|
6293
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6307
6294
|
|
|
6308
6295
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6309
6296
|
|
|
@@ -6401,15 +6388,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6401
6388
|
}
|
|
6402
6389
|
};
|
|
6403
6390
|
|
|
6404
|
-
var defaultPlayIcon =
|
|
6391
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6405
6392
|
style: styles.shadow,
|
|
6406
6393
|
className: "react-player__shadow"
|
|
6407
|
-
},
|
|
6394
|
+
}, _react["default"].createElement("div", {
|
|
6408
6395
|
style: styles.playIcon,
|
|
6409
6396
|
className: "react-player__play-icon"
|
|
6410
6397
|
}));
|
|
6411
6398
|
|
|
6412
|
-
return
|
|
6399
|
+
return _react["default"].createElement("div", {
|
|
6413
6400
|
style: styles.preview,
|
|
6414
6401
|
className: "react-player__preview",
|
|
6415
6402
|
onClick: onClick
|
|
@@ -6432,7 +6419,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6432
6419
|
});
|
|
6433
6420
|
exports["default"] = renderPreloadPlayers;
|
|
6434
6421
|
|
|
6435
|
-
var _react = _interopRequireDefault(
|
|
6422
|
+
var _react = _interopRequireDefault(React__default);
|
|
6436
6423
|
|
|
6437
6424
|
var _Player = _interopRequireDefault(Player_1);
|
|
6438
6425
|
|
|
@@ -6446,12 +6433,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6446
6433
|
|
|
6447
6434
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6448
6435
|
|
|
6449
|
-
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; } } }; }
|
|
6450
|
-
|
|
6451
|
-
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); }
|
|
6452
|
-
|
|
6453
|
-
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; }
|
|
6454
|
-
|
|
6455
6436
|
var PRELOAD_PLAYERS = [{
|
|
6456
6437
|
Player: YouTube_1.YouTube,
|
|
6457
6438
|
configKey: 'youtube',
|
|
@@ -6472,16 +6453,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6472
6453
|
|
|
6473
6454
|
function renderPreloadPlayers(url, controls, config) {
|
|
6474
6455
|
var players = [];
|
|
6475
|
-
|
|
6476
|
-
var
|
|
6477
|
-
|
|
6456
|
+
var _iteratorNormalCompletion = true;
|
|
6457
|
+
var _didIteratorError = false;
|
|
6458
|
+
var _iteratorError = undefined;
|
|
6478
6459
|
|
|
6479
6460
|
try {
|
|
6480
|
-
for (_iterator.
|
|
6461
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6481
6462
|
var player = _step.value;
|
|
6482
6463
|
|
|
6483
6464
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6484
|
-
players.push(
|
|
6465
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6485
6466
|
key: player.Player.displayName,
|
|
6486
6467
|
activePlayer: player.Player,
|
|
6487
6468
|
url: player.url,
|
|
@@ -6493,9 +6474,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6493
6474
|
}
|
|
6494
6475
|
}
|
|
6495
6476
|
} catch (err) {
|
|
6496
|
-
|
|
6477
|
+
_didIteratorError = true;
|
|
6478
|
+
_iteratorError = err;
|
|
6497
6479
|
} finally {
|
|
6498
|
-
|
|
6480
|
+
try {
|
|
6481
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6482
|
+
_iterator["return"]();
|
|
6483
|
+
}
|
|
6484
|
+
} finally {
|
|
6485
|
+
if (_didIteratorError) {
|
|
6486
|
+
throw _iteratorError;
|
|
6487
|
+
}
|
|
6488
|
+
}
|
|
6499
6489
|
}
|
|
6500
6490
|
|
|
6501
6491
|
return players;
|
|
@@ -6571,7 +6561,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6571
6561
|
});
|
|
6572
6562
|
exports["default"] = void 0;
|
|
6573
6563
|
|
|
6574
|
-
var _react = _interopRequireWildcard(
|
|
6564
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6575
6565
|
|
|
6576
6566
|
|
|
6577
6567
|
|
|
@@ -6619,17 +6609,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6619
6609
|
|
|
6620
6610
|
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); }
|
|
6621
6611
|
|
|
6622
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6623
|
-
|
|
6624
|
-
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."); }
|
|
6612
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6625
6613
|
|
|
6626
|
-
function
|
|
6614
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6627
6615
|
|
|
6628
|
-
function _iterableToArray(iter) { if (
|
|
6616
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6629
6617
|
|
|
6630
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6631
|
-
|
|
6632
|
-
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; }
|
|
6618
|
+
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; } }
|
|
6633
6619
|
|
|
6634
6620
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6635
6621
|
|
|
@@ -6637,16 +6623,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6637
6623
|
|
|
6638
6624
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6639
6625
|
|
|
6640
|
-
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); }; }
|
|
6641
|
-
|
|
6642
6626
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6643
6627
|
|
|
6644
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6645
|
-
|
|
6646
|
-
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; } }
|
|
6647
|
-
|
|
6648
6628
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6649
6629
|
|
|
6630
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6631
|
+
|
|
6650
6632
|
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); }
|
|
6651
6633
|
|
|
6652
6634
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6656,12 +6638,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6656
6638
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6657
6639
|
var customPlayers = [];
|
|
6658
6640
|
|
|
6659
|
-
var ReactPlayer =
|
|
6641
|
+
var ReactPlayer =
|
|
6642
|
+
/*#__PURE__*/
|
|
6643
|
+
function (_Component) {
|
|
6660
6644
|
_inherits(ReactPlayer, _Component);
|
|
6661
6645
|
|
|
6662
|
-
var _super = _createSuper(ReactPlayer);
|
|
6663
|
-
|
|
6664
6646
|
function ReactPlayer() {
|
|
6647
|
+
var _getPrototypeOf2;
|
|
6648
|
+
|
|
6665
6649
|
var _this;
|
|
6666
6650
|
|
|
6667
6651
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6670,7 +6654,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6670
6654
|
args[_key] = arguments[_key];
|
|
6671
6655
|
}
|
|
6672
6656
|
|
|
6673
|
-
_this =
|
|
6657
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6674
6658
|
|
|
6675
6659
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6676
6660
|
|
|
@@ -6781,7 +6765,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6781
6765
|
key: "renderActivePlayer",
|
|
6782
6766
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6783
6767
|
if (!url) return null;
|
|
6784
|
-
return
|
|
6768
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6785
6769
|
key: activePlayer.displayName,
|
|
6786
6770
|
ref: this.activePlayerRef,
|
|
6787
6771
|
config: this.config,
|
|
@@ -6818,14 +6802,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6818
6802
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6819
6803
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6820
6804
|
|
|
6821
|
-
var preview =
|
|
6805
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6822
6806
|
url: url,
|
|
6823
6807
|
light: light,
|
|
6824
6808
|
playIcon: playIcon,
|
|
6825
6809
|
onClick: this.handleClickPreview
|
|
6826
6810
|
});
|
|
6827
6811
|
|
|
6828
|
-
return
|
|
6812
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6829
6813
|
ref: this.wrapperRef,
|
|
6830
6814
|
style: _objectSpread({}, style, {
|
|
6831
6815
|
width: width,
|
|
@@ -6885,20 +6869,20 @@ var Audio = function Audio(_ref) {
|
|
|
6885
6869
|
var node = _ref.node;
|
|
6886
6870
|
|
|
6887
6871
|
if (node.uploadAudio) {
|
|
6888
|
-
return
|
|
6872
|
+
return React__default.createElement(
|
|
6889
6873
|
'div',
|
|
6890
6874
|
{ className: 'audio d-block text-center mb-3' },
|
|
6891
|
-
|
|
6875
|
+
React__default.createElement(
|
|
6892
6876
|
'audio',
|
|
6893
6877
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6894
|
-
|
|
6895
|
-
|
|
6878
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6879
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6896
6880
|
'Your browser does not support the audio element.'
|
|
6897
6881
|
),
|
|
6898
|
-
node.caption &&
|
|
6882
|
+
node.caption && React__default.createElement(
|
|
6899
6883
|
'p',
|
|
6900
6884
|
{ style: { fontSize: '.9rem' } },
|
|
6901
|
-
|
|
6885
|
+
React__default.createElement(
|
|
6902
6886
|
'em',
|
|
6903
6887
|
null,
|
|
6904
6888
|
node.caption
|
|
@@ -6908,15 +6892,15 @@ var Audio = function Audio(_ref) {
|
|
|
6908
6892
|
} else if (node.audioFilePth) {
|
|
6909
6893
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6910
6894
|
if (hostname === 'embeds.audioboom.com') {
|
|
6911
|
-
return
|
|
6895
|
+
return React__default.createElement(
|
|
6912
6896
|
'div',
|
|
6913
6897
|
null,
|
|
6914
|
-
|
|
6898
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6915
6899
|
' ',
|
|
6916
|
-
node.caption &&
|
|
6900
|
+
node.caption && React__default.createElement(
|
|
6917
6901
|
'p',
|
|
6918
6902
|
{ style: { fontSize: '.9rem' } },
|
|
6919
|
-
|
|
6903
|
+
React__default.createElement(
|
|
6920
6904
|
'em',
|
|
6921
6905
|
null,
|
|
6922
6906
|
node.caption
|
|
@@ -6924,14 +6908,14 @@ var Audio = function Audio(_ref) {
|
|
|
6924
6908
|
)
|
|
6925
6909
|
);
|
|
6926
6910
|
}
|
|
6927
|
-
return
|
|
6911
|
+
return React__default.createElement(
|
|
6928
6912
|
'div',
|
|
6929
6913
|
{ className: 'audio' },
|
|
6930
|
-
|
|
6931
|
-
node.caption &&
|
|
6914
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6915
|
+
node.caption && React__default.createElement(
|
|
6932
6916
|
'p',
|
|
6933
6917
|
{ style: { fontSize: '.9rem' } },
|
|
6934
|
-
|
|
6918
|
+
React__default.createElement(
|
|
6935
6919
|
'em',
|
|
6936
6920
|
null,
|
|
6937
6921
|
node.caption
|
|
@@ -7032,10 +7016,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7032
7016
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7033
7017
|
};
|
|
7034
7018
|
|
|
7035
|
-
return
|
|
7019
|
+
return React__default.createElement(
|
|
7036
7020
|
'div',
|
|
7037
7021
|
null,
|
|
7038
|
-
vidLoaded &&
|
|
7022
|
+
vidLoaded && React__default.createElement(
|
|
7039
7023
|
'video',
|
|
7040
7024
|
{
|
|
7041
7025
|
poster: thumbnail || '',
|
|
@@ -7053,7 +7037,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7053
7037
|
onPlay: function onPlay(e) {
|
|
7054
7038
|
return handleOnPlay(e);
|
|
7055
7039
|
} },
|
|
7056
|
-
|
|
7040
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7057
7041
|
'Your browser does not support the video tag.'
|
|
7058
7042
|
)
|
|
7059
7043
|
);
|
|
@@ -7065,34 +7049,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7065
7049
|
var profileImage = arguments[6];
|
|
7066
7050
|
|
|
7067
7051
|
if (authorName && authorURL) {
|
|
7068
|
-
return
|
|
7052
|
+
return React__default.createElement(
|
|
7069
7053
|
'span',
|
|
7070
7054
|
null,
|
|
7071
|
-
|
|
7055
|
+
React__default.createElement(
|
|
7072
7056
|
'a',
|
|
7073
7057
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7074
7058
|
authorName
|
|
7075
7059
|
),
|
|
7076
|
-
|
|
7060
|
+
React__default.createElement(
|
|
7077
7061
|
Card,
|
|
7078
7062
|
{ className: 'author-details-card-' + index },
|
|
7079
|
-
|
|
7063
|
+
React__default.createElement(
|
|
7080
7064
|
Row,
|
|
7081
7065
|
null,
|
|
7082
|
-
profileImage &&
|
|
7066
|
+
profileImage && React__default.createElement(
|
|
7083
7067
|
Col,
|
|
7084
7068
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7085
|
-
|
|
7069
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7086
7070
|
),
|
|
7087
|
-
|
|
7071
|
+
React__default.createElement(
|
|
7088
7072
|
Col,
|
|
7089
7073
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7090
|
-
|
|
7074
|
+
React__default.createElement(
|
|
7091
7075
|
'div',
|
|
7092
7076
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7093
7077
|
authorName
|
|
7094
7078
|
),
|
|
7095
|
-
|
|
7079
|
+
React__default.createElement(
|
|
7096
7080
|
'p',
|
|
7097
7081
|
null,
|
|
7098
7082
|
biography
|
|
@@ -7100,7 +7084,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7100
7084
|
)
|
|
7101
7085
|
)
|
|
7102
7086
|
),
|
|
7103
|
-
|
|
7087
|
+
React__default.createElement(
|
|
7104
7088
|
'style',
|
|
7105
7089
|
{ jsx: 'true' },
|
|
7106
7090
|
'\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 '
|
|
@@ -7108,7 +7092,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7108
7092
|
length !== index + 1 && ' , '
|
|
7109
7093
|
);
|
|
7110
7094
|
} else if (authorName) {
|
|
7111
|
-
return
|
|
7095
|
+
return React__default.createElement(
|
|
7112
7096
|
'span',
|
|
7113
7097
|
{ key: index },
|
|
7114
7098
|
authorName,
|
|
@@ -7385,44 +7369,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7369
|
}
|
|
7386
7370
|
};
|
|
7387
7371
|
|
|
7388
|
-
return
|
|
7372
|
+
return React__default.createElement(
|
|
7389
7373
|
'div',
|
|
7390
7374
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7391
|
-
|
|
7375
|
+
React__default.createElement(
|
|
7392
7376
|
'div',
|
|
7393
7377
|
{ className: 'mt-2 mb-5' },
|
|
7394
|
-
series &&
|
|
7378
|
+
series && React__default.createElement(
|
|
7395
7379
|
'div',
|
|
7396
7380
|
{ style: { fontSize: '0.9rem' } },
|
|
7397
7381
|
article.title,
|
|
7398
7382
|
' - Episode ',
|
|
7399
7383
|
series
|
|
7400
7384
|
),
|
|
7401
|
-
Videos[series - 1] &&
|
|
7385
|
+
Videos[series - 1] && React__default.createElement(
|
|
7402
7386
|
'h1',
|
|
7403
7387
|
{ className: 'mb-3' },
|
|
7404
7388
|
Videos[series - 1].title
|
|
7405
7389
|
),
|
|
7406
|
-
|
|
7390
|
+
React__default.createElement(
|
|
7407
7391
|
'div',
|
|
7408
7392
|
null,
|
|
7409
7393
|
moment(article.published).format('LL')
|
|
7410
7394
|
),
|
|
7411
|
-
|
|
7395
|
+
React__default.createElement(
|
|
7412
7396
|
'div',
|
|
7413
7397
|
{ className: 'mb-3' },
|
|
7414
7398
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7415
|
-
return
|
|
7399
|
+
return React__default.createElement(
|
|
7416
7400
|
'span',
|
|
7417
7401
|
{ key: index },
|
|
7418
7402
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7419
7403
|
);
|
|
7420
7404
|
})
|
|
7421
7405
|
),
|
|
7422
|
-
|
|
7406
|
+
React__default.createElement(
|
|
7423
7407
|
'p',
|
|
7424
7408
|
null,
|
|
7425
|
-
|
|
7409
|
+
React__default.createElement(SocialShare, {
|
|
7426
7410
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7427
7411
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7428
7412
|
shareVia: meta.shareVia,
|
|
@@ -7437,20 +7421,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7437
7421
|
hideFacebook: meta.hideFBShare
|
|
7438
7422
|
})
|
|
7439
7423
|
),
|
|
7440
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7424
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7441
7425
|
'p',
|
|
7442
7426
|
{ className: 'mb-3' },
|
|
7443
|
-
|
|
7427
|
+
React__default.createElement(
|
|
7444
7428
|
'em',
|
|
7445
7429
|
null,
|
|
7446
7430
|
Videos[series - 1].intro
|
|
7447
7431
|
)
|
|
7448
7432
|
)
|
|
7449
7433
|
),
|
|
7450
|
-
|
|
7434
|
+
React__default.createElement(
|
|
7451
7435
|
'div',
|
|
7452
7436
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7453
|
-
vidUrl && vidType == 'youtube' &&
|
|
7437
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7454
7438
|
className: 'fluid-iframe',
|
|
7455
7439
|
videoId: getYoutubeId(vidUrl),
|
|
7456
7440
|
opts: opts,
|
|
@@ -7461,10 +7445,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7461
7445
|
return handleOnEnd(e);
|
|
7462
7446
|
}
|
|
7463
7447
|
}),
|
|
7464
|
-
vidUrl && vidType == 'mp4' &&
|
|
7465
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7466
|
-
|
|
7467
|
-
series &&
|
|
7448
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7449
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7450
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7451
|
+
series && React__default.createElement(
|
|
7468
7452
|
'div',
|
|
7469
7453
|
{
|
|
7470
7454
|
className: 'vid-series',
|
|
@@ -7474,10 +7458,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7474
7458
|
maxHeight: '100%',
|
|
7475
7459
|
paddingBottom: '0'
|
|
7476
7460
|
} },
|
|
7477
|
-
|
|
7461
|
+
React__default.createElement(
|
|
7478
7462
|
'p',
|
|
7479
7463
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7480
|
-
|
|
7464
|
+
React__default.createElement(
|
|
7481
7465
|
'b',
|
|
7482
7466
|
{ style: { fontSize: '1.25em' } },
|
|
7483
7467
|
'Now Playing:'
|
|
@@ -7485,16 +7469,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7485
7469
|
' ',
|
|
7486
7470
|
seriesData[series ? series - 1 : 0].title
|
|
7487
7471
|
),
|
|
7488
|
-
vidUrl &&
|
|
7472
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7489
7473
|
)
|
|
7490
7474
|
),
|
|
7491
|
-
|
|
7492
|
-
|
|
7475
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7476
|
+
React__default.createElement(
|
|
7493
7477
|
'div',
|
|
7494
7478
|
{ className: 'vid-text' },
|
|
7495
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7479
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7496
7480
|
),
|
|
7497
|
-
|
|
7481
|
+
React__default.createElement(
|
|
7498
7482
|
'style',
|
|
7499
7483
|
{ jsx: 'true' },
|
|
7500
7484
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7503,13 +7487,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7503
7487
|
};
|
|
7504
7488
|
|
|
7505
7489
|
var Poll = function Poll(_ref) {
|
|
7506
|
-
var node = _ref.node
|
|
7507
|
-
_ref.client
|
|
7508
|
-
_ref.pageview
|
|
7509
|
-
_ref.videoAccountIDs
|
|
7510
|
-
|
|
7511
|
-
_ref.showVotes
|
|
7512
|
-
|
|
7490
|
+
var node = _ref.node,
|
|
7491
|
+
client = _ref.client,
|
|
7492
|
+
pageview = _ref.pageview,
|
|
7493
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7494
|
+
onVote = _ref.onVote,
|
|
7495
|
+
_ref$showVotes = _ref.showVotes,
|
|
7496
|
+
getSerializers = _ref.getSerializers;
|
|
7513
7497
|
|
|
7514
7498
|
var _useState = useState(null),
|
|
7515
7499
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7547,67 +7531,67 @@ var Poll = function Poll(_ref) {
|
|
|
7547
7531
|
return acc;
|
|
7548
7532
|
}
|
|
7549
7533
|
}, 0);
|
|
7550
|
-
return
|
|
7551
|
-
|
|
7534
|
+
return React__default.createElement(
|
|
7535
|
+
React__default.Fragment,
|
|
7552
7536
|
null,
|
|
7553
|
-
question &&
|
|
7537
|
+
question && React__default.createElement(
|
|
7554
7538
|
'p',
|
|
7555
7539
|
{ className: 'font-weight-bold' },
|
|
7556
7540
|
question
|
|
7557
7541
|
),
|
|
7558
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7542
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7559
7543
|
'form',
|
|
7560
7544
|
{ onSubmit: function onSubmit(e) {
|
|
7561
7545
|
return onSubmitPoll(e);
|
|
7562
7546
|
} },
|
|
7563
7547
|
choices && choices.map(function (choice) {
|
|
7564
|
-
return
|
|
7548
|
+
return React__default.createElement(
|
|
7565
7549
|
'div',
|
|
7566
7550
|
{ key: choice._key },
|
|
7567
|
-
|
|
7551
|
+
React__default.createElement(
|
|
7568
7552
|
'label',
|
|
7569
7553
|
{ className: 'pl-2' },
|
|
7570
|
-
|
|
7554
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7571
7555
|
return setSelectedChoice(e.target.value);
|
|
7572
7556
|
} }),
|
|
7573
7557
|
' ' + choice.choiceText
|
|
7574
7558
|
)
|
|
7575
7559
|
);
|
|
7576
7560
|
}),
|
|
7577
|
-
|
|
7561
|
+
React__default.createElement(
|
|
7578
7562
|
Button,
|
|
7579
7563
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7580
7564
|
'Vote'
|
|
7581
7565
|
)
|
|
7582
7566
|
),
|
|
7583
|
-
|
|
7567
|
+
React__default.createElement(
|
|
7584
7568
|
'div',
|
|
7585
7569
|
{ className: 'progress-container' },
|
|
7586
7570
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7587
7571
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7588
|
-
return
|
|
7572
|
+
return React__default.createElement(
|
|
7589
7573
|
'div',
|
|
7590
7574
|
{ key: choice._key, className: 'mb-3' },
|
|
7591
|
-
|
|
7575
|
+
React__default.createElement(
|
|
7592
7576
|
'div',
|
|
7593
7577
|
{ className: 'correct-answer' },
|
|
7594
|
-
|
|
7578
|
+
React__default.createElement(
|
|
7595
7579
|
'div',
|
|
7596
7580
|
null,
|
|
7597
7581
|
choice.choiceText
|
|
7598
7582
|
),
|
|
7599
|
-
choice.choiceAnswer === true &&
|
|
7583
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7600
7584
|
'div',
|
|
7601
7585
|
null,
|
|
7602
|
-
|
|
7586
|
+
React__default.createElement(
|
|
7603
7587
|
'span',
|
|
7604
7588
|
{ style: { color: 'limegreen' } },
|
|
7605
7589
|
'Correct!'
|
|
7606
7590
|
)
|
|
7607
7591
|
)
|
|
7608
7592
|
),
|
|
7609
|
-
|
|
7610
|
-
|
|
7593
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7594
|
+
React__default.createElement(
|
|
7611
7595
|
'span',
|
|
7612
7596
|
{ className: 'float-right' },
|
|
7613
7597
|
percentage,
|
|
@@ -7618,14 +7602,14 @@ var Poll = function Poll(_ref) {
|
|
|
7618
7602
|
);
|
|
7619
7603
|
})
|
|
7620
7604
|
),
|
|
7621
|
-
showAnswer &&
|
|
7605
|
+
showAnswer && React__default.createElement(
|
|
7622
7606
|
'h4',
|
|
7623
7607
|
{ className: 'text-center small p-3' },
|
|
7624
7608
|
'Total Votes: ',
|
|
7625
7609
|
choicesTotalCount
|
|
7626
7610
|
),
|
|
7627
|
-
showAnswer && response &&
|
|
7628
|
-
|
|
7611
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7612
|
+
React__default.createElement(
|
|
7629
7613
|
'style',
|
|
7630
7614
|
{ jsx: 'true' },
|
|
7631
7615
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7652,13 +7636,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7652
7636
|
var _Object$values = unwrapExports(values$1);
|
|
7653
7637
|
|
|
7654
7638
|
var Poll$1 = function Poll(_ref) {
|
|
7655
|
-
var node = _ref.node
|
|
7656
|
-
_ref.client
|
|
7657
|
-
_ref.pageview
|
|
7658
|
-
_ref.videoAccountIDs
|
|
7659
|
-
|
|
7660
|
-
_ref.showVotes
|
|
7661
|
-
|
|
7639
|
+
var node = _ref.node,
|
|
7640
|
+
client = _ref.client,
|
|
7641
|
+
pageview = _ref.pageview,
|
|
7642
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7643
|
+
onVote = _ref.onVote,
|
|
7644
|
+
_ref$showVotes = _ref.showVotes,
|
|
7645
|
+
getSerializers = _ref.getSerializers;
|
|
7662
7646
|
|
|
7663
7647
|
var _useState = useState(null),
|
|
7664
7648
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7724,67 +7708,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7724
7708
|
return acc;
|
|
7725
7709
|
}
|
|
7726
7710
|
}, 0);
|
|
7727
|
-
return
|
|
7728
|
-
|
|
7711
|
+
return React__default.createElement(
|
|
7712
|
+
React__default.Fragment,
|
|
7729
7713
|
null,
|
|
7730
|
-
question &&
|
|
7714
|
+
question && React__default.createElement(
|
|
7731
7715
|
'p',
|
|
7732
7716
|
{ className: 'font-weight-bold' },
|
|
7733
7717
|
question
|
|
7734
7718
|
),
|
|
7735
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7719
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7736
7720
|
'form',
|
|
7737
7721
|
{ onSubmit: function onSubmit(e) {
|
|
7738
7722
|
return onSubmitPoll(e);
|
|
7739
7723
|
} },
|
|
7740
7724
|
choices && choices.map(function (choice) {
|
|
7741
|
-
return
|
|
7725
|
+
return React__default.createElement(
|
|
7742
7726
|
'div',
|
|
7743
7727
|
{ key: choice._key },
|
|
7744
|
-
|
|
7728
|
+
React__default.createElement(
|
|
7745
7729
|
'label',
|
|
7746
7730
|
{ className: 'pl-2' },
|
|
7747
|
-
|
|
7731
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7748
7732
|
return setSelectedChoice(e.target.value);
|
|
7749
7733
|
} }),
|
|
7750
7734
|
' ' + choice.choiceText
|
|
7751
7735
|
)
|
|
7752
7736
|
);
|
|
7753
7737
|
}),
|
|
7754
|
-
|
|
7738
|
+
React__default.createElement(
|
|
7755
7739
|
Button,
|
|
7756
7740
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7757
7741
|
'Vote'
|
|
7758
7742
|
)
|
|
7759
7743
|
),
|
|
7760
|
-
|
|
7744
|
+
React__default.createElement(
|
|
7761
7745
|
'div',
|
|
7762
7746
|
{ className: 'progress-container' },
|
|
7763
7747
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7764
7748
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7765
|
-
return
|
|
7749
|
+
return React__default.createElement(
|
|
7766
7750
|
'div',
|
|
7767
7751
|
{ key: choice._key, className: 'mb-3' },
|
|
7768
|
-
|
|
7752
|
+
React__default.createElement(
|
|
7769
7753
|
'div',
|
|
7770
7754
|
{ className: 'correct-answer' },
|
|
7771
|
-
|
|
7755
|
+
React__default.createElement(
|
|
7772
7756
|
'div',
|
|
7773
7757
|
null,
|
|
7774
7758
|
choice.choiceText
|
|
7775
7759
|
),
|
|
7776
|
-
choice.choiceAnswer === true &&
|
|
7760
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7777
7761
|
'div',
|
|
7778
7762
|
null,
|
|
7779
|
-
|
|
7763
|
+
React__default.createElement(
|
|
7780
7764
|
'span',
|
|
7781
7765
|
{ style: { color: 'limegreen' } },
|
|
7782
7766
|
'Correct!'
|
|
7783
7767
|
)
|
|
7784
7768
|
)
|
|
7785
7769
|
),
|
|
7786
|
-
|
|
7787
|
-
|
|
7770
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7771
|
+
React__default.createElement(
|
|
7788
7772
|
'span',
|
|
7789
7773
|
{ className: 'float-right' },
|
|
7790
7774
|
percentage,
|
|
@@ -7795,14 +7779,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7795
7779
|
);
|
|
7796
7780
|
})
|
|
7797
7781
|
),
|
|
7798
|
-
showAnswer &&
|
|
7782
|
+
showAnswer && React__default.createElement(
|
|
7799
7783
|
'h4',
|
|
7800
7784
|
{ className: 'text-center small p-3' },
|
|
7801
7785
|
'Total Votes: ',
|
|
7802
7786
|
choicesTotalCount
|
|
7803
7787
|
),
|
|
7804
|
-
showAnswer && response &&
|
|
7805
|
-
|
|
7788
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7789
|
+
React__default.createElement(
|
|
7806
7790
|
'style',
|
|
7807
7791
|
{ jsx: 'true' },
|
|
7808
7792
|
'\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 '
|
|
@@ -7810,7 +7794,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7810
7794
|
);
|
|
7811
7795
|
};
|
|
7812
7796
|
|
|
7813
|
-
var numberOfPaginations =
|
|
7797
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7814
7798
|
|
|
7815
7799
|
var Quiz = function Quiz(_ref) {
|
|
7816
7800
|
var quizzes = _ref.quizzes,
|
|
@@ -7928,20 +7912,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7928
7912
|
};
|
|
7929
7913
|
|
|
7930
7914
|
var renderPagination = function renderPagination() {
|
|
7931
|
-
return
|
|
7915
|
+
return React__default.createElement(
|
|
7932
7916
|
Pagination,
|
|
7933
|
-
{ className: 'p-0 m-0', size:
|
|
7934
|
-
|
|
7917
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7918
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7935
7919
|
return changePage('first');
|
|
7936
7920
|
}, disabled: currentPage === 1 }),
|
|
7937
|
-
|
|
7921
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7938
7922
|
return changePage('prev');
|
|
7939
7923
|
}, disabled: currentPage === 1 }),
|
|
7940
|
-
|
|
7924
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7941
7925
|
return renderNewPages('prev');
|
|
7942
7926
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7943
7927
|
pages.map(function (page) {
|
|
7944
|
-
return
|
|
7928
|
+
return React__default.createElement(
|
|
7945
7929
|
Pagination.Item,
|
|
7946
7930
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7947
7931
|
return changePage(page);
|
|
@@ -7949,13 +7933,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7949
7933
|
page
|
|
7950
7934
|
);
|
|
7951
7935
|
}),
|
|
7952
|
-
|
|
7936
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7953
7937
|
return renderNewPages('next');
|
|
7954
7938
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7955
|
-
|
|
7939
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7956
7940
|
return changePage('next');
|
|
7957
7941
|
}, disabled: currentPage === pageCount }),
|
|
7958
|
-
|
|
7942
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7959
7943
|
return changePage('last');
|
|
7960
7944
|
}, disabled: currentPage === pageCount })
|
|
7961
7945
|
);
|
|
@@ -8038,51 +8022,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8038
8022
|
}
|
|
8039
8023
|
};
|
|
8040
8024
|
|
|
8041
|
-
return
|
|
8042
|
-
|
|
8025
|
+
return React__default.createElement(
|
|
8026
|
+
React__default.Fragment,
|
|
8043
8027
|
null,
|
|
8044
|
-
quizzes[currentPage - 1] &&
|
|
8045
|
-
|
|
8028
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8029
|
+
React__default.Fragment,
|
|
8046
8030
|
null,
|
|
8047
|
-
|
|
8048
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8031
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8032
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8049
8033
|
'form',
|
|
8050
8034
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8051
8035
|
return e.preventDefault();
|
|
8052
8036
|
} },
|
|
8053
8037
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8054
|
-
return
|
|
8038
|
+
return React__default.createElement(
|
|
8055
8039
|
'div',
|
|
8056
8040
|
{ key: answer._key },
|
|
8057
|
-
|
|
8041
|
+
React__default.createElement(
|
|
8058
8042
|
'label',
|
|
8059
8043
|
{ className: 'pl-2' },
|
|
8060
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8044
|
+
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 }),
|
|
8061
8045
|
' ' + answer.answerText
|
|
8062
8046
|
)
|
|
8063
8047
|
);
|
|
8064
8048
|
})
|
|
8065
8049
|
)
|
|
8066
8050
|
),
|
|
8067
|
-
!showAnswer &&
|
|
8051
|
+
!showAnswer && React__default.createElement(
|
|
8068
8052
|
Button$1,
|
|
8069
8053
|
{ onClick: function onClick() {
|
|
8070
8054
|
return checkAnswers();
|
|
8071
8055
|
}, variant: 'info', block: true },
|
|
8072
8056
|
'Please click here for answer'
|
|
8073
8057
|
),
|
|
8074
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8075
|
-
|
|
8058
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8059
|
+
React__default.Fragment,
|
|
8076
8060
|
null,
|
|
8077
|
-
|
|
8061
|
+
React__default.createElement(
|
|
8078
8062
|
'h4',
|
|
8079
8063
|
null,
|
|
8080
8064
|
'Answer:'
|
|
8081
8065
|
),
|
|
8082
|
-
quizzes[currentPage - 1].answer &&
|
|
8066
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8083
8067
|
),
|
|
8084
|
-
|
|
8085
|
-
pageCount > 1 &&
|
|
8068
|
+
React__default.createElement('br', null),
|
|
8069
|
+
pageCount > 1 && React__default.createElement(
|
|
8086
8070
|
'div',
|
|
8087
8071
|
{ className: 'd-flex justify-content-center' },
|
|
8088
8072
|
renderPagination()
|
|
@@ -8093,10 +8077,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8093
8077
|
var Leads = function Leads(_ref) {
|
|
8094
8078
|
var url = _ref.url;
|
|
8095
8079
|
|
|
8096
|
-
return
|
|
8080
|
+
return React__default.createElement(
|
|
8097
8081
|
'div',
|
|
8098
8082
|
{ className: 'd-block text-center mb-3' },
|
|
8099
|
-
url &&
|
|
8083
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8100
8084
|
);
|
|
8101
8085
|
};
|
|
8102
8086
|
|
|
@@ -8117,8 +8101,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8117
8101
|
|
|
8118
8102
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8119
8103
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8120
|
-
carouselIndex = _useState2[0]
|
|
8121
|
-
_useState2[1];
|
|
8104
|
+
carouselIndex = _useState2[0],
|
|
8105
|
+
setCarouselIndex = _useState2[1];
|
|
8122
8106
|
|
|
8123
8107
|
// useEffect(() => {
|
|
8124
8108
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8144,42 +8128,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8144
8128
|
}
|
|
8145
8129
|
};
|
|
8146
8130
|
|
|
8147
|
-
return
|
|
8131
|
+
return React__default.createElement(
|
|
8148
8132
|
'div',
|
|
8149
8133
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8150
|
-
|
|
8134
|
+
React__default.createElement(
|
|
8151
8135
|
Carousel,
|
|
8152
8136
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8153
8137
|
slides && slides.map(function (slide) {
|
|
8154
8138
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8155
|
-
return
|
|
8139
|
+
return React__default.createElement(
|
|
8156
8140
|
Carousel.Item,
|
|
8157
8141
|
{ key: slide._key },
|
|
8158
|
-
|
|
8142
|
+
React__default.createElement(
|
|
8159
8143
|
'a',
|
|
8160
8144
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8161
|
-
|
|
8145
|
+
React__default.createElement(
|
|
8162
8146
|
LazyLoad,
|
|
8163
8147
|
null,
|
|
8164
|
-
|
|
8148
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8165
8149
|
)
|
|
8166
8150
|
),
|
|
8167
|
-
|
|
8151
|
+
React__default.createElement(
|
|
8168
8152
|
'div',
|
|
8169
8153
|
{ className: 'p-2' },
|
|
8170
|
-
slide.slideshowImage.caption &&
|
|
8154
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8171
8155
|
'h3',
|
|
8172
8156
|
{ style: { padding: '0px' } },
|
|
8173
8157
|
slide.slideshowImage.caption
|
|
8174
8158
|
),
|
|
8175
|
-
slide.description &&
|
|
8159
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8176
8160
|
)
|
|
8177
8161
|
);
|
|
8178
8162
|
}
|
|
8179
8163
|
return null;
|
|
8180
8164
|
})
|
|
8181
8165
|
),
|
|
8182
|
-
|
|
8166
|
+
React__default.createElement(
|
|
8183
8167
|
'style',
|
|
8184
8168
|
{ jsx: 'true' },
|
|
8185
8169
|
'\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 '
|
|
@@ -8198,10 +8182,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8198
8182
|
sizes = _props$node.sizes,
|
|
8199
8183
|
sizeMapping = _props$node.sizeMapping;
|
|
8200
8184
|
|
|
8201
|
-
return
|
|
8185
|
+
return React__default.createElement(
|
|
8202
8186
|
'div',
|
|
8203
8187
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8204
|
-
|
|
8188
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8205
8189
|
);
|
|
8206
8190
|
};
|
|
8207
8191
|
|
|
@@ -8212,15 +8196,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8212
8196
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8213
8197
|
|
|
8214
8198
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8215
|
-
return
|
|
8199
|
+
return React__default.createElement(
|
|
8216
8200
|
'section',
|
|
8217
8201
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8218
|
-
Caption &&
|
|
8202
|
+
Caption && React__default.createElement(
|
|
8219
8203
|
'h4',
|
|
8220
8204
|
{ className: 'formstack-caption' },
|
|
8221
8205
|
Caption
|
|
8222
8206
|
),
|
|
8223
|
-
|
|
8207
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8224
8208
|
);
|
|
8225
8209
|
};
|
|
8226
8210
|
|
|
@@ -8240,29 +8224,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8240
8224
|
}
|
|
8241
8225
|
});
|
|
8242
8226
|
if (medias && medias.length > 0) {
|
|
8243
|
-
return
|
|
8227
|
+
return React__default.createElement(
|
|
8244
8228
|
'div',
|
|
8245
8229
|
{ className: 'multi-media-container' },
|
|
8246
|
-
|
|
8230
|
+
React__default.createElement(
|
|
8247
8231
|
Row$1,
|
|
8248
8232
|
{ noGutters: true },
|
|
8249
8233
|
medias.map(function (media) {
|
|
8250
|
-
return
|
|
8234
|
+
return React__default.createElement(
|
|
8251
8235
|
Col$1,
|
|
8252
8236
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8253
|
-
|
|
8237
|
+
React__default.createElement(
|
|
8254
8238
|
'a',
|
|
8255
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8239
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8256
8240
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8257
|
-
|
|
8241
|
+
React__default.createElement(
|
|
8258
8242
|
'div',
|
|
8259
8243
|
{ className: 'multi-media-image-container' },
|
|
8260
|
-
imageBox &&
|
|
8244
|
+
imageBox && React__default.createElement(
|
|
8261
8245
|
LazyLoad,
|
|
8262
8246
|
{ once: true },
|
|
8263
|
-
|
|
8247
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8264
8248
|
),
|
|
8265
|
-
media.caption &&
|
|
8249
|
+
media.caption && React__default.createElement(
|
|
8266
8250
|
'span',
|
|
8267
8251
|
{ className: 'multi-media-caption' },
|
|
8268
8252
|
media.caption
|
|
@@ -8272,7 +8256,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8272
8256
|
);
|
|
8273
8257
|
})
|
|
8274
8258
|
),
|
|
8275
|
-
|
|
8259
|
+
React__default.createElement(
|
|
8276
8260
|
'style',
|
|
8277
8261
|
{ jsx: 'true' },
|
|
8278
8262
|
'\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 '
|
|
@@ -8319,7 +8303,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8319
8303
|
}
|
|
8320
8304
|
};
|
|
8321
8305
|
|
|
8322
|
-
_this.wraperRef =
|
|
8306
|
+
_this.wraperRef = React__default.createRef();
|
|
8323
8307
|
_this.visible = false;
|
|
8324
8308
|
return _this;
|
|
8325
8309
|
}
|
|
@@ -8347,7 +8331,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8347
8331
|
_props$id = _props.id,
|
|
8348
8332
|
id = _props$id === undefined ? '' : _props$id;
|
|
8349
8333
|
|
|
8350
|
-
return
|
|
8334
|
+
return React__default.createElement(
|
|
8351
8335
|
'div',
|
|
8352
8336
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8353
8337
|
this.props.children
|
|
@@ -8356,7 +8340,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8356
8340
|
}]);
|
|
8357
8341
|
|
|
8358
8342
|
return InscreenSensor;
|
|
8359
|
-
}(
|
|
8343
|
+
}(React__default.Component);
|
|
8360
8344
|
|
|
8361
8345
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8362
8346
|
var nodes = _ref.nodes,
|
|
@@ -8469,33 +8453,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8469
8453
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8470
8454
|
var showReading = show ? 'showReading' : '';
|
|
8471
8455
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8472
|
-
return
|
|
8456
|
+
return React__default.createElement(
|
|
8473
8457
|
'div',
|
|
8474
8458
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8475
|
-
|
|
8459
|
+
React__default.createElement(
|
|
8476
8460
|
'a',
|
|
8477
8461
|
{ onClick: function onClick(e) {
|
|
8478
8462
|
return articleCardClickHandler(e);
|
|
8479
8463
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8480
|
-
|
|
8464
|
+
React__default.createElement(
|
|
8481
8465
|
'div',
|
|
8482
8466
|
{ className: 'prevNext-thumbnail' },
|
|
8483
|
-
|
|
8484
|
-
|
|
8467
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8468
|
+
React__default.createElement(
|
|
8485
8469
|
'div',
|
|
8486
8470
|
{ className: 'prevNext-reading ' + showReading },
|
|
8487
8471
|
articleLabel
|
|
8488
8472
|
)
|
|
8489
8473
|
),
|
|
8490
|
-
|
|
8474
|
+
React__default.createElement(
|
|
8491
8475
|
'div',
|
|
8492
8476
|
{ className: 'prevNext-summary' },
|
|
8493
|
-
|
|
8477
|
+
React__default.createElement(
|
|
8494
8478
|
'div',
|
|
8495
8479
|
{ className: 'prevNext-publishDate' },
|
|
8496
8480
|
moment(article.published).format('LL')
|
|
8497
8481
|
),
|
|
8498
|
-
|
|
8482
|
+
React__default.createElement(
|
|
8499
8483
|
'h2',
|
|
8500
8484
|
{ className: 'prevNext-title' },
|
|
8501
8485
|
article.title
|
|
@@ -8544,7 +8528,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8544
8528
|
|
|
8545
8529
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8546
8530
|
if (biography) {
|
|
8547
|
-
return
|
|
8531
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8548
8532
|
}
|
|
8549
8533
|
};
|
|
8550
8534
|
|
|
@@ -8630,7 +8614,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8630
8614
|
//console.log('useLayoutEffect')
|
|
8631
8615
|
if (!firstLoad) {
|
|
8632
8616
|
setUpArrowClicked(false);
|
|
8633
|
-
if (
|
|
8617
|
+
if (main_36) {
|
|
8634
8618
|
grabLoadedAds();
|
|
8635
8619
|
} else {
|
|
8636
8620
|
scrollToArticle();
|
|
@@ -8654,7 +8638,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8654
8638
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8655
8639
|
if (pageview) pageview(path);
|
|
8656
8640
|
|
|
8657
|
-
if (!
|
|
8641
|
+
if (!main_36) {
|
|
8658
8642
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8659
8643
|
if (window.googletag && googletag.pubadsReady) {
|
|
8660
8644
|
lib_3.refresh();
|
|
@@ -8662,7 +8646,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8662
8646
|
});
|
|
8663
8647
|
}
|
|
8664
8648
|
//Refresh leaderboard ad on mobile
|
|
8665
|
-
if (
|
|
8649
|
+
if (main_36) {
|
|
8666
8650
|
var leaderboardSlotId = '';
|
|
8667
8651
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8668
8652
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8702,38 +8686,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8702
8686
|
setSensorVisible(false);
|
|
8703
8687
|
};
|
|
8704
8688
|
|
|
8705
|
-
return
|
|
8706
|
-
|
|
8689
|
+
return React__default.createElement(
|
|
8690
|
+
React__default.Fragment,
|
|
8707
8691
|
null,
|
|
8708
|
-
|
|
8692
|
+
React__default.createElement(
|
|
8709
8693
|
'div',
|
|
8710
8694
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8711
|
-
|
|
8695
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8712
8696
|
return handleArrowClick();
|
|
8713
8697
|
} })
|
|
8714
8698
|
),
|
|
8715
|
-
|
|
8716
|
-
|
|
8699
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8700
|
+
React__default.createElement(
|
|
8717
8701
|
'div',
|
|
8718
8702
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8719
|
-
|
|
8703
|
+
React__default.createElement(
|
|
8720
8704
|
'h5',
|
|
8721
8705
|
{ className: 'objective-title' },
|
|
8722
8706
|
nodes.seriesTitle
|
|
8723
8707
|
),
|
|
8724
|
-
|
|
8708
|
+
React__default.createElement(
|
|
8725
8709
|
'div',
|
|
8726
8710
|
{ className: 'prevNextWrapper' },
|
|
8727
8711
|
PrevNextCards(false, -1)
|
|
8728
8712
|
)
|
|
8729
8713
|
),
|
|
8730
|
-
|
|
8731
|
-
|
|
8714
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8715
|
+
React__default.createElement(
|
|
8732
8716
|
'div',
|
|
8733
8717
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8734
|
-
|
|
8718
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8735
8719
|
if (index === 0) {
|
|
8736
|
-
return
|
|
8720
|
+
return React__default.createElement(
|
|
8737
8721
|
'div',
|
|
8738
8722
|
{
|
|
8739
8723
|
key: 'addid-1',
|
|
@@ -8753,14 +8737,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8753
8737
|
}
|
|
8754
8738
|
})
|
|
8755
8739
|
),
|
|
8756
|
-
|
|
8740
|
+
React__default.createElement(
|
|
8757
8741
|
'div',
|
|
8758
8742
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8759
8743
|
Articles.map(function (article, index) {
|
|
8760
|
-
return
|
|
8744
|
+
return React__default.createElement(
|
|
8761
8745
|
'div',
|
|
8762
8746
|
{ key: article.title },
|
|
8763
|
-
|
|
8747
|
+
React__default.createElement(
|
|
8764
8748
|
InscreenSensor,
|
|
8765
8749
|
{
|
|
8766
8750
|
visible: sensorVisible,
|
|
@@ -8778,84 +8762,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8778
8762
|
}
|
|
8779
8763
|
}
|
|
8780
8764
|
} },
|
|
8781
|
-
|
|
8765
|
+
React__default.createElement(
|
|
8782
8766
|
Head,
|
|
8783
8767
|
null,
|
|
8784
|
-
currentTitle !== null &&
|
|
8768
|
+
currentTitle !== null && React__default.createElement(
|
|
8785
8769
|
'title',
|
|
8786
8770
|
{ key: 'title' },
|
|
8787
8771
|
currentTitle
|
|
8788
8772
|
),
|
|
8789
|
-
currentSummary !== null &&
|
|
8790
|
-
currentURL !== null &&
|
|
8791
|
-
currentTitle !== null &&
|
|
8792
|
-
currentThumbnail !== null &&
|
|
8793
|
-
currentSummary !== null &&
|
|
8794
|
-
currentTitle !== null &&
|
|
8795
|
-
currentThumbnail !== null &&
|
|
8796
|
-
currentSummary !== null &&
|
|
8773
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8774
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8775
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8776
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8777
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8778
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8779
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8780
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8797
8781
|
),
|
|
8798
|
-
|
|
8782
|
+
React__default.createElement(
|
|
8799
8783
|
'article',
|
|
8800
8784
|
{ className: 'article-wrapper' },
|
|
8801
|
-
|
|
8785
|
+
React__default.createElement(
|
|
8802
8786
|
'div',
|
|
8803
8787
|
{ className: 'article-publishDate' },
|
|
8804
8788
|
moment(article.published).format('LL')
|
|
8805
8789
|
),
|
|
8806
|
-
|
|
8790
|
+
React__default.createElement(
|
|
8807
8791
|
'div',
|
|
8808
8792
|
{ className: 'author-details-wrapper' },
|
|
8809
8793
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8810
|
-
return
|
|
8794
|
+
return React__default.createElement(
|
|
8811
8795
|
'span',
|
|
8812
8796
|
{ key: index },
|
|
8813
8797
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8814
8798
|
);
|
|
8815
8799
|
})
|
|
8816
8800
|
),
|
|
8817
|
-
|
|
8801
|
+
React__default.createElement(
|
|
8818
8802
|
'h2',
|
|
8819
8803
|
{ className: 'article-title' },
|
|
8820
8804
|
article.title
|
|
8821
8805
|
),
|
|
8822
|
-
|
|
8806
|
+
React__default.createElement(
|
|
8823
8807
|
'div',
|
|
8824
8808
|
{ className: 'mt-2 mb-2' },
|
|
8825
|
-
|
|
8809
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8826
8810
|
serializers: getSerializers,
|
|
8827
8811
|
videoAccountIDs: accountIDs,
|
|
8828
8812
|
blocks: article.text,
|
|
8829
8813
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8830
8814
|
}, client.config())),
|
|
8831
|
-
|
|
8815
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8832
8816
|
),
|
|
8833
|
-
Articles.length > 1 &&
|
|
8834
|
-
|
|
8817
|
+
Articles.length > 1 && React__default.createElement(
|
|
8818
|
+
React__default.Fragment,
|
|
8835
8819
|
null,
|
|
8836
|
-
|
|
8820
|
+
React__default.createElement(
|
|
8837
8821
|
'div',
|
|
8838
8822
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8839
|
-
|
|
8823
|
+
React__default.createElement(
|
|
8840
8824
|
'h5',
|
|
8841
8825
|
{ className: 'objective-title' },
|
|
8842
8826
|
nodes.seriesTitle
|
|
8843
8827
|
),
|
|
8844
|
-
|
|
8828
|
+
React__default.createElement(
|
|
8845
8829
|
'div',
|
|
8846
8830
|
{ className: 'prevNextWrapper' },
|
|
8847
8831
|
PrevNextCards(true, index)
|
|
8848
8832
|
)
|
|
8849
8833
|
),
|
|
8850
|
-
|
|
8834
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8851
8835
|
)
|
|
8852
8836
|
),
|
|
8853
|
-
|
|
8837
|
+
React__default.createElement(
|
|
8854
8838
|
'div',
|
|
8855
8839
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8856
|
-
|
|
8840
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8857
8841
|
if (innerIndex === 0) {
|
|
8858
|
-
return
|
|
8842
|
+
return React__default.createElement(
|
|
8859
8843
|
'div',
|
|
8860
8844
|
{
|
|
8861
8845
|
key: 'addid-' + (index + 2),
|
|
@@ -8878,7 +8862,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8878
8862
|
)
|
|
8879
8863
|
);
|
|
8880
8864
|
}),
|
|
8881
|
-
|
|
8865
|
+
React__default.createElement(
|
|
8882
8866
|
'style',
|
|
8883
8867
|
{ jsx: 'true' },
|
|
8884
8868
|
'\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 '
|
|
@@ -8908,11 +8892,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8908
8892
|
};
|
|
8909
8893
|
}, [handleClickOutside]);
|
|
8910
8894
|
|
|
8911
|
-
return
|
|
8895
|
+
return React__default.createElement(
|
|
8912
8896
|
'div',
|
|
8913
8897
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8914
|
-
|
|
8915
|
-
|
|
8898
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8899
|
+
React__default.createElement(
|
|
8916
8900
|
'style',
|
|
8917
8901
|
{ jsx: 'true' },
|
|
8918
8902
|
'\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 '
|
|
@@ -9006,13 +8990,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9006
8990
|
|
|
9007
8991
|
var FigureCaption = useCallback(function () {
|
|
9008
8992
|
if (imgcaption && imgcaption.length > 0) {
|
|
9009
|
-
return
|
|
8993
|
+
return React__default.createElement(
|
|
9010
8994
|
'div',
|
|
9011
8995
|
{ className: 'figure-caption' },
|
|
9012
|
-
|
|
8996
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9013
8997
|
);
|
|
9014
8998
|
} else if (caption) {
|
|
9015
|
-
return
|
|
8999
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9016
9000
|
} else return null;
|
|
9017
9001
|
}, [caption, imgcaption]);
|
|
9018
9002
|
|
|
@@ -9024,21 +9008,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9024
9008
|
margin: figureMargin
|
|
9025
9009
|
};
|
|
9026
9010
|
|
|
9027
|
-
return
|
|
9028
|
-
|
|
9011
|
+
return React__default.createElement(
|
|
9012
|
+
React__default.Fragment,
|
|
9029
9013
|
null,
|
|
9030
|
-
|
|
9031
|
-
Figure$
|
|
9014
|
+
React__default.createElement(
|
|
9015
|
+
Figure$1$1,
|
|
9032
9016
|
{ className: '' + class_name, style: figureStyle },
|
|
9033
|
-
link ?
|
|
9017
|
+
link ? React__default.createElement(
|
|
9034
9018
|
'a',
|
|
9035
9019
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
) :
|
|
9039
|
-
|
|
9020
|
+
React__default.createElement(Figure$1$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9021
|
+
React__default.createElement(FigureCaption, null)
|
|
9022
|
+
) : React__default.createElement(
|
|
9023
|
+
React__default.Fragment,
|
|
9040
9024
|
null,
|
|
9041
|
-
|
|
9025
|
+
React__default.createElement(Figure$1$1.Image, {
|
|
9042
9026
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9043
9027
|
className: 'figure-image',
|
|
9044
9028
|
src: urlFor$3(node, client).url(),
|
|
@@ -9048,9 +9032,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9048
9032
|
setShowLightbox(true);
|
|
9049
9033
|
}
|
|
9050
9034
|
}),
|
|
9051
|
-
|
|
9035
|
+
React__default.createElement(FigureCaption, null)
|
|
9052
9036
|
),
|
|
9053
|
-
|
|
9037
|
+
React__default.createElement(LightBox, {
|
|
9054
9038
|
showLightbox: showLightbox,
|
|
9055
9039
|
lightboxImgSrc: lightboxImgSrc,
|
|
9056
9040
|
closeLightbox: function closeLightbox() {
|
|
@@ -9059,7 +9043,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9059
9043
|
}
|
|
9060
9044
|
})
|
|
9061
9045
|
),
|
|
9062
|
-
|
|
9046
|
+
React__default.createElement(
|
|
9063
9047
|
'style',
|
|
9064
9048
|
{ jsx: 'true' },
|
|
9065
9049
|
'\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 '
|
|
@@ -9067,7 +9051,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9067
9051
|
);
|
|
9068
9052
|
};
|
|
9069
9053
|
|
|
9070
|
-
var Figure =
|
|
9054
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9071
9055
|
|
|
9072
9056
|
var urlFor$4 = function urlFor(source, client) {
|
|
9073
9057
|
var builder = imageUrlBuilder(client);
|
|
@@ -9113,47 +9097,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9113
9097
|
imgcaption = _ref.imgcaption;
|
|
9114
9098
|
|
|
9115
9099
|
if (imgcaption && imgcaption.length > 0) {
|
|
9116
|
-
return
|
|
9100
|
+
return React__default.createElement(
|
|
9117
9101
|
'div',
|
|
9118
9102
|
{ className: 'multi-figure-caption' },
|
|
9119
|
-
|
|
9103
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9120
9104
|
);
|
|
9121
9105
|
} else if (caption) {
|
|
9122
|
-
return
|
|
9106
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9123
9107
|
} else return null;
|
|
9124
9108
|
};
|
|
9125
9109
|
|
|
9126
9110
|
if (images && images.length > 0) {
|
|
9127
|
-
return
|
|
9111
|
+
return React__default.createElement(
|
|
9128
9112
|
'div',
|
|
9129
9113
|
{ className: 'multi-figure-container' },
|
|
9130
|
-
|
|
9114
|
+
React__default.createElement(
|
|
9131
9115
|
Row$1,
|
|
9132
9116
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9133
9117
|
images.map(function (image, index) {
|
|
9134
|
-
return
|
|
9118
|
+
return React__default.createElement(
|
|
9135
9119
|
Col$1,
|
|
9136
9120
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9137
|
-
image.link ?
|
|
9121
|
+
image.link ? React__default.createElement(
|
|
9138
9122
|
'a',
|
|
9139
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9140
|
-
|
|
9123
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9124
|
+
React__default.createElement(
|
|
9141
9125
|
'div',
|
|
9142
9126
|
{ className: 'multi-figure-image-container' },
|
|
9143
|
-
|
|
9127
|
+
React__default.createElement(
|
|
9144
9128
|
LazyLoad,
|
|
9145
9129
|
{ once: true },
|
|
9146
|
-
|
|
9130
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9147
9131
|
),
|
|
9148
|
-
|
|
9132
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9149
9133
|
)
|
|
9150
|
-
) :
|
|
9134
|
+
) : React__default.createElement(
|
|
9151
9135
|
'div',
|
|
9152
9136
|
{ className: 'multi-figure-image-container' },
|
|
9153
|
-
|
|
9137
|
+
React__default.createElement(
|
|
9154
9138
|
LazyLoad,
|
|
9155
9139
|
{ once: true },
|
|
9156
|
-
|
|
9140
|
+
React__default.createElement('img', {
|
|
9157
9141
|
'images-count': images.length,
|
|
9158
9142
|
className: 'multi-figure-image',
|
|
9159
9143
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9164,17 +9148,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9164
9148
|
}
|
|
9165
9149
|
})
|
|
9166
9150
|
),
|
|
9167
|
-
|
|
9151
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9168
9152
|
)
|
|
9169
9153
|
);
|
|
9170
9154
|
})
|
|
9171
9155
|
),
|
|
9172
|
-
|
|
9156
|
+
React__default.createElement(
|
|
9173
9157
|
'div',
|
|
9174
9158
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9175
|
-
|
|
9159
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9176
9160
|
),
|
|
9177
|
-
|
|
9161
|
+
React__default.createElement(
|
|
9178
9162
|
'style',
|
|
9179
9163
|
{ jsx: 'true' },
|
|
9180
9164
|
'\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 '
|
|
@@ -9196,10 +9180,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9196
9180
|
|
|
9197
9181
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9198
9182
|
|
|
9199
|
-
return
|
|
9183
|
+
return React__default.createElement(
|
|
9200
9184
|
'div',
|
|
9201
9185
|
{ id: elementId },
|
|
9202
|
-
|
|
9186
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9203
9187
|
);
|
|
9204
9188
|
};
|
|
9205
9189
|
|
|
@@ -9274,17 +9258,17 @@ var getSerializers = function getSerializers() {
|
|
|
9274
9258
|
var node = _ref.node;
|
|
9275
9259
|
var url = node.url;
|
|
9276
9260
|
|
|
9277
|
-
return
|
|
9261
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
9278
9262
|
},
|
|
9279
9263
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9280
9264
|
var node = _ref2.node;
|
|
9281
9265
|
|
|
9282
|
-
return
|
|
9266
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, article: article, meta: meta, authorPrefix: authorPrefix, authorImgHeight: authorImgHeight, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
9283
9267
|
},
|
|
9284
9268
|
articleSeries: function articleSeries(_ref3) {
|
|
9285
9269
|
var node = _ref3.node;
|
|
9286
9270
|
|
|
9287
|
-
return
|
|
9271
|
+
return React__default.createElement(ArticleSeries, {
|
|
9288
9272
|
nodes: node,
|
|
9289
9273
|
accountIDs: videoAccountIDs || {},
|
|
9290
9274
|
pageview: pageview,
|
|
@@ -9297,61 +9281,61 @@ var getSerializers = function getSerializers() {
|
|
|
9297
9281
|
figure: function figure(_ref4) {
|
|
9298
9282
|
var node = _ref4.node;
|
|
9299
9283
|
|
|
9300
|
-
return
|
|
9284
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9301
9285
|
},
|
|
9302
9286
|
multifigure: function multifigure(_ref5) {
|
|
9303
9287
|
var node = _ref5.node;
|
|
9304
9288
|
|
|
9305
|
-
return
|
|
9289
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9306
9290
|
},
|
|
9307
9291
|
slideshow: function slideshow(_ref6) {
|
|
9308
9292
|
var node = _ref6.node;
|
|
9309
9293
|
var slides = node.slides;
|
|
9310
9294
|
|
|
9311
|
-
return
|
|
9295
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9312
9296
|
},
|
|
9313
9297
|
sidebar: function sidebar(_ref7) {
|
|
9314
9298
|
var node = _ref7.node;
|
|
9315
9299
|
var caption = node.caption,
|
|
9316
9300
|
content = node.content;
|
|
9317
9301
|
|
|
9318
|
-
return
|
|
9302
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9319
9303
|
},
|
|
9320
9304
|
datatable: function datatable(_ref8) {
|
|
9321
9305
|
var node = _ref8.node;
|
|
9322
9306
|
var table = node.table;
|
|
9323
9307
|
|
|
9324
|
-
return
|
|
9308
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9325
9309
|
},
|
|
9326
9310
|
media: function media(_ref9) {
|
|
9327
9311
|
var node = _ref9.node;
|
|
9328
9312
|
|
|
9329
|
-
return
|
|
9313
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9330
9314
|
},
|
|
9331
9315
|
iframe: function iframe(_ref10) {
|
|
9332
9316
|
var node = _ref10.node;
|
|
9333
9317
|
|
|
9334
|
-
return
|
|
9318
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9335
9319
|
},
|
|
9336
9320
|
video: function video(_ref11) {
|
|
9337
9321
|
var node = _ref11.node;
|
|
9338
9322
|
|
|
9339
|
-
return
|
|
9323
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9340
9324
|
},
|
|
9341
9325
|
audio: function audio(_ref12) {
|
|
9342
9326
|
var node = _ref12.node;
|
|
9343
9327
|
|
|
9344
|
-
return
|
|
9328
|
+
return React__default.createElement(Audio, { node: node });
|
|
9345
9329
|
},
|
|
9346
9330
|
poll: function poll(_ref13) {
|
|
9347
9331
|
var node = _ref13.node;
|
|
9348
9332
|
|
|
9349
|
-
return
|
|
9333
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9350
9334
|
},
|
|
9351
9335
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9352
9336
|
var node = _ref14.node;
|
|
9353
9337
|
|
|
9354
|
-
return
|
|
9338
|
+
return React__default.createElement(Poll$1, {
|
|
9355
9339
|
node: node,
|
|
9356
9340
|
client: client,
|
|
9357
9341
|
pageview: pageview,
|
|
@@ -9365,35 +9349,35 @@ var getSerializers = function getSerializers() {
|
|
|
9365
9349
|
var node = _ref15.node;
|
|
9366
9350
|
var quizzes = node.quizzes;
|
|
9367
9351
|
|
|
9368
|
-
return
|
|
9352
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9369
9353
|
},
|
|
9370
9354
|
leads: function leads(_ref16) {
|
|
9371
9355
|
var node = _ref16.node;
|
|
9372
9356
|
var leadID = node.leadID;
|
|
9373
9357
|
|
|
9374
9358
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9375
|
-
return
|
|
9359
|
+
return React__default.createElement(Leads, { url: url });
|
|
9376
9360
|
},
|
|
9377
9361
|
slideshows: function slideshows(_ref17) {
|
|
9378
9362
|
var node = _ref17.node;
|
|
9379
9363
|
|
|
9380
|
-
return
|
|
9364
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9381
9365
|
},
|
|
9382
9366
|
nativeAd: function nativeAd(_ref18) {
|
|
9383
9367
|
var node = _ref18.node;
|
|
9384
9368
|
|
|
9385
|
-
return
|
|
9369
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9386
9370
|
},
|
|
9387
9371
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9388
9372
|
var node = _ref19.node;
|
|
9389
9373
|
|
|
9390
|
-
return
|
|
9374
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9391
9375
|
},
|
|
9392
9376
|
hrtag: function hrtag() {
|
|
9393
|
-
return
|
|
9377
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9394
9378
|
},
|
|
9395
9379
|
brtag: function brtag() {
|
|
9396
|
-
return
|
|
9380
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9397
9381
|
},
|
|
9398
9382
|
formstack: function formstack(_ref20) {
|
|
9399
9383
|
var node = _ref20.node;
|
|
@@ -9401,24 +9385,24 @@ var getSerializers = function getSerializers() {
|
|
|
9401
9385
|
Caption = node.Caption,
|
|
9402
9386
|
needSegmentSupport = node.needSegmentSupport;
|
|
9403
9387
|
|
|
9404
|
-
return
|
|
9388
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9405
9389
|
},
|
|
9406
9390
|
multimedia: function multimedia(_ref21) {
|
|
9407
9391
|
var node = _ref21.node;
|
|
9408
9392
|
|
|
9409
|
-
return
|
|
9393
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9410
9394
|
}
|
|
9411
9395
|
},
|
|
9412
9396
|
marks: {
|
|
9413
9397
|
superscript: function superscript(props) {
|
|
9414
|
-
return
|
|
9398
|
+
return React__default.createElement(
|
|
9415
9399
|
'sup',
|
|
9416
9400
|
null,
|
|
9417
9401
|
props.children
|
|
9418
9402
|
);
|
|
9419
9403
|
},
|
|
9420
9404
|
subscript: function subscript(props) {
|
|
9421
|
-
return
|
|
9405
|
+
return React__default.createElement(
|
|
9422
9406
|
'sub',
|
|
9423
9407
|
null,
|
|
9424
9408
|
props.children
|
|
@@ -9434,7 +9418,7 @@ var getSerializers = function getSerializers() {
|
|
|
9434
9418
|
if (href && href.charAt(0) === '#') {
|
|
9435
9419
|
var elementId = href.slice(1);
|
|
9436
9420
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9437
|
-
return
|
|
9421
|
+
return React__default.createElement(
|
|
9438
9422
|
'a',
|
|
9439
9423
|
{ onClick: function onClick() {
|
|
9440
9424
|
return ScrollToElement(elementId);
|
|
@@ -9444,7 +9428,7 @@ var getSerializers = function getSerializers() {
|
|
|
9444
9428
|
}
|
|
9445
9429
|
|
|
9446
9430
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9447
|
-
return
|
|
9431
|
+
return React__default.createElement(
|
|
9448
9432
|
'a',
|
|
9449
9433
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9450
9434
|
children
|
|
@@ -9452,7 +9436,7 @@ var getSerializers = function getSerializers() {
|
|
|
9452
9436
|
},
|
|
9453
9437
|
alignleft: function alignleft(_ref22) {
|
|
9454
9438
|
var children = _ref22.children;
|
|
9455
|
-
return
|
|
9439
|
+
return React__default.createElement(
|
|
9456
9440
|
'div',
|
|
9457
9441
|
{ style: { textAlign: 'left' } },
|
|
9458
9442
|
children
|
|
@@ -9460,7 +9444,7 @@ var getSerializers = function getSerializers() {
|
|
|
9460
9444
|
},
|
|
9461
9445
|
alignright: function alignright(_ref23) {
|
|
9462
9446
|
var children = _ref23.children;
|
|
9463
|
-
return
|
|
9447
|
+
return React__default.createElement(
|
|
9464
9448
|
'div',
|
|
9465
9449
|
{ style: { textAlign: 'right' } },
|
|
9466
9450
|
children
|
|
@@ -9468,7 +9452,7 @@ var getSerializers = function getSerializers() {
|
|
|
9468
9452
|
},
|
|
9469
9453
|
aligncenter: function aligncenter(_ref24) {
|
|
9470
9454
|
var children = _ref24.children;
|
|
9471
|
-
return
|
|
9455
|
+
return React__default.createElement(
|
|
9472
9456
|
'div',
|
|
9473
9457
|
{ style: { textAlign: 'center' } },
|
|
9474
9458
|
children
|
|
@@ -9476,7 +9460,7 @@ var getSerializers = function getSerializers() {
|
|
|
9476
9460
|
},
|
|
9477
9461
|
alignjustify: function alignjustify(_ref25) {
|
|
9478
9462
|
var children = _ref25.children;
|
|
9479
|
-
return
|
|
9463
|
+
return React__default.createElement(
|
|
9480
9464
|
'div',
|
|
9481
9465
|
{ style: { textAlign: 'justify' } },
|
|
9482
9466
|
children
|
|
@@ -9486,7 +9470,7 @@ var getSerializers = function getSerializers() {
|
|
|
9486
9470
|
var children = props.children,
|
|
9487
9471
|
color = props.mark.color;
|
|
9488
9472
|
|
|
9489
|
-
return
|
|
9473
|
+
return React__default.createElement(
|
|
9490
9474
|
'span',
|
|
9491
9475
|
{ style: { color: color ? color.hex : null } },
|
|
9492
9476
|
children
|