@mjhls/mjh-framework 1.0.879 → 1.0.880-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 -28
- package/dist/cjs/AD300x250x600.js +28 -28
- package/dist/cjs/AD728x90.js +31 -31
- package/dist/cjs/ADFloatingFooter.js +30 -30
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -30
- package/dist/cjs/{ADInfeed-51a39495.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -30
- package/dist/cjs/ADSponsoredResources.js +30 -30
- package/dist/cjs/ADWebcast.js +30 -30
- package/dist/cjs/ADWelcome.js +31 -31
- package/dist/cjs/{ADlgInfeed-12db4509.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -31
- package/dist/cjs/AdSlotsProvider.js +910 -18
- package/dist/cjs/AlgoliaSearch.js +14023 -61
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -21
- package/dist/cjs/ArticleProgramLandingPage.js +59 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -44
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +266 -308
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-9c6b07ad.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +82 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -59
- package/dist/cjs/ConferenceArticleCard.js +26 -28
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +93 -97
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-94f8ccdf.js → Dfp-14d2455c.js} +32 -32
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +28 -31
- package/dist/cjs/ForbesHero.js +41 -43
- package/dist/cjs/GridContent.js +232 -237
- package/dist/cjs/GridHero.js +43 -45
- package/dist/cjs/GroupDeck.js +58 -60
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +14 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +70 -71
- package/dist/cjs/HorizontalHero.js +29 -31
- package/dist/cjs/IssueContentDeck.js +71 -77
- package/dist/cjs/IssueDeck.js +70 -76
- package/dist/cjs/IssueLanding.js +63 -65
- package/dist/cjs/LeftNav.js +37 -38
- package/dist/cjs/MasterDeck.js +228 -355
- package/dist/cjs/MediaSeriesLanding.js +1093 -1185
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +136 -141
- package/dist/cjs/NavNative.js +128 -136
- package/dist/cjs/OncliveHero.js +23 -24
- package/dist/cjs/OncliveLargeHero.js +73 -75
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/Pagination-9cb60fba.js +61 -0
- package/dist/cjs/PartnerDetailListing.js +3918 -119
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +39 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -71
- package/dist/cjs/PublicationLanding.js +106 -110
- package/dist/cjs/QueueDeckExpanded.js +1002 -1173
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +29 -31
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-f9128638.js → SeriesSlider-ec146338.js} +36 -37
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -35
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -67
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -72
- package/dist/cjs/ThumbnailCard.js +23 -26
- package/dist/cjs/Ustream.js +28 -29
- package/dist/cjs/VerticalHero.js +20 -22
- package/dist/cjs/VideoProgramLandingPage.js +73 -77
- package/dist/cjs/VideoSeriesCard.js +31 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +49 -52
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +272 -275
- package/dist/cjs/YahooHero.js +40 -42
- package/dist/cjs/YoutubeGroup.js +62 -64
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.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-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +18 -18
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-aafe16dd.js → index-17c6af5a.js} +1067 -1093
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- 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-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 -169
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- 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-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/{index-efca863c.js → urlFor-3a61226f.js} +88 -37
- package/dist/cjs/urlFor.js +5 -59
- package/dist/cjs/{ustream-api-3819e4aa.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-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -21
- package/dist/esm/AD300x250x600.js +22 -21
- package/dist/esm/AD728x90.js +25 -24
- package/dist/esm/ADFloatingFooter.js +21 -20
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -20
- package/dist/esm/{ADInfeed-bba8b026.js → ADInfeed-0c13c803.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -20
- package/dist/esm/ADSponsoredResources.js +21 -20
- package/dist/esm/ADWebcast.js +21 -20
- package/dist/esm/ADWelcome.js +18 -17
- package/dist/esm/{ADlgInfeed-a45afa1d.js → ADlgInfeed-e4e2031a.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -19
- package/dist/esm/AdSlotsProvider.js +907 -14
- package/dist/esm/AlgoliaSearch.js +13992 -29
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -14
- package/dist/esm/ArticleProgramLandingPage.js +47 -47
- package/dist/esm/ArticleSeriesLandingPage.js +29 -33
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +1418 -590
- package/dist/esm/AuthWrapper.js +244 -285
- package/dist/esm/{AuthorComponent-defe68b6.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-f4515898.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +23 -22
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -36
- package/dist/esm/ConferenceArticleCard.js +10 -11
- package/dist/esm/DeckContent.js +47 -47
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-4b99f79d.js → Dfp-f867d061.js} +13 -12
- package/dist/esm/EventsDeck.js +50 -50
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -8
- package/dist/esm/ForbesHero.js +9 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +10 -11
- package/dist/esm/GroupDeck.js +11 -12
- package/dist/esm/HamMagazine.js +28 -28
- package/dist/esm/Hero.js +6 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +45 -45
- package/dist/esm/HorizontalHero.js +8 -9
- package/dist/esm/IssueContentDeck.js +24 -25
- package/dist/esm/IssueDeck.js +34 -35
- package/dist/esm/IssueLanding.js +52 -53
- package/dist/esm/LeftNav.js +20 -19
- package/dist/esm/MasterDeck.js +210 -336
- package/dist/esm/MediaSeriesLanding.js +643 -732
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +32 -32
- package/dist/esm/NavNative.js +32 -32
- package/dist/esm/OncliveHero.js +8 -8
- package/dist/esm/OncliveLargeHero.js +10 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/Pagination-256b60e5.js +56 -0
- package/dist/esm/PartnerDetailListing.js +3861 -62
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +31 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +26 -27
- package/dist/esm/PublicationLanding.js +47 -47
- package/dist/esm/QueueDeckExpanded.js +945 -1116
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +9 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-98b7a870.js → SeriesSlider-d6561e33.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-9458fac6.js → SocialSearchComponent-b5be0e6c.js} +12 -12
- package/dist/esm/TaxonomyCard.js +26 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -47
- package/dist/esm/ThumbnailCard.js +9 -10
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +6 -7
- package/dist/esm/VideoProgramLandingPage.js +51 -51
- package/dist/esm/VideoSeriesCard.js +12 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -38
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +91 -90
- package/dist/esm/YahooHero.js +12 -13
- package/dist/esm/YoutubeGroup.js +16 -17
- package/dist/esm/{_is-array-893ab020.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-f089461c.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-169d6272.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-50a6b9a3.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-b4dfe691.js → asyncToGenerator-64812e90.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-e903ff31.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-99e66838.js → define-property-6d26cb48.js} +6 -6
- package/dist/esm/{defineProperty-8fa0bc8d.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-dc6a71fd.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-3792eba9.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- 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-e57e375a.js → index-a35a5c39.js} +617 -633
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- 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 -124
- package/dist/esm/{inherits-8a801a18.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-425c8ab0.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-c0612122.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-ca2c8b8d.js → slicedToArray-67a08c9c.js} +12 -12
- 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-7b1c0e23.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-83d9eb10.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/{index-0dbff1d1.js → urlFor-23b2244b.js} +88 -37
- package/dist/esm/urlFor.js +4 -62
- package/dist/esm/{ustream-api-41166338.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-fdf034f5.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +2 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-c21932b3.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.js';
|
|
13
|
-
import Segment from './Segment.js';
|
|
14
|
-
import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.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-83d9eb10.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 './core.get-iterator-method-e903ff31.js';
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-50a6b9a3.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.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 { u as urlFor } from './urlFor-23b2244b.js';
|
|
16
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
17
|
+
import { e as main_16, b as main_35, m as main_36 } from './main-c0612122.js';
|
|
18
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
19
|
+
import Segment from './Segment.js';
|
|
20
|
+
import './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-f4515898.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$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); }; }
|
|
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; }; }();
|
|
1580
1577
|
|
|
1581
|
-
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; };
|
|
1582
1579
|
|
|
1583
|
-
function
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1584
1581
|
|
|
1585
|
-
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; }
|
|
1586
1583
|
|
|
1587
|
-
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; }
|
|
1588
1585
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
/**
|
|
1595
|
-
* Check whether a `props` change should result in the video being updated.
|
|
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,
|
|
@@ -1927,7 +1957,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1927
1957
|
var queue = Math.floor(duration / 10);
|
|
1928
1958
|
var segment = Math.floor(current / queue);
|
|
1929
1959
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1930
|
-
Segment.report_video_event('Video Ready',
|
|
1960
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1931
1961
|
};
|
|
1932
1962
|
|
|
1933
1963
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1938,7 +1968,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1938
1968
|
|
|
1939
1969
|
if (!queueProgress.includes(segment)) {
|
|
1940
1970
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1941
|
-
Segment.report_video_event('Video Segment',
|
|
1971
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1942
1972
|
queueProgress.push(segment);
|
|
1943
1973
|
}
|
|
1944
1974
|
};
|
|
@@ -1952,7 +1982,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1952
1982
|
var segment = Math.floor(current / queue);
|
|
1953
1983
|
|
|
1954
1984
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1955
|
-
Segment.report_video_event('Video Play',
|
|
1985
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1956
1986
|
|
|
1957
1987
|
if (!playReported) {
|
|
1958
1988
|
setPlayReported(true);
|
|
@@ -1972,7 +2002,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1972
2002
|
var segment = Math.floor(current / queue);
|
|
1973
2003
|
|
|
1974
2004
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1975
|
-
Segment.report_video_event('Video End',
|
|
2005
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1976
2006
|
setEndReported(true);
|
|
1977
2007
|
clearInterval(intervalID);
|
|
1978
2008
|
}
|
|
@@ -1986,7 +2016,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1986
2016
|
var segment = Math.floor(current / queue);
|
|
1987
2017
|
|
|
1988
2018
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1989
|
-
Segment.report_video_event('Video Pause',
|
|
2019
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
2020
|
};
|
|
1991
2021
|
|
|
1992
2022
|
return React__default.createElement(
|
|
@@ -2175,7 +2205,7 @@ var Media = function Media(_ref) {
|
|
|
2175
2205
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2176
2206
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2177
2207
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2178
|
-
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 }))
|
|
2179
2209
|
)
|
|
2180
2210
|
),
|
|
2181
2211
|
caption && React__default.createElement(
|
|
@@ -2188,7 +2218,7 @@ var Media = function Media(_ref) {
|
|
|
2188
2218
|
} else if (caption && caption !== '') {
|
|
2189
2219
|
return React__default.createElement(
|
|
2190
2220
|
'a',
|
|
2191
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2221
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2192
2222
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2193
2223
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2194
2224
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2244,7 +2274,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2244
2274
|
var queue = Math.floor(duration / 10);
|
|
2245
2275
|
var segment = Math.floor(current / queue);
|
|
2246
2276
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2247
|
-
Segment.report_video_event('Video Ready',
|
|
2277
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2248
2278
|
};
|
|
2249
2279
|
|
|
2250
2280
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2254,7 +2284,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2254
2284
|
var segment = Math.floor(current / queue);
|
|
2255
2285
|
if (!queueProgress.includes(segment)) {
|
|
2256
2286
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2257
|
-
Segment.report_video_event('Video Segment',
|
|
2287
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2258
2288
|
queueProgress.push(segment);
|
|
2259
2289
|
}
|
|
2260
2290
|
};
|
|
@@ -2267,7 +2297,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2267
2297
|
var queue = Math.floor(duration / 10);
|
|
2268
2298
|
var segment = Math.floor(current / queue);
|
|
2269
2299
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2270
|
-
Segment.report_video_event('Video Play',
|
|
2300
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2271
2301
|
|
|
2272
2302
|
if (!playReported) {
|
|
2273
2303
|
event.persist();
|
|
@@ -2288,7 +2318,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2288
2318
|
var segment = Math.floor(current / queue);
|
|
2289
2319
|
|
|
2290
2320
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2291
|
-
Segment.report_video_event('Video End',
|
|
2321
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2292
2322
|
setEndReported(true);
|
|
2293
2323
|
clearInterval(intervalID);
|
|
2294
2324
|
}
|
|
@@ -2301,7 +2331,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2301
2331
|
var queue = Math.floor(duration / 10);
|
|
2302
2332
|
var segment = Math.floor(current / queue);
|
|
2303
2333
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2304
|
-
Segment.report_video_event('Video Pause',
|
|
2334
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2305
2335
|
};
|
|
2306
2336
|
|
|
2307
2337
|
return React__default.createElement(
|
|
@@ -2362,7 +2392,7 @@ var Video = function Video(_ref) {
|
|
|
2362
2392
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2363
2393
|
//console.log('success:', success.ref)
|
|
2364
2394
|
var player = success.ref;
|
|
2365
|
-
if (_typeof
|
|
2395
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2366
2396
|
player.ima3.settings.debug = true;
|
|
2367
2397
|
if (targeting.content_placement && targeting.document_url) {
|
|
2368
2398
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2391,7 +2421,7 @@ var Video = function Video(_ref) {
|
|
|
2391
2421
|
}
|
|
2392
2422
|
|
|
2393
2423
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2394
|
-
Segment.report_video_event('Video Ready',
|
|
2424
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2395
2425
|
});
|
|
2396
2426
|
|
|
2397
2427
|
// play
|
|
@@ -2401,7 +2431,7 @@ var Video = function Video(_ref) {
|
|
|
2401
2431
|
var queue = Math.floor(duration / 10);
|
|
2402
2432
|
var segment = Math.floor(current / queue);
|
|
2403
2433
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2404
|
-
Segment.report_video_event('Video Play',
|
|
2434
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2405
2435
|
});
|
|
2406
2436
|
|
|
2407
2437
|
// pause
|
|
@@ -2411,7 +2441,7 @@ var Video = function Video(_ref) {
|
|
|
2411
2441
|
var queue = Math.floor(duration / 10);
|
|
2412
2442
|
var segment = Math.floor(current / queue);
|
|
2413
2443
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2414
|
-
Segment.report_video_event('Video Pause',
|
|
2444
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
2445
|
});
|
|
2416
2446
|
|
|
2417
2447
|
// end
|
|
@@ -2421,7 +2451,7 @@ var Video = function Video(_ref) {
|
|
|
2421
2451
|
var queue = Math.floor(duration / 10);
|
|
2422
2452
|
var segment = Math.floor(current / queue);
|
|
2423
2453
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2424
|
-
Segment.report_video_event('Video End',
|
|
2454
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2425
2455
|
autoplayNextVideo(evt);
|
|
2426
2456
|
});
|
|
2427
2457
|
|
|
@@ -2433,7 +2463,7 @@ var Video = function Video(_ref) {
|
|
|
2433
2463
|
var segment = Math.floor(current / queue);
|
|
2434
2464
|
if (!queueProgress.includes(segment)) {
|
|
2435
2465
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2436
|
-
Segment.report_video_event('Video Segment',
|
|
2466
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2437
2467
|
queueProgress.push(segment);
|
|
2438
2468
|
}
|
|
2439
2469
|
});
|
|
@@ -2441,20 +2471,20 @@ var Video = function Video(_ref) {
|
|
|
2441
2471
|
// ad impression
|
|
2442
2472
|
player.on('ads-ad-started', function (evt) {
|
|
2443
2473
|
var duration = player.ads.ad.duration;
|
|
2444
|
-
player.ads.ad.id;
|
|
2474
|
+
var id = player.ads.ad.id;
|
|
2445
2475
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2446
2476
|
|
|
2447
2477
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2448
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2478
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2449
2479
|
});
|
|
2450
2480
|
|
|
2451
2481
|
// ad ended
|
|
2452
2482
|
player.on('ads-ad-ended', function (evt) {
|
|
2453
2483
|
var duration = player.ads.ad.duration;
|
|
2454
|
-
player.ads.ad.id;
|
|
2484
|
+
var id = player.ads.ad.id;
|
|
2455
2485
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2456
2486
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2457
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2487
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2458
2488
|
});
|
|
2459
2489
|
};
|
|
2460
2490
|
|
|
@@ -2717,9 +2747,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2717
2747
|
});
|
|
2718
2748
|
|
|
2719
2749
|
unwrapExports(props);
|
|
2720
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2721
|
-
props.defaultProps;
|
|
2722
|
-
props.propTypes;
|
|
2750
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2751
|
+
var props_2 = props.defaultProps;
|
|
2752
|
+
var props_3 = props.propTypes;
|
|
2723
2753
|
|
|
2724
2754
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2725
2755
|
return isNonNullObject(value)
|
|
@@ -2884,17 +2914,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2884
2914
|
|
|
2885
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; }
|
|
2886
2916
|
|
|
2887
|
-
function
|
|
2917
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2888
2918
|
|
|
2889
|
-
function
|
|
2919
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2890
2920
|
|
|
2891
|
-
function
|
|
2892
|
-
|
|
2893
|
-
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); }
|
|
2894
|
-
|
|
2895
|
-
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; }
|
|
2896
|
-
|
|
2897
|
-
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; }
|
|
2898
2922
|
|
|
2899
2923
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2924
|
|
|
@@ -3024,12 +3048,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
3048
|
|
|
3025
3049
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
3050
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3051
|
+
var _iteratorNormalCompletion = true;
|
|
3052
|
+
var _didIteratorError = false;
|
|
3053
|
+
var _iteratorError = undefined;
|
|
3030
3054
|
|
|
3031
3055
|
try {
|
|
3032
|
-
for (_iterator.
|
|
3056
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3033
3057
|
var p = _step.value;
|
|
3034
3058
|
|
|
3035
3059
|
if (props$1[p]) {
|
|
@@ -3044,9 +3068,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3068
|
}
|
|
3045
3069
|
}
|
|
3046
3070
|
} catch (err) {
|
|
3047
|
-
|
|
3071
|
+
_didIteratorError = true;
|
|
3072
|
+
_iteratorError = err;
|
|
3048
3073
|
} finally {
|
|
3049
|
-
|
|
3074
|
+
try {
|
|
3075
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3076
|
+
_iterator["return"]();
|
|
3077
|
+
}
|
|
3078
|
+
} finally {
|
|
3079
|
+
if (_didIteratorError) {
|
|
3080
|
+
throw _iteratorError;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3050
3083
|
}
|
|
3051
3084
|
|
|
3052
3085
|
return config;
|
|
@@ -3154,17 +3187,17 @@ function isMediaStream(url) {
|
|
|
3154
3187
|
});
|
|
3155
3188
|
|
|
3156
3189
|
unwrapExports(utils);
|
|
3157
|
-
utils.parseStartTime;
|
|
3158
|
-
utils.parseEndTime;
|
|
3159
|
-
utils.randomString;
|
|
3160
|
-
utils.queryString;
|
|
3161
|
-
utils.getSDK;
|
|
3162
|
-
utils.getConfig;
|
|
3163
|
-
utils.omit;
|
|
3164
|
-
utils.callPlayer;
|
|
3165
|
-
utils.isObject;
|
|
3166
|
-
utils.isEqual;
|
|
3167
|
-
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;
|
|
3168
3201
|
|
|
3169
3202
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3170
3203
|
|
|
@@ -3193,16 +3226,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3193
3226
|
|
|
3194
3227
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3195
3228
|
|
|
3196
|
-
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); }; }
|
|
3197
|
-
|
|
3198
3229
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3199
3230
|
|
|
3200
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3201
|
-
|
|
3202
|
-
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; } }
|
|
3203
|
-
|
|
3204
3231
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3205
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
|
+
|
|
3206
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); }
|
|
3207
3236
|
|
|
3208
3237
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3211,12 +3240,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3211
3240
|
|
|
3212
3241
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3213
3242
|
|
|
3214
|
-
var Player =
|
|
3243
|
+
var Player =
|
|
3244
|
+
/*#__PURE__*/
|
|
3245
|
+
function (_Component) {
|
|
3215
3246
|
_inherits(Player, _Component);
|
|
3216
3247
|
|
|
3217
|
-
var _super = _createSuper(Player);
|
|
3218
|
-
|
|
3219
3248
|
function Player() {
|
|
3249
|
+
var _getPrototypeOf2;
|
|
3250
|
+
|
|
3220
3251
|
var _this;
|
|
3221
3252
|
|
|
3222
3253
|
_classCallCheck(this, Player);
|
|
@@ -3225,7 +3256,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3225
3256
|
_args[_key] = arguments[_key];
|
|
3226
3257
|
}
|
|
3227
3258
|
|
|
3228
|
-
_this =
|
|
3259
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3229
3260
|
|
|
3230
3261
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3231
3262
|
|
|
@@ -3550,7 +3581,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3550
3581
|
return null;
|
|
3551
3582
|
}
|
|
3552
3583
|
|
|
3553
|
-
return
|
|
3584
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3554
3585
|
ref: this.ref,
|
|
3555
3586
|
onReady: this.handleReady,
|
|
3556
3587
|
onPlay: this.handlePlay,
|
|
@@ -3611,16 +3642,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3611
3642
|
|
|
3612
3643
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3613
3644
|
|
|
3614
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3615
|
-
|
|
3616
3645
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3617
3646
|
|
|
3618
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3619
|
-
|
|
3620
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3621
|
-
|
|
3622
3647
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3623
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
|
+
|
|
3624
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); }
|
|
3625
3652
|
|
|
3626
3653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3632,12 +3659,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3632
3659
|
function createSinglePlayer(activePlayer) {
|
|
3633
3660
|
var _class, _temp;
|
|
3634
3661
|
|
|
3635
|
-
return _temp = _class =
|
|
3662
|
+
return _temp = _class =
|
|
3663
|
+
/*#__PURE__*/
|
|
3664
|
+
function (_Component) {
|
|
3636
3665
|
_inherits(SinglePlayer, _Component);
|
|
3637
3666
|
|
|
3638
|
-
var _super = _createSuper(SinglePlayer);
|
|
3639
|
-
|
|
3640
3667
|
function SinglePlayer() {
|
|
3668
|
+
var _getPrototypeOf2;
|
|
3669
|
+
|
|
3641
3670
|
var _this;
|
|
3642
3671
|
|
|
3643
3672
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3646,7 +3675,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3646
3675
|
args[_key] = arguments[_key];
|
|
3647
3676
|
}
|
|
3648
3677
|
|
|
3649
|
-
_this =
|
|
3678
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3650
3679
|
|
|
3651
3680
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3652
3681
|
|
|
@@ -3714,12 +3743,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3714
3743
|
height = _this$props.height,
|
|
3715
3744
|
Wrapper = _this$props.wrapper;
|
|
3716
3745
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3717
|
-
return
|
|
3746
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3718
3747
|
style: _objectSpread({}, style, {
|
|
3719
3748
|
width: width,
|
|
3720
3749
|
height: height
|
|
3721
3750
|
})
|
|
3722
|
-
}, otherProps),
|
|
3751
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3723
3752
|
ref: this.ref,
|
|
3724
3753
|
activePlayer: activePlayer,
|
|
3725
3754
|
config: this.config
|
|
@@ -3765,31 +3794,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3765
3794
|
|
|
3766
3795
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3767
3796
|
|
|
3768
|
-
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); }; }
|
|
3769
|
-
|
|
3770
3797
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3771
3798
|
|
|
3772
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3773
|
-
|
|
3774
|
-
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; } }
|
|
3775
|
-
|
|
3776
3799
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3777
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
|
+
|
|
3778
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); }
|
|
3779
3804
|
|
|
3780
3805
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3781
3806
|
|
|
3782
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; }
|
|
3783
3808
|
|
|
3784
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3785
|
-
|
|
3786
|
-
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(); }
|
|
3787
3810
|
|
|
3788
|
-
function
|
|
3811
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3789
3812
|
|
|
3790
|
-
function
|
|
3791
|
-
|
|
3792
|
-
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; }
|
|
3793
3814
|
|
|
3794
3815
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3795
3816
|
|
|
@@ -3814,12 +3835,14 @@ function parsePlaylist(url) {
|
|
|
3814
3835
|
return {};
|
|
3815
3836
|
}
|
|
3816
3837
|
|
|
3817
|
-
var YouTube =
|
|
3838
|
+
var YouTube =
|
|
3839
|
+
/*#__PURE__*/
|
|
3840
|
+
function (_Component) {
|
|
3818
3841
|
_inherits(YouTube, _Component);
|
|
3819
3842
|
|
|
3820
|
-
var _super = _createSuper(YouTube);
|
|
3821
|
-
|
|
3822
3843
|
function YouTube() {
|
|
3844
|
+
var _getPrototypeOf2;
|
|
3845
|
+
|
|
3823
3846
|
var _this;
|
|
3824
3847
|
|
|
3825
3848
|
_classCallCheck(this, YouTube);
|
|
@@ -3828,7 +3851,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3828
3851
|
args[_key] = arguments[_key];
|
|
3829
3852
|
}
|
|
3830
3853
|
|
|
3831
|
-
_this =
|
|
3854
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3832
3855
|
|
|
3833
3856
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3834
3857
|
|
|
@@ -4016,9 +4039,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4016
4039
|
height: '100%',
|
|
4017
4040
|
display: display
|
|
4018
4041
|
};
|
|
4019
|
-
return
|
|
4042
|
+
return _react["default"].createElement("div", {
|
|
4020
4043
|
style: style
|
|
4021
|
-
},
|
|
4044
|
+
}, _react["default"].createElement("div", {
|
|
4022
4045
|
ref: this.ref
|
|
4023
4046
|
}));
|
|
4024
4047
|
}
|
|
@@ -4041,7 +4064,7 @@ exports["default"] = _default;
|
|
|
4041
4064
|
});
|
|
4042
4065
|
|
|
4043
4066
|
unwrapExports(YouTube_1);
|
|
4044
|
-
YouTube_1.YouTube;
|
|
4067
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4045
4068
|
|
|
4046
4069
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4047
4070
|
|
|
@@ -4074,16 +4097,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4074
4097
|
|
|
4075
4098
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4076
4099
|
|
|
4077
|
-
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); }; }
|
|
4078
|
-
|
|
4079
4100
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4080
4101
|
|
|
4081
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4082
|
-
|
|
4083
|
-
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; } }
|
|
4084
|
-
|
|
4085
4102
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4086
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
|
+
|
|
4087
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); }
|
|
4088
4107
|
|
|
4089
4108
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4092,14 +4111,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4092
4111
|
|
|
4093
4112
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4094
4113
|
var SDK_GLOBAL = 'SC';
|
|
4095
|
-
var MATCH_URL = /(
|
|
4114
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4096
4115
|
|
|
4097
|
-
var SoundCloud =
|
|
4116
|
+
var SoundCloud =
|
|
4117
|
+
/*#__PURE__*/
|
|
4118
|
+
function (_Component) {
|
|
4098
4119
|
_inherits(SoundCloud, _Component);
|
|
4099
4120
|
|
|
4100
|
-
var _super = _createSuper(SoundCloud);
|
|
4101
|
-
|
|
4102
4121
|
function SoundCloud() {
|
|
4122
|
+
var _getPrototypeOf2;
|
|
4123
|
+
|
|
4103
4124
|
var _this;
|
|
4104
4125
|
|
|
4105
4126
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4108,7 +4129,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4108
4129
|
args[_key] = arguments[_key];
|
|
4109
4130
|
}
|
|
4110
4131
|
|
|
4111
|
-
_this =
|
|
4132
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4112
4133
|
|
|
4113
4134
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4114
4135
|
|
|
@@ -4229,7 +4250,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4229
4250
|
height: '100%',
|
|
4230
4251
|
display: display
|
|
4231
4252
|
};
|
|
4232
|
-
return
|
|
4253
|
+
return _react["default"].createElement("iframe", {
|
|
4233
4254
|
ref: this.ref,
|
|
4234
4255
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4235
4256
|
style: style,
|
|
@@ -4258,7 +4279,7 @@ exports["default"] = _default;
|
|
|
4258
4279
|
});
|
|
4259
4280
|
|
|
4260
4281
|
unwrapExports(SoundCloud_1);
|
|
4261
|
-
SoundCloud_1.SoundCloud;
|
|
4282
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4262
4283
|
|
|
4263
4284
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4264
4285
|
|
|
@@ -4291,16 +4312,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4291
4312
|
|
|
4292
4313
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4293
4314
|
|
|
4294
|
-
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); }; }
|
|
4295
|
-
|
|
4296
4315
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4297
4316
|
|
|
4298
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4299
|
-
|
|
4300
|
-
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; } }
|
|
4301
|
-
|
|
4302
4317
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4303
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
|
+
|
|
4304
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); }
|
|
4305
4322
|
|
|
4306
4323
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4312,12 +4329,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4312
4329
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4313
4330
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4314
4331
|
|
|
4315
|
-
var Vimeo =
|
|
4332
|
+
var Vimeo =
|
|
4333
|
+
/*#__PURE__*/
|
|
4334
|
+
function (_Component) {
|
|
4316
4335
|
_inherits(Vimeo, _Component);
|
|
4317
4336
|
|
|
4318
|
-
var _super = _createSuper(Vimeo);
|
|
4319
|
-
|
|
4320
4337
|
function Vimeo() {
|
|
4338
|
+
var _getPrototypeOf2;
|
|
4339
|
+
|
|
4321
4340
|
var _this;
|
|
4322
4341
|
|
|
4323
4342
|
_classCallCheck(this, Vimeo);
|
|
@@ -4326,7 +4345,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4326
4345
|
args[_key] = arguments[_key];
|
|
4327
4346
|
}
|
|
4328
4347
|
|
|
4329
|
-
_this =
|
|
4348
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4330
4349
|
|
|
4331
4350
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4332
4351
|
|
|
@@ -4483,7 +4502,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4483
4502
|
overflow: 'hidden',
|
|
4484
4503
|
display: display
|
|
4485
4504
|
};
|
|
4486
|
-
return
|
|
4505
|
+
return _react["default"].createElement("div", {
|
|
4487
4506
|
key: this.props.url,
|
|
4488
4507
|
ref: this.ref,
|
|
4489
4508
|
style: style
|
|
@@ -4514,7 +4533,7 @@ exports["default"] = _default;
|
|
|
4514
4533
|
});
|
|
4515
4534
|
|
|
4516
4535
|
unwrapExports(Vimeo_1);
|
|
4517
|
-
Vimeo_1.Vimeo;
|
|
4536
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4518
4537
|
|
|
4519
4538
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4520
4539
|
|
|
@@ -4543,16 +4562,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4543
4562
|
|
|
4544
4563
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4545
4564
|
|
|
4546
|
-
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); }; }
|
|
4547
|
-
|
|
4548
4565
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4549
4566
|
|
|
4550
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4551
|
-
|
|
4552
|
-
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; } }
|
|
4553
|
-
|
|
4554
4567
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4555
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
|
+
|
|
4556
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); }
|
|
4557
4572
|
|
|
4558
4573
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4565,12 +4580,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4565
4580
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4566
4581
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4567
4582
|
|
|
4568
|
-
var Facebook =
|
|
4583
|
+
var Facebook =
|
|
4584
|
+
/*#__PURE__*/
|
|
4585
|
+
function (_Component) {
|
|
4569
4586
|
_inherits(Facebook, _Component);
|
|
4570
4587
|
|
|
4571
|
-
var _super = _createSuper(Facebook);
|
|
4572
|
-
|
|
4573
4588
|
function Facebook() {
|
|
4589
|
+
var _getPrototypeOf2;
|
|
4590
|
+
|
|
4574
4591
|
var _this;
|
|
4575
4592
|
|
|
4576
4593
|
_classCallCheck(this, Facebook);
|
|
@@ -4579,7 +4596,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4579
4596
|
args[_key] = arguments[_key];
|
|
4580
4597
|
}
|
|
4581
4598
|
|
|
4582
|
-
_this =
|
|
4599
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4583
4600
|
|
|
4584
4601
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4585
4602
|
|
|
@@ -4695,7 +4712,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4695
4712
|
width: '100%',
|
|
4696
4713
|
height: '100%'
|
|
4697
4714
|
};
|
|
4698
|
-
return
|
|
4715
|
+
return _react["default"].createElement("div", {
|
|
4699
4716
|
style: style,
|
|
4700
4717
|
id: this.playerID,
|
|
4701
4718
|
className: "fb-video",
|
|
@@ -4726,7 +4743,7 @@ exports["default"] = _default;
|
|
|
4726
4743
|
});
|
|
4727
4744
|
|
|
4728
4745
|
unwrapExports(Facebook_1);
|
|
4729
|
-
Facebook_1.Facebook;
|
|
4746
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4730
4747
|
|
|
4731
4748
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4732
4749
|
|
|
@@ -4755,16 +4772,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4755
4772
|
|
|
4756
4773
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4757
4774
|
|
|
4758
|
-
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); }; }
|
|
4759
|
-
|
|
4760
4775
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4761
4776
|
|
|
4762
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4763
|
-
|
|
4764
|
-
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; } }
|
|
4765
|
-
|
|
4766
4777
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4767
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
|
+
|
|
4768
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); }
|
|
4769
4782
|
|
|
4770
4783
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4775,12 +4788,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4775
4788
|
var SDK_GLOBAL = 'playerjs';
|
|
4776
4789
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4777
4790
|
|
|
4778
|
-
var Streamable =
|
|
4791
|
+
var Streamable =
|
|
4792
|
+
/*#__PURE__*/
|
|
4793
|
+
function (_Component) {
|
|
4779
4794
|
_inherits(Streamable, _Component);
|
|
4780
4795
|
|
|
4781
|
-
var _super = _createSuper(Streamable);
|
|
4782
|
-
|
|
4783
4796
|
function Streamable() {
|
|
4797
|
+
var _getPrototypeOf2;
|
|
4798
|
+
|
|
4784
4799
|
var _this;
|
|
4785
4800
|
|
|
4786
4801
|
_classCallCheck(this, Streamable);
|
|
@@ -4789,7 +4804,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4789
4804
|
args[_key] = arguments[_key];
|
|
4790
4805
|
}
|
|
4791
4806
|
|
|
4792
|
-
_this =
|
|
4807
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4793
4808
|
|
|
4794
4809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4795
4810
|
|
|
@@ -4909,7 +4924,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4909
4924
|
width: '100%',
|
|
4910
4925
|
height: '100%'
|
|
4911
4926
|
};
|
|
4912
|
-
return
|
|
4927
|
+
return _react["default"].createElement("iframe", {
|
|
4913
4928
|
ref: this.ref,
|
|
4914
4929
|
src: "https://streamable.com/o/".concat(id),
|
|
4915
4930
|
frameBorder: "0",
|
|
@@ -4937,7 +4952,7 @@ exports["default"] = _default;
|
|
|
4937
4952
|
});
|
|
4938
4953
|
|
|
4939
4954
|
unwrapExports(Streamable_1);
|
|
4940
|
-
Streamable_1.Streamable;
|
|
4955
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4941
4956
|
|
|
4942
4957
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4943
4958
|
|
|
@@ -4970,16 +4985,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4970
4985
|
|
|
4971
4986
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4972
4987
|
|
|
4973
|
-
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); }; }
|
|
4974
|
-
|
|
4975
4988
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4976
4989
|
|
|
4977
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4978
|
-
|
|
4979
|
-
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; } }
|
|
4980
|
-
|
|
4981
4990
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4982
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
|
+
|
|
4983
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); }
|
|
4984
4995
|
|
|
4985
4996
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4990,48 +5001,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4990
5001
|
var SDK_GLOBAL = 'Wistia';
|
|
4991
5002
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4992
5003
|
|
|
4993
|
-
var Wistia =
|
|
5004
|
+
var Wistia =
|
|
5005
|
+
/*#__PURE__*/
|
|
5006
|
+
function (_Component) {
|
|
4994
5007
|
_inherits(Wistia, _Component);
|
|
4995
5008
|
|
|
4996
|
-
var _super = _createSuper(Wistia);
|
|
4997
|
-
|
|
4998
5009
|
function Wistia() {
|
|
5010
|
+
var _getPrototypeOf2;
|
|
5011
|
+
|
|
4999
5012
|
var _this;
|
|
5000
5013
|
|
|
5001
5014
|
_classCallCheck(this, Wistia);
|
|
5002
5015
|
|
|
5003
|
-
for (var _len = arguments.length,
|
|
5004
|
-
|
|
5016
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5017
|
+
args[_key] = arguments[_key];
|
|
5005
5018
|
}
|
|
5006
5019
|
|
|
5007
|
-
_this =
|
|
5020
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5008
5021
|
|
|
5009
5022
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5010
5023
|
|
|
5011
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5012
|
-
var _this$props;
|
|
5013
|
-
|
|
5014
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5015
|
-
});
|
|
5016
|
-
|
|
5017
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5018
|
-
var _this$props2;
|
|
5019
|
-
|
|
5020
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5021
|
-
});
|
|
5022
|
-
|
|
5023
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5024
|
-
var _this$props3;
|
|
5025
|
-
|
|
5026
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5027
|
-
});
|
|
5028
|
-
|
|
5029
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5030
|
-
var _this$props4;
|
|
5031
|
-
|
|
5032
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5033
|
-
});
|
|
5034
|
-
|
|
5035
5024
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5036
5025
|
_this.callPlayer('mute');
|
|
5037
5026
|
});
|
|
@@ -5053,13 +5042,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5053
5042
|
value: function load(url) {
|
|
5054
5043
|
var _this2 = this;
|
|
5055
5044
|
|
|
5056
|
-
var _this$
|
|
5057
|
-
playing = _this$
|
|
5058
|
-
muted = _this$
|
|
5059
|
-
controls = _this$
|
|
5060
|
-
_onReady = _this$
|
|
5061
|
-
|
|
5062
|
-
|
|
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;
|
|
5063
5056
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5064
5057
|
window._wq = window._wq || [];
|
|
5065
5058
|
|
|
@@ -5076,28 +5069,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5076
5069
|
|
|
5077
5070
|
_this2.unbind();
|
|
5078
5071
|
|
|
5079
|
-
_this2.player.bind('play',
|
|
5072
|
+
_this2.player.bind('play', onPlay);
|
|
5080
5073
|
|
|
5081
|
-
_this2.player.bind('pause',
|
|
5074
|
+
_this2.player.bind('pause', onPause);
|
|
5082
5075
|
|
|
5083
|
-
_this2.player.bind('seek',
|
|
5076
|
+
_this2.player.bind('seek', onSeek);
|
|
5084
5077
|
|
|
5085
|
-
_this2.player.bind('end',
|
|
5078
|
+
_this2.player.bind('end', onEnded);
|
|
5086
5079
|
|
|
5087
5080
|
_onReady();
|
|
5088
5081
|
}
|
|
5089
5082
|
});
|
|
5090
5083
|
}, onError);
|
|
5091
5084
|
}
|
|
5092
|
-
}, {
|
|
5093
|
-
key: "unbind",
|
|
5094
|
-
value: function unbind() {
|
|
5095
|
-
this.player.unbind('play', this.onPlay);
|
|
5096
|
-
this.player.unbind('pause', this.onPause);
|
|
5097
|
-
this.player.unbind('seek', this.onSeek);
|
|
5098
|
-
this.player.unbind('end', this.onEnded);
|
|
5099
|
-
} // Proxy methods to prevent listener leaks
|
|
5100
|
-
|
|
5101
5085
|
}, {
|
|
5102
5086
|
key: "play",
|
|
5103
5087
|
value: function play() {
|
|
@@ -5108,6 +5092,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5108
5092
|
value: function pause() {
|
|
5109
5093
|
this.callPlayer('pause');
|
|
5110
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
|
+
}
|
|
5111
5108
|
}, {
|
|
5112
5109
|
key: "stop",
|
|
5113
5110
|
value: function stop() {
|
|
@@ -5153,7 +5150,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5153
5150
|
width: '100%',
|
|
5154
5151
|
height: '100%'
|
|
5155
5152
|
};
|
|
5156
|
-
return
|
|
5153
|
+
return _react["default"].createElement("div", {
|
|
5157
5154
|
key: id,
|
|
5158
5155
|
className: className,
|
|
5159
5156
|
style: style
|
|
@@ -5180,7 +5177,7 @@ exports["default"] = _default;
|
|
|
5180
5177
|
});
|
|
5181
5178
|
|
|
5182
5179
|
unwrapExports(Wistia_1);
|
|
5183
|
-
Wistia_1.Wistia;
|
|
5180
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5184
5181
|
|
|
5185
5182
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5186
5183
|
|
|
@@ -5213,16 +5210,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5213
5210
|
|
|
5214
5211
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5215
5212
|
|
|
5216
|
-
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); }; }
|
|
5217
|
-
|
|
5218
5213
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5219
5214
|
|
|
5220
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5221
|
-
|
|
5222
|
-
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; } }
|
|
5223
|
-
|
|
5224
5215
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5225
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
|
+
|
|
5226
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); }
|
|
5227
5220
|
|
|
5228
5221
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5235,12 +5228,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5235
5228
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5236
5229
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5237
5230
|
|
|
5238
|
-
var Twitch =
|
|
5231
|
+
var Twitch =
|
|
5232
|
+
/*#__PURE__*/
|
|
5233
|
+
function (_Component) {
|
|
5239
5234
|
_inherits(Twitch, _Component);
|
|
5240
5235
|
|
|
5241
|
-
var _super = _createSuper(Twitch);
|
|
5242
|
-
|
|
5243
5236
|
function Twitch() {
|
|
5237
|
+
var _getPrototypeOf2;
|
|
5238
|
+
|
|
5244
5239
|
var _this;
|
|
5245
5240
|
|
|
5246
5241
|
_classCallCheck(this, Twitch);
|
|
@@ -5249,7 +5244,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5249
5244
|
args[_key] = arguments[_key];
|
|
5250
5245
|
}
|
|
5251
5246
|
|
|
5252
|
-
_this =
|
|
5247
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5253
5248
|
|
|
5254
5249
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5255
5250
|
|
|
@@ -5370,7 +5365,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5370
5365
|
width: '100%',
|
|
5371
5366
|
height: '100%'
|
|
5372
5367
|
};
|
|
5373
|
-
return
|
|
5368
|
+
return _react["default"].createElement("div", {
|
|
5374
5369
|
style: style,
|
|
5375
5370
|
id: this.playerID
|
|
5376
5371
|
});
|
|
@@ -5396,7 +5391,7 @@ exports["default"] = _default;
|
|
|
5396
5391
|
});
|
|
5397
5392
|
|
|
5398
5393
|
unwrapExports(Twitch_1);
|
|
5399
|
-
Twitch_1.Twitch;
|
|
5394
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5400
5395
|
|
|
5401
5396
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5402
5397
|
|
|
@@ -5423,15 +5418,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5423
5418
|
|
|
5424
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; }
|
|
5425
5420
|
|
|
5426
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5421
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5427
5422
|
|
|
5428
|
-
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"); }
|
|
5429
5424
|
|
|
5430
|
-
function
|
|
5431
|
-
|
|
5432
|
-
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; }
|
|
5433
|
-
|
|
5434
|
-
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; }
|
|
5435
5426
|
|
|
5436
5427
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5437
5428
|
|
|
@@ -5441,16 +5432,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5441
5432
|
|
|
5442
5433
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5443
5434
|
|
|
5444
|
-
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); }; }
|
|
5445
|
-
|
|
5446
5435
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5447
5436
|
|
|
5448
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5449
|
-
|
|
5450
|
-
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; } }
|
|
5451
|
-
|
|
5452
5437
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5453
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
|
+
|
|
5454
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); }
|
|
5455
5442
|
|
|
5456
5443
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5462,12 +5449,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5462
5449
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5463
5450
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5464
5451
|
|
|
5465
|
-
var DailyMotion =
|
|
5452
|
+
var DailyMotion =
|
|
5453
|
+
/*#__PURE__*/
|
|
5454
|
+
function (_Component) {
|
|
5466
5455
|
_inherits(DailyMotion, _Component);
|
|
5467
5456
|
|
|
5468
|
-
var _super = _createSuper(DailyMotion);
|
|
5469
|
-
|
|
5470
5457
|
function DailyMotion() {
|
|
5458
|
+
var _getPrototypeOf2;
|
|
5459
|
+
|
|
5471
5460
|
var _this;
|
|
5472
5461
|
|
|
5473
5462
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5476,7 +5465,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5476
5465
|
args[_key] = arguments[_key];
|
|
5477
5466
|
}
|
|
5478
5467
|
|
|
5479
|
-
_this =
|
|
5468
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5480
5469
|
|
|
5481
5470
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5482
5471
|
|
|
@@ -5605,9 +5594,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5605
5594
|
height: '100%',
|
|
5606
5595
|
display: display
|
|
5607
5596
|
};
|
|
5608
|
-
return
|
|
5597
|
+
return _react["default"].createElement("div", {
|
|
5609
5598
|
style: style
|
|
5610
|
-
},
|
|
5599
|
+
}, _react["default"].createElement("div", {
|
|
5611
5600
|
ref: this.ref
|
|
5612
5601
|
}));
|
|
5613
5602
|
}
|
|
@@ -5632,7 +5621,7 @@ exports["default"] = _default;
|
|
|
5632
5621
|
});
|
|
5633
5622
|
|
|
5634
5623
|
unwrapExports(DailyMotion_1);
|
|
5635
|
-
DailyMotion_1.DailyMotion;
|
|
5624
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5636
5625
|
|
|
5637
5626
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5638
5627
|
|
|
@@ -5665,16 +5654,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5665
5654
|
|
|
5666
5655
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5667
5656
|
|
|
5668
|
-
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); }; }
|
|
5669
|
-
|
|
5670
5657
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5671
5658
|
|
|
5672
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5673
|
-
|
|
5674
|
-
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; } }
|
|
5675
|
-
|
|
5676
5659
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5677
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
|
+
|
|
5678
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); }
|
|
5679
5664
|
|
|
5680
5665
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5685,12 +5670,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5685
5670
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5686
5671
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5687
5672
|
|
|
5688
|
-
var Mixcloud =
|
|
5673
|
+
var Mixcloud =
|
|
5674
|
+
/*#__PURE__*/
|
|
5675
|
+
function (_Component) {
|
|
5689
5676
|
_inherits(Mixcloud, _Component);
|
|
5690
5677
|
|
|
5691
|
-
var _super = _createSuper(Mixcloud);
|
|
5692
|
-
|
|
5693
5678
|
function Mixcloud() {
|
|
5679
|
+
var _getPrototypeOf2;
|
|
5680
|
+
|
|
5694
5681
|
var _this;
|
|
5695
5682
|
|
|
5696
5683
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5699,7 +5686,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5699
5686
|
args[_key] = arguments[_key];
|
|
5700
5687
|
}
|
|
5701
5688
|
|
|
5702
|
-
_this =
|
|
5689
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5703
5690
|
|
|
5704
5691
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5705
5692
|
|
|
@@ -5802,7 +5789,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5802
5789
|
})); // We have to give the iframe a key here to prevent a
|
|
5803
5790
|
// weird dialog appearing when loading a new track
|
|
5804
5791
|
|
|
5805
|
-
return
|
|
5792
|
+
return _react["default"].createElement("iframe", {
|
|
5806
5793
|
key: id,
|
|
5807
5794
|
ref: this.ref,
|
|
5808
5795
|
style: style,
|
|
@@ -5831,7 +5818,7 @@ exports["default"] = _default;
|
|
|
5831
5818
|
});
|
|
5832
5819
|
|
|
5833
5820
|
unwrapExports(Mixcloud_1);
|
|
5834
|
-
Mixcloud_1.Mixcloud;
|
|
5821
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5835
5822
|
|
|
5836
5823
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5837
5824
|
|
|
@@ -5862,33 +5849,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5862
5849
|
|
|
5863
5850
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5864
5851
|
|
|
5865
|
-
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); }; }
|
|
5866
|
-
|
|
5867
5852
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5868
5853
|
|
|
5869
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5870
|
-
|
|
5871
|
-
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; } }
|
|
5872
|
-
|
|
5873
5854
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5874
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
|
+
|
|
5875
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); }
|
|
5876
5859
|
|
|
5877
5860
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5878
5861
|
|
|
5879
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; }
|
|
5880
5863
|
|
|
5881
|
-
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; } } }; }
|
|
5882
|
-
|
|
5883
|
-
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); }
|
|
5884
|
-
|
|
5885
|
-
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; }
|
|
5886
|
-
|
|
5887
5864
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5888
5865
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5889
5866
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5890
5867
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5891
|
-
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';
|
|
5892
5869
|
var HLS_GLOBAL = 'Hls';
|
|
5893
5870
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5894
5871
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5897,11 +5874,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5897
5874
|
|
|
5898
5875
|
function canPlay(url) {
|
|
5899
5876
|
if (url instanceof Array) {
|
|
5900
|
-
var
|
|
5901
|
-
|
|
5877
|
+
var _iteratorNormalCompletion = true;
|
|
5878
|
+
var _didIteratorError = false;
|
|
5879
|
+
var _iteratorError = undefined;
|
|
5902
5880
|
|
|
5903
5881
|
try {
|
|
5904
|
-
for (_iterator.
|
|
5882
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5905
5883
|
var item = _step.value;
|
|
5906
5884
|
|
|
5907
5885
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5913,9 +5891,18 @@ function canPlay(url) {
|
|
|
5913
5891
|
}
|
|
5914
5892
|
}
|
|
5915
5893
|
} catch (err) {
|
|
5916
|
-
|
|
5894
|
+
_didIteratorError = true;
|
|
5895
|
+
_iteratorError = err;
|
|
5917
5896
|
} finally {
|
|
5918
|
-
|
|
5897
|
+
try {
|
|
5898
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5899
|
+
_iterator["return"]();
|
|
5900
|
+
}
|
|
5901
|
+
} finally {
|
|
5902
|
+
if (_didIteratorError) {
|
|
5903
|
+
throw _iteratorError;
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5919
5906
|
}
|
|
5920
5907
|
|
|
5921
5908
|
return false;
|
|
@@ -5939,12 +5926,14 @@ function canEnablePIP(url) {
|
|
|
5939
5926
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5940
5927
|
}
|
|
5941
5928
|
|
|
5942
|
-
var FilePlayer =
|
|
5929
|
+
var FilePlayer =
|
|
5930
|
+
/*#__PURE__*/
|
|
5931
|
+
function (_Component) {
|
|
5943
5932
|
_inherits(FilePlayer, _Component);
|
|
5944
5933
|
|
|
5945
|
-
var _super = _createSuper(FilePlayer);
|
|
5946
|
-
|
|
5947
5934
|
function FilePlayer() {
|
|
5935
|
+
var _getPrototypeOf2;
|
|
5936
|
+
|
|
5948
5937
|
var _this;
|
|
5949
5938
|
|
|
5950
5939
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5953,7 +5942,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5953
5942
|
_args[_key] = arguments[_key];
|
|
5954
5943
|
}
|
|
5955
5944
|
|
|
5956
|
-
_this =
|
|
5945
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5957
5946
|
|
|
5958
5947
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5959
5948
|
var _this$props;
|
|
@@ -6040,19 +6029,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6040
6029
|
|
|
6041
6030
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6042
6031
|
if (typeof source === 'string') {
|
|
6043
|
-
return
|
|
6032
|
+
return _react["default"].createElement("source", {
|
|
6044
6033
|
key: index,
|
|
6045
6034
|
src: source
|
|
6046
6035
|
});
|
|
6047
6036
|
}
|
|
6048
6037
|
|
|
6049
|
-
return
|
|
6038
|
+
return _react["default"].createElement("source", _extends({
|
|
6050
6039
|
key: index
|
|
6051
6040
|
}, source));
|
|
6052
6041
|
});
|
|
6053
6042
|
|
|
6054
6043
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6055
|
-
return
|
|
6044
|
+
return _react["default"].createElement("track", _extends({
|
|
6056
6045
|
key: index
|
|
6057
6046
|
}, track));
|
|
6058
6047
|
});
|
|
@@ -6090,10 +6079,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6090
6079
|
key: "componentWillUnmount",
|
|
6091
6080
|
value: function componentWillUnmount() {
|
|
6092
6081
|
this.removeListeners(this.player);
|
|
6093
|
-
|
|
6094
|
-
if (this.hls) {
|
|
6095
|
-
this.hls.destroy();
|
|
6096
|
-
}
|
|
6097
6082
|
}
|
|
6098
6083
|
}, {
|
|
6099
6084
|
key: "addListeners",
|
|
@@ -6224,6 +6209,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6224
6209
|
value: function stop() {
|
|
6225
6210
|
this.player.removeAttribute('src');
|
|
6226
6211
|
|
|
6212
|
+
if (this.hls) {
|
|
6213
|
+
this.hls.destroy();
|
|
6214
|
+
}
|
|
6215
|
+
|
|
6227
6216
|
if (this.dash) {
|
|
6228
6217
|
this.dash.reset();
|
|
6229
6218
|
}
|
|
@@ -6335,7 +6324,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6335
6324
|
width: width === 'auto' ? width : '100%',
|
|
6336
6325
|
height: height === 'auto' ? height : '100%'
|
|
6337
6326
|
};
|
|
6338
|
-
return
|
|
6327
|
+
return _react["default"].createElement(Element, _extends({
|
|
6339
6328
|
ref: this.ref,
|
|
6340
6329
|
src: this.getSource(url),
|
|
6341
6330
|
style: style,
|
|
@@ -6365,7 +6354,7 @@ exports["default"] = _default;
|
|
|
6365
6354
|
});
|
|
6366
6355
|
|
|
6367
6356
|
unwrapExports(FilePlayer_1);
|
|
6368
|
-
FilePlayer_1.FilePlayer;
|
|
6357
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6369
6358
|
|
|
6370
6359
|
var players = createCommonjsModule(function (module, exports) {
|
|
6371
6360
|
|
|
@@ -6425,16 +6414,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6425
6414
|
|
|
6426
6415
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6427
6416
|
|
|
6428
|
-
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); }; }
|
|
6429
|
-
|
|
6430
6417
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6431
6418
|
|
|
6432
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6433
|
-
|
|
6434
|
-
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; } }
|
|
6435
|
-
|
|
6436
6419
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6437
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
|
+
|
|
6438
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); }
|
|
6439
6424
|
|
|
6440
6425
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6443,12 +6428,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6443
6428
|
|
|
6444
6429
|
var ICON_SIZE = '64px';
|
|
6445
6430
|
|
|
6446
|
-
var Preview =
|
|
6431
|
+
var Preview =
|
|
6432
|
+
/*#__PURE__*/
|
|
6433
|
+
function (_Component) {
|
|
6447
6434
|
_inherits(Preview, _Component);
|
|
6448
6435
|
|
|
6449
|
-
var _super = _createSuper(Preview);
|
|
6450
|
-
|
|
6451
6436
|
function Preview() {
|
|
6437
|
+
var _getPrototypeOf2;
|
|
6438
|
+
|
|
6452
6439
|
var _this;
|
|
6453
6440
|
|
|
6454
6441
|
_classCallCheck(this, Preview);
|
|
@@ -6457,7 +6444,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6457
6444
|
args[_key] = arguments[_key];
|
|
6458
6445
|
}
|
|
6459
6446
|
|
|
6460
|
-
_this =
|
|
6447
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6461
6448
|
|
|
6462
6449
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6463
6450
|
|
|
@@ -6555,15 +6542,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6555
6542
|
}
|
|
6556
6543
|
};
|
|
6557
6544
|
|
|
6558
|
-
var defaultPlayIcon =
|
|
6545
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6559
6546
|
style: styles.shadow,
|
|
6560
6547
|
className: "react-player__shadow"
|
|
6561
|
-
},
|
|
6548
|
+
}, _react["default"].createElement("div", {
|
|
6562
6549
|
style: styles.playIcon,
|
|
6563
6550
|
className: "react-player__play-icon"
|
|
6564
6551
|
}));
|
|
6565
6552
|
|
|
6566
|
-
return
|
|
6553
|
+
return _react["default"].createElement("div", {
|
|
6567
6554
|
style: styles.preview,
|
|
6568
6555
|
className: "react-player__preview",
|
|
6569
6556
|
onClick: onClick
|
|
@@ -6600,12 +6587,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6600
6587
|
|
|
6601
6588
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6602
6589
|
|
|
6603
|
-
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; } } }; }
|
|
6604
|
-
|
|
6605
|
-
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); }
|
|
6606
|
-
|
|
6607
|
-
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; }
|
|
6608
|
-
|
|
6609
6590
|
var PRELOAD_PLAYERS = [{
|
|
6610
6591
|
Player: YouTube_1.YouTube,
|
|
6611
6592
|
configKey: 'youtube',
|
|
@@ -6626,16 +6607,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6626
6607
|
|
|
6627
6608
|
function renderPreloadPlayers(url, controls, config) {
|
|
6628
6609
|
var players = [];
|
|
6629
|
-
|
|
6630
|
-
var
|
|
6631
|
-
|
|
6610
|
+
var _iteratorNormalCompletion = true;
|
|
6611
|
+
var _didIteratorError = false;
|
|
6612
|
+
var _iteratorError = undefined;
|
|
6632
6613
|
|
|
6633
6614
|
try {
|
|
6634
|
-
for (_iterator.
|
|
6615
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6635
6616
|
var player = _step.value;
|
|
6636
6617
|
|
|
6637
6618
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6638
|
-
players.push(
|
|
6619
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6639
6620
|
key: player.Player.displayName,
|
|
6640
6621
|
activePlayer: player.Player,
|
|
6641
6622
|
url: player.url,
|
|
@@ -6647,9 +6628,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6647
6628
|
}
|
|
6648
6629
|
}
|
|
6649
6630
|
} catch (err) {
|
|
6650
|
-
|
|
6631
|
+
_didIteratorError = true;
|
|
6632
|
+
_iteratorError = err;
|
|
6651
6633
|
} finally {
|
|
6652
|
-
|
|
6634
|
+
try {
|
|
6635
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6636
|
+
_iterator["return"]();
|
|
6637
|
+
}
|
|
6638
|
+
} finally {
|
|
6639
|
+
if (_didIteratorError) {
|
|
6640
|
+
throw _iteratorError;
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6653
6643
|
}
|
|
6654
6644
|
|
|
6655
6645
|
return players;
|
|
@@ -6773,17 +6763,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6773
6763
|
|
|
6774
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); }
|
|
6775
6765
|
|
|
6776
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6777
|
-
|
|
6778
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6766
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6779
6767
|
|
|
6780
|
-
function
|
|
6768
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6781
6769
|
|
|
6782
|
-
function _iterableToArray(iter) { if (
|
|
6770
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6783
6771
|
|
|
6784
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6785
|
-
|
|
6786
|
-
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; } }
|
|
6787
6773
|
|
|
6788
6774
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6789
6775
|
|
|
@@ -6791,16 +6777,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6791
6777
|
|
|
6792
6778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6793
6779
|
|
|
6794
|
-
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); }; }
|
|
6795
|
-
|
|
6796
6780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6797
6781
|
|
|
6798
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6799
|
-
|
|
6800
|
-
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; } }
|
|
6801
|
-
|
|
6802
6782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6803
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
|
+
|
|
6804
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); }
|
|
6805
6787
|
|
|
6806
6788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6810,12 +6792,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6810
6792
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6811
6793
|
var customPlayers = [];
|
|
6812
6794
|
|
|
6813
|
-
var ReactPlayer =
|
|
6795
|
+
var ReactPlayer =
|
|
6796
|
+
/*#__PURE__*/
|
|
6797
|
+
function (_Component) {
|
|
6814
6798
|
_inherits(ReactPlayer, _Component);
|
|
6815
6799
|
|
|
6816
|
-
var _super = _createSuper(ReactPlayer);
|
|
6817
|
-
|
|
6818
6800
|
function ReactPlayer() {
|
|
6801
|
+
var _getPrototypeOf2;
|
|
6802
|
+
|
|
6819
6803
|
var _this;
|
|
6820
6804
|
|
|
6821
6805
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6824,7 +6808,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6824
6808
|
args[_key] = arguments[_key];
|
|
6825
6809
|
}
|
|
6826
6810
|
|
|
6827
|
-
_this =
|
|
6811
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6828
6812
|
|
|
6829
6813
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6830
6814
|
|
|
@@ -6935,7 +6919,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6935
6919
|
key: "renderActivePlayer",
|
|
6936
6920
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6937
6921
|
if (!url) return null;
|
|
6938
|
-
return
|
|
6922
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6939
6923
|
key: activePlayer.displayName,
|
|
6940
6924
|
ref: this.activePlayerRef,
|
|
6941
6925
|
config: this.config,
|
|
@@ -6972,14 +6956,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6972
6956
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6973
6957
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6974
6958
|
|
|
6975
|
-
var preview =
|
|
6959
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6976
6960
|
url: url,
|
|
6977
6961
|
light: light,
|
|
6978
6962
|
playIcon: playIcon,
|
|
6979
6963
|
onClick: this.handleClickPreview
|
|
6980
6964
|
});
|
|
6981
6965
|
|
|
6982
|
-
return
|
|
6966
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6983
6967
|
ref: this.wrapperRef,
|
|
6984
6968
|
style: _objectSpread({}, style, {
|
|
6985
6969
|
width: width,
|
|
@@ -7303,7 +7287,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7303
7287
|
var queue = Math.floor(duration / 10);
|
|
7304
7288
|
var segment = Math.floor(current / queue);
|
|
7305
7289
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7306
|
-
Segment.report_video_event('Video Ready',
|
|
7290
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7307
7291
|
//autoplay
|
|
7308
7292
|
|
|
7309
7293
|
//Small pause before starting next video
|
|
@@ -7324,7 +7308,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7324
7308
|
var segment = Math.floor(current / queue);
|
|
7325
7309
|
|
|
7326
7310
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7327
|
-
Segment.report_video_event('Video End',
|
|
7311
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7328
7312
|
setEndReported(true);
|
|
7329
7313
|
clearInterval(intervalID);
|
|
7330
7314
|
}
|
|
@@ -7375,7 +7359,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7375
7359
|
var segment = Math.floor(current / queue);
|
|
7376
7360
|
if (!queueProgress.includes(segment)) {
|
|
7377
7361
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7378
|
-
Segment.report_video_event('Video Segment',
|
|
7362
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7379
7363
|
queueProgress.push(segment);
|
|
7380
7364
|
}
|
|
7381
7365
|
};
|
|
@@ -7389,7 +7373,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7389
7373
|
var segment = Math.floor(current / queue);
|
|
7390
7374
|
|
|
7391
7375
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7392
|
-
Segment.report_video_event('Video Play',
|
|
7376
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7393
7377
|
|
|
7394
7378
|
if (!playReported) {
|
|
7395
7379
|
setPlayReported(true);
|
|
@@ -7408,7 +7392,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7408
7392
|
var segment = Math.floor(current / queue);
|
|
7409
7393
|
|
|
7410
7394
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7411
|
-
Segment.report_video_event('Video Pause',
|
|
7395
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7412
7396
|
};
|
|
7413
7397
|
|
|
7414
7398
|
// Youtube Options
|
|
@@ -7526,7 +7510,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7526
7510
|
React__default.createElement(
|
|
7527
7511
|
'div',
|
|
7528
7512
|
{ className: 'vid-text' },
|
|
7529
|
-
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()))
|
|
7513
|
+
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()))
|
|
7530
7514
|
),
|
|
7531
7515
|
React__default.createElement(
|
|
7532
7516
|
'style',
|
|
@@ -7536,14 +7520,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7536
7520
|
);
|
|
7537
7521
|
};
|
|
7538
7522
|
|
|
7539
|
-
var Poll
|
|
7540
|
-
var node = _ref.node
|
|
7541
|
-
_ref.client
|
|
7542
|
-
_ref.pageview
|
|
7543
|
-
_ref.videoAccountIDs
|
|
7544
|
-
|
|
7545
|
-
_ref.showVotes
|
|
7546
|
-
|
|
7523
|
+
var Poll = function Poll(_ref) {
|
|
7524
|
+
var node = _ref.node,
|
|
7525
|
+
client = _ref.client,
|
|
7526
|
+
pageview = _ref.pageview,
|
|
7527
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7528
|
+
onVote = _ref.onVote,
|
|
7529
|
+
_ref$showVotes = _ref.showVotes,
|
|
7530
|
+
getSerializers = _ref.getSerializers;
|
|
7547
7531
|
|
|
7548
7532
|
var _useState = useState(null),
|
|
7549
7533
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7677,22 +7661,22 @@ _export(_export.S, 'Object', {
|
|
|
7677
7661
|
}
|
|
7678
7662
|
});
|
|
7679
7663
|
|
|
7680
|
-
var values
|
|
7664
|
+
var values = _core.Object.values;
|
|
7681
7665
|
|
|
7682
|
-
var values = createCommonjsModule(function (module) {
|
|
7683
|
-
module.exports = { "default": values
|
|
7666
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7667
|
+
module.exports = { "default": values, __esModule: true };
|
|
7684
7668
|
});
|
|
7685
7669
|
|
|
7686
|
-
var _Object$values = unwrapExports(values);
|
|
7670
|
+
var _Object$values = unwrapExports(values$1);
|
|
7687
7671
|
|
|
7688
|
-
var Poll = function Poll(_ref) {
|
|
7689
|
-
var node = _ref.node
|
|
7690
|
-
_ref.client
|
|
7691
|
-
_ref.pageview
|
|
7692
|
-
_ref.videoAccountIDs
|
|
7693
|
-
|
|
7694
|
-
_ref.showVotes
|
|
7695
|
-
|
|
7672
|
+
var Poll$1 = function Poll(_ref) {
|
|
7673
|
+
var node = _ref.node,
|
|
7674
|
+
client = _ref.client,
|
|
7675
|
+
pageview = _ref.pageview,
|
|
7676
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7677
|
+
onVote = _ref.onVote,
|
|
7678
|
+
_ref$showVotes = _ref.showVotes,
|
|
7679
|
+
getSerializers = _ref.getSerializers;
|
|
7696
7680
|
|
|
7697
7681
|
var _useState = useState(null),
|
|
7698
7682
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7844,7 +7828,7 @@ var Poll = function Poll(_ref) {
|
|
|
7844
7828
|
);
|
|
7845
7829
|
};
|
|
7846
7830
|
|
|
7847
|
-
var numberOfPaginations =
|
|
7831
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7848
7832
|
|
|
7849
7833
|
var Quiz = function Quiz(_ref) {
|
|
7850
7834
|
var quizzes = _ref.quizzes,
|
|
@@ -7963,33 +7947,33 @@ var Quiz = function Quiz(_ref) {
|
|
|
7963
7947
|
|
|
7964
7948
|
var renderPagination = function renderPagination() {
|
|
7965
7949
|
return React__default.createElement(
|
|
7966
|
-
Pagination,
|
|
7967
|
-
{ className: 'p-0 m-0', size:
|
|
7968
|
-
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7950
|
+
Pagination$1$1,
|
|
7951
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7952
|
+
React__default.createElement(Pagination$1$1.First, { onClick: function onClick() {
|
|
7969
7953
|
return changePage('first');
|
|
7970
7954
|
}, disabled: currentPage === 1 }),
|
|
7971
|
-
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7955
|
+
React__default.createElement(Pagination$1$1.Prev, { onClick: function onClick() {
|
|
7972
7956
|
return changePage('prev');
|
|
7973
7957
|
}, disabled: currentPage === 1 }),
|
|
7974
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7958
|
+
React__default.createElement(Pagination$1$1.Ellipsis, { onClick: function onClick() {
|
|
7975
7959
|
return renderNewPages('prev');
|
|
7976
7960
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7977
7961
|
pages.map(function (page) {
|
|
7978
7962
|
return React__default.createElement(
|
|
7979
|
-
Pagination.Item,
|
|
7963
|
+
Pagination$1$1.Item,
|
|
7980
7964
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7981
7965
|
return changePage(page);
|
|
7982
7966
|
} },
|
|
7983
7967
|
page
|
|
7984
7968
|
);
|
|
7985
7969
|
}),
|
|
7986
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7970
|
+
React__default.createElement(Pagination$1$1.Ellipsis, { onClick: function onClick() {
|
|
7987
7971
|
return renderNewPages('next');
|
|
7988
7972
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7989
|
-
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7973
|
+
React__default.createElement(Pagination$1$1.Next, { onClick: function onClick() {
|
|
7990
7974
|
return changePage('next');
|
|
7991
7975
|
}, disabled: currentPage === pageCount }),
|
|
7992
|
-
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7976
|
+
React__default.createElement(Pagination$1$1.Last, { onClick: function onClick() {
|
|
7993
7977
|
return changePage('last');
|
|
7994
7978
|
}, disabled: currentPage === pageCount })
|
|
7995
7979
|
);
|
|
@@ -8139,7 +8123,7 @@ var Leads = function Leads(_ref) {
|
|
|
8139
8123
|
);
|
|
8140
8124
|
};
|
|
8141
8125
|
|
|
8142
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8126
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8143
8127
|
var slides = _ref.node.slides,
|
|
8144
8128
|
client = _ref.client,
|
|
8145
8129
|
pageview = _ref.pageview,
|
|
@@ -8290,7 +8274,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8290
8274
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8291
8275
|
React__default.createElement(
|
|
8292
8276
|
'a',
|
|
8293
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8277
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8294
8278
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8295
8279
|
React__default.createElement(
|
|
8296
8280
|
'div',
|
|
@@ -8585,7 +8569,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8585
8569
|
|
|
8586
8570
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8587
8571
|
if (biography) {
|
|
8588
|
-
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8572
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8589
8573
|
}
|
|
8590
8574
|
};
|
|
8591
8575
|
|
|
@@ -8671,7 +8655,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8671
8655
|
//console.log('useLayoutEffect')
|
|
8672
8656
|
if (!firstLoad) {
|
|
8673
8657
|
setUpArrowClicked(false);
|
|
8674
|
-
if (
|
|
8658
|
+
if (main_36) {
|
|
8675
8659
|
grabLoadedAds();
|
|
8676
8660
|
} else {
|
|
8677
8661
|
scrollToArticle();
|
|
@@ -8695,7 +8679,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8695
8679
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8696
8680
|
if (pageview) pageview(path);
|
|
8697
8681
|
|
|
8698
|
-
if (!
|
|
8682
|
+
if (!main_36) {
|
|
8699
8683
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8700
8684
|
if (window.googletag && googletag.pubadsReady) {
|
|
8701
8685
|
lib_3.refresh();
|
|
@@ -8703,7 +8687,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8703
8687
|
});
|
|
8704
8688
|
}
|
|
8705
8689
|
//Refresh leaderboard ad on mobile
|
|
8706
|
-
if (
|
|
8690
|
+
if (main_36) {
|
|
8707
8691
|
var leaderboardSlotId = '';
|
|
8708
8692
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8709
8693
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8772,7 +8756,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8772
8756
|
React__default.createElement(
|
|
8773
8757
|
'div',
|
|
8774
8758
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8775
|
-
|
|
8759
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8776
8760
|
if (index === 0) {
|
|
8777
8761
|
return React__default.createElement(
|
|
8778
8762
|
'div',
|
|
@@ -8863,7 +8847,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8863
8847
|
React__default.createElement(
|
|
8864
8848
|
'div',
|
|
8865
8849
|
{ className: 'mt-2 mb-2' },
|
|
8866
|
-
React__default.createElement(BlockContent, _extends({
|
|
8850
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8867
8851
|
serializers: getSerializers,
|
|
8868
8852
|
videoAccountIDs: accountIDs,
|
|
8869
8853
|
blocks: article.text,
|
|
@@ -8894,7 +8878,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8894
8878
|
React__default.createElement(
|
|
8895
8879
|
'div',
|
|
8896
8880
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8897
|
-
|
|
8881
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8898
8882
|
if (innerIndex === 0) {
|
|
8899
8883
|
return React__default.createElement(
|
|
8900
8884
|
'div',
|
|
@@ -8967,7 +8951,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8967
8951
|
}
|
|
8968
8952
|
};
|
|
8969
8953
|
|
|
8970
|
-
var FigureImage
|
|
8954
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8971
8955
|
var node = _ref2.node,
|
|
8972
8956
|
client = _ref2.client,
|
|
8973
8957
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8981,7 +8965,7 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
|
8981
8965
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8982
8966
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8983
8967
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8984
|
-
React__default.createElement('img', _extends({
|
|
8968
|
+
React__default.createElement('img', _extends$1({
|
|
8985
8969
|
style: figureImageStyle,
|
|
8986
8970
|
className: 'figure-image',
|
|
8987
8971
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9033,23 +9017,23 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9033
9017
|
var renderTooltip = function renderTooltip(props) {
|
|
9034
9018
|
if (infoBox[0].title) {
|
|
9035
9019
|
return React__default.createElement(
|
|
9036
|
-
Popover,
|
|
9020
|
+
Popover$1,
|
|
9037
9021
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9038
9022
|
React__default.createElement(
|
|
9039
|
-
Popover.Title,
|
|
9023
|
+
Popover$1.Title,
|
|
9040
9024
|
{ as: 'h3' },
|
|
9041
9025
|
infoBox[0].title
|
|
9042
9026
|
),
|
|
9043
9027
|
React__default.createElement(
|
|
9044
|
-
Popover.Content,
|
|
9028
|
+
Popover$1.Content,
|
|
9045
9029
|
null,
|
|
9046
9030
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9047
9031
|
)
|
|
9048
9032
|
);
|
|
9049
9033
|
} else {
|
|
9050
9034
|
return React__default.createElement(
|
|
9051
|
-
Tooltip,
|
|
9052
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9035
|
+
Tooltip$1,
|
|
9036
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9053
9037
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9054
9038
|
);
|
|
9055
9039
|
}
|
|
@@ -9063,32 +9047,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9063
9047
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9064
9048
|
|
|
9065
9049
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9066
|
-
var triggerAction =
|
|
9067
|
-
var placementLocation =
|
|
9050
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9051
|
+
var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9068
9052
|
return React__default.createElement(
|
|
9069
9053
|
'picture',
|
|
9070
9054
|
null,
|
|
9071
9055
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9072
9056
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9073
9057
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9074
|
-
|
|
9058
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9075
9059
|
style: figureImageStyle,
|
|
9076
9060
|
className: 'figure-image',
|
|
9077
9061
|
src: urlFor({ source: node, client: client }),
|
|
9078
9062
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9079
|
-
}, !link && !
|
|
9063
|
+
}, !link && !main_35 && {
|
|
9080
9064
|
onClick: function onClick() {
|
|
9081
9065
|
return handleClickFigure(node, client);
|
|
9082
9066
|
}
|
|
9083
9067
|
})) : React__default.createElement(
|
|
9084
9068
|
OverlayTrigger,
|
|
9085
9069
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9086
|
-
React__default.createElement('img', _extends({
|
|
9070
|
+
React__default.createElement('img', _extends$1({
|
|
9087
9071
|
style: figureImageStyle,
|
|
9088
9072
|
className: 'figure-image',
|
|
9089
9073
|
src: urlFor({ source: node, client: client }),
|
|
9090
9074
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9091
|
-
}, !link && !
|
|
9075
|
+
}, !link && !main_35 && {
|
|
9092
9076
|
onClick: function onClick() {
|
|
9093
9077
|
return handleClickFigure(node, client);
|
|
9094
9078
|
}
|
|
@@ -9164,7 +9148,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9164
9148
|
React__default.Fragment,
|
|
9165
9149
|
null,
|
|
9166
9150
|
infoBox.length >= 1 ? React__default.createElement(
|
|
9167
|
-
Figure$
|
|
9151
|
+
Figure$1$1,
|
|
9168
9152
|
{ className: '' + class_name, style: figureStyle },
|
|
9169
9153
|
link ? React__default.createElement(
|
|
9170
9154
|
'a',
|
|
@@ -9186,17 +9170,17 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9186
9170
|
}
|
|
9187
9171
|
})
|
|
9188
9172
|
) : React__default.createElement(
|
|
9189
|
-
Figure$
|
|
9173
|
+
Figure$1$1,
|
|
9190
9174
|
{ className: '' + class_name, style: figureStyle },
|
|
9191
9175
|
link ? React__default.createElement(
|
|
9192
9176
|
'a',
|
|
9193
9177
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9194
|
-
React__default.createElement(FigureImage
|
|
9178
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9195
9179
|
React__default.createElement(FigureCaption, null)
|
|
9196
9180
|
) : React__default.createElement(
|
|
9197
9181
|
React__default.Fragment,
|
|
9198
9182
|
null,
|
|
9199
|
-
React__default.createElement(FigureImage
|
|
9183
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9200
9184
|
React__default.createElement(FigureCaption, null)
|
|
9201
9185
|
),
|
|
9202
9186
|
React__default.createElement(LightBox, {
|
|
@@ -9233,7 +9217,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9233
9217
|
}, [ref]);
|
|
9234
9218
|
}
|
|
9235
9219
|
|
|
9236
|
-
var FigureImage = React__default.memo(function (_ref) {
|
|
9220
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9237
9221
|
var imagesCount = _ref.imagesCount,
|
|
9238
9222
|
image = _ref.image,
|
|
9239
9223
|
client = _ref.client,
|
|
@@ -9247,7 +9231,7 @@ var FigureImage = React__default.memo(function (_ref) {
|
|
|
9247
9231
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9248
9232
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9249
9233
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9250
|
-
React__default.createElement('img', _extends({
|
|
9234
|
+
React__default.createElement('img', _extends$1({
|
|
9251
9235
|
'images-count': imagesCount,
|
|
9252
9236
|
className: 'multi-figure-image',
|
|
9253
9237
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9307,32 +9291,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9307
9291
|
link = _ref3.link,
|
|
9308
9292
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9309
9293
|
|
|
9310
|
-
var triggerAction =
|
|
9311
|
-
var placementLocation =
|
|
9294
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9295
|
+
var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9312
9296
|
return React__default.createElement(
|
|
9313
9297
|
'picture',
|
|
9314
9298
|
null,
|
|
9315
9299
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9316
9300
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9317
9301
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9318
|
-
|
|
9302
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9319
9303
|
'images-count': imagesCount,
|
|
9320
9304
|
className: 'multi-figure-image',
|
|
9321
9305
|
src: urlFor({ source: image, client: client }),
|
|
9322
9306
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9323
|
-
}, !link && !
|
|
9307
|
+
}, !link && !main_35 && {
|
|
9324
9308
|
onClick: function onClick() {
|
|
9325
9309
|
return handleClickFigure(image, client);
|
|
9326
9310
|
}
|
|
9327
9311
|
})) : React__default.createElement(
|
|
9328
9312
|
OverlayTrigger,
|
|
9329
9313
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9330
|
-
React__default.createElement('img', _extends({
|
|
9314
|
+
React__default.createElement('img', _extends$1({
|
|
9331
9315
|
'images-count': imagesCount,
|
|
9332
9316
|
className: 'multi-figure-image',
|
|
9333
9317
|
src: urlFor({ source: image, client: client }),
|
|
9334
9318
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9335
|
-
}, !link && !
|
|
9319
|
+
}, !link && !main_35 && {
|
|
9336
9320
|
onClick: function onClick() {
|
|
9337
9321
|
return handleClickFigure(image, client);
|
|
9338
9322
|
}
|
|
@@ -9344,23 +9328,23 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9344
9328
|
var renderTooltip = function renderTooltip(image) {
|
|
9345
9329
|
if (image.infoBox[0].title) {
|
|
9346
9330
|
return React__default.createElement(
|
|
9347
|
-
Popover,
|
|
9331
|
+
Popover$1,
|
|
9348
9332
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9349
9333
|
React__default.createElement(
|
|
9350
|
-
Popover.Title,
|
|
9334
|
+
Popover$1.Title,
|
|
9351
9335
|
{ as: 'h3' },
|
|
9352
9336
|
image.infoBox[0].title
|
|
9353
9337
|
),
|
|
9354
9338
|
React__default.createElement(
|
|
9355
|
-
Popover.Content,
|
|
9339
|
+
Popover$1.Content,
|
|
9356
9340
|
null,
|
|
9357
9341
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9358
9342
|
)
|
|
9359
9343
|
);
|
|
9360
9344
|
} else {
|
|
9361
9345
|
return React__default.createElement(
|
|
9362
|
-
Tooltip,
|
|
9363
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9346
|
+
Tooltip$1,
|
|
9347
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9364
9348
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9365
9349
|
);
|
|
9366
9350
|
}
|
|
@@ -9380,7 +9364,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9380
9364
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9381
9365
|
image.link ? React__default.createElement(
|
|
9382
9366
|
'a',
|
|
9383
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9367
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9384
9368
|
React__default.createElement(
|
|
9385
9369
|
'div',
|
|
9386
9370
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9408,14 +9392,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9408
9392
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9409
9393
|
image.link ? React__default.createElement(
|
|
9410
9394
|
'a',
|
|
9411
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9395
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9412
9396
|
React__default.createElement(
|
|
9413
9397
|
'div',
|
|
9414
9398
|
{ className: 'multi-figure-image-container' },
|
|
9415
9399
|
React__default.createElement(
|
|
9416
9400
|
LazyLoad,
|
|
9417
9401
|
{ once: true },
|
|
9418
|
-
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9402
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9419
9403
|
),
|
|
9420
9404
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9421
9405
|
)
|
|
@@ -9425,7 +9409,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9425
9409
|
React__default.createElement(
|
|
9426
9410
|
LazyLoad,
|
|
9427
9411
|
{ once: true },
|
|
9428
|
-
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9412
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9429
9413
|
),
|
|
9430
9414
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9431
9415
|
)
|
|
@@ -9537,7 +9521,7 @@ exports.__esModule = true;
|
|
|
9537
9521
|
|
|
9538
9522
|
|
|
9539
9523
|
|
|
9540
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9524
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9541
9525
|
|
|
9542
9526
|
|
|
9543
9527
|
|
|
@@ -9706,9 +9690,9 @@ var ScriptTag = function (_Component) {
|
|
|
9706
9690
|
|
|
9707
9691
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9708
9692
|
// eslint-disable-next-line no-unused-vars
|
|
9709
|
-
var _props3 = this.props
|
|
9710
|
-
_props3.isHydrating
|
|
9711
|
-
|
|
9693
|
+
var _props3 = this.props,
|
|
9694
|
+
isHydrating = _props3.isHydrating,
|
|
9695
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9712
9696
|
|
|
9713
9697
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9714
9698
|
return _this2.domRef = tag;
|
|
@@ -9850,7 +9834,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9850
9834
|
return React__default.createElement(
|
|
9851
9835
|
'div',
|
|
9852
9836
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9853
|
-
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9837
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9854
9838
|
);
|
|
9855
9839
|
})
|
|
9856
9840
|
);
|
|
@@ -9978,7 +9962,7 @@ var getSerializers = function getSerializers() {
|
|
|
9978
9962
|
var node = _ref6.node;
|
|
9979
9963
|
var slides = node.slides;
|
|
9980
9964
|
|
|
9981
|
-
return React__default.createElement(Slideshow
|
|
9965
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9982
9966
|
},
|
|
9983
9967
|
sidebar: function sidebar(_ref7) {
|
|
9984
9968
|
var node = _ref7.node;
|
|
@@ -10016,12 +10000,12 @@ var getSerializers = function getSerializers() {
|
|
|
10016
10000
|
poll: function poll(_ref13) {
|
|
10017
10001
|
var node = _ref13.node;
|
|
10018
10002
|
|
|
10019
|
-
return React__default.createElement(Poll
|
|
10003
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10020
10004
|
},
|
|
10021
10005
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10022
10006
|
var node = _ref14.node;
|
|
10023
10007
|
|
|
10024
|
-
return React__default.createElement(Poll, {
|
|
10008
|
+
return React__default.createElement(Poll$1, {
|
|
10025
10009
|
node: node,
|
|
10026
10010
|
client: client,
|
|
10027
10011
|
pageview: pageview,
|
|
@@ -10047,7 +10031,7 @@ var getSerializers = function getSerializers() {
|
|
|
10047
10031
|
slideshows: function slideshows(_ref17) {
|
|
10048
10032
|
var node = _ref17.node;
|
|
10049
10033
|
|
|
10050
|
-
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10034
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10051
10035
|
},
|
|
10052
10036
|
nativeAd: function nativeAd(_ref18) {
|
|
10053
10037
|
var node = _ref18.node;
|
|
@@ -10122,7 +10106,7 @@ var getSerializers = function getSerializers() {
|
|
|
10122
10106
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10123
10107
|
return href ? React__default.createElement(
|
|
10124
10108
|
'a',
|
|
10125
|
-
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10109
|
+
_extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10126
10110
|
children
|
|
10127
10111
|
) : children;
|
|
10128
10112
|
},
|