@mjhls/mjh-framework 1.0.865 → 1.0.866-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -30
- package/dist/cjs/AD300x250x600.js +28 -30
- package/dist/cjs/AD728x90.js +31 -33
- package/dist/cjs/ADFloatingFooter.js +30 -32
- package/dist/cjs/ADFooter.js +12 -15
- package/dist/cjs/ADGutter.js +30 -32
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-7c09edba.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -32
- package/dist/cjs/ADSponsoredResources.js +30 -32
- package/dist/cjs/ADWebcast.js +30 -32
- package/dist/cjs/ADWelcome.js +31 -33
- package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-2e7effc7.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -31
- package/dist/cjs/AdSlot.js +33 -35
- package/dist/cjs/AdSlotsProvider.js +910 -20
- package/dist/cjs/AlgoliaSearch.js +14023 -60
- package/dist/cjs/AlphabeticList.js +23 -26
- package/dist/cjs/ArticleCarousel.js +19 -22
- package/dist/cjs/ArticleProgramLandingPage.js +60 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -43
- package/dist/cjs/ArticleSeriesListing.js +60 -62
- package/dist/cjs/Auth.js +1504 -682
- package/dist/cjs/AuthWrapper.js +266 -310
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -29
- package/dist/cjs/CMEDeck.js +82 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -36
- package/dist/cjs/Column3.js +57 -61
- package/dist/cjs/ConferenceArticleCard.js +25 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -99
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-14d2455c.js} +32 -34
- package/dist/cjs/EventsDeck.js +134 -143
- package/dist/cjs/ExternalResources.js +78 -80
- package/dist/cjs/Feature.js +27 -26
- package/dist/cjs/ForbesHero.js +40 -43
- package/dist/cjs/GridContent.js +232 -238
- package/dist/cjs/GridHero.js +42 -45
- package/dist/cjs/GroupDeck.js +57 -60
- package/dist/cjs/HamMagazine.js +130 -137
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -73
- package/dist/cjs/HorizontalHero.js +28 -26
- package/dist/cjs/IssueContentDeck.js +71 -78
- package/dist/cjs/IssueDeck.js +70 -77
- package/dist/cjs/IssueLanding.js +65 -67
- package/dist/cjs/LeftNav.js +37 -40
- package/dist/cjs/MasterDeck.js +70 -72
- package/dist/cjs/MediaSeriesLanding.js +1093 -1186
- package/dist/cjs/NavDvm.js +72 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +136 -143
- package/dist/cjs/NavNative.js +128 -138
- package/dist/cjs/OncliveHero.js +22 -19
- package/dist/cjs/OncliveLargeHero.js +70 -73
- package/dist/cjs/PageFilter.js +12 -15
- package/dist/cjs/PartnerDetailListing.js +3917 -118
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -21
- package/dist/cjs/PubSection.js +41 -43
- package/dist/cjs/PubToc.js +13 -16
- package/dist/cjs/PublicationDeck.js +65 -67
- package/dist/cjs/PublicationLanding.js +129 -135
- package/dist/cjs/QueueDeckExpanded.js +309 -310
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +29 -27
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -22
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +37 -38
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-49b81b0b.js} +35 -36
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-650f6101.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -64
- package/dist/cjs/TaxonomyDescription.js +53 -55
- package/dist/cjs/TemplateNormal.js +72 -74
- package/dist/cjs/ThumbnailCard.js +24 -23
- package/dist/cjs/Ustream.js +28 -31
- package/dist/cjs/VerticalHero.js +19 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -79
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -52
- package/dist/cjs/VideoSeriesListing.js +77 -79
- package/dist/cjs/View.js +281 -284
- package/dist/cjs/YahooHero.js +39 -42
- package/dist/cjs/YoutubeGroup.js +57 -60
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-aa52fa1e.js} +14 -14
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-05795553.js} +9 -10
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/_object-sap-171b9ea5.js +16 -0
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-9bac8737.js} +5 -5
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-df19209d.js} +82 -84
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{_to-object-6de10e57.js → core.get-iterator-method-f3c44602.js} +247 -11
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/define-property-21887c62.js +20 -0
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-eed4f016.js} +13 -13
- package/dist/cjs/faundadb.js +19 -21
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +18 -20
- package/dist/cjs/getRootDocGroup.js +6 -8
- package/dist/cjs/getSerializers.js +44 -45
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +6 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-32097c80.js → index-59af05c4.js} +1089 -1094
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +164 -171
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-c2065b95.js → inherits-cba9c846.js} +26 -27
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-d207942e.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- 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-5d1bc3b3.js → slicedToArray-f6d4eaa8.js} +17 -19
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-bbc68047.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-c9b8a0d0.js} +12 -14
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-5f52cf64.js} +97 -98
- package/dist/cjs/urlFor.js +21 -4
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-e34bf324.js} +8 -9
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -23
- package/dist/esm/AD300x250x600.js +22 -23
- package/dist/esm/AD728x90.js +25 -26
- package/dist/esm/ADFloatingFooter.js +21 -22
- package/dist/esm/ADFooter.js +4 -6
- package/dist/esm/ADGutter.js +21 -22
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-bfd129d9.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -22
- package/dist/esm/ADSponsoredResources.js +21 -22
- package/dist/esm/ADWebcast.js +21 -22
- package/dist/esm/ADWelcome.js +18 -19
- package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-0489335b.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -8
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +907 -16
- package/dist/esm/AlgoliaSearch.js +13993 -29
- package/dist/esm/AlphabeticList.js +8 -10
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +48 -49
- package/dist/esm/ArticleSeriesLandingPage.js +31 -32
- package/dist/esm/ArticleSeriesListing.js +33 -34
- package/dist/esm/Auth.js +1418 -592
- package/dist/esm/AuthWrapper.js +244 -287
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -7
- package/dist/esm/CMEDeck.js +23 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -21
- package/dist/esm/Column3.js +37 -38
- package/dist/esm/ConferenceArticleCard.js +10 -7
- package/dist/esm/DeckContent.js +48 -49
- package/dist/esm/DeckQueue.js +48 -48
- package/dist/esm/{Dfp-be030f2a.js → Dfp-f867d061.js} +13 -14
- package/dist/esm/EventsDeck.js +48 -50
- package/dist/esm/ExternalResources.js +46 -47
- package/dist/esm/Feature.js +7 -4
- package/dist/esm/ForbesHero.js +10 -12
- package/dist/esm/GridContent.js +89 -90
- package/dist/esm/GridHero.js +11 -13
- package/dist/esm/GroupDeck.js +12 -14
- package/dist/esm/HamMagazine.js +28 -30
- package/dist/esm/Hero.js +7 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -47
- package/dist/esm/HorizontalHero.js +8 -5
- package/dist/esm/IssueContentDeck.js +25 -27
- package/dist/esm/IssueDeck.js +35 -37
- package/dist/esm/IssueLanding.js +54 -55
- package/dist/esm/LeftNav.js +20 -21
- package/dist/esm/MasterDeck.js +35 -36
- package/dist/esm/MediaSeriesLanding.js +643 -733
- package/dist/esm/NavDvm.js +14 -16
- package/dist/esm/NavMagazine.js +32 -34
- package/dist/esm/NavNative.js +32 -34
- package/dist/esm/OncliveHero.js +8 -4
- package/dist/esm/OncliveLargeHero.js +11 -13
- package/dist/esm/PageFilter.js +4 -6
- package/dist/esm/PartnerDetailListing.js +3863 -64
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -6
- package/dist/esm/PubSection.js +33 -34
- package/dist/esm/PubToc.js +6 -8
- package/dist/esm/PublicationDeck.js +27 -24
- package/dist/esm/PublicationLanding.js +47 -49
- package/dist/esm/QueueDeckExpanded.js +37 -38
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +10 -7
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -8
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-d555a1d2.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -15
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-d7dec0c2.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -25
- package/dist/esm/TaxonomyDescription.js +44 -45
- package/dist/esm/TemplateNormal.js +48 -49
- package/dist/esm/ThumbnailCard.js +10 -7
- package/dist/esm/Ustream.js +12 -14
- package/dist/esm/VerticalHero.js +6 -3
- package/dist/esm/VideoProgramLandingPage.js +52 -53
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -9
- package/dist/esm/VideoSeriesLandingPage.js +37 -38
- package/dist/esm/VideoSeriesListing.js +34 -35
- package/dist/esm/View.js +109 -108
- package/dist/esm/YahooHero.js +13 -15
- package/dist/esm/YoutubeGroup.js +17 -19
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-130ee549.js} +7 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-7bf8bc4d.js} +30 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{_to-object-b50e61c3.js → core.get-iterator-method-86d4db69.js} +238 -9
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +12 -14
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +44 -45
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +6 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index-5e84f9cd.js → index-efc23b2b.js} +664 -659
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -126
- package/dist/esm/{inherits-a41fe93f.js → inherits-2409637d.js} +18 -19
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/keys-69989821.js +23 -0
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-67a08c9c.js} +12 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-32282905.js} +7 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-c05a82ba.js} +35 -36
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-f8f967cd.js} +2 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_object-sap-a175b4a9.js +0 -16
- package/dist/cjs/core.get-iterator-method-f474eacc.js +0 -39
- package/dist/cjs/define-property-c88be878.js +0 -20
- package/dist/cjs/es6.string.iterator-c2573ffd.js +0 -210
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/core.get-iterator-method-133dfacd.js +0 -36
- package/dist/esm/define-property-fe54dc9f.js +0 -18
- package/dist/esm/es6.string.iterator-bc33758b.js +0 -201
- package/dist/esm/keys-7a3adabf.js +0 -23
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { _ as _export, a as _core } from './core.get-iterator-method-86d4db69.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
4
|
+
import { _ as _extends$1, b as _extends$2 } from './extends-5b1796d4.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-2409637d.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
2
7
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
5
|
-
import urlFor from './urlFor.js';
|
|
6
|
-
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
|
-
import Router, { useRouter } from 'next/router';
|
|
8
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import { u as util } from './util-3ab476bf.js';
|
|
12
|
-
import Beam from './Beam.js';
|
|
13
|
-
import Segment from './Segment.js';
|
|
14
|
-
import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
|
|
15
|
-
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
16
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
19
|
-
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
21
|
-
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
30
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 { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
|
|
15
|
+
import urlFor from './urlFor.js';
|
|
16
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
17
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
18
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
19
|
+
import Segment from './Segment.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
|
+
import GroupDeck from './GroupDeck.js';
|
|
26
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
+
import { u as util } from './util-7700fc59.js';
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
31
30
|
import Head from 'next/head';
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
31
|
+
import SocialShare from './SocialShare.js';
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
33
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
-
import Popover from 'react-bootstrap/Popover';
|
|
36
|
+
import Tooltip$1 from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover$1 from 'react-bootstrap/Popover';
|
|
38
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -42,7 +42,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
42
42
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var Slideshow
|
|
45
|
+
var Slideshow = function Slideshow(_ref) {
|
|
46
46
|
var slides = _ref.slides,
|
|
47
47
|
client = _ref.client,
|
|
48
48
|
pageview = _ref.pageview;
|
|
@@ -100,18 +100,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
var isArray = Array.isArray;
|
|
104
|
+
var keyList = Object.keys;
|
|
105
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
106
106
|
|
|
107
107
|
var fastDeepEqual = function equal(a, b) {
|
|
108
108
|
if (a === b) return true;
|
|
109
109
|
|
|
110
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
111
|
+
var arrA = isArray(a)
|
|
112
|
+
, arrB = isArray(b)
|
|
113
|
+
, i
|
|
114
|
+
, length
|
|
115
|
+
, key;
|
|
112
116
|
|
|
113
|
-
|
|
114
|
-
if (Array.isArray(a)) {
|
|
117
|
+
if (arrA && arrB) {
|
|
115
118
|
length = a.length;
|
|
116
119
|
if (length != b.length) return false;
|
|
117
120
|
for (i = length; i-- !== 0;)
|
|
@@ -119,29 +122,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
122
|
return true;
|
|
120
123
|
}
|
|
121
124
|
|
|
125
|
+
if (arrA != arrB) return false;
|
|
122
126
|
|
|
127
|
+
var dateA = a instanceof Date
|
|
128
|
+
, dateB = b instanceof Date;
|
|
129
|
+
if (dateA != dateB) return false;
|
|
130
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (
|
|
132
|
+
var regexpA = a instanceof RegExp
|
|
133
|
+
, regexpB = b instanceof RegExp;
|
|
134
|
+
if (regexpA != regexpB) return false;
|
|
135
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
127
136
|
|
|
128
|
-
keys =
|
|
137
|
+
var keys = keyList(a);
|
|
129
138
|
length = keys.length;
|
|
130
|
-
|
|
139
|
+
|
|
140
|
+
if (length !== keyList(b).length)
|
|
141
|
+
return false;
|
|
131
142
|
|
|
132
143
|
for (i = length; i-- !== 0;)
|
|
133
|
-
if (!
|
|
144
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
134
145
|
|
|
135
146
|
for (i = length; i-- !== 0;) {
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
key = keys[i];
|
|
138
148
|
if (!equal(a[key], b[key])) return false;
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
return true;
|
|
142
152
|
}
|
|
143
153
|
|
|
144
|
-
// true if both NaN, false otherwise
|
|
145
154
|
return a!==a && b!==b;
|
|
146
155
|
};
|
|
147
156
|
|
|
@@ -679,14 +688,14 @@ function coerce(val) {
|
|
|
679
688
|
return val;
|
|
680
689
|
}
|
|
681
690
|
});
|
|
682
|
-
debug.coerce;
|
|
683
|
-
debug.disable;
|
|
684
|
-
debug.enable;
|
|
685
|
-
debug.enabled;
|
|
686
|
-
debug.humanize;
|
|
687
|
-
debug.names;
|
|
688
|
-
debug.skips;
|
|
689
|
-
debug.formatters;
|
|
691
|
+
var debug_1 = debug.coerce;
|
|
692
|
+
var debug_2 = debug.disable;
|
|
693
|
+
var debug_3 = debug.enable;
|
|
694
|
+
var debug_4 = debug.enabled;
|
|
695
|
+
var debug_5 = debug.humanize;
|
|
696
|
+
var debug_6 = debug.names;
|
|
697
|
+
var debug_7 = debug.skips;
|
|
698
|
+
var debug_8 = debug.formatters;
|
|
690
699
|
|
|
691
700
|
var browser = createCommonjsModule(function (module, exports) {
|
|
692
701
|
/**
|
|
@@ -875,13 +884,13 @@ function localstorage() {
|
|
|
875
884
|
} catch (e) {}
|
|
876
885
|
}
|
|
877
886
|
});
|
|
878
|
-
browser.log;
|
|
879
|
-
browser.formatArgs;
|
|
880
|
-
browser.save;
|
|
881
|
-
browser.load;
|
|
882
|
-
browser.useColors;
|
|
883
|
-
browser.storage;
|
|
884
|
-
browser.colors;
|
|
887
|
+
var browser_1 = browser.log;
|
|
888
|
+
var browser_2 = browser.formatArgs;
|
|
889
|
+
var browser_3 = browser.save;
|
|
890
|
+
var browser_4 = browser.load;
|
|
891
|
+
var browser_5 = browser.useColors;
|
|
892
|
+
var browser_6 = browser.storage;
|
|
893
|
+
var browser_7 = browser.colors;
|
|
885
894
|
|
|
886
895
|
// MIT lisence
|
|
887
896
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1156,14 +1165,14 @@ function init (debug) {
|
|
|
1156
1165
|
|
|
1157
1166
|
exports.enable(load());
|
|
1158
1167
|
});
|
|
1159
|
-
node.init;
|
|
1160
|
-
node.log;
|
|
1161
|
-
node.formatArgs;
|
|
1162
|
-
node.save;
|
|
1163
|
-
node.load;
|
|
1164
|
-
node.useColors;
|
|
1165
|
-
node.colors;
|
|
1166
|
-
node.inspectOpts;
|
|
1168
|
+
var node_1 = node.init;
|
|
1169
|
+
var node_2 = node.log;
|
|
1170
|
+
var node_3 = node.formatArgs;
|
|
1171
|
+
var node_4 = node.save;
|
|
1172
|
+
var node_5 = node.load;
|
|
1173
|
+
var node_6 = node.useColors;
|
|
1174
|
+
var node_7 = node.colors;
|
|
1175
|
+
var node_8 = node.inspectOpts;
|
|
1167
1176
|
|
|
1168
1177
|
var src = createCommonjsModule(function (module) {
|
|
1169
1178
|
/**
|
|
@@ -1564,239 +1573,199 @@ module.exports = exports['default'];
|
|
|
1564
1573
|
|
|
1565
1574
|
var youTubePlayer = unwrapExports(dist);
|
|
1566
1575
|
|
|
1567
|
-
function
|
|
1568
|
-
|
|
1569
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1570
|
-
|
|
1571
|
-
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); } }
|
|
1572
|
-
|
|
1573
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1574
|
-
|
|
1575
|
-
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); }
|
|
1576
|
-
|
|
1577
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1578
|
-
|
|
1579
|
-
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); }; }
|
|
1580
|
-
|
|
1581
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1576
|
+
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; }; }();
|
|
1582
1577
|
|
|
1583
|
-
function
|
|
1578
|
+
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; };
|
|
1584
1579
|
|
|
1585
|
-
function
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1586
1581
|
|
|
1587
|
-
function
|
|
1582
|
+
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; }
|
|
1588
1583
|
|
|
1589
|
-
function
|
|
1584
|
+
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; }
|
|
1590
1585
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
* @param {Object} prevProps
|
|
1598
|
-
* @param {Object} props
|
|
1586
|
+
/**
|
|
1587
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1588
|
+
*
|
|
1589
|
+
* @param {Object} prevProps
|
|
1590
|
+
* @param {Object} props
|
|
1599
1591
|
*/
|
|
1600
|
-
|
|
1601
1592
|
function shouldUpdateVideo(prevProps, props) {
|
|
1602
1593
|
// A changing video should always trigger an update
|
|
1603
1594
|
if (prevProps.videoId !== props.videoId) {
|
|
1604
1595
|
return true;
|
|
1605
|
-
}
|
|
1606
|
-
// update.
|
|
1607
|
-
|
|
1596
|
+
}
|
|
1608
1597
|
|
|
1598
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
|
+
// update.
|
|
1609
1600
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1610
1601
|
var vars = props.opts.playerVars || {};
|
|
1602
|
+
|
|
1611
1603
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1612
1604
|
}
|
|
1613
|
-
/**
|
|
1614
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1615
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
-
* player reset is necessary.
|
|
1617
|
-
*
|
|
1618
|
-
* @param {Object} opts
|
|
1619
|
-
*/
|
|
1620
|
-
|
|
1621
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1608
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
+
* player reset is necessary.
|
|
1610
|
+
*
|
|
1611
|
+
* @param {Object} opts
|
|
1612
|
+
*/
|
|
1622
1613
|
function filterResetOptions(opts) {
|
|
1623
|
-
return
|
|
1624
|
-
playerVars:
|
|
1614
|
+
return _extends({}, opts, {
|
|
1615
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1625
1616
|
autoplay: 0,
|
|
1626
1617
|
start: 0,
|
|
1627
1618
|
end: 0
|
|
1628
|
-
}
|
|
1619
|
+
})
|
|
1629
1620
|
});
|
|
1630
1621
|
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
-
* those.
|
|
1636
|
-
*
|
|
1637
|
-
* @param {Object} prevProps
|
|
1638
|
-
* @param {Object} props
|
|
1639
|
-
*/
|
|
1640
|
-
|
|
1641
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1625
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1626
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1627
|
+
* those.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Object} prevProps
|
|
1630
|
+
* @param {Object} props
|
|
1631
|
+
*/
|
|
1642
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1643
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1644
1634
|
}
|
|
1645
|
-
/**
|
|
1646
|
-
* Check whether a props change should result in an id or className update.
|
|
1647
|
-
*
|
|
1648
|
-
* @param {Object} prevProps
|
|
1649
|
-
* @param {Object} props
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Check whether a props change should result in an id or className update.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {Object} prevProps
|
|
1640
|
+
* @param {Object} props
|
|
1641
|
+
*/
|
|
1653
1642
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1654
1643
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1655
1644
|
}
|
|
1656
1645
|
|
|
1657
|
-
var YouTube =
|
|
1646
|
+
var YouTube = function (_React$Component) {
|
|
1658
1647
|
_inherits(YouTube, _React$Component);
|
|
1659
1648
|
|
|
1660
|
-
var _super = _createSuper(YouTube);
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1664
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1665
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1666
|
-
*/
|
|
1667
1649
|
function YouTube(props) {
|
|
1668
|
-
var _this;
|
|
1669
|
-
|
|
1670
1650
|
_classCallCheck(this, YouTube);
|
|
1671
1651
|
|
|
1672
|
-
_this =
|
|
1652
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1673
1653
|
|
|
1674
|
-
|
|
1654
|
+
_this.onPlayerReady = function (event) {
|
|
1675
1655
|
return _this.props.onReady(event);
|
|
1676
|
-
}
|
|
1656
|
+
};
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerError = function (event) {
|
|
1679
1659
|
return _this.props.onError(event);
|
|
1680
|
-
}
|
|
1660
|
+
};
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerStateChange = function (event) {
|
|
1683
1663
|
_this.props.onStateChange(event);
|
|
1684
|
-
|
|
1685
1664
|
switch (event.data) {
|
|
1665
|
+
|
|
1686
1666
|
case YouTube.PlayerState.ENDED:
|
|
1687
1667
|
_this.props.onEnd(event);
|
|
1688
|
-
|
|
1689
1668
|
break;
|
|
1690
1669
|
|
|
1691
1670
|
case YouTube.PlayerState.PLAYING:
|
|
1692
1671
|
_this.props.onPlay(event);
|
|
1693
|
-
|
|
1694
1672
|
break;
|
|
1695
1673
|
|
|
1696
1674
|
case YouTube.PlayerState.PAUSED:
|
|
1697
1675
|
_this.props.onPause(event);
|
|
1698
|
-
|
|
1699
1676
|
break;
|
|
1700
1677
|
}
|
|
1701
|
-
}
|
|
1678
|
+
};
|
|
1702
1679
|
|
|
1703
|
-
|
|
1680
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1704
1681
|
return _this.props.onPlaybackRateChange(event);
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1708
1685
|
return _this.props.onPlaybackQualityChange(event);
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.createPlayer = function () {
|
|
1712
1689
|
// do not attempt to create a player server-side, it won't work
|
|
1713
|
-
if (typeof document === 'undefined') return;
|
|
1714
|
-
|
|
1715
|
-
var playerOpts =
|
|
1690
|
+
if (typeof document === 'undefined') return;
|
|
1691
|
+
// create player
|
|
1692
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1716
1693
|
// preload the `videoId` video if one is already given
|
|
1717
1694
|
videoId: _this.props.videoId
|
|
1718
1695
|
});
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1696
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1697
|
+
// attach event handlers
|
|
1722
1698
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
-
|
|
1724
1699
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
-
|
|
1726
1700
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
-
|
|
1728
1701
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
-
|
|
1730
1702
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1731
|
-
}
|
|
1703
|
+
};
|
|
1732
1704
|
|
|
1733
|
-
|
|
1705
|
+
_this.resetPlayer = function () {
|
|
1734
1706
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1735
|
-
}
|
|
1707
|
+
};
|
|
1736
1708
|
|
|
1737
|
-
|
|
1709
|
+
_this.updatePlayer = function () {
|
|
1738
1710
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1739
1711
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1740
1712
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1741
1713
|
});
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
-
return _this.internalPlayer;
|
|
1746
|
-
});
|
|
1714
|
+
};
|
|
1747
1715
|
|
|
1748
|
-
|
|
1716
|
+
_this.updateVideo = function () {
|
|
1749
1717
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1750
1718
|
_this.internalPlayer.stopVideo();
|
|
1751
|
-
|
|
1752
1719
|
return;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1720
|
+
}
|
|
1755
1721
|
|
|
1722
|
+
// set queueing options
|
|
1756
1723
|
var autoplay = false;
|
|
1757
1724
|
var opts = {
|
|
1758
1725
|
videoId: _this.props.videoId
|
|
1759
1726
|
};
|
|
1760
|
-
|
|
1761
1727
|
if ('playerVars' in _this.props.opts) {
|
|
1762
1728
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
-
|
|
1764
1729
|
if ('start' in _this.props.opts.playerVars) {
|
|
1765
1730
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1766
1731
|
}
|
|
1767
|
-
|
|
1768
1732
|
if ('end' in _this.props.opts.playerVars) {
|
|
1769
1733
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1770
1734
|
}
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1735
|
+
}
|
|
1773
1736
|
|
|
1737
|
+
// if autoplay is enabled loadVideoById
|
|
1774
1738
|
if (autoplay) {
|
|
1775
1739
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
-
|
|
1777
1740
|
return;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1741
|
+
}
|
|
1742
|
+
// default behaviour just cues the video
|
|
1781
1743
|
_this.internalPlayer.cueVideoById(opts);
|
|
1782
|
-
}
|
|
1744
|
+
};
|
|
1783
1745
|
|
|
1784
|
-
|
|
1746
|
+
_this.refContainer = function (container) {
|
|
1785
1747
|
_this.container = container;
|
|
1786
|
-
}
|
|
1748
|
+
};
|
|
1787
1749
|
|
|
1788
1750
|
_this.container = null;
|
|
1789
1751
|
_this.internalPlayer = null;
|
|
1790
1752
|
return _this;
|
|
1791
1753
|
}
|
|
1792
1754
|
|
|
1755
|
+
/**
|
|
1756
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
+
*/
|
|
1760
|
+
|
|
1761
|
+
|
|
1793
1762
|
_createClass(YouTube, [{
|
|
1794
|
-
key:
|
|
1763
|
+
key: 'componentDidMount',
|
|
1795
1764
|
value: function componentDidMount() {
|
|
1796
1765
|
this.createPlayer();
|
|
1797
1766
|
}
|
|
1798
1767
|
}, {
|
|
1799
|
-
key:
|
|
1768
|
+
key: 'componentDidUpdate',
|
|
1800
1769
|
value: function componentDidUpdate(prevProps) {
|
|
1801
1770
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1802
1771
|
this.updatePlayer();
|
|
@@ -1811,58 +1780,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1811
1780
|
}
|
|
1812
1781
|
}
|
|
1813
1782
|
}, {
|
|
1814
|
-
key:
|
|
1783
|
+
key: 'componentWillUnmount',
|
|
1815
1784
|
value: function componentWillUnmount() {
|
|
1816
|
-
/**
|
|
1817
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1818
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
-
* this method isn't quick enough to reset the container element.
|
|
1785
|
+
/**
|
|
1786
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1787
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
+
* this method isn't quick enough to reset the container element.
|
|
1821
1790
|
*/
|
|
1822
1791
|
this.internalPlayer.destroy();
|
|
1823
1792
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1796
|
+
*
|
|
1797
|
+
* @param {Object} event
|
|
1798
|
+
* @param {Object} target - player object
|
|
1799
|
+
*/
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Integer} data - error type
|
|
1807
|
+
* @param {Object} target - player object
|
|
1808
|
+
*/
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
+
*
|
|
1814
|
+
* @param {Object} event
|
|
1815
|
+
* @param {Integer} data - status change type
|
|
1816
|
+
* @param {Object} target - actual YT player
|
|
1817
|
+
*/
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
+
*
|
|
1823
|
+
* @param {Object} event
|
|
1824
|
+
* @param {Float} data - playback rate
|
|
1825
|
+
* @param {Object} target - actual YT player
|
|
1826
|
+
*/
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
+
*
|
|
1832
|
+
* @param {Object} event
|
|
1833
|
+
* @param {String} data - playback quality
|
|
1834
|
+
* @param {Object} target - actual YT player
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
+
* React should update this automatically but since the Youtube Player API
|
|
1851
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
+
* Youtube Player API methods to update the video.
|
|
1829
1859
|
*/
|
|
1830
1860
|
|
|
1831
1861
|
}, {
|
|
1832
|
-
key:
|
|
1862
|
+
key: 'render',
|
|
1833
1863
|
value: function render() {
|
|
1834
|
-
return
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
id: this.props.id,
|
|
1838
|
-
|
|
1839
|
-
ref: this.refContainer
|
|
1840
|
-
}));
|
|
1864
|
+
return React__default.createElement(
|
|
1865
|
+
'div',
|
|
1866
|
+
{ className: this.props.containerClassName },
|
|
1867
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1868
|
+
);
|
|
1841
1869
|
}
|
|
1842
1870
|
}]);
|
|
1843
1871
|
|
|
1844
1872
|
return YouTube;
|
|
1845
1873
|
}(React__default.Component);
|
|
1846
1874
|
|
|
1847
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
-
UNSTARTED: -1,
|
|
1849
|
-
ENDED: 0,
|
|
1850
|
-
PLAYING: 1,
|
|
1851
|
-
PAUSED: 2,
|
|
1852
|
-
BUFFERING: 3,
|
|
1853
|
-
CUED: 5
|
|
1854
|
-
});
|
|
1855
|
-
|
|
1856
1875
|
YouTube.propTypes = {
|
|
1857
1876
|
videoId: PropTypes.string,
|
|
1877
|
+
|
|
1858
1878
|
// custom ID for player element
|
|
1859
1879
|
id: PropTypes.string,
|
|
1880
|
+
|
|
1860
1881
|
// custom class name for player element
|
|
1861
1882
|
className: PropTypes.string,
|
|
1862
1883
|
// custom class name for player container element
|
|
1863
1884
|
containerClassName: PropTypes.string,
|
|
1885
|
+
|
|
1864
1886
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1865
1887
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
+
|
|
1866
1889
|
// event subscriptions
|
|
1867
1890
|
onReady: PropTypes.func,
|
|
1868
1891
|
onError: PropTypes.func,
|
|
@@ -1874,7 +1897,6 @@ YouTube.propTypes = {
|
|
|
1874
1897
|
onPlaybackQualityChange: PropTypes.func
|
|
1875
1898
|
};
|
|
1876
1899
|
YouTube.defaultProps = {
|
|
1877
|
-
videoId: null,
|
|
1878
1900
|
id: null,
|
|
1879
1901
|
className: null,
|
|
1880
1902
|
opts: {},
|
|
@@ -1888,6 +1910,14 @@ YouTube.defaultProps = {
|
|
|
1888
1910
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1889
1911
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1890
1912
|
};
|
|
1913
|
+
YouTube.PlayerState = {
|
|
1914
|
+
UNSTARTED: -1,
|
|
1915
|
+
ENDED: 0,
|
|
1916
|
+
PLAYING: 1,
|
|
1917
|
+
PAUSED: 2,
|
|
1918
|
+
BUFFERING: 3,
|
|
1919
|
+
CUED: 5
|
|
1920
|
+
};
|
|
1891
1921
|
|
|
1892
1922
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1893
1923
|
var url = _ref.url,
|
|
@@ -1926,8 +1956,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1926
1956
|
var duration = player.getDuration();
|
|
1927
1957
|
var queue = Math.floor(duration / 10);
|
|
1928
1958
|
var segment = Math.floor(current / queue);
|
|
1929
|
-
Beam.report_beam_video('Ready',
|
|
1930
|
-
Segment.report_video_event('Video Ready',
|
|
1959
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1960
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1931
1961
|
};
|
|
1932
1962
|
|
|
1933
1963
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1937,8 +1967,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1967
|
var segment = Math.floor(current / queue);
|
|
1938
1968
|
|
|
1939
1969
|
if (!queueProgress.includes(segment)) {
|
|
1940
|
-
Beam.report_beam_video('Segment',
|
|
1941
|
-
Segment.report_video_event('Video Segment',
|
|
1970
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1971
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1942
1972
|
queueProgress.push(segment);
|
|
1943
1973
|
}
|
|
1944
1974
|
};
|
|
@@ -1951,8 +1981,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1951
1981
|
var queue = Math.floor(duration / 10);
|
|
1952
1982
|
var segment = Math.floor(current / queue);
|
|
1953
1983
|
|
|
1954
|
-
Beam.report_beam_video('Play',
|
|
1955
|
-
Segment.report_video_event('Video Play',
|
|
1984
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1985
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1956
1986
|
|
|
1957
1987
|
if (!playReported) {
|
|
1958
1988
|
setPlayReported(true);
|
|
@@ -1971,8 +2001,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
2001
|
var queue = Math.floor(duration / 10);
|
|
1972
2002
|
var segment = Math.floor(current / queue);
|
|
1973
2003
|
|
|
1974
|
-
Beam.report_beam_video('End',
|
|
1975
|
-
Segment.report_video_event('Video End',
|
|
2004
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
2005
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1976
2006
|
setEndReported(true);
|
|
1977
2007
|
clearInterval(intervalID);
|
|
1978
2008
|
}
|
|
@@ -1985,8 +2015,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
2015
|
var queue = Math.floor(duration / 10);
|
|
1986
2016
|
var segment = Math.floor(current / queue);
|
|
1987
2017
|
|
|
1988
|
-
Beam.report_beam_video('Pause',
|
|
1989
|
-
Segment.report_video_event('Video Pause',
|
|
2018
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
2019
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
2020
|
};
|
|
1991
2021
|
|
|
1992
2022
|
return React__default.createElement(
|
|
@@ -2053,6 +2083,27 @@ var TableShow = function TableShow(_ref) {
|
|
|
2053
2083
|
);
|
|
2054
2084
|
};
|
|
2055
2085
|
|
|
2086
|
+
var urlForFile = function urlForFile(_ref) {
|
|
2087
|
+
var _ref$asset = _ref.asset,
|
|
2088
|
+
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
2089
|
+
var url = asset.url,
|
|
2090
|
+
originalFilename = asset.originalFilename;
|
|
2091
|
+
|
|
2092
|
+
// Appending file name in URL
|
|
2093
|
+
|
|
2094
|
+
if (url && originalFilename) {
|
|
2095
|
+
var _url$split = url.split('?'),
|
|
2096
|
+
_url$split2 = _slicedToArray(_url$split, 2),
|
|
2097
|
+
path = _url$split2[0],
|
|
2098
|
+
queryString = _url$split2[1];
|
|
2099
|
+
|
|
2100
|
+
originalFilename = encodeURIComponent(originalFilename);
|
|
2101
|
+
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
return url;
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2056
2107
|
var Media = function Media(_ref) {
|
|
2057
2108
|
var node = _ref.node,
|
|
2058
2109
|
client = _ref.client;
|
|
@@ -2144,7 +2195,7 @@ var Media = function Media(_ref) {
|
|
|
2144
2195
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2145
2196
|
React__default.createElement(
|
|
2146
2197
|
'a',
|
|
2147
|
-
{ href: uploadDoc.asset
|
|
2198
|
+
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2148
2199
|
React__default.createElement(
|
|
2149
2200
|
LazyLoad,
|
|
2150
2201
|
{ once: true },
|
|
@@ -2154,7 +2205,7 @@ var Media = function Media(_ref) {
|
|
|
2154
2205
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2155
2206
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2156
2207
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2157
|
-
React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2208
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2158
2209
|
)
|
|
2159
2210
|
),
|
|
2160
2211
|
caption && React__default.createElement(
|
|
@@ -2167,9 +2218,9 @@ var Media = function Media(_ref) {
|
|
|
2167
2218
|
} else if (caption && caption !== '') {
|
|
2168
2219
|
return React__default.createElement(
|
|
2169
2220
|
'a',
|
|
2170
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2171
|
-
href: uploadDoc.asset
|
|
2172
|
-
} : { href: uploadDoc.asset
|
|
2221
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2222
|
+
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2223
|
+
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2173
2224
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
2174
2225
|
className: 'media-link' }),
|
|
2175
2226
|
caption
|
|
@@ -2222,8 +2273,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2222
2273
|
var duration = player.duration;
|
|
2223
2274
|
var queue = Math.floor(duration / 10);
|
|
2224
2275
|
var segment = Math.floor(current / queue);
|
|
2225
|
-
Beam.report_beam_video('Ready',
|
|
2226
|
-
Segment.report_video_event('Video Ready',
|
|
2276
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2277
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2227
2278
|
};
|
|
2228
2279
|
|
|
2229
2280
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2232,8 +2283,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2232
2283
|
var queue = Math.floor(duration / 10);
|
|
2233
2284
|
var segment = Math.floor(current / queue);
|
|
2234
2285
|
if (!queueProgress.includes(segment)) {
|
|
2235
|
-
Beam.report_beam_video('Segment',
|
|
2236
|
-
Segment.report_video_event('Video Segment',
|
|
2286
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2287
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2237
2288
|
queueProgress.push(segment);
|
|
2238
2289
|
}
|
|
2239
2290
|
};
|
|
@@ -2245,8 +2296,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2245
2296
|
var duration = player.duration;
|
|
2246
2297
|
var queue = Math.floor(duration / 10);
|
|
2247
2298
|
var segment = Math.floor(current / queue);
|
|
2248
|
-
Beam.report_beam_video('Play',
|
|
2249
|
-
Segment.report_video_event('Video Play',
|
|
2299
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2300
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2250
2301
|
|
|
2251
2302
|
if (!playReported) {
|
|
2252
2303
|
event.persist();
|
|
@@ -2266,8 +2317,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2266
2317
|
var queue = Math.floor(duration / 10);
|
|
2267
2318
|
var segment = Math.floor(current / queue);
|
|
2268
2319
|
|
|
2269
|
-
Beam.report_beam_video('End',
|
|
2270
|
-
Segment.report_video_event('Video End',
|
|
2320
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2321
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2271
2322
|
setEndReported(true);
|
|
2272
2323
|
clearInterval(intervalID);
|
|
2273
2324
|
}
|
|
@@ -2279,8 +2330,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2279
2330
|
var duration = player.duration - current;
|
|
2280
2331
|
var queue = Math.floor(duration / 10);
|
|
2281
2332
|
var segment = Math.floor(current / queue);
|
|
2282
|
-
Beam.report_beam_video('Pause',
|
|
2283
|
-
Segment.report_video_event('Video Pause',
|
|
2333
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2334
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2284
2335
|
};
|
|
2285
2336
|
|
|
2286
2337
|
return React__default.createElement(
|
|
@@ -2341,7 +2392,7 @@ var Video = function Video(_ref) {
|
|
|
2341
2392
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2342
2393
|
//console.log('success:', success.ref)
|
|
2343
2394
|
var player = success.ref;
|
|
2344
|
-
if (_typeof
|
|
2395
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2345
2396
|
player.ima3.settings.debug = true;
|
|
2346
2397
|
if (targeting.content_placement && targeting.document_url) {
|
|
2347
2398
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2369,8 +2420,8 @@ var Video = function Video(_ref) {
|
|
|
2369
2420
|
player.pause();
|
|
2370
2421
|
}
|
|
2371
2422
|
|
|
2372
|
-
Beam.report_beam_video('Ready',
|
|
2373
|
-
Segment.report_video_event('Video Ready',
|
|
2423
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2424
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2374
2425
|
});
|
|
2375
2426
|
|
|
2376
2427
|
// play
|
|
@@ -2379,8 +2430,8 @@ var Video = function Video(_ref) {
|
|
|
2379
2430
|
var current = player.currentTime();
|
|
2380
2431
|
var queue = Math.floor(duration / 10);
|
|
2381
2432
|
var segment = Math.floor(current / queue);
|
|
2382
|
-
Beam.report_beam_video('Play',
|
|
2383
|
-
Segment.report_video_event('Video Play',
|
|
2433
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2434
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2384
2435
|
});
|
|
2385
2436
|
|
|
2386
2437
|
// pause
|
|
@@ -2389,8 +2440,8 @@ var Video = function Video(_ref) {
|
|
|
2389
2440
|
var current = player.currentTime();
|
|
2390
2441
|
var queue = Math.floor(duration / 10);
|
|
2391
2442
|
var segment = Math.floor(current / queue);
|
|
2392
|
-
Beam.report_beam_video('Pause',
|
|
2393
|
-
Segment.report_video_event('Video Pause',
|
|
2443
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2444
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2394
2445
|
});
|
|
2395
2446
|
|
|
2396
2447
|
// end
|
|
@@ -2399,8 +2450,8 @@ var Video = function Video(_ref) {
|
|
|
2399
2450
|
var current = player.currentTime();
|
|
2400
2451
|
var queue = Math.floor(duration / 10);
|
|
2401
2452
|
var segment = Math.floor(current / queue);
|
|
2402
|
-
Beam.report_beam_video('End',
|
|
2403
|
-
Segment.report_video_event('Video End',
|
|
2453
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2454
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
2455
|
autoplayNextVideo(evt);
|
|
2405
2456
|
});
|
|
2406
2457
|
|
|
@@ -2411,8 +2462,8 @@ var Video = function Video(_ref) {
|
|
|
2411
2462
|
var queue = Math.floor(duration / 10);
|
|
2412
2463
|
var segment = Math.floor(current / queue);
|
|
2413
2464
|
if (!queueProgress.includes(segment)) {
|
|
2414
|
-
Beam.report_beam_video('Segment',
|
|
2415
|
-
Segment.report_video_event('Video Segment',
|
|
2465
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2466
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2416
2467
|
queueProgress.push(segment);
|
|
2417
2468
|
}
|
|
2418
2469
|
});
|
|
@@ -2423,8 +2474,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2474
|
var id = player.ads.ad.id;
|
|
2424
2475
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2425
2476
|
|
|
2426
|
-
Beam.report_beam_ad('AD Started',
|
|
2427
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2477
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2478
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2428
2479
|
});
|
|
2429
2480
|
|
|
2430
2481
|
// ad ended
|
|
@@ -2432,8 +2483,8 @@ var Video = function Video(_ref) {
|
|
|
2432
2483
|
var duration = player.ads.ad.duration;
|
|
2433
2484
|
var id = player.ads.ad.id;
|
|
2434
2485
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2435
|
-
Beam.report_beam_ad('AD Ended',
|
|
2436
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2486
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2487
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2437
2488
|
});
|
|
2438
2489
|
};
|
|
2439
2490
|
|
|
@@ -2696,9 +2747,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2696
2747
|
});
|
|
2697
2748
|
|
|
2698
2749
|
unwrapExports(props);
|
|
2699
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2700
|
-
props.defaultProps;
|
|
2701
|
-
props.propTypes;
|
|
2750
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2751
|
+
var props_2 = props.defaultProps;
|
|
2752
|
+
var props_3 = props.propTypes;
|
|
2702
2753
|
|
|
2703
2754
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2704
2755
|
return isNonNullObject(value)
|
|
@@ -2863,17 +2914,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2863
2914
|
|
|
2864
2915
|
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; }
|
|
2865
2916
|
|
|
2866
|
-
function
|
|
2867
|
-
|
|
2868
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2869
|
-
|
|
2870
|
-
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."); }
|
|
2917
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2871
2918
|
|
|
2872
|
-
function
|
|
2919
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2873
2920
|
|
|
2874
|
-
function
|
|
2875
|
-
|
|
2876
|
-
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; }
|
|
2921
|
+
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; }
|
|
2877
2922
|
|
|
2878
2923
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2879
2924
|
|
|
@@ -3003,12 +3048,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3003
3048
|
|
|
3004
3049
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3005
3050
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3006
|
-
|
|
3007
|
-
var
|
|
3008
|
-
|
|
3051
|
+
var _iteratorNormalCompletion = true;
|
|
3052
|
+
var _didIteratorError = false;
|
|
3053
|
+
var _iteratorError = undefined;
|
|
3009
3054
|
|
|
3010
3055
|
try {
|
|
3011
|
-
for (_iterator.
|
|
3056
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3012
3057
|
var p = _step.value;
|
|
3013
3058
|
|
|
3014
3059
|
if (props$1[p]) {
|
|
@@ -3023,9 +3068,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3023
3068
|
}
|
|
3024
3069
|
}
|
|
3025
3070
|
} catch (err) {
|
|
3026
|
-
|
|
3071
|
+
_didIteratorError = true;
|
|
3072
|
+
_iteratorError = err;
|
|
3027
3073
|
} finally {
|
|
3028
|
-
|
|
3074
|
+
try {
|
|
3075
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3076
|
+
_iterator["return"]();
|
|
3077
|
+
}
|
|
3078
|
+
} finally {
|
|
3079
|
+
if (_didIteratorError) {
|
|
3080
|
+
throw _iteratorError;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3029
3083
|
}
|
|
3030
3084
|
|
|
3031
3085
|
return config;
|
|
@@ -3133,17 +3187,17 @@ function isMediaStream(url) {
|
|
|
3133
3187
|
});
|
|
3134
3188
|
|
|
3135
3189
|
unwrapExports(utils);
|
|
3136
|
-
utils.parseStartTime;
|
|
3137
|
-
utils.parseEndTime;
|
|
3138
|
-
utils.randomString;
|
|
3139
|
-
utils.queryString;
|
|
3140
|
-
utils.getSDK;
|
|
3141
|
-
utils.getConfig;
|
|
3142
|
-
utils.omit;
|
|
3143
|
-
utils.callPlayer;
|
|
3144
|
-
utils.isObject;
|
|
3145
|
-
utils.isEqual;
|
|
3146
|
-
utils.isMediaStream;
|
|
3190
|
+
var utils_1 = utils.parseStartTime;
|
|
3191
|
+
var utils_2 = utils.parseEndTime;
|
|
3192
|
+
var utils_3 = utils.randomString;
|
|
3193
|
+
var utils_4 = utils.queryString;
|
|
3194
|
+
var utils_5 = utils.getSDK;
|
|
3195
|
+
var utils_6 = utils.getConfig;
|
|
3196
|
+
var utils_7 = utils.omit;
|
|
3197
|
+
var utils_8 = utils.callPlayer;
|
|
3198
|
+
var utils_9 = utils.isObject;
|
|
3199
|
+
var utils_10 = utils.isEqual;
|
|
3200
|
+
var utils_11 = utils.isMediaStream;
|
|
3147
3201
|
|
|
3148
3202
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3149
3203
|
|
|
@@ -3172,16 +3226,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3172
3226
|
|
|
3173
3227
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3174
3228
|
|
|
3175
|
-
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); }; }
|
|
3176
|
-
|
|
3177
3229
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3178
3230
|
|
|
3179
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3180
|
-
|
|
3181
|
-
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; } }
|
|
3182
|
-
|
|
3183
3231
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3184
3232
|
|
|
3233
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3234
|
+
|
|
3185
3235
|
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); }
|
|
3186
3236
|
|
|
3187
3237
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3190,12 +3240,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3190
3240
|
|
|
3191
3241
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3192
3242
|
|
|
3193
|
-
var Player =
|
|
3243
|
+
var Player =
|
|
3244
|
+
/*#__PURE__*/
|
|
3245
|
+
function (_Component) {
|
|
3194
3246
|
_inherits(Player, _Component);
|
|
3195
3247
|
|
|
3196
|
-
var _super = _createSuper(Player);
|
|
3197
|
-
|
|
3198
3248
|
function Player() {
|
|
3249
|
+
var _getPrototypeOf2;
|
|
3250
|
+
|
|
3199
3251
|
var _this;
|
|
3200
3252
|
|
|
3201
3253
|
_classCallCheck(this, Player);
|
|
@@ -3204,7 +3256,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3204
3256
|
_args[_key] = arguments[_key];
|
|
3205
3257
|
}
|
|
3206
3258
|
|
|
3207
|
-
_this =
|
|
3259
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3208
3260
|
|
|
3209
3261
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3210
3262
|
|
|
@@ -3529,7 +3581,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3529
3581
|
return null;
|
|
3530
3582
|
}
|
|
3531
3583
|
|
|
3532
|
-
return
|
|
3584
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3533
3585
|
ref: this.ref,
|
|
3534
3586
|
onReady: this.handleReady,
|
|
3535
3587
|
onPlay: this.handlePlay,
|
|
@@ -3590,16 +3642,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3590
3642
|
|
|
3591
3643
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3592
3644
|
|
|
3593
|
-
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); }; }
|
|
3594
|
-
|
|
3595
3645
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3596
3646
|
|
|
3597
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3598
|
-
|
|
3599
|
-
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; } }
|
|
3600
|
-
|
|
3601
3647
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3602
3648
|
|
|
3649
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3650
|
+
|
|
3603
3651
|
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); }
|
|
3604
3652
|
|
|
3605
3653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3611,12 +3659,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3611
3659
|
function createSinglePlayer(activePlayer) {
|
|
3612
3660
|
var _class, _temp;
|
|
3613
3661
|
|
|
3614
|
-
return _temp = _class =
|
|
3662
|
+
return _temp = _class =
|
|
3663
|
+
/*#__PURE__*/
|
|
3664
|
+
function (_Component) {
|
|
3615
3665
|
_inherits(SinglePlayer, _Component);
|
|
3616
3666
|
|
|
3617
|
-
var _super = _createSuper(SinglePlayer);
|
|
3618
|
-
|
|
3619
3667
|
function SinglePlayer() {
|
|
3668
|
+
var _getPrototypeOf2;
|
|
3669
|
+
|
|
3620
3670
|
var _this;
|
|
3621
3671
|
|
|
3622
3672
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3625,7 +3675,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3625
3675
|
args[_key] = arguments[_key];
|
|
3626
3676
|
}
|
|
3627
3677
|
|
|
3628
|
-
_this =
|
|
3678
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3629
3679
|
|
|
3630
3680
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3631
3681
|
|
|
@@ -3693,12 +3743,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3693
3743
|
height = _this$props.height,
|
|
3694
3744
|
Wrapper = _this$props.wrapper;
|
|
3695
3745
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3696
|
-
return
|
|
3746
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3697
3747
|
style: _objectSpread({}, style, {
|
|
3698
3748
|
width: width,
|
|
3699
3749
|
height: height
|
|
3700
3750
|
})
|
|
3701
|
-
}, otherProps),
|
|
3751
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3702
3752
|
ref: this.ref,
|
|
3703
3753
|
activePlayer: activePlayer,
|
|
3704
3754
|
config: this.config
|
|
@@ -3744,31 +3794,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3744
3794
|
|
|
3745
3795
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3746
3796
|
|
|
3747
|
-
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); }; }
|
|
3748
|
-
|
|
3749
3797
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3750
3798
|
|
|
3751
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3752
|
-
|
|
3753
|
-
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; } }
|
|
3754
|
-
|
|
3755
3799
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3756
3800
|
|
|
3801
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3802
|
+
|
|
3757
3803
|
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); }
|
|
3758
3804
|
|
|
3759
3805
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3760
3806
|
|
|
3761
3807
|
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; }
|
|
3762
3808
|
|
|
3763
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3764
|
-
|
|
3765
|
-
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."); }
|
|
3809
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3766
3810
|
|
|
3767
|
-
function
|
|
3811
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3768
3812
|
|
|
3769
|
-
function
|
|
3770
|
-
|
|
3771
|
-
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; }
|
|
3813
|
+
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; }
|
|
3772
3814
|
|
|
3773
3815
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3774
3816
|
|
|
@@ -3793,12 +3835,14 @@ function parsePlaylist(url) {
|
|
|
3793
3835
|
return {};
|
|
3794
3836
|
}
|
|
3795
3837
|
|
|
3796
|
-
var YouTube =
|
|
3838
|
+
var YouTube =
|
|
3839
|
+
/*#__PURE__*/
|
|
3840
|
+
function (_Component) {
|
|
3797
3841
|
_inherits(YouTube, _Component);
|
|
3798
3842
|
|
|
3799
|
-
var _super = _createSuper(YouTube);
|
|
3800
|
-
|
|
3801
3843
|
function YouTube() {
|
|
3844
|
+
var _getPrototypeOf2;
|
|
3845
|
+
|
|
3802
3846
|
var _this;
|
|
3803
3847
|
|
|
3804
3848
|
_classCallCheck(this, YouTube);
|
|
@@ -3807,7 +3851,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3807
3851
|
args[_key] = arguments[_key];
|
|
3808
3852
|
}
|
|
3809
3853
|
|
|
3810
|
-
_this =
|
|
3854
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3811
3855
|
|
|
3812
3856
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3813
3857
|
|
|
@@ -3995,9 +4039,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3995
4039
|
height: '100%',
|
|
3996
4040
|
display: display
|
|
3997
4041
|
};
|
|
3998
|
-
return
|
|
4042
|
+
return _react["default"].createElement("div", {
|
|
3999
4043
|
style: style
|
|
4000
|
-
},
|
|
4044
|
+
}, _react["default"].createElement("div", {
|
|
4001
4045
|
ref: this.ref
|
|
4002
4046
|
}));
|
|
4003
4047
|
}
|
|
@@ -4020,7 +4064,7 @@ exports["default"] = _default;
|
|
|
4020
4064
|
});
|
|
4021
4065
|
|
|
4022
4066
|
unwrapExports(YouTube_1);
|
|
4023
|
-
YouTube_1.YouTube;
|
|
4067
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4024
4068
|
|
|
4025
4069
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4026
4070
|
|
|
@@ -4053,16 +4097,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4053
4097
|
|
|
4054
4098
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4055
4099
|
|
|
4056
|
-
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); }; }
|
|
4057
|
-
|
|
4058
4100
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4059
4101
|
|
|
4060
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4061
|
-
|
|
4062
|
-
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; } }
|
|
4063
|
-
|
|
4064
4102
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4065
4103
|
|
|
4104
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4105
|
+
|
|
4066
4106
|
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); }
|
|
4067
4107
|
|
|
4068
4108
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4071,14 +4111,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4071
4111
|
|
|
4072
4112
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4073
4113
|
var SDK_GLOBAL = 'SC';
|
|
4074
|
-
var MATCH_URL = /(
|
|
4114
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4075
4115
|
|
|
4076
|
-
var SoundCloud =
|
|
4116
|
+
var SoundCloud =
|
|
4117
|
+
/*#__PURE__*/
|
|
4118
|
+
function (_Component) {
|
|
4077
4119
|
_inherits(SoundCloud, _Component);
|
|
4078
4120
|
|
|
4079
|
-
var _super = _createSuper(SoundCloud);
|
|
4080
|
-
|
|
4081
4121
|
function SoundCloud() {
|
|
4122
|
+
var _getPrototypeOf2;
|
|
4123
|
+
|
|
4082
4124
|
var _this;
|
|
4083
4125
|
|
|
4084
4126
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4087,7 +4129,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4087
4129
|
args[_key] = arguments[_key];
|
|
4088
4130
|
}
|
|
4089
4131
|
|
|
4090
|
-
_this =
|
|
4132
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4091
4133
|
|
|
4092
4134
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4093
4135
|
|
|
@@ -4208,7 +4250,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4208
4250
|
height: '100%',
|
|
4209
4251
|
display: display
|
|
4210
4252
|
};
|
|
4211
|
-
return
|
|
4253
|
+
return _react["default"].createElement("iframe", {
|
|
4212
4254
|
ref: this.ref,
|
|
4213
4255
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4214
4256
|
style: style,
|
|
@@ -4237,7 +4279,7 @@ exports["default"] = _default;
|
|
|
4237
4279
|
});
|
|
4238
4280
|
|
|
4239
4281
|
unwrapExports(SoundCloud_1);
|
|
4240
|
-
SoundCloud_1.SoundCloud;
|
|
4282
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4241
4283
|
|
|
4242
4284
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4243
4285
|
|
|
@@ -4270,16 +4312,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4270
4312
|
|
|
4271
4313
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4272
4314
|
|
|
4273
|
-
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); }; }
|
|
4274
|
-
|
|
4275
4315
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4276
4316
|
|
|
4277
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4278
|
-
|
|
4279
|
-
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; } }
|
|
4280
|
-
|
|
4281
4317
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4282
4318
|
|
|
4319
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4320
|
+
|
|
4283
4321
|
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); }
|
|
4284
4322
|
|
|
4285
4323
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4291,12 +4329,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4291
4329
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4292
4330
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4293
4331
|
|
|
4294
|
-
var Vimeo =
|
|
4332
|
+
var Vimeo =
|
|
4333
|
+
/*#__PURE__*/
|
|
4334
|
+
function (_Component) {
|
|
4295
4335
|
_inherits(Vimeo, _Component);
|
|
4296
4336
|
|
|
4297
|
-
var _super = _createSuper(Vimeo);
|
|
4298
|
-
|
|
4299
4337
|
function Vimeo() {
|
|
4338
|
+
var _getPrototypeOf2;
|
|
4339
|
+
|
|
4300
4340
|
var _this;
|
|
4301
4341
|
|
|
4302
4342
|
_classCallCheck(this, Vimeo);
|
|
@@ -4305,7 +4345,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4305
4345
|
args[_key] = arguments[_key];
|
|
4306
4346
|
}
|
|
4307
4347
|
|
|
4308
|
-
_this =
|
|
4348
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4309
4349
|
|
|
4310
4350
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4311
4351
|
|
|
@@ -4462,7 +4502,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4462
4502
|
overflow: 'hidden',
|
|
4463
4503
|
display: display
|
|
4464
4504
|
};
|
|
4465
|
-
return
|
|
4505
|
+
return _react["default"].createElement("div", {
|
|
4466
4506
|
key: this.props.url,
|
|
4467
4507
|
ref: this.ref,
|
|
4468
4508
|
style: style
|
|
@@ -4493,7 +4533,7 @@ exports["default"] = _default;
|
|
|
4493
4533
|
});
|
|
4494
4534
|
|
|
4495
4535
|
unwrapExports(Vimeo_1);
|
|
4496
|
-
Vimeo_1.Vimeo;
|
|
4536
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4497
4537
|
|
|
4498
4538
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4499
4539
|
|
|
@@ -4522,16 +4562,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4522
4562
|
|
|
4523
4563
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4524
4564
|
|
|
4525
|
-
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); }; }
|
|
4526
|
-
|
|
4527
4565
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4528
4566
|
|
|
4529
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4530
|
-
|
|
4531
|
-
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; } }
|
|
4532
|
-
|
|
4533
4567
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4534
4568
|
|
|
4569
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4570
|
+
|
|
4535
4571
|
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); }
|
|
4536
4572
|
|
|
4537
4573
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4544,12 +4580,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4544
4580
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4545
4581
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4546
4582
|
|
|
4547
|
-
var Facebook =
|
|
4583
|
+
var Facebook =
|
|
4584
|
+
/*#__PURE__*/
|
|
4585
|
+
function (_Component) {
|
|
4548
4586
|
_inherits(Facebook, _Component);
|
|
4549
4587
|
|
|
4550
|
-
var _super = _createSuper(Facebook);
|
|
4551
|
-
|
|
4552
4588
|
function Facebook() {
|
|
4589
|
+
var _getPrototypeOf2;
|
|
4590
|
+
|
|
4553
4591
|
var _this;
|
|
4554
4592
|
|
|
4555
4593
|
_classCallCheck(this, Facebook);
|
|
@@ -4558,7 +4596,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4558
4596
|
args[_key] = arguments[_key];
|
|
4559
4597
|
}
|
|
4560
4598
|
|
|
4561
|
-
_this =
|
|
4599
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4562
4600
|
|
|
4563
4601
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4564
4602
|
|
|
@@ -4674,7 +4712,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4674
4712
|
width: '100%',
|
|
4675
4713
|
height: '100%'
|
|
4676
4714
|
};
|
|
4677
|
-
return
|
|
4715
|
+
return _react["default"].createElement("div", {
|
|
4678
4716
|
style: style,
|
|
4679
4717
|
id: this.playerID,
|
|
4680
4718
|
className: "fb-video",
|
|
@@ -4705,7 +4743,7 @@ exports["default"] = _default;
|
|
|
4705
4743
|
});
|
|
4706
4744
|
|
|
4707
4745
|
unwrapExports(Facebook_1);
|
|
4708
|
-
Facebook_1.Facebook;
|
|
4746
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4709
4747
|
|
|
4710
4748
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4711
4749
|
|
|
@@ -4734,16 +4772,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4734
4772
|
|
|
4735
4773
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4736
4774
|
|
|
4737
|
-
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); }; }
|
|
4738
|
-
|
|
4739
4775
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4740
4776
|
|
|
4741
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4742
|
-
|
|
4743
|
-
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; } }
|
|
4744
|
-
|
|
4745
4777
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4746
4778
|
|
|
4779
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4780
|
+
|
|
4747
4781
|
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); }
|
|
4748
4782
|
|
|
4749
4783
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4754,12 +4788,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4754
4788
|
var SDK_GLOBAL = 'playerjs';
|
|
4755
4789
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4756
4790
|
|
|
4757
|
-
var Streamable =
|
|
4791
|
+
var Streamable =
|
|
4792
|
+
/*#__PURE__*/
|
|
4793
|
+
function (_Component) {
|
|
4758
4794
|
_inherits(Streamable, _Component);
|
|
4759
4795
|
|
|
4760
|
-
var _super = _createSuper(Streamable);
|
|
4761
|
-
|
|
4762
4796
|
function Streamable() {
|
|
4797
|
+
var _getPrototypeOf2;
|
|
4798
|
+
|
|
4763
4799
|
var _this;
|
|
4764
4800
|
|
|
4765
4801
|
_classCallCheck(this, Streamable);
|
|
@@ -4768,7 +4804,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4768
4804
|
args[_key] = arguments[_key];
|
|
4769
4805
|
}
|
|
4770
4806
|
|
|
4771
|
-
_this =
|
|
4807
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4772
4808
|
|
|
4773
4809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4774
4810
|
|
|
@@ -4888,7 +4924,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4888
4924
|
width: '100%',
|
|
4889
4925
|
height: '100%'
|
|
4890
4926
|
};
|
|
4891
|
-
return
|
|
4927
|
+
return _react["default"].createElement("iframe", {
|
|
4892
4928
|
ref: this.ref,
|
|
4893
4929
|
src: "https://streamable.com/o/".concat(id),
|
|
4894
4930
|
frameBorder: "0",
|
|
@@ -4916,7 +4952,7 @@ exports["default"] = _default;
|
|
|
4916
4952
|
});
|
|
4917
4953
|
|
|
4918
4954
|
unwrapExports(Streamable_1);
|
|
4919
|
-
Streamable_1.Streamable;
|
|
4955
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4920
4956
|
|
|
4921
4957
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4922
4958
|
|
|
@@ -4949,16 +4985,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4949
4985
|
|
|
4950
4986
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4951
4987
|
|
|
4952
|
-
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); }; }
|
|
4953
|
-
|
|
4954
4988
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4955
4989
|
|
|
4956
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4957
|
-
|
|
4958
|
-
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; } }
|
|
4959
|
-
|
|
4960
4990
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4961
4991
|
|
|
4992
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4993
|
+
|
|
4962
4994
|
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); }
|
|
4963
4995
|
|
|
4964
4996
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4969,48 +5001,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4969
5001
|
var SDK_GLOBAL = 'Wistia';
|
|
4970
5002
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4971
5003
|
|
|
4972
|
-
var Wistia =
|
|
5004
|
+
var Wistia =
|
|
5005
|
+
/*#__PURE__*/
|
|
5006
|
+
function (_Component) {
|
|
4973
5007
|
_inherits(Wistia, _Component);
|
|
4974
5008
|
|
|
4975
|
-
var _super = _createSuper(Wistia);
|
|
4976
|
-
|
|
4977
5009
|
function Wistia() {
|
|
5010
|
+
var _getPrototypeOf2;
|
|
5011
|
+
|
|
4978
5012
|
var _this;
|
|
4979
5013
|
|
|
4980
5014
|
_classCallCheck(this, Wistia);
|
|
4981
5015
|
|
|
4982
|
-
for (var _len = arguments.length,
|
|
4983
|
-
|
|
5016
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5017
|
+
args[_key] = arguments[_key];
|
|
4984
5018
|
}
|
|
4985
5019
|
|
|
4986
|
-
_this =
|
|
5020
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4987
5021
|
|
|
4988
5022
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4989
5023
|
|
|
4990
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4991
|
-
var _this$props;
|
|
4992
|
-
|
|
4993
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4994
|
-
});
|
|
4995
|
-
|
|
4996
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4997
|
-
var _this$props2;
|
|
4998
|
-
|
|
4999
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5000
|
-
});
|
|
5001
|
-
|
|
5002
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5003
|
-
var _this$props3;
|
|
5004
|
-
|
|
5005
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5006
|
-
});
|
|
5007
|
-
|
|
5008
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5009
|
-
var _this$props4;
|
|
5010
|
-
|
|
5011
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5012
|
-
});
|
|
5013
|
-
|
|
5014
5024
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5015
5025
|
_this.callPlayer('mute');
|
|
5016
5026
|
});
|
|
@@ -5032,13 +5042,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5032
5042
|
value: function load(url) {
|
|
5033
5043
|
var _this2 = this;
|
|
5034
5044
|
|
|
5035
|
-
var _this$
|
|
5036
|
-
playing = _this$
|
|
5037
|
-
muted = _this$
|
|
5038
|
-
controls = _this$
|
|
5039
|
-
_onReady = _this$
|
|
5040
|
-
|
|
5041
|
-
|
|
5045
|
+
var _this$props = this.props,
|
|
5046
|
+
playing = _this$props.playing,
|
|
5047
|
+
muted = _this$props.muted,
|
|
5048
|
+
controls = _this$props.controls,
|
|
5049
|
+
_onReady = _this$props.onReady,
|
|
5050
|
+
onPlay = _this$props.onPlay,
|
|
5051
|
+
onPause = _this$props.onPause,
|
|
5052
|
+
onSeek = _this$props.onSeek,
|
|
5053
|
+
onEnded = _this$props.onEnded,
|
|
5054
|
+
config = _this$props.config,
|
|
5055
|
+
onError = _this$props.onError;
|
|
5042
5056
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5043
5057
|
window._wq = window._wq || [];
|
|
5044
5058
|
|
|
@@ -5055,28 +5069,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5055
5069
|
|
|
5056
5070
|
_this2.unbind();
|
|
5057
5071
|
|
|
5058
|
-
_this2.player.bind('play',
|
|
5072
|
+
_this2.player.bind('play', onPlay);
|
|
5059
5073
|
|
|
5060
|
-
_this2.player.bind('pause',
|
|
5074
|
+
_this2.player.bind('pause', onPause);
|
|
5061
5075
|
|
|
5062
|
-
_this2.player.bind('seek',
|
|
5076
|
+
_this2.player.bind('seek', onSeek);
|
|
5063
5077
|
|
|
5064
|
-
_this2.player.bind('end',
|
|
5078
|
+
_this2.player.bind('end', onEnded);
|
|
5065
5079
|
|
|
5066
5080
|
_onReady();
|
|
5067
5081
|
}
|
|
5068
5082
|
});
|
|
5069
5083
|
}, onError);
|
|
5070
5084
|
}
|
|
5071
|
-
}, {
|
|
5072
|
-
key: "unbind",
|
|
5073
|
-
value: function unbind() {
|
|
5074
|
-
this.player.unbind('play', this.onPlay);
|
|
5075
|
-
this.player.unbind('pause', this.onPause);
|
|
5076
|
-
this.player.unbind('seek', this.onSeek);
|
|
5077
|
-
this.player.unbind('end', this.onEnded);
|
|
5078
|
-
} // Proxy methods to prevent listener leaks
|
|
5079
|
-
|
|
5080
5085
|
}, {
|
|
5081
5086
|
key: "play",
|
|
5082
5087
|
value: function play() {
|
|
@@ -5087,6 +5092,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5087
5092
|
value: function pause() {
|
|
5088
5093
|
this.callPlayer('pause');
|
|
5089
5094
|
}
|
|
5095
|
+
}, {
|
|
5096
|
+
key: "unbind",
|
|
5097
|
+
value: function unbind() {
|
|
5098
|
+
var _this$props2 = this.props,
|
|
5099
|
+
onPlay = _this$props2.onPlay,
|
|
5100
|
+
onPause = _this$props2.onPause,
|
|
5101
|
+
onSeek = _this$props2.onSeek,
|
|
5102
|
+
onEnded = _this$props2.onEnded;
|
|
5103
|
+
this.player.unbind('play', onPlay);
|
|
5104
|
+
this.player.unbind('pause', onPause);
|
|
5105
|
+
this.player.unbind('seek', onSeek);
|
|
5106
|
+
this.player.unbind('end', onEnded);
|
|
5107
|
+
}
|
|
5090
5108
|
}, {
|
|
5091
5109
|
key: "stop",
|
|
5092
5110
|
value: function stop() {
|
|
@@ -5132,7 +5150,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5132
5150
|
width: '100%',
|
|
5133
5151
|
height: '100%'
|
|
5134
5152
|
};
|
|
5135
|
-
return
|
|
5153
|
+
return _react["default"].createElement("div", {
|
|
5136
5154
|
key: id,
|
|
5137
5155
|
className: className,
|
|
5138
5156
|
style: style
|
|
@@ -5159,7 +5177,7 @@ exports["default"] = _default;
|
|
|
5159
5177
|
});
|
|
5160
5178
|
|
|
5161
5179
|
unwrapExports(Wistia_1);
|
|
5162
|
-
Wistia_1.Wistia;
|
|
5180
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5163
5181
|
|
|
5164
5182
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5165
5183
|
|
|
@@ -5192,16 +5210,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5192
5210
|
|
|
5193
5211
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5194
5212
|
|
|
5195
|
-
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); }; }
|
|
5196
|
-
|
|
5197
5213
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5198
5214
|
|
|
5199
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5200
|
-
|
|
5201
|
-
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; } }
|
|
5202
|
-
|
|
5203
5215
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5204
5216
|
|
|
5217
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5218
|
+
|
|
5205
5219
|
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); }
|
|
5206
5220
|
|
|
5207
5221
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5214,12 +5228,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5214
5228
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5215
5229
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5216
5230
|
|
|
5217
|
-
var Twitch =
|
|
5231
|
+
var Twitch =
|
|
5232
|
+
/*#__PURE__*/
|
|
5233
|
+
function (_Component) {
|
|
5218
5234
|
_inherits(Twitch, _Component);
|
|
5219
5235
|
|
|
5220
|
-
var _super = _createSuper(Twitch);
|
|
5221
|
-
|
|
5222
5236
|
function Twitch() {
|
|
5237
|
+
var _getPrototypeOf2;
|
|
5238
|
+
|
|
5223
5239
|
var _this;
|
|
5224
5240
|
|
|
5225
5241
|
_classCallCheck(this, Twitch);
|
|
@@ -5228,7 +5244,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5228
5244
|
args[_key] = arguments[_key];
|
|
5229
5245
|
}
|
|
5230
5246
|
|
|
5231
|
-
_this =
|
|
5247
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5232
5248
|
|
|
5233
5249
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5234
5250
|
|
|
@@ -5349,7 +5365,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5349
5365
|
width: '100%',
|
|
5350
5366
|
height: '100%'
|
|
5351
5367
|
};
|
|
5352
|
-
return
|
|
5368
|
+
return _react["default"].createElement("div", {
|
|
5353
5369
|
style: style,
|
|
5354
5370
|
id: this.playerID
|
|
5355
5371
|
});
|
|
@@ -5375,7 +5391,7 @@ exports["default"] = _default;
|
|
|
5375
5391
|
});
|
|
5376
5392
|
|
|
5377
5393
|
unwrapExports(Twitch_1);
|
|
5378
|
-
Twitch_1.Twitch;
|
|
5394
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5379
5395
|
|
|
5380
5396
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5381
5397
|
|
|
@@ -5402,15 +5418,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5402
5418
|
|
|
5403
5419
|
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; }
|
|
5404
5420
|
|
|
5405
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5421
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5406
5422
|
|
|
5407
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5423
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5408
5424
|
|
|
5409
|
-
function
|
|
5410
|
-
|
|
5411
|
-
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; }
|
|
5412
|
-
|
|
5413
|
-
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; }
|
|
5425
|
+
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; }
|
|
5414
5426
|
|
|
5415
5427
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5416
5428
|
|
|
@@ -5420,16 +5432,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5420
5432
|
|
|
5421
5433
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5422
5434
|
|
|
5423
|
-
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); }; }
|
|
5424
|
-
|
|
5425
5435
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5426
5436
|
|
|
5427
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5428
|
-
|
|
5429
|
-
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; } }
|
|
5430
|
-
|
|
5431
5437
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5432
5438
|
|
|
5439
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5440
|
+
|
|
5433
5441
|
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); }
|
|
5434
5442
|
|
|
5435
5443
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5441,12 +5449,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5441
5449
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5442
5450
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5443
5451
|
|
|
5444
|
-
var DailyMotion =
|
|
5452
|
+
var DailyMotion =
|
|
5453
|
+
/*#__PURE__*/
|
|
5454
|
+
function (_Component) {
|
|
5445
5455
|
_inherits(DailyMotion, _Component);
|
|
5446
5456
|
|
|
5447
|
-
var _super = _createSuper(DailyMotion);
|
|
5448
|
-
|
|
5449
5457
|
function DailyMotion() {
|
|
5458
|
+
var _getPrototypeOf2;
|
|
5459
|
+
|
|
5450
5460
|
var _this;
|
|
5451
5461
|
|
|
5452
5462
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5455,7 +5465,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5455
5465
|
args[_key] = arguments[_key];
|
|
5456
5466
|
}
|
|
5457
5467
|
|
|
5458
|
-
_this =
|
|
5468
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5459
5469
|
|
|
5460
5470
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5461
5471
|
|
|
@@ -5584,9 +5594,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5584
5594
|
height: '100%',
|
|
5585
5595
|
display: display
|
|
5586
5596
|
};
|
|
5587
|
-
return
|
|
5597
|
+
return _react["default"].createElement("div", {
|
|
5588
5598
|
style: style
|
|
5589
|
-
},
|
|
5599
|
+
}, _react["default"].createElement("div", {
|
|
5590
5600
|
ref: this.ref
|
|
5591
5601
|
}));
|
|
5592
5602
|
}
|
|
@@ -5611,7 +5621,7 @@ exports["default"] = _default;
|
|
|
5611
5621
|
});
|
|
5612
5622
|
|
|
5613
5623
|
unwrapExports(DailyMotion_1);
|
|
5614
|
-
DailyMotion_1.DailyMotion;
|
|
5624
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5615
5625
|
|
|
5616
5626
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5617
5627
|
|
|
@@ -5644,16 +5654,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5644
5654
|
|
|
5645
5655
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5646
5656
|
|
|
5647
|
-
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); }; }
|
|
5648
|
-
|
|
5649
5657
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5650
5658
|
|
|
5651
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5652
|
-
|
|
5653
|
-
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; } }
|
|
5654
|
-
|
|
5655
5659
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5656
5660
|
|
|
5661
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5662
|
+
|
|
5657
5663
|
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); }
|
|
5658
5664
|
|
|
5659
5665
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5664,12 +5670,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5664
5670
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5665
5671
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5666
5672
|
|
|
5667
|
-
var Mixcloud =
|
|
5673
|
+
var Mixcloud =
|
|
5674
|
+
/*#__PURE__*/
|
|
5675
|
+
function (_Component) {
|
|
5668
5676
|
_inherits(Mixcloud, _Component);
|
|
5669
5677
|
|
|
5670
|
-
var _super = _createSuper(Mixcloud);
|
|
5671
|
-
|
|
5672
5678
|
function Mixcloud() {
|
|
5679
|
+
var _getPrototypeOf2;
|
|
5680
|
+
|
|
5673
5681
|
var _this;
|
|
5674
5682
|
|
|
5675
5683
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5678,7 +5686,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5678
5686
|
args[_key] = arguments[_key];
|
|
5679
5687
|
}
|
|
5680
5688
|
|
|
5681
|
-
_this =
|
|
5689
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5682
5690
|
|
|
5683
5691
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5684
5692
|
|
|
@@ -5781,7 +5789,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5781
5789
|
})); // We have to give the iframe a key here to prevent a
|
|
5782
5790
|
// weird dialog appearing when loading a new track
|
|
5783
5791
|
|
|
5784
|
-
return
|
|
5792
|
+
return _react["default"].createElement("iframe", {
|
|
5785
5793
|
key: id,
|
|
5786
5794
|
ref: this.ref,
|
|
5787
5795
|
style: style,
|
|
@@ -5810,7 +5818,7 @@ exports["default"] = _default;
|
|
|
5810
5818
|
});
|
|
5811
5819
|
|
|
5812
5820
|
unwrapExports(Mixcloud_1);
|
|
5813
|
-
Mixcloud_1.Mixcloud;
|
|
5821
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5814
5822
|
|
|
5815
5823
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5816
5824
|
|
|
@@ -5841,33 +5849,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5841
5849
|
|
|
5842
5850
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5843
5851
|
|
|
5844
|
-
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); }; }
|
|
5845
|
-
|
|
5846
5852
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5847
5853
|
|
|
5848
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5849
|
-
|
|
5850
|
-
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; } }
|
|
5851
|
-
|
|
5852
5854
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5853
5855
|
|
|
5856
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5857
|
+
|
|
5854
5858
|
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); }
|
|
5855
5859
|
|
|
5856
5860
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5857
5861
|
|
|
5858
5862
|
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; }
|
|
5859
5863
|
|
|
5860
|
-
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; } } }; }
|
|
5861
|
-
|
|
5862
|
-
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); }
|
|
5863
|
-
|
|
5864
|
-
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; }
|
|
5865
|
-
|
|
5866
5864
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5867
5865
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5868
5866
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5869
5867
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5870
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5868
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5871
5869
|
var HLS_GLOBAL = 'Hls';
|
|
5872
5870
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5873
5871
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5876,11 +5874,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5876
5874
|
|
|
5877
5875
|
function canPlay(url) {
|
|
5878
5876
|
if (url instanceof Array) {
|
|
5879
|
-
var
|
|
5880
|
-
|
|
5877
|
+
var _iteratorNormalCompletion = true;
|
|
5878
|
+
var _didIteratorError = false;
|
|
5879
|
+
var _iteratorError = undefined;
|
|
5881
5880
|
|
|
5882
5881
|
try {
|
|
5883
|
-
for (_iterator.
|
|
5882
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5884
5883
|
var item = _step.value;
|
|
5885
5884
|
|
|
5886
5885
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5892,9 +5891,18 @@ function canPlay(url) {
|
|
|
5892
5891
|
}
|
|
5893
5892
|
}
|
|
5894
5893
|
} catch (err) {
|
|
5895
|
-
|
|
5894
|
+
_didIteratorError = true;
|
|
5895
|
+
_iteratorError = err;
|
|
5896
5896
|
} finally {
|
|
5897
|
-
|
|
5897
|
+
try {
|
|
5898
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5899
|
+
_iterator["return"]();
|
|
5900
|
+
}
|
|
5901
|
+
} finally {
|
|
5902
|
+
if (_didIteratorError) {
|
|
5903
|
+
throw _iteratorError;
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5898
5906
|
}
|
|
5899
5907
|
|
|
5900
5908
|
return false;
|
|
@@ -5918,12 +5926,14 @@ function canEnablePIP(url) {
|
|
|
5918
5926
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5919
5927
|
}
|
|
5920
5928
|
|
|
5921
|
-
var FilePlayer =
|
|
5929
|
+
var FilePlayer =
|
|
5930
|
+
/*#__PURE__*/
|
|
5931
|
+
function (_Component) {
|
|
5922
5932
|
_inherits(FilePlayer, _Component);
|
|
5923
5933
|
|
|
5924
|
-
var _super = _createSuper(FilePlayer);
|
|
5925
|
-
|
|
5926
5934
|
function FilePlayer() {
|
|
5935
|
+
var _getPrototypeOf2;
|
|
5936
|
+
|
|
5927
5937
|
var _this;
|
|
5928
5938
|
|
|
5929
5939
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5932,7 +5942,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5932
5942
|
_args[_key] = arguments[_key];
|
|
5933
5943
|
}
|
|
5934
5944
|
|
|
5935
|
-
_this =
|
|
5945
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5936
5946
|
|
|
5937
5947
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5938
5948
|
var _this$props;
|
|
@@ -6019,19 +6029,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6019
6029
|
|
|
6020
6030
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6021
6031
|
if (typeof source === 'string') {
|
|
6022
|
-
return
|
|
6032
|
+
return _react["default"].createElement("source", {
|
|
6023
6033
|
key: index,
|
|
6024
6034
|
src: source
|
|
6025
6035
|
});
|
|
6026
6036
|
}
|
|
6027
6037
|
|
|
6028
|
-
return
|
|
6038
|
+
return _react["default"].createElement("source", _extends({
|
|
6029
6039
|
key: index
|
|
6030
6040
|
}, source));
|
|
6031
6041
|
});
|
|
6032
6042
|
|
|
6033
6043
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6034
|
-
return
|
|
6044
|
+
return _react["default"].createElement("track", _extends({
|
|
6035
6045
|
key: index
|
|
6036
6046
|
}, track));
|
|
6037
6047
|
});
|
|
@@ -6069,10 +6079,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6069
6079
|
key: "componentWillUnmount",
|
|
6070
6080
|
value: function componentWillUnmount() {
|
|
6071
6081
|
this.removeListeners(this.player);
|
|
6072
|
-
|
|
6073
|
-
if (this.hls) {
|
|
6074
|
-
this.hls.destroy();
|
|
6075
|
-
}
|
|
6076
6082
|
}
|
|
6077
6083
|
}, {
|
|
6078
6084
|
key: "addListeners",
|
|
@@ -6203,6 +6209,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6203
6209
|
value: function stop() {
|
|
6204
6210
|
this.player.removeAttribute('src');
|
|
6205
6211
|
|
|
6212
|
+
if (this.hls) {
|
|
6213
|
+
this.hls.destroy();
|
|
6214
|
+
}
|
|
6215
|
+
|
|
6206
6216
|
if (this.dash) {
|
|
6207
6217
|
this.dash.reset();
|
|
6208
6218
|
}
|
|
@@ -6314,7 +6324,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6314
6324
|
width: width === 'auto' ? width : '100%',
|
|
6315
6325
|
height: height === 'auto' ? height : '100%'
|
|
6316
6326
|
};
|
|
6317
|
-
return
|
|
6327
|
+
return _react["default"].createElement(Element, _extends({
|
|
6318
6328
|
ref: this.ref,
|
|
6319
6329
|
src: this.getSource(url),
|
|
6320
6330
|
style: style,
|
|
@@ -6344,7 +6354,7 @@ exports["default"] = _default;
|
|
|
6344
6354
|
});
|
|
6345
6355
|
|
|
6346
6356
|
unwrapExports(FilePlayer_1);
|
|
6347
|
-
FilePlayer_1.FilePlayer;
|
|
6357
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6348
6358
|
|
|
6349
6359
|
var players = createCommonjsModule(function (module, exports) {
|
|
6350
6360
|
|
|
@@ -6404,16 +6414,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6404
6414
|
|
|
6405
6415
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6406
6416
|
|
|
6407
|
-
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); }; }
|
|
6408
|
-
|
|
6409
6417
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6410
6418
|
|
|
6411
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6412
|
-
|
|
6413
|
-
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; } }
|
|
6414
|
-
|
|
6415
6419
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6416
6420
|
|
|
6421
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6422
|
+
|
|
6417
6423
|
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); }
|
|
6418
6424
|
|
|
6419
6425
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6422,12 +6428,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6422
6428
|
|
|
6423
6429
|
var ICON_SIZE = '64px';
|
|
6424
6430
|
|
|
6425
|
-
var Preview =
|
|
6431
|
+
var Preview =
|
|
6432
|
+
/*#__PURE__*/
|
|
6433
|
+
function (_Component) {
|
|
6426
6434
|
_inherits(Preview, _Component);
|
|
6427
6435
|
|
|
6428
|
-
var _super = _createSuper(Preview);
|
|
6429
|
-
|
|
6430
6436
|
function Preview() {
|
|
6437
|
+
var _getPrototypeOf2;
|
|
6438
|
+
|
|
6431
6439
|
var _this;
|
|
6432
6440
|
|
|
6433
6441
|
_classCallCheck(this, Preview);
|
|
@@ -6436,7 +6444,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6436
6444
|
args[_key] = arguments[_key];
|
|
6437
6445
|
}
|
|
6438
6446
|
|
|
6439
|
-
_this =
|
|
6447
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6440
6448
|
|
|
6441
6449
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6442
6450
|
|
|
@@ -6534,15 +6542,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6534
6542
|
}
|
|
6535
6543
|
};
|
|
6536
6544
|
|
|
6537
|
-
var defaultPlayIcon =
|
|
6545
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6538
6546
|
style: styles.shadow,
|
|
6539
6547
|
className: "react-player__shadow"
|
|
6540
|
-
},
|
|
6548
|
+
}, _react["default"].createElement("div", {
|
|
6541
6549
|
style: styles.playIcon,
|
|
6542
6550
|
className: "react-player__play-icon"
|
|
6543
6551
|
}));
|
|
6544
6552
|
|
|
6545
|
-
return
|
|
6553
|
+
return _react["default"].createElement("div", {
|
|
6546
6554
|
style: styles.preview,
|
|
6547
6555
|
className: "react-player__preview",
|
|
6548
6556
|
onClick: onClick
|
|
@@ -6579,12 +6587,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6579
6587
|
|
|
6580
6588
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6581
6589
|
|
|
6582
|
-
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; } } }; }
|
|
6583
|
-
|
|
6584
|
-
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); }
|
|
6585
|
-
|
|
6586
|
-
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; }
|
|
6587
|
-
|
|
6588
6590
|
var PRELOAD_PLAYERS = [{
|
|
6589
6591
|
Player: YouTube_1.YouTube,
|
|
6590
6592
|
configKey: 'youtube',
|
|
@@ -6605,16 +6607,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6605
6607
|
|
|
6606
6608
|
function renderPreloadPlayers(url, controls, config) {
|
|
6607
6609
|
var players = [];
|
|
6608
|
-
|
|
6609
|
-
var
|
|
6610
|
-
|
|
6610
|
+
var _iteratorNormalCompletion = true;
|
|
6611
|
+
var _didIteratorError = false;
|
|
6612
|
+
var _iteratorError = undefined;
|
|
6611
6613
|
|
|
6612
6614
|
try {
|
|
6613
|
-
for (_iterator.
|
|
6615
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6614
6616
|
var player = _step.value;
|
|
6615
6617
|
|
|
6616
6618
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6617
|
-
players.push(
|
|
6619
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6618
6620
|
key: player.Player.displayName,
|
|
6619
6621
|
activePlayer: player.Player,
|
|
6620
6622
|
url: player.url,
|
|
@@ -6626,9 +6628,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6626
6628
|
}
|
|
6627
6629
|
}
|
|
6628
6630
|
} catch (err) {
|
|
6629
|
-
|
|
6631
|
+
_didIteratorError = true;
|
|
6632
|
+
_iteratorError = err;
|
|
6630
6633
|
} finally {
|
|
6631
|
-
|
|
6634
|
+
try {
|
|
6635
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6636
|
+
_iterator["return"]();
|
|
6637
|
+
}
|
|
6638
|
+
} finally {
|
|
6639
|
+
if (_didIteratorError) {
|
|
6640
|
+
throw _iteratorError;
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6632
6643
|
}
|
|
6633
6644
|
|
|
6634
6645
|
return players;
|
|
@@ -6752,17 +6763,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6752
6763
|
|
|
6753
6764
|
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); }
|
|
6754
6765
|
|
|
6755
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6766
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6756
6767
|
|
|
6757
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6768
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6758
6769
|
|
|
6759
|
-
function
|
|
6770
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6760
6771
|
|
|
6761
|
-
function
|
|
6762
|
-
|
|
6763
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6764
|
-
|
|
6765
|
-
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; }
|
|
6772
|
+
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; } }
|
|
6766
6773
|
|
|
6767
6774
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6768
6775
|
|
|
@@ -6770,16 +6777,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6770
6777
|
|
|
6771
6778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6772
6779
|
|
|
6773
|
-
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); }; }
|
|
6774
|
-
|
|
6775
6780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6776
6781
|
|
|
6777
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6778
|
-
|
|
6779
|
-
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; } }
|
|
6780
|
-
|
|
6781
6782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6782
6783
|
|
|
6784
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6785
|
+
|
|
6783
6786
|
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); }
|
|
6784
6787
|
|
|
6785
6788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6789,12 +6792,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6789
6792
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6790
6793
|
var customPlayers = [];
|
|
6791
6794
|
|
|
6792
|
-
var ReactPlayer =
|
|
6795
|
+
var ReactPlayer =
|
|
6796
|
+
/*#__PURE__*/
|
|
6797
|
+
function (_Component) {
|
|
6793
6798
|
_inherits(ReactPlayer, _Component);
|
|
6794
6799
|
|
|
6795
|
-
var _super = _createSuper(ReactPlayer);
|
|
6796
|
-
|
|
6797
6800
|
function ReactPlayer() {
|
|
6801
|
+
var _getPrototypeOf2;
|
|
6802
|
+
|
|
6798
6803
|
var _this;
|
|
6799
6804
|
|
|
6800
6805
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6803,7 +6808,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6803
6808
|
args[_key] = arguments[_key];
|
|
6804
6809
|
}
|
|
6805
6810
|
|
|
6806
|
-
_this =
|
|
6811
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6807
6812
|
|
|
6808
6813
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6809
6814
|
|
|
@@ -6914,7 +6919,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6914
6919
|
key: "renderActivePlayer",
|
|
6915
6920
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6916
6921
|
if (!url) return null;
|
|
6917
|
-
return
|
|
6922
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6918
6923
|
key: activePlayer.displayName,
|
|
6919
6924
|
ref: this.activePlayerRef,
|
|
6920
6925
|
config: this.config,
|
|
@@ -6951,14 +6956,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6951
6956
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6952
6957
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6953
6958
|
|
|
6954
|
-
var preview =
|
|
6959
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6955
6960
|
url: url,
|
|
6956
6961
|
light: light,
|
|
6957
6962
|
playIcon: playIcon,
|
|
6958
6963
|
onClick: this.handleClickPreview
|
|
6959
6964
|
});
|
|
6960
6965
|
|
|
6961
|
-
return
|
|
6966
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6962
6967
|
ref: this.wrapperRef,
|
|
6963
6968
|
style: _objectSpread({}, style, {
|
|
6964
6969
|
width: width,
|
|
@@ -7280,8 +7285,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7280
7285
|
var duration = player.getDuration();
|
|
7281
7286
|
var queue = Math.floor(duration / 10);
|
|
7282
7287
|
var segment = Math.floor(current / queue);
|
|
7283
|
-
Beam.report_beam_video('Ready',
|
|
7284
|
-
Segment.report_video_event('Video Ready',
|
|
7288
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7289
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7285
7290
|
//autoplay
|
|
7286
7291
|
|
|
7287
7292
|
//Small pause before starting next video
|
|
@@ -7301,8 +7306,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7301
7306
|
var queue = Math.floor(duration / 10);
|
|
7302
7307
|
var segment = Math.floor(current / queue);
|
|
7303
7308
|
|
|
7304
|
-
Beam.report_beam_video('End',
|
|
7305
|
-
Segment.report_video_event('Video End',
|
|
7309
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7310
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7306
7311
|
setEndReported(true);
|
|
7307
7312
|
clearInterval(intervalID);
|
|
7308
7313
|
}
|
|
@@ -7352,8 +7357,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7357
|
var queue = Math.floor(duration / 10);
|
|
7353
7358
|
var segment = Math.floor(current / queue);
|
|
7354
7359
|
if (!queueProgress.includes(segment)) {
|
|
7355
|
-
Beam.report_beam_video('Segment',
|
|
7356
|
-
Segment.report_video_event('Video Segment',
|
|
7360
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7361
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7357
7362
|
queueProgress.push(segment);
|
|
7358
7363
|
}
|
|
7359
7364
|
};
|
|
@@ -7366,8 +7371,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7371
|
var queue = Math.floor(duration / 10);
|
|
7367
7372
|
var segment = Math.floor(current / queue);
|
|
7368
7373
|
|
|
7369
|
-
Beam.report_beam_video('Play',
|
|
7370
|
-
Segment.report_video_event('Video Play',
|
|
7374
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7375
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7371
7376
|
|
|
7372
7377
|
if (!playReported) {
|
|
7373
7378
|
setPlayReported(true);
|
|
@@ -7385,8 +7390,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7390
|
var queue = Math.floor(duration / 10);
|
|
7386
7391
|
var segment = Math.floor(current / queue);
|
|
7387
7392
|
|
|
7388
|
-
Beam.report_beam_video('Pause',
|
|
7389
|
-
Segment.report_video_event('Video Pause',
|
|
7393
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7394
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7390
7395
|
};
|
|
7391
7396
|
|
|
7392
7397
|
// Youtube Options
|
|
@@ -7504,7 +7509,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7504
7509
|
React__default.createElement(
|
|
7505
7510
|
'div',
|
|
7506
7511
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7512
|
+
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()))
|
|
7508
7513
|
),
|
|
7509
7514
|
React__default.createElement(
|
|
7510
7515
|
'style',
|
|
@@ -7514,14 +7519,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7519
|
);
|
|
7515
7520
|
};
|
|
7516
7521
|
|
|
7517
|
-
var Poll
|
|
7518
|
-
var node = _ref.node
|
|
7519
|
-
_ref.client
|
|
7520
|
-
_ref.pageview
|
|
7521
|
-
_ref.videoAccountIDs
|
|
7522
|
-
|
|
7523
|
-
_ref.showVotes
|
|
7524
|
-
|
|
7522
|
+
var Poll = function Poll(_ref) {
|
|
7523
|
+
var node = _ref.node,
|
|
7524
|
+
client = _ref.client,
|
|
7525
|
+
pageview = _ref.pageview,
|
|
7526
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7527
|
+
onVote = _ref.onVote,
|
|
7528
|
+
_ref$showVotes = _ref.showVotes,
|
|
7529
|
+
getSerializers = _ref.getSerializers;
|
|
7525
7530
|
|
|
7526
7531
|
var _useState = useState(null),
|
|
7527
7532
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7655,22 +7660,22 @@ _export(_export.S, 'Object', {
|
|
|
7655
7660
|
}
|
|
7656
7661
|
});
|
|
7657
7662
|
|
|
7658
|
-
var values
|
|
7663
|
+
var values = _core.Object.values;
|
|
7659
7664
|
|
|
7660
|
-
var values = createCommonjsModule(function (module) {
|
|
7661
|
-
module.exports = { "default": values
|
|
7665
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7666
|
+
module.exports = { "default": values, __esModule: true };
|
|
7662
7667
|
});
|
|
7663
7668
|
|
|
7664
|
-
var _Object$values = unwrapExports(values);
|
|
7669
|
+
var _Object$values = unwrapExports(values$1);
|
|
7665
7670
|
|
|
7666
|
-
var Poll = function Poll(_ref) {
|
|
7667
|
-
var node = _ref.node
|
|
7668
|
-
_ref.client
|
|
7669
|
-
_ref.pageview
|
|
7670
|
-
_ref.videoAccountIDs
|
|
7671
|
-
|
|
7672
|
-
_ref.showVotes
|
|
7673
|
-
|
|
7671
|
+
var Poll$1 = function Poll(_ref) {
|
|
7672
|
+
var node = _ref.node,
|
|
7673
|
+
client = _ref.client,
|
|
7674
|
+
pageview = _ref.pageview,
|
|
7675
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7676
|
+
onVote = _ref.onVote,
|
|
7677
|
+
_ref$showVotes = _ref.showVotes,
|
|
7678
|
+
getSerializers = _ref.getSerializers;
|
|
7674
7679
|
|
|
7675
7680
|
var _useState = useState(null),
|
|
7676
7681
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7822,7 +7827,7 @@ var Poll = function Poll(_ref) {
|
|
|
7822
7827
|
);
|
|
7823
7828
|
};
|
|
7824
7829
|
|
|
7825
|
-
var numberOfPaginations =
|
|
7830
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7826
7831
|
|
|
7827
7832
|
var Quiz = function Quiz(_ref) {
|
|
7828
7833
|
var quizzes = _ref.quizzes,
|
|
@@ -7941,33 +7946,33 @@ var Quiz = function Quiz(_ref) {
|
|
|
7941
7946
|
|
|
7942
7947
|
var renderPagination = function renderPagination() {
|
|
7943
7948
|
return React__default.createElement(
|
|
7944
|
-
Pagination,
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7949
|
+
Pagination$1,
|
|
7950
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7951
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7947
7952
|
return changePage('first');
|
|
7948
7953
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7954
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7950
7955
|
return changePage('prev');
|
|
7951
7956
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7957
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7953
7958
|
return renderNewPages('prev');
|
|
7954
7959
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
7960
|
pages.map(function (page) {
|
|
7956
7961
|
return React__default.createElement(
|
|
7957
|
-
Pagination.Item,
|
|
7962
|
+
Pagination$1.Item,
|
|
7958
7963
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
7964
|
return changePage(page);
|
|
7960
7965
|
} },
|
|
7961
7966
|
page
|
|
7962
7967
|
);
|
|
7963
7968
|
}),
|
|
7964
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7969
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7965
7970
|
return renderNewPages('next');
|
|
7966
7971
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7972
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7968
7973
|
return changePage('next');
|
|
7969
7974
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7975
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7971
7976
|
return changePage('last');
|
|
7972
7977
|
}, disabled: currentPage === pageCount })
|
|
7973
7978
|
);
|
|
@@ -8117,7 +8122,7 @@ var Leads = function Leads(_ref) {
|
|
|
8117
8122
|
);
|
|
8118
8123
|
};
|
|
8119
8124
|
|
|
8120
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8125
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8121
8126
|
var slides = _ref.node.slides,
|
|
8122
8127
|
client = _ref.client,
|
|
8123
8128
|
pageview = _ref.pageview,
|
|
@@ -8268,7 +8273,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8268
8273
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8269
8274
|
React__default.createElement(
|
|
8270
8275
|
'a',
|
|
8271
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset
|
|
8276
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8272
8277
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8273
8278
|
React__default.createElement(
|
|
8274
8279
|
'div',
|
|
@@ -8563,7 +8568,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8563
8568
|
|
|
8564
8569
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8565
8570
|
if (biography) {
|
|
8566
|
-
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8571
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8567
8572
|
}
|
|
8568
8573
|
};
|
|
8569
8574
|
|
|
@@ -8649,7 +8654,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8649
8654
|
//console.log('useLayoutEffect')
|
|
8650
8655
|
if (!firstLoad) {
|
|
8651
8656
|
setUpArrowClicked(false);
|
|
8652
|
-
if (
|
|
8657
|
+
if (main_36) {
|
|
8653
8658
|
grabLoadedAds();
|
|
8654
8659
|
} else {
|
|
8655
8660
|
scrollToArticle();
|
|
@@ -8673,7 +8678,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8673
8678
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8674
8679
|
if (pageview) pageview(path);
|
|
8675
8680
|
|
|
8676
|
-
if (!
|
|
8681
|
+
if (!main_36) {
|
|
8677
8682
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8678
8683
|
if (window.googletag && googletag.pubadsReady) {
|
|
8679
8684
|
lib_3.refresh();
|
|
@@ -8681,7 +8686,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8681
8686
|
});
|
|
8682
8687
|
}
|
|
8683
8688
|
//Refresh leaderboard ad on mobile
|
|
8684
|
-
if (
|
|
8689
|
+
if (main_36) {
|
|
8685
8690
|
var leaderboardSlotId = '';
|
|
8686
8691
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8687
8692
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8750,7 +8755,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8750
8755
|
React__default.createElement(
|
|
8751
8756
|
'div',
|
|
8752
8757
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8753
|
-
|
|
8758
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8754
8759
|
if (index === 0) {
|
|
8755
8760
|
return React__default.createElement(
|
|
8756
8761
|
'div',
|
|
@@ -8841,7 +8846,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8841
8846
|
React__default.createElement(
|
|
8842
8847
|
'div',
|
|
8843
8848
|
{ className: 'mt-2 mb-2' },
|
|
8844
|
-
React__default.createElement(BlockContent, _extends({
|
|
8849
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8845
8850
|
serializers: getSerializers,
|
|
8846
8851
|
videoAccountIDs: accountIDs,
|
|
8847
8852
|
blocks: article.text,
|
|
@@ -8872,7 +8877,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8872
8877
|
React__default.createElement(
|
|
8873
8878
|
'div',
|
|
8874
8879
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8875
|
-
|
|
8880
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8876
8881
|
if (innerIndex === 0) {
|
|
8877
8882
|
return React__default.createElement(
|
|
8878
8883
|
'div',
|
|
@@ -8945,7 +8950,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8945
8950
|
}
|
|
8946
8951
|
};
|
|
8947
8952
|
|
|
8948
|
-
var FigureImage
|
|
8953
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8949
8954
|
var node = _ref2.node,
|
|
8950
8955
|
client = _ref2.client,
|
|
8951
8956
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8959,7 +8964,7 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
|
8959
8964
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8960
8965
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8961
8966
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8962
|
-
React__default.createElement('img', _extends({
|
|
8967
|
+
React__default.createElement('img', _extends$1({
|
|
8963
8968
|
style: figureImageStyle,
|
|
8964
8969
|
className: 'figure-image',
|
|
8965
8970
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9011,23 +9016,23 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9011
9016
|
var renderTooltip = function renderTooltip(props) {
|
|
9012
9017
|
if (infoBox[0].title) {
|
|
9013
9018
|
return React__default.createElement(
|
|
9014
|
-
Popover,
|
|
9019
|
+
Popover$1,
|
|
9015
9020
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9016
9021
|
React__default.createElement(
|
|
9017
|
-
Popover.Title,
|
|
9022
|
+
Popover$1.Title,
|
|
9018
9023
|
{ as: 'h3' },
|
|
9019
9024
|
infoBox[0].title
|
|
9020
9025
|
),
|
|
9021
9026
|
React__default.createElement(
|
|
9022
|
-
Popover.Content,
|
|
9027
|
+
Popover$1.Content,
|
|
9023
9028
|
null,
|
|
9024
9029
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9025
9030
|
)
|
|
9026
9031
|
);
|
|
9027
9032
|
} else {
|
|
9028
9033
|
return React__default.createElement(
|
|
9029
|
-
Tooltip,
|
|
9030
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9034
|
+
Tooltip$1,
|
|
9035
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9031
9036
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9032
9037
|
);
|
|
9033
9038
|
}
|
|
@@ -9041,32 +9046,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9041
9046
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9042
9047
|
|
|
9043
9048
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9044
|
-
var triggerAction =
|
|
9045
|
-
var placementLocation =
|
|
9049
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9050
|
+
var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9046
9051
|
return React__default.createElement(
|
|
9047
9052
|
'picture',
|
|
9048
9053
|
null,
|
|
9049
9054
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9050
9055
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9051
9056
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9052
|
-
|
|
9057
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9053
9058
|
style: figureImageStyle,
|
|
9054
9059
|
className: 'figure-image',
|
|
9055
9060
|
src: urlFor({ source: node, client: client }),
|
|
9056
9061
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9057
|
-
}, !link && !
|
|
9062
|
+
}, !link && !main_35 && {
|
|
9058
9063
|
onClick: function onClick() {
|
|
9059
9064
|
return handleClickFigure(node, client);
|
|
9060
9065
|
}
|
|
9061
9066
|
})) : React__default.createElement(
|
|
9062
9067
|
OverlayTrigger,
|
|
9063
9068
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9064
|
-
React__default.createElement('img', _extends({
|
|
9069
|
+
React__default.createElement('img', _extends$1({
|
|
9065
9070
|
style: figureImageStyle,
|
|
9066
9071
|
className: 'figure-image',
|
|
9067
9072
|
src: urlFor({ source: node, client: client }),
|
|
9068
9073
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9069
|
-
}, !link && !
|
|
9074
|
+
}, !link && !main_35 && {
|
|
9070
9075
|
onClick: function onClick() {
|
|
9071
9076
|
return handleClickFigure(node, client);
|
|
9072
9077
|
}
|
|
@@ -9142,7 +9147,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9142
9147
|
React__default.Fragment,
|
|
9143
9148
|
null,
|
|
9144
9149
|
infoBox.length >= 1 ? React__default.createElement(
|
|
9145
|
-
Figure$
|
|
9150
|
+
Figure$1$1,
|
|
9146
9151
|
{ className: '' + class_name, style: figureStyle },
|
|
9147
9152
|
link ? React__default.createElement(
|
|
9148
9153
|
'a',
|
|
@@ -9164,17 +9169,17 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9164
9169
|
}
|
|
9165
9170
|
})
|
|
9166
9171
|
) : React__default.createElement(
|
|
9167
|
-
Figure$
|
|
9172
|
+
Figure$1$1,
|
|
9168
9173
|
{ className: '' + class_name, style: figureStyle },
|
|
9169
9174
|
link ? React__default.createElement(
|
|
9170
9175
|
'a',
|
|
9171
9176
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9172
|
-
React__default.createElement(FigureImage
|
|
9177
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9173
9178
|
React__default.createElement(FigureCaption, null)
|
|
9174
9179
|
) : React__default.createElement(
|
|
9175
9180
|
React__default.Fragment,
|
|
9176
9181
|
null,
|
|
9177
|
-
React__default.createElement(FigureImage
|
|
9182
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9178
9183
|
React__default.createElement(FigureCaption, null)
|
|
9179
9184
|
),
|
|
9180
9185
|
React__default.createElement(LightBox, {
|
|
@@ -9211,7 +9216,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9211
9216
|
}, [ref]);
|
|
9212
9217
|
}
|
|
9213
9218
|
|
|
9214
|
-
var FigureImage = React__default.memo(function (_ref) {
|
|
9219
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9215
9220
|
var imagesCount = _ref.imagesCount,
|
|
9216
9221
|
image = _ref.image,
|
|
9217
9222
|
client = _ref.client,
|
|
@@ -9225,7 +9230,7 @@ var FigureImage = React__default.memo(function (_ref) {
|
|
|
9225
9230
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9226
9231
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9227
9232
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9228
|
-
React__default.createElement('img', _extends({
|
|
9233
|
+
React__default.createElement('img', _extends$1({
|
|
9229
9234
|
'images-count': imagesCount,
|
|
9230
9235
|
className: 'multi-figure-image',
|
|
9231
9236
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9285,32 +9290,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9285
9290
|
link = _ref3.link,
|
|
9286
9291
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9287
9292
|
|
|
9288
|
-
var triggerAction =
|
|
9289
|
-
var placementLocation =
|
|
9293
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9294
|
+
var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9290
9295
|
return React__default.createElement(
|
|
9291
9296
|
'picture',
|
|
9292
9297
|
null,
|
|
9293
9298
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9294
9299
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9295
9300
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9296
|
-
|
|
9301
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9297
9302
|
'images-count': imagesCount,
|
|
9298
9303
|
className: 'multi-figure-image',
|
|
9299
9304
|
src: urlFor({ source: image, client: client }),
|
|
9300
9305
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9301
|
-
}, !link && !
|
|
9306
|
+
}, !link && !main_35 && {
|
|
9302
9307
|
onClick: function onClick() {
|
|
9303
9308
|
return handleClickFigure(image, client);
|
|
9304
9309
|
}
|
|
9305
9310
|
})) : React__default.createElement(
|
|
9306
9311
|
OverlayTrigger,
|
|
9307
9312
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9308
|
-
React__default.createElement('img', _extends({
|
|
9313
|
+
React__default.createElement('img', _extends$1({
|
|
9309
9314
|
'images-count': imagesCount,
|
|
9310
9315
|
className: 'multi-figure-image',
|
|
9311
9316
|
src: urlFor({ source: image, client: client }),
|
|
9312
9317
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9313
|
-
}, !link && !
|
|
9318
|
+
}, !link && !main_35 && {
|
|
9314
9319
|
onClick: function onClick() {
|
|
9315
9320
|
return handleClickFigure(image, client);
|
|
9316
9321
|
}
|
|
@@ -9322,23 +9327,23 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9322
9327
|
var renderTooltip = function renderTooltip(image) {
|
|
9323
9328
|
if (image.infoBox[0].title) {
|
|
9324
9329
|
return React__default.createElement(
|
|
9325
|
-
Popover,
|
|
9330
|
+
Popover$1,
|
|
9326
9331
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9327
9332
|
React__default.createElement(
|
|
9328
|
-
Popover.Title,
|
|
9333
|
+
Popover$1.Title,
|
|
9329
9334
|
{ as: 'h3' },
|
|
9330
9335
|
image.infoBox[0].title
|
|
9331
9336
|
),
|
|
9332
9337
|
React__default.createElement(
|
|
9333
|
-
Popover.Content,
|
|
9338
|
+
Popover$1.Content,
|
|
9334
9339
|
null,
|
|
9335
9340
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9336
9341
|
)
|
|
9337
9342
|
);
|
|
9338
9343
|
} else {
|
|
9339
9344
|
return React__default.createElement(
|
|
9340
|
-
Tooltip,
|
|
9341
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9345
|
+
Tooltip$1,
|
|
9346
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9342
9347
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9343
9348
|
);
|
|
9344
9349
|
}
|
|
@@ -9358,7 +9363,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9358
9363
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9359
9364
|
image.link ? React__default.createElement(
|
|
9360
9365
|
'a',
|
|
9361
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9366
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9362
9367
|
React__default.createElement(
|
|
9363
9368
|
'div',
|
|
9364
9369
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9386,14 +9391,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9386
9391
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9387
9392
|
image.link ? React__default.createElement(
|
|
9388
9393
|
'a',
|
|
9389
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9394
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9390
9395
|
React__default.createElement(
|
|
9391
9396
|
'div',
|
|
9392
9397
|
{ className: 'multi-figure-image-container' },
|
|
9393
9398
|
React__default.createElement(
|
|
9394
9399
|
LazyLoad,
|
|
9395
9400
|
{ once: true },
|
|
9396
|
-
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9401
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9397
9402
|
),
|
|
9398
9403
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9399
9404
|
)
|
|
@@ -9403,7 +9408,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9403
9408
|
React__default.createElement(
|
|
9404
9409
|
LazyLoad,
|
|
9405
9410
|
{ once: true },
|
|
9406
|
-
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9411
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9407
9412
|
),
|
|
9408
9413
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9409
9414
|
)
|
|
@@ -9515,7 +9520,7 @@ exports.__esModule = true;
|
|
|
9515
9520
|
|
|
9516
9521
|
|
|
9517
9522
|
|
|
9518
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9523
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9519
9524
|
|
|
9520
9525
|
|
|
9521
9526
|
|
|
@@ -9684,9 +9689,9 @@ var ScriptTag = function (_Component) {
|
|
|
9684
9689
|
|
|
9685
9690
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9686
9691
|
// eslint-disable-next-line no-unused-vars
|
|
9687
|
-
var _props3 = this.props
|
|
9688
|
-
_props3.isHydrating
|
|
9689
|
-
|
|
9692
|
+
var _props3 = this.props,
|
|
9693
|
+
isHydrating = _props3.isHydrating,
|
|
9694
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9690
9695
|
|
|
9691
9696
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9692
9697
|
return _this2.domRef = tag;
|
|
@@ -9828,7 +9833,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9828
9833
|
return React__default.createElement(
|
|
9829
9834
|
'div',
|
|
9830
9835
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9831
|
-
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9836
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9832
9837
|
);
|
|
9833
9838
|
})
|
|
9834
9839
|
);
|
|
@@ -9956,14 +9961,14 @@ var getSerializers = function getSerializers() {
|
|
|
9956
9961
|
var node = _ref6.node;
|
|
9957
9962
|
var slides = node.slides;
|
|
9958
9963
|
|
|
9959
|
-
return React__default.createElement(Slideshow
|
|
9964
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9960
9965
|
},
|
|
9961
9966
|
sidebar: function sidebar(_ref7) {
|
|
9962
9967
|
var node = _ref7.node;
|
|
9963
9968
|
var caption = node.caption,
|
|
9964
9969
|
content = node.content;
|
|
9965
9970
|
|
|
9966
|
-
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9971
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
9967
9972
|
},
|
|
9968
9973
|
datatable: function datatable(_ref8) {
|
|
9969
9974
|
var node = _ref8.node;
|
|
@@ -9994,26 +9999,26 @@ var getSerializers = function getSerializers() {
|
|
|
9994
9999
|
poll: function poll(_ref13) {
|
|
9995
10000
|
var node = _ref13.node;
|
|
9996
10001
|
|
|
9997
|
-
return React__default.createElement(Poll
|
|
10002
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
9998
10003
|
},
|
|
9999
10004
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10000
10005
|
var node = _ref14.node;
|
|
10001
10006
|
|
|
10002
|
-
return React__default.createElement(Poll, {
|
|
10007
|
+
return React__default.createElement(Poll$1, {
|
|
10003
10008
|
node: node,
|
|
10004
10009
|
client: client,
|
|
10005
10010
|
pageview: pageview,
|
|
10006
10011
|
videoAccountIDs: videoAccountIDs,
|
|
10007
10012
|
showVotes: showVotes,
|
|
10008
10013
|
onVote: onVote,
|
|
10009
|
-
getSerializers: getSerializers(props)
|
|
10014
|
+
getSerializers: getSerializers.apply(undefined, props)
|
|
10010
10015
|
});
|
|
10011
10016
|
},
|
|
10012
10017
|
quiz: function quiz(_ref15) {
|
|
10013
10018
|
var node = _ref15.node;
|
|
10014
10019
|
var quizzes = node.quizzes;
|
|
10015
10020
|
|
|
10016
|
-
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10021
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10017
10022
|
},
|
|
10018
10023
|
leads: function leads(_ref16) {
|
|
10019
10024
|
var node = _ref16.node;
|
|
@@ -10025,7 +10030,7 @@ var getSerializers = function getSerializers() {
|
|
|
10025
10030
|
slideshows: function slideshows(_ref17) {
|
|
10026
10031
|
var node = _ref17.node;
|
|
10027
10032
|
|
|
10028
|
-
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10033
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10029
10034
|
},
|
|
10030
10035
|
nativeAd: function nativeAd(_ref18) {
|
|
10031
10036
|
var node = _ref18.node;
|
|
@@ -10100,7 +10105,7 @@ var getSerializers = function getSerializers() {
|
|
|
10100
10105
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10101
10106
|
return href ? React__default.createElement(
|
|
10102
10107
|
'a',
|
|
10103
|
-
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10108
|
+
_extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10104
10109
|
children
|
|
10105
10110
|
) : children;
|
|
10106
10111
|
},
|