@mjhls/mjh-framework 1.0.881-beta.0 → 1.0.881-gtagfixv1
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 +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +29 -28
- package/dist/cjs/AD300x250x600.js +29 -28
- package/dist/cjs/AD728x90.js +32 -31
- package/dist/cjs/ADFloatingFooter.js +31 -30
- package/dist/cjs/ADFooter.js +13 -12
- package/dist/cjs/ADGutter.js +31 -30
- package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-bce0ba07.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +31 -30
- package/dist/cjs/ADSponsoredResources.js +31 -30
- package/dist/cjs/ADWebcast.js +31 -30
- package/dist/cjs/ADWelcome.js +32 -31
- package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-950b414b.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +18 -909
- package/dist/cjs/AlgoliaSearch.js +1490 -1306
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +20 -19
- package/dist/cjs/ArticleProgramLandingPage.js +61 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -42
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +1637 -419
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-9ebd251f.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +27 -25
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +34 -31
- package/dist/cjs/Column3.js +60 -57
- package/dist/cjs/ConferenceArticleCard.js +41 -40
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +105 -101
- package/dist/cjs/DeckQueue.js +91 -366
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
- package/dist/cjs/EventsDeck.js +157 -150
- package/dist/cjs/ExternalResources.js +79 -78
- package/dist/cjs/Feature.js +29 -27
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +236 -231
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +58 -57
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +16 -15
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +72 -71
- package/dist/cjs/HorizontalHero.js +29 -28
- package/dist/cjs/IssueContentDeck.js +76 -71
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +94 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +81 -468
- package/dist/cjs/MediaSeriesLanding.js +1233 -1140
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +151 -146
- package/dist/cjs/NavNative.js +145 -137
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +71 -70
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/PartnerDetailListing.js +304 -1479
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -41
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +70 -65
- package/dist/cjs/PublicationLanding.js +141 -133
- package/dist/cjs/QueueDeckExpanded.js +322 -1654
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +58 -57
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +20 -16
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-ba0c5d1a.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-4942ddfc.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +66 -61
- package/dist/cjs/TaxonomyDescription.js +54 -53
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +26 -24
- package/dist/cjs/Ustream.js +29 -28
- package/dist/cjs/VerticalHero.js +20 -19
- package/dist/cjs/VideoProgramLandingPage.js +78 -74
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +50 -51
- package/dist/cjs/VideoSeriesListing.js +77 -76
- package/dist/cjs/View.js +274 -268
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +68 -67
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/{entities-310b46ee.js → entities-df1aed86.js} +5 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-e2e62963.js → index-50be6759.js} +26 -10
- package/dist/cjs/{index-bf60a71c.js → index-6763511d.js} +1070 -1044
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
- package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
- package/dist/cjs/index.js +171 -165
- package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-93a37fd0.js} +12 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0c13c803.js → ADInfeed-0a55cd2d.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-e4e2031a.js → ADlgInfeed-013e1f4a.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +14 -906
- package/dist/esm/AlgoliaSearch.js +717 -534
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +30 -32
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +591 -1419
- package/dist/esm/AuthWrapper.js +1609 -392
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-11adff02.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-1e73bd2c.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +22 -22
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -37
- package/dist/esm/ConferenceArticleCard.js +25 -25
- package/dist/esm/DeckContent.js +55 -55
- package/dist/esm/DeckQueue.js +48 -327
- package/dist/esm/{Dfp-f867d061.js → Dfp-102f0beb.js} +13 -13
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +37 -37
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/IssueContentDeck.js +25 -25
- package/dist/esm/IssueDeck.js +35 -35
- package/dist/esm/IssueLanding.js +82 -83
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +46 -434
- package/dist/esm/MediaSeriesLanding.js +752 -662
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +42 -42
- package/dist/esm/NavNative.js +41 -41
- package/dist/esm/OncliveHero.js +7 -8
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +210 -1386
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -33
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +78 -74
- package/dist/esm/QueueDeckExpanded.js +64 -1396
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -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-ce19fa25.js → SeriesSlider-45adb8dc.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-8e0fcf66.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -48
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +52 -52
- package/dist/esm/VideoSeriesCard.js +14 -14
- 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 +95 -93
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-4df618a6.js → _is-array-8d21b9e3.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-98db3b07.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-7cee6f84.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-2300e51b.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-5ef104a7.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
- package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-ea258bb1.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/define-property-5f1bda73.js +18 -0
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8c30428f.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-6d9154b4.js} +5 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-5b1796d4.js → extends-6d8e3924.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-4061f839.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
- package/dist/esm/{index-e495ac6f.js → index-3ccc6d4b.js} +634 -618
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-aaa2dae0.js → index-98ca9cec.js} +26 -11
- package/dist/esm/{index-41a678ea.js → index-f0fc23eb.js} +4 -4
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
- package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
- package/dist/esm/index.js +126 -123
- package/dist/esm/{inherits-2409637d.js → inherits-a6ba2ec4.js} +18 -18
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-31dcdb31.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-6ebcbfea.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-2b084bee.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-f7074d7c.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-c05a82ba.js → typeof-e9fc0c5d.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-d3714624.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-8ed16d48.js} +12 -1
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-ab4dea5c.js} +2 -2
- package/package.json +112 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/Pagination-d6a59f99.js +0 -62
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/Pagination-f7c4c5ae.js +0 -57
- package/dist/esm/define-property-6d26cb48.js +0 -18
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-c0612122.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
1
|
+
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
7
2
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
-
import Router, { useRouter } from 'next/router';
|
|
14
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
|
|
3
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
|
|
4
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
15
5
|
import urlFor from './urlFor.js';
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
19
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
20
|
-
import Segment from './Segment.js';
|
|
21
|
-
import './Beam.js';
|
|
22
|
-
import DFPAdSlot from './AdSlot.js';
|
|
23
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
24
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
6
|
+
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
7
|
+
import Router, { useRouter } from 'next/router';
|
|
25
8
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
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-8ed16d48.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-1e73bd2c.js';
|
|
16
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
|
|
18
|
+
import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
|
|
19
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
26
20
|
import GroupDeck from './GroupDeck.js';
|
|
27
|
-
import {
|
|
28
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
29
|
-
import { u as util } from './util-7700fc59.js';
|
|
30
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
31
|
-
import Head from 'next/head';
|
|
21
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
32
22
|
import SocialShare from './SocialShare.js';
|
|
33
|
-
import { _ as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
23
|
+
import { _ as _export, a as _core } from './core.get-iterator-method-ea258bb1.js';
|
|
24
|
+
import { _ as _objectToArray } from './_object-to-array-2300e51b.js';
|
|
25
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
26
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
27
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
28
|
+
import { h as html_decode_1 } from './entities-6d9154b4.js';
|
|
29
|
+
import DFPAdSlot from './AdSlot.js';
|
|
30
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
31
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
32
|
+
import Head from 'next/head';
|
|
33
|
+
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-a6ba2ec4.js';
|
|
34
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
35
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
36
36
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
37
|
-
import Tooltip
|
|
38
|
-
import Popover
|
|
37
|
+
import Tooltip from 'react-bootstrap/Tooltip';
|
|
38
|
+
import Popover from 'react-bootstrap/Popover';
|
|
39
39
|
|
|
40
40
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
41
41
|
var pageNumber = selectedIndex + 1;
|
|
@@ -43,7 +43,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
43
43
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
var Slideshow = function Slideshow(_ref) {
|
|
46
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
47
47
|
var slides = _ref.slides,
|
|
48
48
|
client = _ref.client,
|
|
49
49
|
pageview = _ref.pageview;
|
|
@@ -101,21 +101,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
// do not edit .js files directly - edit src/index.jst
|
|
105
|
+
|
|
106
|
+
|
|
107
107
|
|
|
108
108
|
var fastDeepEqual = function equal(a, b) {
|
|
109
109
|
if (a === b) return true;
|
|
110
110
|
|
|
111
111
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
112
|
-
|
|
113
|
-
, arrB = isArray(b)
|
|
114
|
-
, i
|
|
115
|
-
, length
|
|
116
|
-
, key;
|
|
112
|
+
if (a.constructor !== b.constructor) return false;
|
|
117
113
|
|
|
118
|
-
|
|
114
|
+
var length, i, keys;
|
|
115
|
+
if (Array.isArray(a)) {
|
|
119
116
|
length = a.length;
|
|
120
117
|
if (length != b.length) return false;
|
|
121
118
|
for (i = length; i-- !== 0;)
|
|
@@ -123,35 +120,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
123
120
|
return true;
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
if (arrA != arrB) return false;
|
|
127
123
|
|
|
128
|
-
var dateA = a instanceof Date
|
|
129
|
-
, dateB = b instanceof Date;
|
|
130
|
-
if (dateA != dateB) return false;
|
|
131
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
132
124
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (
|
|
136
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
125
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
126
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
127
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
137
128
|
|
|
138
|
-
|
|
129
|
+
keys = Object.keys(a);
|
|
139
130
|
length = keys.length;
|
|
140
|
-
|
|
141
|
-
if (length !== keyList(b).length)
|
|
142
|
-
return false;
|
|
131
|
+
if (length !== Object.keys(b).length) return false;
|
|
143
132
|
|
|
144
133
|
for (i = length; i-- !== 0;)
|
|
145
|
-
if (!
|
|
134
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
146
135
|
|
|
147
136
|
for (i = length; i-- !== 0;) {
|
|
148
|
-
key = keys[i];
|
|
137
|
+
var key = keys[i];
|
|
138
|
+
|
|
149
139
|
if (!equal(a[key], b[key])) return false;
|
|
150
140
|
}
|
|
151
141
|
|
|
152
142
|
return true;
|
|
153
143
|
}
|
|
154
144
|
|
|
145
|
+
// true if both NaN, false otherwise
|
|
155
146
|
return a!==a && b!==b;
|
|
156
147
|
};
|
|
157
148
|
|
|
@@ -689,14 +680,14 @@ function coerce(val) {
|
|
|
689
680
|
return val;
|
|
690
681
|
}
|
|
691
682
|
});
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
683
|
+
debug.coerce;
|
|
684
|
+
debug.disable;
|
|
685
|
+
debug.enable;
|
|
686
|
+
debug.enabled;
|
|
687
|
+
debug.humanize;
|
|
688
|
+
debug.names;
|
|
689
|
+
debug.skips;
|
|
690
|
+
debug.formatters;
|
|
700
691
|
|
|
701
692
|
var browser = createCommonjsModule(function (module, exports) {
|
|
702
693
|
/**
|
|
@@ -885,13 +876,13 @@ function localstorage() {
|
|
|
885
876
|
} catch (e) {}
|
|
886
877
|
}
|
|
887
878
|
});
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
879
|
+
browser.log;
|
|
880
|
+
browser.formatArgs;
|
|
881
|
+
browser.save;
|
|
882
|
+
browser.load;
|
|
883
|
+
browser.useColors;
|
|
884
|
+
browser.storage;
|
|
885
|
+
browser.colors;
|
|
895
886
|
|
|
896
887
|
// MIT lisence
|
|
897
888
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1166,14 +1157,14 @@ function init (debug) {
|
|
|
1166
1157
|
|
|
1167
1158
|
exports.enable(load());
|
|
1168
1159
|
});
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1160
|
+
node.init;
|
|
1161
|
+
node.log;
|
|
1162
|
+
node.formatArgs;
|
|
1163
|
+
node.save;
|
|
1164
|
+
node.load;
|
|
1165
|
+
node.useColors;
|
|
1166
|
+
node.colors;
|
|
1167
|
+
node.inspectOpts;
|
|
1177
1168
|
|
|
1178
1169
|
var src = createCommonjsModule(function (module) {
|
|
1179
1170
|
/**
|
|
@@ -1574,199 +1565,239 @@ module.exports = exports['default'];
|
|
|
1574
1565
|
|
|
1575
1566
|
var youTubePlayer = unwrapExports(dist);
|
|
1576
1567
|
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
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; };
|
|
1568
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1580
1569
|
|
|
1581
1570
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1582
1571
|
|
|
1583
|
-
function
|
|
1572
|
+
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); } }
|
|
1573
|
+
|
|
1574
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1575
|
+
|
|
1576
|
+
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); }
|
|
1577
|
+
|
|
1578
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1579
|
+
|
|
1580
|
+
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); }; }
|
|
1581
|
+
|
|
1582
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1583
|
+
|
|
1584
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1585
|
+
|
|
1586
|
+
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; } }
|
|
1584
1587
|
|
|
1585
|
-
function
|
|
1588
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1589
|
+
|
|
1590
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1586
1591
|
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
*
|
|
1592
|
+
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; }
|
|
1593
|
+
|
|
1594
|
+
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; }
|
|
1595
|
+
/**
|
|
1596
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1597
|
+
*
|
|
1598
|
+
* @param {Object} prevProps
|
|
1599
|
+
* @param {Object} props
|
|
1592
1600
|
*/
|
|
1601
|
+
|
|
1593
1602
|
function shouldUpdateVideo(prevProps, props) {
|
|
1594
1603
|
// A changing video should always trigger an update
|
|
1595
1604
|
if (prevProps.videoId !== props.videoId) {
|
|
1596
1605
|
return true;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1606
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1600
1607
|
// update.
|
|
1608
|
+
|
|
1609
|
+
|
|
1601
1610
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1602
1611
|
var vars = props.opts.playerVars || {};
|
|
1603
|
-
|
|
1604
1612
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1605
1613
|
}
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
*
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
*
|
|
1612
|
-
* @param {Object} opts
|
|
1614
|
+
/**
|
|
1615
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1616
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1617
|
+
* player reset is necessary.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} opts
|
|
1613
1620
|
*/
|
|
1621
|
+
|
|
1622
|
+
|
|
1614
1623
|
function filterResetOptions(opts) {
|
|
1615
|
-
return
|
|
1616
|
-
playerVars:
|
|
1624
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1625
|
+
playerVars: _objectSpread({
|
|
1617
1626
|
autoplay: 0,
|
|
1618
1627
|
start: 0,
|
|
1619
1628
|
end: 0
|
|
1620
|
-
})
|
|
1629
|
+
}, opts.playerVars)
|
|
1621
1630
|
});
|
|
1622
1631
|
}
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
*
|
|
1630
|
-
* @param {Object}
|
|
1631
|
-
* @param {Object} props
|
|
1632
|
+
/**
|
|
1633
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1634
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1635
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1636
|
+
* those.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1632
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1633
1643
|
function shouldResetPlayer(prevProps, props) {
|
|
1634
1644
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1635
1645
|
}
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
*
|
|
1639
|
-
*
|
|
1640
|
-
* @param {Object}
|
|
1641
|
-
* @param {Object} props
|
|
1646
|
+
/**
|
|
1647
|
+
* Check whether a props change should result in an id or className update.
|
|
1648
|
+
*
|
|
1649
|
+
* @param {Object} prevProps
|
|
1650
|
+
* @param {Object} props
|
|
1642
1651
|
*/
|
|
1652
|
+
|
|
1653
|
+
|
|
1643
1654
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1644
1655
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1645
1656
|
}
|
|
1646
1657
|
|
|
1647
|
-
var YouTube = function (_React$Component) {
|
|
1658
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1648
1659
|
_inherits(YouTube, _React$Component);
|
|
1649
1660
|
|
|
1661
|
+
var _super = _createSuper(YouTube);
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1665
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1666
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1667
|
+
*/
|
|
1650
1668
|
function YouTube(props) {
|
|
1669
|
+
var _this;
|
|
1670
|
+
|
|
1651
1671
|
_classCallCheck(this, YouTube);
|
|
1652
1672
|
|
|
1653
|
-
|
|
1673
|
+
_this = _super.call(this, props);
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1656
1676
|
return _this.props.onReady(event);
|
|
1657
|
-
};
|
|
1677
|
+
});
|
|
1658
1678
|
|
|
1659
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1660
1680
|
return _this.props.onError(event);
|
|
1661
|
-
};
|
|
1681
|
+
});
|
|
1662
1682
|
|
|
1663
|
-
_this
|
|
1683
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1664
1684
|
_this.props.onStateChange(event);
|
|
1665
|
-
switch (event.data) {
|
|
1666
1685
|
|
|
1686
|
+
switch (event.data) {
|
|
1667
1687
|
case YouTube.PlayerState.ENDED:
|
|
1668
1688
|
_this.props.onEnd(event);
|
|
1689
|
+
|
|
1669
1690
|
break;
|
|
1670
1691
|
|
|
1671
1692
|
case YouTube.PlayerState.PLAYING:
|
|
1672
1693
|
_this.props.onPlay(event);
|
|
1694
|
+
|
|
1673
1695
|
break;
|
|
1674
1696
|
|
|
1675
1697
|
case YouTube.PlayerState.PAUSED:
|
|
1676
1698
|
_this.props.onPause(event);
|
|
1699
|
+
|
|
1677
1700
|
break;
|
|
1678
1701
|
}
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1682
1705
|
return _this.props.onPlaybackRateChange(event);
|
|
1683
|
-
};
|
|
1706
|
+
});
|
|
1684
1707
|
|
|
1685
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1686
1709
|
return _this.props.onPlaybackQualityChange(event);
|
|
1687
|
-
};
|
|
1710
|
+
});
|
|
1688
1711
|
|
|
1689
|
-
_this
|
|
1712
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1690
1713
|
// do not attempt to create a player server-side, it won't work
|
|
1691
|
-
if (typeof document === 'undefined') return;
|
|
1692
|
-
|
|
1693
|
-
var playerOpts =
|
|
1714
|
+
if (typeof document === 'undefined') return; // create player
|
|
1715
|
+
|
|
1716
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1694
1717
|
// preload the `videoId` video if one is already given
|
|
1695
1718
|
videoId: _this.props.videoId
|
|
1696
1719
|
});
|
|
1697
|
-
|
|
1698
|
-
// attach event handlers
|
|
1720
|
+
|
|
1721
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1722
|
+
|
|
1699
1723
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1724
|
+
|
|
1700
1725
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1726
|
+
|
|
1701
1727
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1728
|
+
|
|
1702
1729
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1730
|
+
|
|
1703
1731
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1707
1735
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1708
|
-
};
|
|
1736
|
+
});
|
|
1709
1737
|
|
|
1710
|
-
_this
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1711
1739
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1712
1740
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1713
1741
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1714
1742
|
});
|
|
1715
|
-
};
|
|
1743
|
+
});
|
|
1716
1744
|
|
|
1717
|
-
_this
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1746
|
+
return _this.internalPlayer;
|
|
1747
|
+
});
|
|
1748
|
+
|
|
1749
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1718
1750
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1719
1751
|
_this.internalPlayer.stopVideo();
|
|
1752
|
+
|
|
1720
1753
|
return;
|
|
1721
|
-
}
|
|
1754
|
+
} // set queueing options
|
|
1755
|
+
|
|
1722
1756
|
|
|
1723
|
-
// set queueing options
|
|
1724
1757
|
var autoplay = false;
|
|
1725
1758
|
var opts = {
|
|
1726
1759
|
videoId: _this.props.videoId
|
|
1727
1760
|
};
|
|
1761
|
+
|
|
1728
1762
|
if ('playerVars' in _this.props.opts) {
|
|
1729
1763
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1764
|
+
|
|
1730
1765
|
if ('start' in _this.props.opts.playerVars) {
|
|
1731
1766
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1732
1767
|
}
|
|
1768
|
+
|
|
1733
1769
|
if ('end' in _this.props.opts.playerVars) {
|
|
1734
1770
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1735
1771
|
}
|
|
1736
|
-
}
|
|
1772
|
+
} // if autoplay is enabled loadVideoById
|
|
1773
|
+
|
|
1737
1774
|
|
|
1738
|
-
// if autoplay is enabled loadVideoById
|
|
1739
1775
|
if (autoplay) {
|
|
1740
1776
|
_this.internalPlayer.loadVideoById(opts);
|
|
1777
|
+
|
|
1741
1778
|
return;
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1779
|
+
} // default behaviour just cues the video
|
|
1780
|
+
|
|
1781
|
+
|
|
1744
1782
|
_this.internalPlayer.cueVideoById(opts);
|
|
1745
|
-
};
|
|
1783
|
+
});
|
|
1746
1784
|
|
|
1747
|
-
_this
|
|
1785
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1748
1786
|
_this.container = container;
|
|
1749
|
-
};
|
|
1787
|
+
});
|
|
1750
1788
|
|
|
1751
1789
|
_this.container = null;
|
|
1752
1790
|
_this.internalPlayer = null;
|
|
1753
1791
|
return _this;
|
|
1754
1792
|
}
|
|
1755
1793
|
|
|
1756
|
-
/**
|
|
1757
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1758
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1759
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1760
|
-
*/
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
1794
|
_createClass(YouTube, [{
|
|
1764
|
-
key:
|
|
1795
|
+
key: "componentDidMount",
|
|
1765
1796
|
value: function componentDidMount() {
|
|
1766
1797
|
this.createPlayer();
|
|
1767
1798
|
}
|
|
1768
1799
|
}, {
|
|
1769
|
-
key:
|
|
1800
|
+
key: "componentDidUpdate",
|
|
1770
1801
|
value: function componentDidUpdate(prevProps) {
|
|
1771
1802
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1772
1803
|
this.updatePlayer();
|
|
@@ -1781,112 +1812,58 @@ var YouTube = function (_React$Component) {
|
|
|
1781
1812
|
}
|
|
1782
1813
|
}
|
|
1783
1814
|
}, {
|
|
1784
|
-
key:
|
|
1815
|
+
key: "componentWillUnmount",
|
|
1785
1816
|
value: function componentWillUnmount() {
|
|
1786
|
-
/**
|
|
1787
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1788
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1789
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1790
|
-
* this method isn't quick enough to reset the container element.
|
|
1817
|
+
/**
|
|
1818
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1819
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1820
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1821
|
+
* this method isn't quick enough to reset the container element.
|
|
1791
1822
|
*/
|
|
1792
1823
|
this.internalPlayer.destroy();
|
|
1793
1824
|
}
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
*
|
|
1797
|
-
*
|
|
1798
|
-
*
|
|
1799
|
-
* @param {Object} target - player object
|
|
1800
|
-
*/
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
/**
|
|
1804
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1805
|
-
*
|
|
1806
|
-
* @param {Object} event
|
|
1807
|
-
* @param {Integer} data - error type
|
|
1808
|
-
* @param {Object} target - player object
|
|
1809
|
-
*/
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1814
|
-
*
|
|
1815
|
-
* @param {Object} event
|
|
1816
|
-
* @param {Integer} data - status change type
|
|
1817
|
-
* @param {Object} target - actual YT player
|
|
1818
|
-
*/
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
/**
|
|
1822
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1823
|
-
*
|
|
1824
|
-
* @param {Object} event
|
|
1825
|
-
* @param {Float} data - playback rate
|
|
1826
|
-
* @param {Object} target - actual YT player
|
|
1827
|
-
*/
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
/**
|
|
1831
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1832
|
-
*
|
|
1833
|
-
* @param {Object} event
|
|
1834
|
-
* @param {String} data - playback quality
|
|
1835
|
-
* @param {Object} target - actual YT player
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1841
|
-
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
/**
|
|
1845
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1846
|
-
*/
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
/**
|
|
1850
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1851
|
-
* React should update this automatically but since the Youtube Player API
|
|
1852
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1853
|
-
*/
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
/**
|
|
1857
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1858
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1859
|
-
* Youtube Player API methods to update the video.
|
|
1825
|
+
/**
|
|
1826
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1827
|
+
*
|
|
1828
|
+
* @param {Object} event
|
|
1829
|
+
* @param {Object} target - player object
|
|
1860
1830
|
*/
|
|
1861
1831
|
|
|
1862
1832
|
}, {
|
|
1863
|
-
key:
|
|
1833
|
+
key: "render",
|
|
1864
1834
|
value: function render() {
|
|
1865
|
-
return React__default.createElement(
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1835
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1836
|
+
className: this.props.containerClassName
|
|
1837
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1838
|
+
id: this.props.id,
|
|
1839
|
+
className: this.props.className,
|
|
1840
|
+
ref: this.refContainer
|
|
1841
|
+
}));
|
|
1870
1842
|
}
|
|
1871
1843
|
}]);
|
|
1872
1844
|
|
|
1873
1845
|
return YouTube;
|
|
1874
1846
|
}(React__default.Component);
|
|
1875
1847
|
|
|
1848
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1849
|
+
UNSTARTED: -1,
|
|
1850
|
+
ENDED: 0,
|
|
1851
|
+
PLAYING: 1,
|
|
1852
|
+
PAUSED: 2,
|
|
1853
|
+
BUFFERING: 3,
|
|
1854
|
+
CUED: 5
|
|
1855
|
+
});
|
|
1856
|
+
|
|
1876
1857
|
YouTube.propTypes = {
|
|
1877
1858
|
videoId: PropTypes.string,
|
|
1878
|
-
|
|
1879
1859
|
// custom ID for player element
|
|
1880
1860
|
id: PropTypes.string,
|
|
1881
|
-
|
|
1882
1861
|
// custom class name for player element
|
|
1883
1862
|
className: PropTypes.string,
|
|
1884
1863
|
// custom class name for player container element
|
|
1885
1864
|
containerClassName: PropTypes.string,
|
|
1886
|
-
|
|
1887
1865
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1888
1866
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1889
|
-
|
|
1890
1867
|
// event subscriptions
|
|
1891
1868
|
onReady: PropTypes.func,
|
|
1892
1869
|
onError: PropTypes.func,
|
|
@@ -1898,6 +1875,7 @@ YouTube.propTypes = {
|
|
|
1898
1875
|
onPlaybackQualityChange: PropTypes.func
|
|
1899
1876
|
};
|
|
1900
1877
|
YouTube.defaultProps = {
|
|
1878
|
+
videoId: null,
|
|
1901
1879
|
id: null,
|
|
1902
1880
|
className: null,
|
|
1903
1881
|
opts: {},
|
|
@@ -1911,14 +1889,6 @@ YouTube.defaultProps = {
|
|
|
1911
1889
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1912
1890
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1913
1891
|
};
|
|
1914
|
-
YouTube.PlayerState = {
|
|
1915
|
-
UNSTARTED: -1,
|
|
1916
|
-
ENDED: 0,
|
|
1917
|
-
PLAYING: 1,
|
|
1918
|
-
PAUSED: 2,
|
|
1919
|
-
BUFFERING: 3,
|
|
1920
|
-
CUED: 5
|
|
1921
|
-
};
|
|
1922
1892
|
|
|
1923
1893
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1924
1894
|
var url = _ref.url,
|
|
@@ -1958,7 +1928,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1958
1928
|
var queue = Math.floor(duration / 10);
|
|
1959
1929
|
var segment = Math.floor(current / queue);
|
|
1960
1930
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1961
|
-
Segment.report_video_event('Video Ready',
|
|
1931
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1962
1932
|
};
|
|
1963
1933
|
|
|
1964
1934
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1969,7 +1939,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1969
1939
|
|
|
1970
1940
|
if (!queueProgress.includes(segment)) {
|
|
1971
1941
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1972
|
-
Segment.report_video_event('Video Segment',
|
|
1942
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1973
1943
|
queueProgress.push(segment);
|
|
1974
1944
|
}
|
|
1975
1945
|
};
|
|
@@ -1983,7 +1953,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1983
1953
|
var segment = Math.floor(current / queue);
|
|
1984
1954
|
|
|
1985
1955
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1986
|
-
Segment.report_video_event('Video Play',
|
|
1956
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1987
1957
|
|
|
1988
1958
|
if (!playReported) {
|
|
1989
1959
|
setPlayReported(true);
|
|
@@ -2003,7 +1973,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2003
1973
|
var segment = Math.floor(current / queue);
|
|
2004
1974
|
|
|
2005
1975
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
2006
|
-
Segment.report_video_event('Video End',
|
|
1976
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2007
1977
|
setEndReported(true);
|
|
2008
1978
|
clearInterval(intervalID);
|
|
2009
1979
|
}
|
|
@@ -2017,7 +1987,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2017
1987
|
var segment = Math.floor(current / queue);
|
|
2018
1988
|
|
|
2019
1989
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
2020
|
-
Segment.report_video_event('Video Pause',
|
|
1990
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2021
1991
|
};
|
|
2022
1992
|
|
|
2023
1993
|
return React__default.createElement(
|
|
@@ -2206,7 +2176,7 @@ var Media = function Media(_ref) {
|
|
|
2206
2176
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2207
2177
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2208
2178
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2209
|
-
React__default.createElement('img', _extends
|
|
2179
|
+
React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2210
2180
|
)
|
|
2211
2181
|
),
|
|
2212
2182
|
caption && React__default.createElement(
|
|
@@ -2219,7 +2189,7 @@ var Media = function Media(_ref) {
|
|
|
2219
2189
|
} else if (caption && caption !== '') {
|
|
2220
2190
|
return React__default.createElement(
|
|
2221
2191
|
'a',
|
|
2222
|
-
_extends
|
|
2192
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2223
2193
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2224
2194
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2225
2195
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2275,7 +2245,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2275
2245
|
var queue = Math.floor(duration / 10);
|
|
2276
2246
|
var segment = Math.floor(current / queue);
|
|
2277
2247
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2278
|
-
Segment.report_video_event('Video Ready',
|
|
2248
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2279
2249
|
};
|
|
2280
2250
|
|
|
2281
2251
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2285,7 +2255,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2285
2255
|
var segment = Math.floor(current / queue);
|
|
2286
2256
|
if (!queueProgress.includes(segment)) {
|
|
2287
2257
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2288
|
-
Segment.report_video_event('Video Segment',
|
|
2258
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2289
2259
|
queueProgress.push(segment);
|
|
2290
2260
|
}
|
|
2291
2261
|
};
|
|
@@ -2298,7 +2268,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2298
2268
|
var queue = Math.floor(duration / 10);
|
|
2299
2269
|
var segment = Math.floor(current / queue);
|
|
2300
2270
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2301
|
-
Segment.report_video_event('Video Play',
|
|
2271
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2302
2272
|
|
|
2303
2273
|
if (!playReported) {
|
|
2304
2274
|
event.persist();
|
|
@@ -2319,7 +2289,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2319
2289
|
var segment = Math.floor(current / queue);
|
|
2320
2290
|
|
|
2321
2291
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2322
|
-
Segment.report_video_event('Video End',
|
|
2292
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2323
2293
|
setEndReported(true);
|
|
2324
2294
|
clearInterval(intervalID);
|
|
2325
2295
|
}
|
|
@@ -2332,7 +2302,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2332
2302
|
var queue = Math.floor(duration / 10);
|
|
2333
2303
|
var segment = Math.floor(current / queue);
|
|
2334
2304
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2335
|
-
Segment.report_video_event('Video Pause',
|
|
2305
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2336
2306
|
};
|
|
2337
2307
|
|
|
2338
2308
|
return React__default.createElement(
|
|
@@ -2393,7 +2363,7 @@ var Video = function Video(_ref) {
|
|
|
2393
2363
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2394
2364
|
//console.log('success:', success.ref)
|
|
2395
2365
|
var player = success.ref;
|
|
2396
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2366
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2397
2367
|
player.ima3.settings.debug = true;
|
|
2398
2368
|
if (targeting.content_placement && targeting.document_url) {
|
|
2399
2369
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2448,7 +2418,7 @@ var Video = function Video(_ref) {
|
|
|
2448
2418
|
}
|
|
2449
2419
|
|
|
2450
2420
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2451
|
-
Segment.report_video_event('Video Ready',
|
|
2421
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2452
2422
|
});
|
|
2453
2423
|
|
|
2454
2424
|
// play
|
|
@@ -2458,7 +2428,7 @@ var Video = function Video(_ref) {
|
|
|
2458
2428
|
var queue = Math.floor(duration / 10);
|
|
2459
2429
|
var segment = Math.floor(current / queue);
|
|
2460
2430
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2461
|
-
Segment.report_video_event('Video Play',
|
|
2431
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2462
2432
|
});
|
|
2463
2433
|
|
|
2464
2434
|
// pause
|
|
@@ -2468,7 +2438,7 @@ var Video = function Video(_ref) {
|
|
|
2468
2438
|
var queue = Math.floor(duration / 10);
|
|
2469
2439
|
var segment = Math.floor(current / queue);
|
|
2470
2440
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2471
|
-
Segment.report_video_event('Video Pause',
|
|
2441
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2472
2442
|
});
|
|
2473
2443
|
|
|
2474
2444
|
// end
|
|
@@ -2478,7 +2448,7 @@ var Video = function Video(_ref) {
|
|
|
2478
2448
|
var queue = Math.floor(duration / 10);
|
|
2479
2449
|
var segment = Math.floor(current / queue);
|
|
2480
2450
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2481
|
-
Segment.report_video_event('Video End',
|
|
2451
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2482
2452
|
autoplayNextVideo(evt);
|
|
2483
2453
|
});
|
|
2484
2454
|
|
|
@@ -2490,7 +2460,7 @@ var Video = function Video(_ref) {
|
|
|
2490
2460
|
var segment = Math.floor(current / queue);
|
|
2491
2461
|
if (!queueProgress.includes(segment)) {
|
|
2492
2462
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2493
|
-
Segment.report_video_event('Video Segment',
|
|
2463
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2494
2464
|
queueProgress.push(segment);
|
|
2495
2465
|
}
|
|
2496
2466
|
});
|
|
@@ -2498,20 +2468,20 @@ var Video = function Video(_ref) {
|
|
|
2498
2468
|
// ad impression
|
|
2499
2469
|
player.on('ads-ad-started', function (evt) {
|
|
2500
2470
|
var duration = player.ads.ad.duration;
|
|
2501
|
-
|
|
2471
|
+
player.ads.ad.id;
|
|
2502
2472
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2503
2473
|
|
|
2504
2474
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2505
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2475
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2506
2476
|
});
|
|
2507
2477
|
|
|
2508
2478
|
// ad ended
|
|
2509
2479
|
player.on('ads-ad-ended', function (evt) {
|
|
2510
2480
|
var duration = player.ads.ad.duration;
|
|
2511
|
-
|
|
2481
|
+
player.ads.ad.id;
|
|
2512
2482
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2513
2483
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2514
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2484
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2515
2485
|
});
|
|
2516
2486
|
};
|
|
2517
2487
|
|
|
@@ -2774,9 +2744,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2774
2744
|
});
|
|
2775
2745
|
|
|
2776
2746
|
unwrapExports(props);
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2747
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2748
|
+
props.defaultProps;
|
|
2749
|
+
props.propTypes;
|
|
2780
2750
|
|
|
2781
2751
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2782
2752
|
return isNonNullObject(value)
|
|
@@ -2941,11 +2911,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2941
2911
|
|
|
2942
2912
|
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; }
|
|
2943
2913
|
|
|
2944
|
-
function
|
|
2914
|
+
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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2915
|
+
|
|
2916
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2917
|
+
|
|
2918
|
+
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."); }
|
|
2919
|
+
|
|
2920
|
+
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); }
|
|
2945
2921
|
|
|
2946
|
-
function
|
|
2922
|
+
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; }
|
|
2947
2923
|
|
|
2948
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
2924
|
+
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; }
|
|
2949
2925
|
|
|
2950
2926
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2951
2927
|
|
|
@@ -3075,12 +3051,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3075
3051
|
|
|
3076
3052
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3077
3053
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3078
|
-
|
|
3079
|
-
var
|
|
3080
|
-
|
|
3054
|
+
|
|
3055
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3056
|
+
_step;
|
|
3081
3057
|
|
|
3082
3058
|
try {
|
|
3083
|
-
for (
|
|
3059
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3084
3060
|
var p = _step.value;
|
|
3085
3061
|
|
|
3086
3062
|
if (props$1[p]) {
|
|
@@ -3095,18 +3071,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3095
3071
|
}
|
|
3096
3072
|
}
|
|
3097
3073
|
} catch (err) {
|
|
3098
|
-
|
|
3099
|
-
_iteratorError = err;
|
|
3074
|
+
_iterator.e(err);
|
|
3100
3075
|
} finally {
|
|
3101
|
-
|
|
3102
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3103
|
-
_iterator["return"]();
|
|
3104
|
-
}
|
|
3105
|
-
} finally {
|
|
3106
|
-
if (_didIteratorError) {
|
|
3107
|
-
throw _iteratorError;
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3076
|
+
_iterator.f();
|
|
3110
3077
|
}
|
|
3111
3078
|
|
|
3112
3079
|
return config;
|
|
@@ -3214,17 +3181,17 @@ function isMediaStream(url) {
|
|
|
3214
3181
|
});
|
|
3215
3182
|
|
|
3216
3183
|
unwrapExports(utils);
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3184
|
+
utils.parseStartTime;
|
|
3185
|
+
utils.parseEndTime;
|
|
3186
|
+
utils.randomString;
|
|
3187
|
+
utils.queryString;
|
|
3188
|
+
utils.getSDK;
|
|
3189
|
+
utils.getConfig;
|
|
3190
|
+
utils.omit;
|
|
3191
|
+
utils.callPlayer;
|
|
3192
|
+
utils.isObject;
|
|
3193
|
+
utils.isEqual;
|
|
3194
|
+
utils.isMediaStream;
|
|
3228
3195
|
|
|
3229
3196
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3230
3197
|
|
|
@@ -3253,12 +3220,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3253
3220
|
|
|
3254
3221
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3255
3222
|
|
|
3256
|
-
function
|
|
3223
|
+
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); }; }
|
|
3257
3224
|
|
|
3258
|
-
function
|
|
3225
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3259
3226
|
|
|
3260
3227
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3261
3228
|
|
|
3229
|
+
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; } }
|
|
3230
|
+
|
|
3231
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3232
|
+
|
|
3262
3233
|
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); }
|
|
3263
3234
|
|
|
3264
3235
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3267,14 +3238,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3267
3238
|
|
|
3268
3239
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3269
3240
|
|
|
3270
|
-
var Player =
|
|
3271
|
-
/*#__PURE__*/
|
|
3272
|
-
function (_Component) {
|
|
3241
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3273
3242
|
_inherits(Player, _Component);
|
|
3274
3243
|
|
|
3275
|
-
|
|
3276
|
-
var _getPrototypeOf2;
|
|
3244
|
+
var _super = _createSuper(Player);
|
|
3277
3245
|
|
|
3246
|
+
function Player() {
|
|
3278
3247
|
var _this;
|
|
3279
3248
|
|
|
3280
3249
|
_classCallCheck(this, Player);
|
|
@@ -3283,7 +3252,7 @@ function (_Component) {
|
|
|
3283
3252
|
_args[_key] = arguments[_key];
|
|
3284
3253
|
}
|
|
3285
3254
|
|
|
3286
|
-
_this =
|
|
3255
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3287
3256
|
|
|
3288
3257
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3289
3258
|
|
|
@@ -3608,7 +3577,7 @@ function (_Component) {
|
|
|
3608
3577
|
return null;
|
|
3609
3578
|
}
|
|
3610
3579
|
|
|
3611
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3580
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3612
3581
|
ref: this.ref,
|
|
3613
3582
|
onReady: this.handleReady,
|
|
3614
3583
|
onPlay: this.handlePlay,
|
|
@@ -3669,12 +3638,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3669
3638
|
|
|
3670
3639
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3671
3640
|
|
|
3672
|
-
function
|
|
3641
|
+
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); }; }
|
|
3673
3642
|
|
|
3674
|
-
function
|
|
3643
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3675
3644
|
|
|
3676
3645
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3677
3646
|
|
|
3647
|
+
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; } }
|
|
3648
|
+
|
|
3649
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3650
|
+
|
|
3678
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); }
|
|
3679
3652
|
|
|
3680
3653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3686,14 +3659,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3686
3659
|
function createSinglePlayer(activePlayer) {
|
|
3687
3660
|
var _class, _temp;
|
|
3688
3661
|
|
|
3689
|
-
return _temp = _class =
|
|
3690
|
-
/*#__PURE__*/
|
|
3691
|
-
function (_Component) {
|
|
3662
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3692
3663
|
_inherits(SinglePlayer, _Component);
|
|
3693
3664
|
|
|
3694
|
-
|
|
3695
|
-
var _getPrototypeOf2;
|
|
3665
|
+
var _super = _createSuper(SinglePlayer);
|
|
3696
3666
|
|
|
3667
|
+
function SinglePlayer() {
|
|
3697
3668
|
var _this;
|
|
3698
3669
|
|
|
3699
3670
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3702,7 +3673,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3702
3673
|
args[_key] = arguments[_key];
|
|
3703
3674
|
}
|
|
3704
3675
|
|
|
3705
|
-
_this =
|
|
3676
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3706
3677
|
|
|
3707
3678
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3708
3679
|
|
|
@@ -3770,12 +3741,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3770
3741
|
height = _this$props.height,
|
|
3771
3742
|
Wrapper = _this$props.wrapper;
|
|
3772
3743
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3773
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3744
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3774
3745
|
style: _objectSpread({}, style, {
|
|
3775
3746
|
width: width,
|
|
3776
3747
|
height: height
|
|
3777
3748
|
})
|
|
3778
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3749
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3779
3750
|
ref: this.ref,
|
|
3780
3751
|
activePlayer: activePlayer,
|
|
3781
3752
|
config: this.config
|
|
@@ -3821,23 +3792,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3821
3792
|
|
|
3822
3793
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3823
3794
|
|
|
3824
|
-
function
|
|
3795
|
+
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); }; }
|
|
3825
3796
|
|
|
3826
|
-
function
|
|
3797
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3827
3798
|
|
|
3828
3799
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3829
3800
|
|
|
3801
|
+
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; } }
|
|
3802
|
+
|
|
3803
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3804
|
+
|
|
3830
3805
|
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); }
|
|
3831
3806
|
|
|
3832
3807
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3833
3808
|
|
|
3834
3809
|
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; }
|
|
3835
3810
|
|
|
3836
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3811
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3837
3812
|
|
|
3838
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3813
|
+
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."); }
|
|
3839
3814
|
|
|
3840
|
-
function
|
|
3815
|
+
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); }
|
|
3816
|
+
|
|
3817
|
+
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; }
|
|
3818
|
+
|
|
3819
|
+
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; }
|
|
3841
3820
|
|
|
3842
3821
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3843
3822
|
|
|
@@ -3862,14 +3841,12 @@ function parsePlaylist(url) {
|
|
|
3862
3841
|
return {};
|
|
3863
3842
|
}
|
|
3864
3843
|
|
|
3865
|
-
var YouTube =
|
|
3866
|
-
/*#__PURE__*/
|
|
3867
|
-
function (_Component) {
|
|
3844
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3868
3845
|
_inherits(YouTube, _Component);
|
|
3869
3846
|
|
|
3870
|
-
|
|
3871
|
-
var _getPrototypeOf2;
|
|
3847
|
+
var _super = _createSuper(YouTube);
|
|
3872
3848
|
|
|
3849
|
+
function YouTube() {
|
|
3873
3850
|
var _this;
|
|
3874
3851
|
|
|
3875
3852
|
_classCallCheck(this, YouTube);
|
|
@@ -3878,7 +3855,7 @@ function (_Component) {
|
|
|
3878
3855
|
args[_key] = arguments[_key];
|
|
3879
3856
|
}
|
|
3880
3857
|
|
|
3881
|
-
_this =
|
|
3858
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3882
3859
|
|
|
3883
3860
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3884
3861
|
|
|
@@ -4066,9 +4043,9 @@ function (_Component) {
|
|
|
4066
4043
|
height: '100%',
|
|
4067
4044
|
display: display
|
|
4068
4045
|
};
|
|
4069
|
-
return _react["default"].createElement("div", {
|
|
4046
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4070
4047
|
style: style
|
|
4071
|
-
}, _react["default"].createElement("div", {
|
|
4048
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4072
4049
|
ref: this.ref
|
|
4073
4050
|
}));
|
|
4074
4051
|
}
|
|
@@ -4091,7 +4068,7 @@ exports["default"] = _default;
|
|
|
4091
4068
|
});
|
|
4092
4069
|
|
|
4093
4070
|
unwrapExports(YouTube_1);
|
|
4094
|
-
|
|
4071
|
+
YouTube_1.YouTube;
|
|
4095
4072
|
|
|
4096
4073
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4097
4074
|
|
|
@@ -4124,12 +4101,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4124
4101
|
|
|
4125
4102
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4126
4103
|
|
|
4127
|
-
function
|
|
4104
|
+
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); }; }
|
|
4128
4105
|
|
|
4129
|
-
function
|
|
4106
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4130
4107
|
|
|
4131
4108
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4132
4109
|
|
|
4110
|
+
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; } }
|
|
4111
|
+
|
|
4112
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4113
|
+
|
|
4133
4114
|
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); }
|
|
4134
4115
|
|
|
4135
4116
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4138,16 +4119,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4138
4119
|
|
|
4139
4120
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4140
4121
|
var SDK_GLOBAL = 'SC';
|
|
4141
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4122
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4142
4123
|
|
|
4143
|
-
var SoundCloud =
|
|
4144
|
-
/*#__PURE__*/
|
|
4145
|
-
function (_Component) {
|
|
4124
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4146
4125
|
_inherits(SoundCloud, _Component);
|
|
4147
4126
|
|
|
4148
|
-
|
|
4149
|
-
var _getPrototypeOf2;
|
|
4127
|
+
var _super = _createSuper(SoundCloud);
|
|
4150
4128
|
|
|
4129
|
+
function SoundCloud() {
|
|
4151
4130
|
var _this;
|
|
4152
4131
|
|
|
4153
4132
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4156,7 +4135,7 @@ function (_Component) {
|
|
|
4156
4135
|
args[_key] = arguments[_key];
|
|
4157
4136
|
}
|
|
4158
4137
|
|
|
4159
|
-
_this =
|
|
4138
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4160
4139
|
|
|
4161
4140
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4162
4141
|
|
|
@@ -4277,7 +4256,7 @@ function (_Component) {
|
|
|
4277
4256
|
height: '100%',
|
|
4278
4257
|
display: display
|
|
4279
4258
|
};
|
|
4280
|
-
return _react["default"].createElement("iframe", {
|
|
4259
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4281
4260
|
ref: this.ref,
|
|
4282
4261
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4283
4262
|
style: style,
|
|
@@ -4306,7 +4285,7 @@ exports["default"] = _default;
|
|
|
4306
4285
|
});
|
|
4307
4286
|
|
|
4308
4287
|
unwrapExports(SoundCloud_1);
|
|
4309
|
-
|
|
4288
|
+
SoundCloud_1.SoundCloud;
|
|
4310
4289
|
|
|
4311
4290
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4312
4291
|
|
|
@@ -4339,12 +4318,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4339
4318
|
|
|
4340
4319
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4341
4320
|
|
|
4342
|
-
function
|
|
4321
|
+
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); }; }
|
|
4343
4322
|
|
|
4344
|
-
function
|
|
4323
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4345
4324
|
|
|
4346
4325
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4347
4326
|
|
|
4327
|
+
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; } }
|
|
4328
|
+
|
|
4329
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4330
|
+
|
|
4348
4331
|
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); }
|
|
4349
4332
|
|
|
4350
4333
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4356,14 +4339,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4356
4339
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4357
4340
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4358
4341
|
|
|
4359
|
-
var Vimeo =
|
|
4360
|
-
/*#__PURE__*/
|
|
4361
|
-
function (_Component) {
|
|
4342
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4362
4343
|
_inherits(Vimeo, _Component);
|
|
4363
4344
|
|
|
4364
|
-
|
|
4365
|
-
var _getPrototypeOf2;
|
|
4345
|
+
var _super = _createSuper(Vimeo);
|
|
4366
4346
|
|
|
4347
|
+
function Vimeo() {
|
|
4367
4348
|
var _this;
|
|
4368
4349
|
|
|
4369
4350
|
_classCallCheck(this, Vimeo);
|
|
@@ -4372,7 +4353,7 @@ function (_Component) {
|
|
|
4372
4353
|
args[_key] = arguments[_key];
|
|
4373
4354
|
}
|
|
4374
4355
|
|
|
4375
|
-
_this =
|
|
4356
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4376
4357
|
|
|
4377
4358
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4378
4359
|
|
|
@@ -4529,7 +4510,7 @@ function (_Component) {
|
|
|
4529
4510
|
overflow: 'hidden',
|
|
4530
4511
|
display: display
|
|
4531
4512
|
};
|
|
4532
|
-
return _react["default"].createElement("div", {
|
|
4513
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4533
4514
|
key: this.props.url,
|
|
4534
4515
|
ref: this.ref,
|
|
4535
4516
|
style: style
|
|
@@ -4560,7 +4541,7 @@ exports["default"] = _default;
|
|
|
4560
4541
|
});
|
|
4561
4542
|
|
|
4562
4543
|
unwrapExports(Vimeo_1);
|
|
4563
|
-
|
|
4544
|
+
Vimeo_1.Vimeo;
|
|
4564
4545
|
|
|
4565
4546
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4566
4547
|
|
|
@@ -4589,12 +4570,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4589
4570
|
|
|
4590
4571
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4591
4572
|
|
|
4592
|
-
function
|
|
4573
|
+
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); }; }
|
|
4593
4574
|
|
|
4594
|
-
function
|
|
4575
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4595
4576
|
|
|
4596
4577
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4597
4578
|
|
|
4579
|
+
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; } }
|
|
4580
|
+
|
|
4581
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4582
|
+
|
|
4598
4583
|
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); }
|
|
4599
4584
|
|
|
4600
4585
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4607,14 +4592,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4607
4592
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4608
4593
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4609
4594
|
|
|
4610
|
-
var Facebook =
|
|
4611
|
-
/*#__PURE__*/
|
|
4612
|
-
function (_Component) {
|
|
4595
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4613
4596
|
_inherits(Facebook, _Component);
|
|
4614
4597
|
|
|
4615
|
-
|
|
4616
|
-
var _getPrototypeOf2;
|
|
4598
|
+
var _super = _createSuper(Facebook);
|
|
4617
4599
|
|
|
4600
|
+
function Facebook() {
|
|
4618
4601
|
var _this;
|
|
4619
4602
|
|
|
4620
4603
|
_classCallCheck(this, Facebook);
|
|
@@ -4623,7 +4606,7 @@ function (_Component) {
|
|
|
4623
4606
|
args[_key] = arguments[_key];
|
|
4624
4607
|
}
|
|
4625
4608
|
|
|
4626
|
-
_this =
|
|
4609
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4627
4610
|
|
|
4628
4611
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4629
4612
|
|
|
@@ -4739,7 +4722,7 @@ function (_Component) {
|
|
|
4739
4722
|
width: '100%',
|
|
4740
4723
|
height: '100%'
|
|
4741
4724
|
};
|
|
4742
|
-
return _react["default"].createElement("div", {
|
|
4725
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4743
4726
|
style: style,
|
|
4744
4727
|
id: this.playerID,
|
|
4745
4728
|
className: "fb-video",
|
|
@@ -4770,7 +4753,7 @@ exports["default"] = _default;
|
|
|
4770
4753
|
});
|
|
4771
4754
|
|
|
4772
4755
|
unwrapExports(Facebook_1);
|
|
4773
|
-
|
|
4756
|
+
Facebook_1.Facebook;
|
|
4774
4757
|
|
|
4775
4758
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4776
4759
|
|
|
@@ -4799,12 +4782,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4799
4782
|
|
|
4800
4783
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4801
4784
|
|
|
4802
|
-
function
|
|
4785
|
+
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); }; }
|
|
4803
4786
|
|
|
4804
|
-
function
|
|
4787
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4805
4788
|
|
|
4806
4789
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4807
4790
|
|
|
4791
|
+
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; } }
|
|
4792
|
+
|
|
4793
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4794
|
+
|
|
4808
4795
|
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); }
|
|
4809
4796
|
|
|
4810
4797
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4815,14 +4802,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4815
4802
|
var SDK_GLOBAL = 'playerjs';
|
|
4816
4803
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4817
4804
|
|
|
4818
|
-
var Streamable =
|
|
4819
|
-
/*#__PURE__*/
|
|
4820
|
-
function (_Component) {
|
|
4805
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4821
4806
|
_inherits(Streamable, _Component);
|
|
4822
4807
|
|
|
4823
|
-
|
|
4824
|
-
var _getPrototypeOf2;
|
|
4808
|
+
var _super = _createSuper(Streamable);
|
|
4825
4809
|
|
|
4810
|
+
function Streamable() {
|
|
4826
4811
|
var _this;
|
|
4827
4812
|
|
|
4828
4813
|
_classCallCheck(this, Streamable);
|
|
@@ -4831,7 +4816,7 @@ function (_Component) {
|
|
|
4831
4816
|
args[_key] = arguments[_key];
|
|
4832
4817
|
}
|
|
4833
4818
|
|
|
4834
|
-
_this =
|
|
4819
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4835
4820
|
|
|
4836
4821
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4837
4822
|
|
|
@@ -4951,7 +4936,7 @@ function (_Component) {
|
|
|
4951
4936
|
width: '100%',
|
|
4952
4937
|
height: '100%'
|
|
4953
4938
|
};
|
|
4954
|
-
return _react["default"].createElement("iframe", {
|
|
4939
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4955
4940
|
ref: this.ref,
|
|
4956
4941
|
src: "https://streamable.com/o/".concat(id),
|
|
4957
4942
|
frameBorder: "0",
|
|
@@ -4979,7 +4964,7 @@ exports["default"] = _default;
|
|
|
4979
4964
|
});
|
|
4980
4965
|
|
|
4981
4966
|
unwrapExports(Streamable_1);
|
|
4982
|
-
|
|
4967
|
+
Streamable_1.Streamable;
|
|
4983
4968
|
|
|
4984
4969
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4985
4970
|
|
|
@@ -5012,12 +4997,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5012
4997
|
|
|
5013
4998
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5014
4999
|
|
|
5015
|
-
function
|
|
5000
|
+
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); }; }
|
|
5016
5001
|
|
|
5017
|
-
function
|
|
5002
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5018
5003
|
|
|
5019
5004
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5020
5005
|
|
|
5006
|
+
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; } }
|
|
5007
|
+
|
|
5008
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5009
|
+
|
|
5021
5010
|
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); }
|
|
5022
5011
|
|
|
5023
5012
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5028,26 +5017,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5028
5017
|
var SDK_GLOBAL = 'Wistia';
|
|
5029
5018
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5030
5019
|
|
|
5031
|
-
var Wistia =
|
|
5032
|
-
/*#__PURE__*/
|
|
5033
|
-
function (_Component) {
|
|
5020
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
5034
5021
|
_inherits(Wistia, _Component);
|
|
5035
5022
|
|
|
5036
|
-
|
|
5037
|
-
var _getPrototypeOf2;
|
|
5023
|
+
var _super = _createSuper(Wistia);
|
|
5038
5024
|
|
|
5025
|
+
function Wistia() {
|
|
5039
5026
|
var _this;
|
|
5040
5027
|
|
|
5041
5028
|
_classCallCheck(this, Wistia);
|
|
5042
5029
|
|
|
5043
|
-
for (var _len = arguments.length,
|
|
5044
|
-
|
|
5030
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5031
|
+
_args[_key] = arguments[_key];
|
|
5045
5032
|
}
|
|
5046
5033
|
|
|
5047
|
-
_this =
|
|
5034
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5048
5035
|
|
|
5049
5036
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5050
5037
|
|
|
5038
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5039
|
+
var _this$props;
|
|
5040
|
+
|
|
5041
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5042
|
+
});
|
|
5043
|
+
|
|
5044
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5045
|
+
var _this$props2;
|
|
5046
|
+
|
|
5047
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5048
|
+
});
|
|
5049
|
+
|
|
5050
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5051
|
+
var _this$props3;
|
|
5052
|
+
|
|
5053
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5054
|
+
});
|
|
5055
|
+
|
|
5056
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5057
|
+
var _this$props4;
|
|
5058
|
+
|
|
5059
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5060
|
+
});
|
|
5061
|
+
|
|
5051
5062
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5052
5063
|
_this.callPlayer('mute');
|
|
5053
5064
|
});
|
|
@@ -5069,17 +5080,13 @@ function (_Component) {
|
|
|
5069
5080
|
value: function load(url) {
|
|
5070
5081
|
var _this2 = this;
|
|
5071
5082
|
|
|
5072
|
-
var _this$
|
|
5073
|
-
playing = _this$
|
|
5074
|
-
muted = _this$
|
|
5075
|
-
controls = _this$
|
|
5076
|
-
_onReady = _this$
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
onSeek = _this$props.onSeek,
|
|
5080
|
-
onEnded = _this$props.onEnded,
|
|
5081
|
-
config = _this$props.config,
|
|
5082
|
-
onError = _this$props.onError;
|
|
5083
|
+
var _this$props5 = this.props,
|
|
5084
|
+
playing = _this$props5.playing,
|
|
5085
|
+
muted = _this$props5.muted,
|
|
5086
|
+
controls = _this$props5.controls,
|
|
5087
|
+
_onReady = _this$props5.onReady,
|
|
5088
|
+
config = _this$props5.config,
|
|
5089
|
+
onError = _this$props5.onError;
|
|
5083
5090
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5084
5091
|
window._wq = window._wq || [];
|
|
5085
5092
|
|
|
@@ -5096,19 +5103,28 @@ function (_Component) {
|
|
|
5096
5103
|
|
|
5097
5104
|
_this2.unbind();
|
|
5098
5105
|
|
|
5099
|
-
_this2.player.bind('play', onPlay);
|
|
5106
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5100
5107
|
|
|
5101
|
-
_this2.player.bind('pause', onPause);
|
|
5108
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5102
5109
|
|
|
5103
|
-
_this2.player.bind('seek', onSeek);
|
|
5110
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5104
5111
|
|
|
5105
|
-
_this2.player.bind('end', onEnded);
|
|
5112
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5106
5113
|
|
|
5107
5114
|
_onReady();
|
|
5108
5115
|
}
|
|
5109
5116
|
});
|
|
5110
5117
|
}, onError);
|
|
5111
5118
|
}
|
|
5119
|
+
}, {
|
|
5120
|
+
key: "unbind",
|
|
5121
|
+
value: function unbind() {
|
|
5122
|
+
this.player.unbind('play', this.onPlay);
|
|
5123
|
+
this.player.unbind('pause', this.onPause);
|
|
5124
|
+
this.player.unbind('seek', this.onSeek);
|
|
5125
|
+
this.player.unbind('end', this.onEnded);
|
|
5126
|
+
} // Proxy methods to prevent listener leaks
|
|
5127
|
+
|
|
5112
5128
|
}, {
|
|
5113
5129
|
key: "play",
|
|
5114
5130
|
value: function play() {
|
|
@@ -5119,19 +5135,6 @@ function (_Component) {
|
|
|
5119
5135
|
value: function pause() {
|
|
5120
5136
|
this.callPlayer('pause');
|
|
5121
5137
|
}
|
|
5122
|
-
}, {
|
|
5123
|
-
key: "unbind",
|
|
5124
|
-
value: function unbind() {
|
|
5125
|
-
var _this$props2 = this.props,
|
|
5126
|
-
onPlay = _this$props2.onPlay,
|
|
5127
|
-
onPause = _this$props2.onPause,
|
|
5128
|
-
onSeek = _this$props2.onSeek,
|
|
5129
|
-
onEnded = _this$props2.onEnded;
|
|
5130
|
-
this.player.unbind('play', onPlay);
|
|
5131
|
-
this.player.unbind('pause', onPause);
|
|
5132
|
-
this.player.unbind('seek', onSeek);
|
|
5133
|
-
this.player.unbind('end', onEnded);
|
|
5134
|
-
}
|
|
5135
5138
|
}, {
|
|
5136
5139
|
key: "stop",
|
|
5137
5140
|
value: function stop() {
|
|
@@ -5177,7 +5180,7 @@ function (_Component) {
|
|
|
5177
5180
|
width: '100%',
|
|
5178
5181
|
height: '100%'
|
|
5179
5182
|
};
|
|
5180
|
-
return _react["default"].createElement("div", {
|
|
5183
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5181
5184
|
key: id,
|
|
5182
5185
|
className: className,
|
|
5183
5186
|
style: style
|
|
@@ -5204,7 +5207,7 @@ exports["default"] = _default;
|
|
|
5204
5207
|
});
|
|
5205
5208
|
|
|
5206
5209
|
unwrapExports(Wistia_1);
|
|
5207
|
-
|
|
5210
|
+
Wistia_1.Wistia;
|
|
5208
5211
|
|
|
5209
5212
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5210
5213
|
|
|
@@ -5237,12 +5240,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5237
5240
|
|
|
5238
5241
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5239
5242
|
|
|
5240
|
-
function
|
|
5243
|
+
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); }; }
|
|
5241
5244
|
|
|
5242
|
-
function
|
|
5245
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5243
5246
|
|
|
5244
5247
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5245
5248
|
|
|
5249
|
+
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; } }
|
|
5250
|
+
|
|
5251
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5252
|
+
|
|
5246
5253
|
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); }
|
|
5247
5254
|
|
|
5248
5255
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5255,14 +5262,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5255
5262
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5256
5263
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5257
5264
|
|
|
5258
|
-
var Twitch =
|
|
5259
|
-
/*#__PURE__*/
|
|
5260
|
-
function (_Component) {
|
|
5265
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5261
5266
|
_inherits(Twitch, _Component);
|
|
5262
5267
|
|
|
5263
|
-
|
|
5264
|
-
var _getPrototypeOf2;
|
|
5268
|
+
var _super = _createSuper(Twitch);
|
|
5265
5269
|
|
|
5270
|
+
function Twitch() {
|
|
5266
5271
|
var _this;
|
|
5267
5272
|
|
|
5268
5273
|
_classCallCheck(this, Twitch);
|
|
@@ -5271,7 +5276,7 @@ function (_Component) {
|
|
|
5271
5276
|
args[_key] = arguments[_key];
|
|
5272
5277
|
}
|
|
5273
5278
|
|
|
5274
|
-
_this =
|
|
5279
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5275
5280
|
|
|
5276
5281
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5277
5282
|
|
|
@@ -5392,7 +5397,7 @@ function (_Component) {
|
|
|
5392
5397
|
width: '100%',
|
|
5393
5398
|
height: '100%'
|
|
5394
5399
|
};
|
|
5395
|
-
return _react["default"].createElement("div", {
|
|
5400
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5396
5401
|
style: style,
|
|
5397
5402
|
id: this.playerID
|
|
5398
5403
|
});
|
|
@@ -5418,7 +5423,7 @@ exports["default"] = _default;
|
|
|
5418
5423
|
});
|
|
5419
5424
|
|
|
5420
5425
|
unwrapExports(Twitch_1);
|
|
5421
|
-
|
|
5426
|
+
Twitch_1.Twitch;
|
|
5422
5427
|
|
|
5423
5428
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5424
5429
|
|
|
@@ -5445,11 +5450,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5445
5450
|
|
|
5446
5451
|
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; }
|
|
5447
5452
|
|
|
5448
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5453
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5454
|
+
|
|
5455
|
+
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."); }
|
|
5456
|
+
|
|
5457
|
+
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); }
|
|
5449
5458
|
|
|
5450
|
-
function
|
|
5459
|
+
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; }
|
|
5451
5460
|
|
|
5452
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5461
|
+
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; }
|
|
5453
5462
|
|
|
5454
5463
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5455
5464
|
|
|
@@ -5459,12 +5468,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5459
5468
|
|
|
5460
5469
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5461
5470
|
|
|
5462
|
-
function
|
|
5471
|
+
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); }; }
|
|
5463
5472
|
|
|
5464
|
-
function
|
|
5473
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5465
5474
|
|
|
5466
5475
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5467
5476
|
|
|
5477
|
+
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; } }
|
|
5478
|
+
|
|
5479
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5480
|
+
|
|
5468
5481
|
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); }
|
|
5469
5482
|
|
|
5470
5483
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5476,14 +5489,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5476
5489
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5477
5490
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5478
5491
|
|
|
5479
|
-
var DailyMotion =
|
|
5480
|
-
/*#__PURE__*/
|
|
5481
|
-
function (_Component) {
|
|
5492
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5482
5493
|
_inherits(DailyMotion, _Component);
|
|
5483
5494
|
|
|
5484
|
-
|
|
5485
|
-
var _getPrototypeOf2;
|
|
5495
|
+
var _super = _createSuper(DailyMotion);
|
|
5486
5496
|
|
|
5497
|
+
function DailyMotion() {
|
|
5487
5498
|
var _this;
|
|
5488
5499
|
|
|
5489
5500
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5492,7 +5503,7 @@ function (_Component) {
|
|
|
5492
5503
|
args[_key] = arguments[_key];
|
|
5493
5504
|
}
|
|
5494
5505
|
|
|
5495
|
-
_this =
|
|
5506
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5496
5507
|
|
|
5497
5508
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5498
5509
|
|
|
@@ -5621,9 +5632,9 @@ function (_Component) {
|
|
|
5621
5632
|
height: '100%',
|
|
5622
5633
|
display: display
|
|
5623
5634
|
};
|
|
5624
|
-
return _react["default"].createElement("div", {
|
|
5635
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5625
5636
|
style: style
|
|
5626
|
-
}, _react["default"].createElement("div", {
|
|
5637
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5627
5638
|
ref: this.ref
|
|
5628
5639
|
}));
|
|
5629
5640
|
}
|
|
@@ -5648,7 +5659,7 @@ exports["default"] = _default;
|
|
|
5648
5659
|
});
|
|
5649
5660
|
|
|
5650
5661
|
unwrapExports(DailyMotion_1);
|
|
5651
|
-
|
|
5662
|
+
DailyMotion_1.DailyMotion;
|
|
5652
5663
|
|
|
5653
5664
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5654
5665
|
|
|
@@ -5681,12 +5692,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5681
5692
|
|
|
5682
5693
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5683
5694
|
|
|
5684
|
-
function
|
|
5695
|
+
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); }; }
|
|
5685
5696
|
|
|
5686
|
-
function
|
|
5697
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5687
5698
|
|
|
5688
5699
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5689
5700
|
|
|
5701
|
+
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; } }
|
|
5702
|
+
|
|
5703
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5704
|
+
|
|
5690
5705
|
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); }
|
|
5691
5706
|
|
|
5692
5707
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5697,14 +5712,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5697
5712
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5698
5713
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5699
5714
|
|
|
5700
|
-
var Mixcloud =
|
|
5701
|
-
/*#__PURE__*/
|
|
5702
|
-
function (_Component) {
|
|
5715
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5703
5716
|
_inherits(Mixcloud, _Component);
|
|
5704
5717
|
|
|
5705
|
-
|
|
5706
|
-
var _getPrototypeOf2;
|
|
5718
|
+
var _super = _createSuper(Mixcloud);
|
|
5707
5719
|
|
|
5720
|
+
function Mixcloud() {
|
|
5708
5721
|
var _this;
|
|
5709
5722
|
|
|
5710
5723
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5713,7 +5726,7 @@ function (_Component) {
|
|
|
5713
5726
|
args[_key] = arguments[_key];
|
|
5714
5727
|
}
|
|
5715
5728
|
|
|
5716
|
-
_this =
|
|
5729
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5717
5730
|
|
|
5718
5731
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5719
5732
|
|
|
@@ -5816,7 +5829,7 @@ function (_Component) {
|
|
|
5816
5829
|
})); // We have to give the iframe a key here to prevent a
|
|
5817
5830
|
// weird dialog appearing when loading a new track
|
|
5818
5831
|
|
|
5819
|
-
return _react["default"].createElement("iframe", {
|
|
5832
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5820
5833
|
key: id,
|
|
5821
5834
|
ref: this.ref,
|
|
5822
5835
|
style: style,
|
|
@@ -5845,7 +5858,7 @@ exports["default"] = _default;
|
|
|
5845
5858
|
});
|
|
5846
5859
|
|
|
5847
5860
|
unwrapExports(Mixcloud_1);
|
|
5848
|
-
|
|
5861
|
+
Mixcloud_1.Mixcloud;
|
|
5849
5862
|
|
|
5850
5863
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5851
5864
|
|
|
@@ -5876,23 +5889,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5876
5889
|
|
|
5877
5890
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5878
5891
|
|
|
5879
|
-
function
|
|
5892
|
+
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); }; }
|
|
5880
5893
|
|
|
5881
|
-
function
|
|
5894
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5882
5895
|
|
|
5883
5896
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5884
5897
|
|
|
5898
|
+
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; } }
|
|
5899
|
+
|
|
5900
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5901
|
+
|
|
5885
5902
|
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); }
|
|
5886
5903
|
|
|
5887
5904
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5888
5905
|
|
|
5889
5906
|
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; }
|
|
5890
5907
|
|
|
5908
|
+
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; } } }; }
|
|
5909
|
+
|
|
5910
|
+
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); }
|
|
5911
|
+
|
|
5912
|
+
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; }
|
|
5913
|
+
|
|
5891
5914
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5892
5915
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5893
5916
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5894
5917
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5895
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5918
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5896
5919
|
var HLS_GLOBAL = 'Hls';
|
|
5897
5920
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5898
5921
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5901,12 +5924,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5901
5924
|
|
|
5902
5925
|
function canPlay(url) {
|
|
5903
5926
|
if (url instanceof Array) {
|
|
5904
|
-
var
|
|
5905
|
-
|
|
5906
|
-
var _iteratorError = undefined;
|
|
5927
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5928
|
+
_step;
|
|
5907
5929
|
|
|
5908
5930
|
try {
|
|
5909
|
-
for (
|
|
5931
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5910
5932
|
var item = _step.value;
|
|
5911
5933
|
|
|
5912
5934
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5918,18 +5940,9 @@ function canPlay(url) {
|
|
|
5918
5940
|
}
|
|
5919
5941
|
}
|
|
5920
5942
|
} catch (err) {
|
|
5921
|
-
|
|
5922
|
-
_iteratorError = err;
|
|
5943
|
+
_iterator.e(err);
|
|
5923
5944
|
} finally {
|
|
5924
|
-
|
|
5925
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5926
|
-
_iterator["return"]();
|
|
5927
|
-
}
|
|
5928
|
-
} finally {
|
|
5929
|
-
if (_didIteratorError) {
|
|
5930
|
-
throw _iteratorError;
|
|
5931
|
-
}
|
|
5932
|
-
}
|
|
5945
|
+
_iterator.f();
|
|
5933
5946
|
}
|
|
5934
5947
|
|
|
5935
5948
|
return false;
|
|
@@ -5953,14 +5966,12 @@ function canEnablePIP(url) {
|
|
|
5953
5966
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5954
5967
|
}
|
|
5955
5968
|
|
|
5956
|
-
var FilePlayer =
|
|
5957
|
-
/*#__PURE__*/
|
|
5958
|
-
function (_Component) {
|
|
5969
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5959
5970
|
_inherits(FilePlayer, _Component);
|
|
5960
5971
|
|
|
5961
|
-
|
|
5962
|
-
var _getPrototypeOf2;
|
|
5972
|
+
var _super = _createSuper(FilePlayer);
|
|
5963
5973
|
|
|
5974
|
+
function FilePlayer() {
|
|
5964
5975
|
var _this;
|
|
5965
5976
|
|
|
5966
5977
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5969,7 +5980,7 @@ function (_Component) {
|
|
|
5969
5980
|
_args[_key] = arguments[_key];
|
|
5970
5981
|
}
|
|
5971
5982
|
|
|
5972
|
-
_this =
|
|
5983
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5973
5984
|
|
|
5974
5985
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5975
5986
|
var _this$props;
|
|
@@ -6056,19 +6067,19 @@ function (_Component) {
|
|
|
6056
6067
|
|
|
6057
6068
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6058
6069
|
if (typeof source === 'string') {
|
|
6059
|
-
return _react["default"].createElement("source", {
|
|
6070
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6060
6071
|
key: index,
|
|
6061
6072
|
src: source
|
|
6062
6073
|
});
|
|
6063
6074
|
}
|
|
6064
6075
|
|
|
6065
|
-
return _react["default"].createElement("source", _extends({
|
|
6076
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6066
6077
|
key: index
|
|
6067
6078
|
}, source));
|
|
6068
6079
|
});
|
|
6069
6080
|
|
|
6070
6081
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6071
|
-
return _react["default"].createElement("track", _extends({
|
|
6082
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6072
6083
|
key: index
|
|
6073
6084
|
}, track));
|
|
6074
6085
|
});
|
|
@@ -6106,6 +6117,10 @@ function (_Component) {
|
|
|
6106
6117
|
key: "componentWillUnmount",
|
|
6107
6118
|
value: function componentWillUnmount() {
|
|
6108
6119
|
this.removeListeners(this.player);
|
|
6120
|
+
|
|
6121
|
+
if (this.hls) {
|
|
6122
|
+
this.hls.destroy();
|
|
6123
|
+
}
|
|
6109
6124
|
}
|
|
6110
6125
|
}, {
|
|
6111
6126
|
key: "addListeners",
|
|
@@ -6236,10 +6251,6 @@ function (_Component) {
|
|
|
6236
6251
|
value: function stop() {
|
|
6237
6252
|
this.player.removeAttribute('src');
|
|
6238
6253
|
|
|
6239
|
-
if (this.hls) {
|
|
6240
|
-
this.hls.destroy();
|
|
6241
|
-
}
|
|
6242
|
-
|
|
6243
6254
|
if (this.dash) {
|
|
6244
6255
|
this.dash.reset();
|
|
6245
6256
|
}
|
|
@@ -6351,7 +6362,7 @@ function (_Component) {
|
|
|
6351
6362
|
width: width === 'auto' ? width : '100%',
|
|
6352
6363
|
height: height === 'auto' ? height : '100%'
|
|
6353
6364
|
};
|
|
6354
|
-
return _react["default"].createElement(Element, _extends({
|
|
6365
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6355
6366
|
ref: this.ref,
|
|
6356
6367
|
src: this.getSource(url),
|
|
6357
6368
|
style: style,
|
|
@@ -6381,7 +6392,7 @@ exports["default"] = _default;
|
|
|
6381
6392
|
});
|
|
6382
6393
|
|
|
6383
6394
|
unwrapExports(FilePlayer_1);
|
|
6384
|
-
|
|
6395
|
+
FilePlayer_1.FilePlayer;
|
|
6385
6396
|
|
|
6386
6397
|
var players = createCommonjsModule(function (module, exports) {
|
|
6387
6398
|
|
|
@@ -6441,12 +6452,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6441
6452
|
|
|
6442
6453
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6443
6454
|
|
|
6444
|
-
function
|
|
6455
|
+
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); }; }
|
|
6445
6456
|
|
|
6446
|
-
function
|
|
6457
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6447
6458
|
|
|
6448
6459
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6449
6460
|
|
|
6461
|
+
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; } }
|
|
6462
|
+
|
|
6463
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6464
|
+
|
|
6450
6465
|
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); }
|
|
6451
6466
|
|
|
6452
6467
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6455,14 +6470,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6455
6470
|
|
|
6456
6471
|
var ICON_SIZE = '64px';
|
|
6457
6472
|
|
|
6458
|
-
var Preview =
|
|
6459
|
-
/*#__PURE__*/
|
|
6460
|
-
function (_Component) {
|
|
6473
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6461
6474
|
_inherits(Preview, _Component);
|
|
6462
6475
|
|
|
6463
|
-
|
|
6464
|
-
var _getPrototypeOf2;
|
|
6476
|
+
var _super = _createSuper(Preview);
|
|
6465
6477
|
|
|
6478
|
+
function Preview() {
|
|
6466
6479
|
var _this;
|
|
6467
6480
|
|
|
6468
6481
|
_classCallCheck(this, Preview);
|
|
@@ -6471,7 +6484,7 @@ function (_Component) {
|
|
|
6471
6484
|
args[_key] = arguments[_key];
|
|
6472
6485
|
}
|
|
6473
6486
|
|
|
6474
|
-
_this =
|
|
6487
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6475
6488
|
|
|
6476
6489
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6477
6490
|
|
|
@@ -6569,15 +6582,15 @@ function (_Component) {
|
|
|
6569
6582
|
}
|
|
6570
6583
|
};
|
|
6571
6584
|
|
|
6572
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6585
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6573
6586
|
style: styles.shadow,
|
|
6574
6587
|
className: "react-player__shadow"
|
|
6575
|
-
}, _react["default"].createElement("div", {
|
|
6588
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6576
6589
|
style: styles.playIcon,
|
|
6577
6590
|
className: "react-player__play-icon"
|
|
6578
6591
|
}));
|
|
6579
6592
|
|
|
6580
|
-
return _react["default"].createElement("div", {
|
|
6593
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6581
6594
|
style: styles.preview,
|
|
6582
6595
|
className: "react-player__preview",
|
|
6583
6596
|
onClick: onClick
|
|
@@ -6614,6 +6627,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6614
6627
|
|
|
6615
6628
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6616
6629
|
|
|
6630
|
+
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; } } }; }
|
|
6631
|
+
|
|
6632
|
+
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); }
|
|
6633
|
+
|
|
6634
|
+
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; }
|
|
6635
|
+
|
|
6617
6636
|
var PRELOAD_PLAYERS = [{
|
|
6618
6637
|
Player: YouTube_1.YouTube,
|
|
6619
6638
|
configKey: 'youtube',
|
|
@@ -6634,16 +6653,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6634
6653
|
|
|
6635
6654
|
function renderPreloadPlayers(url, controls, config) {
|
|
6636
6655
|
var players = [];
|
|
6637
|
-
|
|
6638
|
-
var
|
|
6639
|
-
|
|
6656
|
+
|
|
6657
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6658
|
+
_step;
|
|
6640
6659
|
|
|
6641
6660
|
try {
|
|
6642
|
-
for (
|
|
6661
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6643
6662
|
var player = _step.value;
|
|
6644
6663
|
|
|
6645
6664
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6646
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6665
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6647
6666
|
key: player.Player.displayName,
|
|
6648
6667
|
activePlayer: player.Player,
|
|
6649
6668
|
url: player.url,
|
|
@@ -6655,18 +6674,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6655
6674
|
}
|
|
6656
6675
|
}
|
|
6657
6676
|
} catch (err) {
|
|
6658
|
-
|
|
6659
|
-
_iteratorError = err;
|
|
6677
|
+
_iterator.e(err);
|
|
6660
6678
|
} finally {
|
|
6661
|
-
|
|
6662
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6663
|
-
_iterator["return"]();
|
|
6664
|
-
}
|
|
6665
|
-
} finally {
|
|
6666
|
-
if (_didIteratorError) {
|
|
6667
|
-
throw _iteratorError;
|
|
6668
|
-
}
|
|
6669
|
-
}
|
|
6679
|
+
_iterator.f();
|
|
6670
6680
|
}
|
|
6671
6681
|
|
|
6672
6682
|
return players;
|
|
@@ -6790,13 +6800,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6790
6800
|
|
|
6791
6801
|
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); }
|
|
6792
6802
|
|
|
6793
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6803
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6794
6804
|
|
|
6795
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6805
|
+
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."); }
|
|
6796
6806
|
|
|
6797
|
-
function
|
|
6807
|
+
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); }
|
|
6798
6808
|
|
|
6799
|
-
function
|
|
6809
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6810
|
+
|
|
6811
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6812
|
+
|
|
6813
|
+
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; }
|
|
6800
6814
|
|
|
6801
6815
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6802
6816
|
|
|
@@ -6804,12 +6818,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6804
6818
|
|
|
6805
6819
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6806
6820
|
|
|
6807
|
-
function
|
|
6821
|
+
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); }; }
|
|
6808
6822
|
|
|
6809
|
-
function
|
|
6823
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6810
6824
|
|
|
6811
6825
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6812
6826
|
|
|
6827
|
+
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; } }
|
|
6828
|
+
|
|
6829
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6830
|
+
|
|
6813
6831
|
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); }
|
|
6814
6832
|
|
|
6815
6833
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6819,14 +6837,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6819
6837
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6820
6838
|
var customPlayers = [];
|
|
6821
6839
|
|
|
6822
|
-
var ReactPlayer =
|
|
6823
|
-
/*#__PURE__*/
|
|
6824
|
-
function (_Component) {
|
|
6840
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6825
6841
|
_inherits(ReactPlayer, _Component);
|
|
6826
6842
|
|
|
6827
|
-
|
|
6828
|
-
var _getPrototypeOf2;
|
|
6843
|
+
var _super = _createSuper(ReactPlayer);
|
|
6829
6844
|
|
|
6845
|
+
function ReactPlayer() {
|
|
6830
6846
|
var _this;
|
|
6831
6847
|
|
|
6832
6848
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6835,7 +6851,7 @@ function (_Component) {
|
|
|
6835
6851
|
args[_key] = arguments[_key];
|
|
6836
6852
|
}
|
|
6837
6853
|
|
|
6838
|
-
_this =
|
|
6854
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6839
6855
|
|
|
6840
6856
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6841
6857
|
|
|
@@ -6946,7 +6962,7 @@ function (_Component) {
|
|
|
6946
6962
|
key: "renderActivePlayer",
|
|
6947
6963
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6948
6964
|
if (!url) return null;
|
|
6949
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6965
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6950
6966
|
key: activePlayer.displayName,
|
|
6951
6967
|
ref: this.activePlayerRef,
|
|
6952
6968
|
config: this.config,
|
|
@@ -6983,14 +6999,14 @@ function (_Component) {
|
|
|
6983
6999
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6984
7000
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6985
7001
|
|
|
6986
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
7002
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6987
7003
|
url: url,
|
|
6988
7004
|
light: light,
|
|
6989
7005
|
playIcon: playIcon,
|
|
6990
7006
|
onClick: this.handleClickPreview
|
|
6991
7007
|
});
|
|
6992
7008
|
|
|
6993
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
7009
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6994
7010
|
ref: this.wrapperRef,
|
|
6995
7011
|
style: _objectSpread({}, style, {
|
|
6996
7012
|
width: width,
|
|
@@ -7314,7 +7330,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7314
7330
|
var queue = Math.floor(duration / 10);
|
|
7315
7331
|
var segment = Math.floor(current / queue);
|
|
7316
7332
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7317
|
-
Segment.report_video_event('Video Ready',
|
|
7333
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7318
7334
|
//autoplay
|
|
7319
7335
|
|
|
7320
7336
|
//Small pause before starting next video
|
|
@@ -7335,7 +7351,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7351
|
var segment = Math.floor(current / queue);
|
|
7336
7352
|
|
|
7337
7353
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7338
|
-
Segment.report_video_event('Video End',
|
|
7354
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7339
7355
|
setEndReported(true);
|
|
7340
7356
|
clearInterval(intervalID);
|
|
7341
7357
|
}
|
|
@@ -7386,7 +7402,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7386
7402
|
var segment = Math.floor(current / queue);
|
|
7387
7403
|
if (!queueProgress.includes(segment)) {
|
|
7388
7404
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7389
|
-
Segment.report_video_event('Video Segment',
|
|
7405
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7390
7406
|
queueProgress.push(segment);
|
|
7391
7407
|
}
|
|
7392
7408
|
};
|
|
@@ -7400,7 +7416,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7400
7416
|
var segment = Math.floor(current / queue);
|
|
7401
7417
|
|
|
7402
7418
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7403
|
-
Segment.report_video_event('Video Play',
|
|
7419
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7404
7420
|
|
|
7405
7421
|
if (!playReported) {
|
|
7406
7422
|
setPlayReported(true);
|
|
@@ -7419,7 +7435,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7419
7435
|
var segment = Math.floor(current / queue);
|
|
7420
7436
|
|
|
7421
7437
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7422
|
-
Segment.report_video_event('Video Pause',
|
|
7438
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7423
7439
|
};
|
|
7424
7440
|
|
|
7425
7441
|
// Youtube Options
|
|
@@ -7537,7 +7553,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7537
7553
|
React__default.createElement(
|
|
7538
7554
|
'div',
|
|
7539
7555
|
{ className: 'vid-text' },
|
|
7540
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7556
|
+
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()))
|
|
7541
7557
|
),
|
|
7542
7558
|
React__default.createElement(
|
|
7543
7559
|
'style',
|
|
@@ -7547,14 +7563,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7547
7563
|
);
|
|
7548
7564
|
};
|
|
7549
7565
|
|
|
7550
|
-
var Poll = function Poll(_ref) {
|
|
7551
|
-
var node = _ref.node
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
onVote = _ref.onVote
|
|
7556
|
-
_ref
|
|
7557
|
-
getSerializers = _ref.getSerializers;
|
|
7566
|
+
var Poll$1 = function Poll(_ref) {
|
|
7567
|
+
var node = _ref.node;
|
|
7568
|
+
_ref.client;
|
|
7569
|
+
_ref.pageview;
|
|
7570
|
+
_ref.videoAccountIDs;
|
|
7571
|
+
var onVote = _ref.onVote;
|
|
7572
|
+
_ref.showVotes;
|
|
7573
|
+
var getSerializers = _ref.getSerializers;
|
|
7558
7574
|
|
|
7559
7575
|
var _useState = useState(null),
|
|
7560
7576
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7688,22 +7704,22 @@ _export(_export.S, 'Object', {
|
|
|
7688
7704
|
}
|
|
7689
7705
|
});
|
|
7690
7706
|
|
|
7691
|
-
var values = _core.Object.values;
|
|
7707
|
+
var values$1 = _core.Object.values;
|
|
7692
7708
|
|
|
7693
|
-
var values
|
|
7694
|
-
module.exports = { "default": values, __esModule: true };
|
|
7709
|
+
var values = createCommonjsModule(function (module) {
|
|
7710
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7695
7711
|
});
|
|
7696
7712
|
|
|
7697
|
-
var _Object$values = unwrapExports(values
|
|
7713
|
+
var _Object$values = unwrapExports(values);
|
|
7698
7714
|
|
|
7699
|
-
var Poll
|
|
7700
|
-
var node = _ref.node
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
onVote = _ref.onVote
|
|
7705
|
-
_ref
|
|
7706
|
-
getSerializers = _ref.getSerializers;
|
|
7715
|
+
var Poll = function Poll(_ref) {
|
|
7716
|
+
var node = _ref.node;
|
|
7717
|
+
_ref.client;
|
|
7718
|
+
_ref.pageview;
|
|
7719
|
+
_ref.videoAccountIDs;
|
|
7720
|
+
var onVote = _ref.onVote;
|
|
7721
|
+
_ref.showVotes;
|
|
7722
|
+
var getSerializers = _ref.getSerializers;
|
|
7707
7723
|
|
|
7708
7724
|
var _useState = useState(null),
|
|
7709
7725
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7855,7 +7871,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7855
7871
|
);
|
|
7856
7872
|
};
|
|
7857
7873
|
|
|
7858
|
-
var numberOfPaginations =
|
|
7874
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7859
7875
|
|
|
7860
7876
|
var Quiz = function Quiz(_ref) {
|
|
7861
7877
|
var quizzes = _ref.quizzes,
|
|
@@ -7974,33 +7990,33 @@ var Quiz = function Quiz(_ref) {
|
|
|
7974
7990
|
|
|
7975
7991
|
var renderPagination = function renderPagination() {
|
|
7976
7992
|
return React__default.createElement(
|
|
7977
|
-
Pagination
|
|
7978
|
-
{ className: 'p-0 m-0', size:
|
|
7979
|
-
React__default.createElement(Pagination
|
|
7993
|
+
Pagination,
|
|
7994
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7995
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7980
7996
|
return changePage('first');
|
|
7981
7997
|
}, disabled: currentPage === 1 }),
|
|
7982
|
-
React__default.createElement(Pagination
|
|
7998
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7983
7999
|
return changePage('prev');
|
|
7984
8000
|
}, disabled: currentPage === 1 }),
|
|
7985
|
-
React__default.createElement(Pagination
|
|
8001
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7986
8002
|
return renderNewPages('prev');
|
|
7987
8003
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7988
8004
|
pages.map(function (page) {
|
|
7989
8005
|
return React__default.createElement(
|
|
7990
|
-
Pagination
|
|
8006
|
+
Pagination.Item,
|
|
7991
8007
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7992
8008
|
return changePage(page);
|
|
7993
8009
|
} },
|
|
7994
8010
|
page
|
|
7995
8011
|
);
|
|
7996
8012
|
}),
|
|
7997
|
-
React__default.createElement(Pagination
|
|
8013
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7998
8014
|
return renderNewPages('next');
|
|
7999
8015
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8000
|
-
React__default.createElement(Pagination
|
|
8016
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8001
8017
|
return changePage('next');
|
|
8002
8018
|
}, disabled: currentPage === pageCount }),
|
|
8003
|
-
React__default.createElement(Pagination
|
|
8019
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8004
8020
|
return changePage('last');
|
|
8005
8021
|
}, disabled: currentPage === pageCount })
|
|
8006
8022
|
);
|
|
@@ -8150,7 +8166,7 @@ var Leads = function Leads(_ref) {
|
|
|
8150
8166
|
);
|
|
8151
8167
|
};
|
|
8152
8168
|
|
|
8153
|
-
var Slideshow
|
|
8169
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8154
8170
|
var slides = _ref.node.slides,
|
|
8155
8171
|
client = _ref.client,
|
|
8156
8172
|
pageview = _ref.pageview,
|
|
@@ -8301,7 +8317,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8301
8317
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8302
8318
|
React__default.createElement(
|
|
8303
8319
|
'a',
|
|
8304
|
-
_extends
|
|
8320
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8305
8321
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8306
8322
|
React__default.createElement(
|
|
8307
8323
|
'div',
|
|
@@ -8596,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8596
8612
|
|
|
8597
8613
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8598
8614
|
if (biography) {
|
|
8599
|
-
return React__default.createElement(BlockContent, _extends
|
|
8615
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8600
8616
|
}
|
|
8601
8617
|
};
|
|
8602
8618
|
|
|
@@ -8682,7 +8698,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8682
8698
|
//console.log('useLayoutEffect')
|
|
8683
8699
|
if (!firstLoad) {
|
|
8684
8700
|
setUpArrowClicked(false);
|
|
8685
|
-
if (
|
|
8701
|
+
if (main_43) {
|
|
8686
8702
|
grabLoadedAds();
|
|
8687
8703
|
} else {
|
|
8688
8704
|
scrollToArticle();
|
|
@@ -8706,7 +8722,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8706
8722
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8707
8723
|
if (pageview) pageview(path);
|
|
8708
8724
|
|
|
8709
|
-
if (!
|
|
8725
|
+
if (!main_43) {
|
|
8710
8726
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8711
8727
|
if (window.googletag && googletag.pubadsReady) {
|
|
8712
8728
|
lib_3.refresh();
|
|
@@ -8714,7 +8730,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8714
8730
|
});
|
|
8715
8731
|
}
|
|
8716
8732
|
//Refresh leaderboard ad on mobile
|
|
8717
|
-
if (
|
|
8733
|
+
if (main_43) {
|
|
8718
8734
|
var leaderboardSlotId = '';
|
|
8719
8735
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8720
8736
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8783,7 +8799,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8783
8799
|
React__default.createElement(
|
|
8784
8800
|
'div',
|
|
8785
8801
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8786
|
-
|
|
8802
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8787
8803
|
if (index === 0) {
|
|
8788
8804
|
return React__default.createElement(
|
|
8789
8805
|
'div',
|
|
@@ -8874,7 +8890,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8874
8890
|
React__default.createElement(
|
|
8875
8891
|
'div',
|
|
8876
8892
|
{ className: 'mt-2 mb-2' },
|
|
8877
|
-
React__default.createElement(BlockContent, _extends
|
|
8893
|
+
React__default.createElement(BlockContent, _extends({
|
|
8878
8894
|
serializers: getSerializers,
|
|
8879
8895
|
videoAccountIDs: accountIDs,
|
|
8880
8896
|
blocks: article.text,
|
|
@@ -8905,7 +8921,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8905
8921
|
React__default.createElement(
|
|
8906
8922
|
'div',
|
|
8907
8923
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8908
|
-
|
|
8924
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8909
8925
|
if (innerIndex === 0) {
|
|
8910
8926
|
return React__default.createElement(
|
|
8911
8927
|
'div',
|
|
@@ -8978,7 +8994,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8978
8994
|
}
|
|
8979
8995
|
};
|
|
8980
8996
|
|
|
8981
|
-
var FigureImage = React__default.memo(function (_ref2) {
|
|
8997
|
+
var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
8982
8998
|
var node = _ref2.node,
|
|
8983
8999
|
client = _ref2.client,
|
|
8984
9000
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8992,7 +9008,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8992
9008
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8993
9009
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8994
9010
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8995
|
-
React__default.createElement('img', _extends
|
|
9011
|
+
React__default.createElement('img', _extends({
|
|
8996
9012
|
style: figureImageStyle,
|
|
8997
9013
|
className: 'figure-image',
|
|
8998
9014
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9044,23 +9060,23 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9044
9060
|
var renderTooltip = function renderTooltip(props) {
|
|
9045
9061
|
if (infoBox[0].title) {
|
|
9046
9062
|
return React__default.createElement(
|
|
9047
|
-
Popover
|
|
9063
|
+
Popover,
|
|
9048
9064
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9049
9065
|
React__default.createElement(
|
|
9050
|
-
Popover
|
|
9066
|
+
Popover.Title,
|
|
9051
9067
|
{ as: 'h3' },
|
|
9052
9068
|
infoBox[0].title
|
|
9053
9069
|
),
|
|
9054
9070
|
React__default.createElement(
|
|
9055
|
-
Popover
|
|
9071
|
+
Popover.Content,
|
|
9056
9072
|
null,
|
|
9057
9073
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9058
9074
|
)
|
|
9059
9075
|
);
|
|
9060
9076
|
} else {
|
|
9061
9077
|
return React__default.createElement(
|
|
9062
|
-
Tooltip
|
|
9063
|
-
_extends
|
|
9078
|
+
Tooltip,
|
|
9079
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9064
9080
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9065
9081
|
);
|
|
9066
9082
|
}
|
|
@@ -9074,32 +9090,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9074
9090
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9075
9091
|
|
|
9076
9092
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9077
|
-
var triggerAction =
|
|
9078
|
-
var placementLocation =
|
|
9093
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9094
|
+
var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9079
9095
|
return React__default.createElement(
|
|
9080
9096
|
'picture',
|
|
9081
9097
|
null,
|
|
9082
9098
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9083
9099
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9084
9100
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9085
|
-
|
|
9101
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9086
9102
|
style: figureImageStyle,
|
|
9087
9103
|
className: 'figure-image',
|
|
9088
9104
|
src: urlFor({ source: node, client: client }),
|
|
9089
9105
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9090
|
-
}, !link && !
|
|
9106
|
+
}, !link && !main_42 && {
|
|
9091
9107
|
onClick: function onClick() {
|
|
9092
9108
|
return handleClickFigure(node, client);
|
|
9093
9109
|
}
|
|
9094
9110
|
})) : React__default.createElement(
|
|
9095
9111
|
OverlayTrigger,
|
|
9096
9112
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9097
|
-
React__default.createElement('img', _extends
|
|
9113
|
+
React__default.createElement('img', _extends({
|
|
9098
9114
|
style: figureImageStyle,
|
|
9099
9115
|
className: 'figure-image',
|
|
9100
9116
|
src: urlFor({ source: node, client: client }),
|
|
9101
9117
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9102
|
-
}, !link && !
|
|
9118
|
+
}, !link && !main_42 && {
|
|
9103
9119
|
onClick: function onClick() {
|
|
9104
9120
|
return handleClickFigure(node, client);
|
|
9105
9121
|
}
|
|
@@ -9175,7 +9191,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9175
9191
|
React__default.Fragment,
|
|
9176
9192
|
null,
|
|
9177
9193
|
infoBox.length >= 1 ? React__default.createElement(
|
|
9178
|
-
Figure$
|
|
9194
|
+
Figure$2,
|
|
9179
9195
|
{ className: '' + class_name, style: figureStyle },
|
|
9180
9196
|
link ? React__default.createElement(
|
|
9181
9197
|
'a',
|
|
@@ -9197,17 +9213,17 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9197
9213
|
}
|
|
9198
9214
|
})
|
|
9199
9215
|
) : React__default.createElement(
|
|
9200
|
-
Figure$
|
|
9216
|
+
Figure$2,
|
|
9201
9217
|
{ className: '' + class_name, style: figureStyle },
|
|
9202
9218
|
link ? React__default.createElement(
|
|
9203
9219
|
'a',
|
|
9204
9220
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9205
|
-
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9221
|
+
React__default.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9206
9222
|
React__default.createElement(FigureCaption, null)
|
|
9207
9223
|
) : React__default.createElement(
|
|
9208
9224
|
React__default.Fragment,
|
|
9209
9225
|
null,
|
|
9210
|
-
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9226
|
+
React__default.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9211
9227
|
React__default.createElement(FigureCaption, null)
|
|
9212
9228
|
),
|
|
9213
9229
|
React__default.createElement(LightBox, {
|
|
@@ -9244,7 +9260,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9244
9260
|
}, [ref]);
|
|
9245
9261
|
}
|
|
9246
9262
|
|
|
9247
|
-
var FigureImage
|
|
9263
|
+
var FigureImage = React__default.memo(function (_ref) {
|
|
9248
9264
|
var imagesCount = _ref.imagesCount,
|
|
9249
9265
|
image = _ref.image,
|
|
9250
9266
|
client = _ref.client,
|
|
@@ -9258,7 +9274,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9258
9274
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9259
9275
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9260
9276
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9261
|
-
React__default.createElement('img', _extends
|
|
9277
|
+
React__default.createElement('img', _extends({
|
|
9262
9278
|
'images-count': imagesCount,
|
|
9263
9279
|
className: 'multi-figure-image',
|
|
9264
9280
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9318,32 +9334,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9318
9334
|
link = _ref3.link,
|
|
9319
9335
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9320
9336
|
|
|
9321
|
-
var triggerAction =
|
|
9322
|
-
var placementLocation =
|
|
9337
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9338
|
+
var placementLocation = main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9323
9339
|
return React__default.createElement(
|
|
9324
9340
|
'picture',
|
|
9325
9341
|
null,
|
|
9326
9342
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9327
9343
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9328
9344
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9329
|
-
|
|
9345
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9330
9346
|
'images-count': imagesCount,
|
|
9331
9347
|
className: 'multi-figure-image',
|
|
9332
9348
|
src: urlFor({ source: image, client: client }),
|
|
9333
9349
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9334
|
-
}, !link && !
|
|
9350
|
+
}, !link && !main_42 && {
|
|
9335
9351
|
onClick: function onClick() {
|
|
9336
9352
|
return handleClickFigure(image, client);
|
|
9337
9353
|
}
|
|
9338
9354
|
})) : React__default.createElement(
|
|
9339
9355
|
OverlayTrigger,
|
|
9340
9356
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9341
|
-
React__default.createElement('img', _extends
|
|
9357
|
+
React__default.createElement('img', _extends({
|
|
9342
9358
|
'images-count': imagesCount,
|
|
9343
9359
|
className: 'multi-figure-image',
|
|
9344
9360
|
src: urlFor({ source: image, client: client }),
|
|
9345
9361
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9346
|
-
}, !link && !
|
|
9362
|
+
}, !link && !main_42 && {
|
|
9347
9363
|
onClick: function onClick() {
|
|
9348
9364
|
return handleClickFigure(image, client);
|
|
9349
9365
|
}
|
|
@@ -9355,23 +9371,23 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9355
9371
|
var renderTooltip = function renderTooltip(image) {
|
|
9356
9372
|
if (image.infoBox[0].title) {
|
|
9357
9373
|
return React__default.createElement(
|
|
9358
|
-
Popover
|
|
9374
|
+
Popover,
|
|
9359
9375
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9360
9376
|
React__default.createElement(
|
|
9361
|
-
Popover
|
|
9377
|
+
Popover.Title,
|
|
9362
9378
|
{ as: 'h3' },
|
|
9363
9379
|
image.infoBox[0].title
|
|
9364
9380
|
),
|
|
9365
9381
|
React__default.createElement(
|
|
9366
|
-
Popover
|
|
9382
|
+
Popover.Content,
|
|
9367
9383
|
null,
|
|
9368
9384
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9369
9385
|
)
|
|
9370
9386
|
);
|
|
9371
9387
|
} else {
|
|
9372
9388
|
return React__default.createElement(
|
|
9373
|
-
Tooltip
|
|
9374
|
-
_extends
|
|
9389
|
+
Tooltip,
|
|
9390
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9375
9391
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9376
9392
|
);
|
|
9377
9393
|
}
|
|
@@ -9391,7 +9407,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9391
9407
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9392
9408
|
image.link ? React__default.createElement(
|
|
9393
9409
|
'a',
|
|
9394
|
-
_extends
|
|
9410
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9395
9411
|
React__default.createElement(
|
|
9396
9412
|
'div',
|
|
9397
9413
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9419,14 +9435,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9419
9435
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9420
9436
|
image.link ? React__default.createElement(
|
|
9421
9437
|
'a',
|
|
9422
|
-
_extends
|
|
9438
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9423
9439
|
React__default.createElement(
|
|
9424
9440
|
'div',
|
|
9425
9441
|
{ className: 'multi-figure-image-container' },
|
|
9426
9442
|
React__default.createElement(
|
|
9427
9443
|
LazyLoad,
|
|
9428
9444
|
{ once: true },
|
|
9429
|
-
React__default.createElement(FigureImage
|
|
9445
|
+
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9430
9446
|
),
|
|
9431
9447
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9432
9448
|
)
|
|
@@ -9436,7 +9452,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9436
9452
|
React__default.createElement(
|
|
9437
9453
|
LazyLoad,
|
|
9438
9454
|
{ once: true },
|
|
9439
|
-
React__default.createElement(FigureImage
|
|
9455
|
+
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9440
9456
|
),
|
|
9441
9457
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9442
9458
|
)
|
|
@@ -9548,7 +9564,7 @@ exports.__esModule = true;
|
|
|
9548
9564
|
|
|
9549
9565
|
|
|
9550
9566
|
|
|
9551
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9567
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9552
9568
|
|
|
9553
9569
|
|
|
9554
9570
|
|
|
@@ -9717,9 +9733,9 @@ var ScriptTag = function (_Component) {
|
|
|
9717
9733
|
|
|
9718
9734
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9719
9735
|
// eslint-disable-next-line no-unused-vars
|
|
9720
|
-
var _props3 = this.props
|
|
9721
|
-
|
|
9722
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9736
|
+
var _props3 = this.props;
|
|
9737
|
+
_props3.isHydrating;
|
|
9738
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9723
9739
|
|
|
9724
9740
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9725
9741
|
return _this2.domRef = tag;
|
|
@@ -9861,7 +9877,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9861
9877
|
return React__default.createElement(
|
|
9862
9878
|
'div',
|
|
9863
9879
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9864
|
-
React__default.createElement(BlockContent, _extends
|
|
9880
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9865
9881
|
);
|
|
9866
9882
|
})
|
|
9867
9883
|
);
|
|
@@ -9989,7 +10005,7 @@ var getSerializers = function getSerializers() {
|
|
|
9989
10005
|
var node = _ref6.node;
|
|
9990
10006
|
var slides = node.slides;
|
|
9991
10007
|
|
|
9992
|
-
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10008
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9993
10009
|
},
|
|
9994
10010
|
sidebar: function sidebar(_ref7) {
|
|
9995
10011
|
var node = _ref7.node;
|
|
@@ -10027,12 +10043,12 @@ var getSerializers = function getSerializers() {
|
|
|
10027
10043
|
poll: function poll(_ref13) {
|
|
10028
10044
|
var node = _ref13.node;
|
|
10029
10045
|
|
|
10030
|
-
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10046
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10031
10047
|
},
|
|
10032
10048
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10033
10049
|
var node = _ref14.node;
|
|
10034
10050
|
|
|
10035
|
-
return React__default.createElement(Poll
|
|
10051
|
+
return React__default.createElement(Poll, {
|
|
10036
10052
|
node: node,
|
|
10037
10053
|
client: client,
|
|
10038
10054
|
pageview: pageview,
|
|
@@ -10058,7 +10074,7 @@ var getSerializers = function getSerializers() {
|
|
|
10058
10074
|
slideshows: function slideshows(_ref17) {
|
|
10059
10075
|
var node = _ref17.node;
|
|
10060
10076
|
|
|
10061
|
-
return React__default.createElement(Slideshow
|
|
10077
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10062
10078
|
},
|
|
10063
10079
|
nativeAd: function nativeAd(_ref18) {
|
|
10064
10080
|
var node = _ref18.node;
|
|
@@ -10133,7 +10149,7 @@ var getSerializers = function getSerializers() {
|
|
|
10133
10149
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10134
10150
|
return href ? React__default.createElement(
|
|
10135
10151
|
'a',
|
|
10136
|
-
_extends
|
|
10152
|
+
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10137
10153
|
children
|
|
10138
10154
|
) : children;
|
|
10139
10155
|
},
|