@mjhls/mjh-framework 1.0.884-beta.1 → 1.0.884-gridcontent-paginated-v1
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/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 +58 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +1635 -417
- 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 +26 -25
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/ContentCardPaginated.js +97 -93
- package/dist/cjs/DeckContent.js +97 -93
- package/dist/cjs/DeckQueue.js +91 -87
- package/dist/cjs/DeckQueuePaginated.js +91 -87
- package/dist/cjs/{Dfp-f492f985.js → Dfp-9be904d5.js} +32 -31
- package/dist/cjs/EventsDeck.js +140 -133
- 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 +189 -185
- package/dist/cjs/GridContentPaginated.js +195 -199
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +58 -57
- package/dist/cjs/HamMagazine.js +135 -130
- 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/{ImageSlider-38f25e66.js → ImageSlider-b96720eb.js} +202 -1378
- package/dist/cjs/IssueContentDeck.js +76 -71
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +65 -64
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +71 -70
- package/dist/cjs/MasterDeckPaginated.js +67 -66
- package/dist/cjs/{MediaSeriesCard-8d27612b.js → MediaSeriesCard-3d5c69ba.js} +1144 -1050
- package/dist/cjs/MediaSeriesLanding.js +87 -85
- package/dist/cjs/MediaSeriesLandingPaginated.js +88 -87
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +141 -136
- package/dist/cjs/NavNative.js +136 -128
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +71 -70
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/Pagination-b5e8b8dc.js +60 -0
- package/dist/cjs/PartnerDetailListing.js +96 -94
- package/dist/cjs/PartnerDetailListingPaginated.js +94 -93
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -40
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +70 -65
- package/dist/cjs/{PublicationFeature-28c549f2.js → PublicationFeature-5ccf9b13.js} +40 -36
- package/dist/cjs/PublicationLanding.js +114 -106
- package/dist/cjs/QueueDeckExpanded.js +308 -308
- package/dist/cjs/QueueDeckExpandedPaginated.js +267 -268
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +30 -29
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- 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-de93a303.js} +36 -35
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -34
- 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 +76 -72
- package/dist/cjs/VideoSeriesCard.js +32 -31
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +48 -47
- package/dist/cjs/VideoSeriesListing.js +77 -76
- package/dist/cjs/View.js +267 -264
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +64 -63
- 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 +5 -5
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-6d59cc5b.js} +3 -3
- 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-54adcbc3.js → index-6f89aea7.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 +173 -166
- package/dist/cjs/{inherits-12d44cca.js → inherits-de66ea16.js} +18 -18
- 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-d767ebe2.js → ADInfeed-0a55cd2d.js} +4 -4
- 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-cee95aa2.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 -30
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +591 -1419
- package/dist/esm/AuthWrapper.js +1607 -390
- 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/Column2.js +14 -14
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +10 -10
- package/dist/esm/ContentCardPaginated.js +35 -36
- package/dist/esm/DeckContent.js +33 -33
- package/dist/esm/DeckQueue.js +31 -31
- package/dist/esm/DeckQueuePaginated.js +31 -32
- package/dist/esm/{Dfp-f867d061.js → Dfp-102f0beb.js} +13 -13
- package/dist/esm/EventsDeck.js +24 -24
- package/dist/esm/ExternalResources.js +45 -45
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +47 -47
- package/dist/esm/GridContentPaginated.js +51 -60
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +26 -26
- 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/{ImageSlider-a3154b97.js → ImageSlider-de7846ea.js} +141 -1317
- package/dist/esm/IssueContentDeck.js +11 -11
- package/dist/esm/IssueDeck.js +14 -14
- package/dist/esm/IssueLanding.js +53 -53
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MasterDeckPaginated.js +30 -31
- package/dist/esm/{MediaSeriesCard-1dd7eae8.js → MediaSeriesCard-5b1d13dd.js} +693 -601
- package/dist/esm/MediaSeriesLanding.js +52 -52
- package/dist/esm/MediaSeriesLandingPaginated.js +55 -56
- package/dist/esm/NavDvm.js +11 -11
- package/dist/esm/NavMagazine.js +29 -29
- package/dist/esm/NavNative.js +28 -28
- package/dist/esm/OncliveHero.js +7 -8
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/Pagination-481eaaf5.js +54 -0
- package/dist/esm/PartnerDetailListing.js +59 -58
- package/dist/esm/PartnerDetailListingPaginated.js +57 -57
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +10 -10
- package/dist/esm/{PublicationFeature-fa24dedb.js → PublicationFeature-d88e76b9.js} +2 -2
- package/dist/esm/PublicationLanding.js +29 -25
- package/dist/esm/QueueDeckExpanded.js +36 -36
- package/dist/esm/QueueDeckExpandedPaginated.js +35 -36
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-ce19fa25.js → SeriesSlider-98ad6d97.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-dca69151.js → SocialSearchComponent-8e0fcf66.js} +10 -10
- package/dist/esm/TaxonomyCard.js +12 -12
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +46 -46
- 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 +49 -49
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -36
- package/dist/esm/VideoSeriesListing.js +31 -31
- package/dist/esm/View.js +87 -88
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +17 -17
- 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-7bf8bc4d.js → asyncToGenerator-5ef104a7.js} +30 -30
- 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-36031a00.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
- 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-d1476645.js → index-ca0c9ff5.js} +615 -599
- 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 +125 -121
- 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 +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/Pagination-2f76381b.js +0 -51
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/Pagination-c0db7ca1.js +0 -46
- 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,38 +1,38 @@
|
|
|
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 { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.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
|
|
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';
|
|
34
26
|
import Pagination from 'react-bootstrap/Pagination';
|
|
35
|
-
import
|
|
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
37
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
38
38
|
import Popover from 'react-bootstrap/Popover';
|
|
@@ -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(
|
|
@@ -2398,7 +2368,7 @@ var Video = function Video(_ref) {
|
|
|
2398
2368
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2399
2369
|
//console.log('success:', success.ref)
|
|
2400
2370
|
var player = success.ref;
|
|
2401
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2371
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2402
2372
|
player.ima3.settings.debug = true;
|
|
2403
2373
|
if (targeting.content_placement && targeting.document_url) {
|
|
2404
2374
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2453,7 +2423,7 @@ var Video = function Video(_ref) {
|
|
|
2453
2423
|
}
|
|
2454
2424
|
|
|
2455
2425
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2456
|
-
Segment.report_video_event('Video Ready',
|
|
2426
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2457
2427
|
});
|
|
2458
2428
|
|
|
2459
2429
|
// play
|
|
@@ -2463,7 +2433,7 @@ var Video = function Video(_ref) {
|
|
|
2463
2433
|
var queue = Math.floor(duration / 10);
|
|
2464
2434
|
var segment = Math.floor(current / queue);
|
|
2465
2435
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2466
|
-
Segment.report_video_event('Video Play',
|
|
2436
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2467
2437
|
});
|
|
2468
2438
|
|
|
2469
2439
|
// pause
|
|
@@ -2473,7 +2443,7 @@ var Video = function Video(_ref) {
|
|
|
2473
2443
|
var queue = Math.floor(duration / 10);
|
|
2474
2444
|
var segment = Math.floor(current / queue);
|
|
2475
2445
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2476
|
-
Segment.report_video_event('Video Pause',
|
|
2446
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2477
2447
|
});
|
|
2478
2448
|
|
|
2479
2449
|
// end
|
|
@@ -2483,7 +2453,7 @@ var Video = function Video(_ref) {
|
|
|
2483
2453
|
var queue = Math.floor(duration / 10);
|
|
2484
2454
|
var segment = Math.floor(current / queue);
|
|
2485
2455
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2486
|
-
Segment.report_video_event('Video End',
|
|
2456
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2487
2457
|
autoplayNextVideo(evt);
|
|
2488
2458
|
});
|
|
2489
2459
|
|
|
@@ -2495,7 +2465,7 @@ var Video = function Video(_ref) {
|
|
|
2495
2465
|
var segment = Math.floor(current / queue);
|
|
2496
2466
|
if (!queueProgress.includes(segment)) {
|
|
2497
2467
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2498
|
-
Segment.report_video_event('Video Segment',
|
|
2468
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2499
2469
|
queueProgress.push(segment);
|
|
2500
2470
|
}
|
|
2501
2471
|
});
|
|
@@ -2503,20 +2473,20 @@ var Video = function Video(_ref) {
|
|
|
2503
2473
|
// ad impression
|
|
2504
2474
|
player.on('ads-ad-started', function (evt) {
|
|
2505
2475
|
var duration = player.ads.ad.duration;
|
|
2506
|
-
|
|
2476
|
+
player.ads.ad.id;
|
|
2507
2477
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2508
2478
|
|
|
2509
2479
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2510
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2480
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2511
2481
|
});
|
|
2512
2482
|
|
|
2513
2483
|
// ad ended
|
|
2514
2484
|
player.on('ads-ad-ended', function (evt) {
|
|
2515
2485
|
var duration = player.ads.ad.duration;
|
|
2516
|
-
|
|
2486
|
+
player.ads.ad.id;
|
|
2517
2487
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2518
2488
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2519
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2489
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2520
2490
|
});
|
|
2521
2491
|
};
|
|
2522
2492
|
|
|
@@ -2780,9 +2750,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2780
2750
|
});
|
|
2781
2751
|
|
|
2782
2752
|
unwrapExports(props);
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2753
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2754
|
+
props.defaultProps;
|
|
2755
|
+
props.propTypes;
|
|
2786
2756
|
|
|
2787
2757
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2788
2758
|
return isNonNullObject(value)
|
|
@@ -2947,11 +2917,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2947
2917
|
|
|
2948
2918
|
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; }
|
|
2949
2919
|
|
|
2950
|
-
function
|
|
2920
|
+
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; } } }; }
|
|
2921
|
+
|
|
2922
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2923
|
+
|
|
2924
|
+
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."); }
|
|
2925
|
+
|
|
2926
|
+
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); }
|
|
2951
2927
|
|
|
2952
|
-
function
|
|
2928
|
+
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; }
|
|
2953
2929
|
|
|
2954
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
2930
|
+
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; }
|
|
2955
2931
|
|
|
2956
2932
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2957
2933
|
|
|
@@ -3081,12 +3057,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3081
3057
|
|
|
3082
3058
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3083
3059
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3084
|
-
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3060
|
+
|
|
3061
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3062
|
+
_step;
|
|
3087
3063
|
|
|
3088
3064
|
try {
|
|
3089
|
-
for (
|
|
3065
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3090
3066
|
var p = _step.value;
|
|
3091
3067
|
|
|
3092
3068
|
if (props$1[p]) {
|
|
@@ -3101,18 +3077,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3101
3077
|
}
|
|
3102
3078
|
}
|
|
3103
3079
|
} catch (err) {
|
|
3104
|
-
|
|
3105
|
-
_iteratorError = err;
|
|
3080
|
+
_iterator.e(err);
|
|
3106
3081
|
} finally {
|
|
3107
|
-
|
|
3108
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3109
|
-
_iterator["return"]();
|
|
3110
|
-
}
|
|
3111
|
-
} finally {
|
|
3112
|
-
if (_didIteratorError) {
|
|
3113
|
-
throw _iteratorError;
|
|
3114
|
-
}
|
|
3115
|
-
}
|
|
3082
|
+
_iterator.f();
|
|
3116
3083
|
}
|
|
3117
3084
|
|
|
3118
3085
|
return config;
|
|
@@ -3220,17 +3187,17 @@ function isMediaStream(url) {
|
|
|
3220
3187
|
});
|
|
3221
3188
|
|
|
3222
3189
|
unwrapExports(utils);
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3190
|
+
utils.parseStartTime;
|
|
3191
|
+
utils.parseEndTime;
|
|
3192
|
+
utils.randomString;
|
|
3193
|
+
utils.queryString;
|
|
3194
|
+
utils.getSDK;
|
|
3195
|
+
utils.getConfig;
|
|
3196
|
+
utils.omit;
|
|
3197
|
+
utils.callPlayer;
|
|
3198
|
+
utils.isObject;
|
|
3199
|
+
utils.isEqual;
|
|
3200
|
+
utils.isMediaStream;
|
|
3234
3201
|
|
|
3235
3202
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3236
3203
|
|
|
@@ -3259,12 +3226,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3259
3226
|
|
|
3260
3227
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3261
3228
|
|
|
3262
|
-
function
|
|
3229
|
+
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); }; }
|
|
3263
3230
|
|
|
3264
|
-
function
|
|
3231
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3265
3232
|
|
|
3266
3233
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3267
3234
|
|
|
3235
|
+
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; } }
|
|
3236
|
+
|
|
3237
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3238
|
+
|
|
3268
3239
|
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); }
|
|
3269
3240
|
|
|
3270
3241
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3273,14 +3244,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3273
3244
|
|
|
3274
3245
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3275
3246
|
|
|
3276
|
-
var Player =
|
|
3277
|
-
/*#__PURE__*/
|
|
3278
|
-
function (_Component) {
|
|
3247
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3279
3248
|
_inherits(Player, _Component);
|
|
3280
3249
|
|
|
3281
|
-
|
|
3282
|
-
var _getPrototypeOf2;
|
|
3250
|
+
var _super = _createSuper(Player);
|
|
3283
3251
|
|
|
3252
|
+
function Player() {
|
|
3284
3253
|
var _this;
|
|
3285
3254
|
|
|
3286
3255
|
_classCallCheck(this, Player);
|
|
@@ -3289,7 +3258,7 @@ function (_Component) {
|
|
|
3289
3258
|
_args[_key] = arguments[_key];
|
|
3290
3259
|
}
|
|
3291
3260
|
|
|
3292
|
-
_this =
|
|
3261
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3293
3262
|
|
|
3294
3263
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3295
3264
|
|
|
@@ -3614,7 +3583,7 @@ function (_Component) {
|
|
|
3614
3583
|
return null;
|
|
3615
3584
|
}
|
|
3616
3585
|
|
|
3617
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3586
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3618
3587
|
ref: this.ref,
|
|
3619
3588
|
onReady: this.handleReady,
|
|
3620
3589
|
onPlay: this.handlePlay,
|
|
@@ -3675,12 +3644,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3675
3644
|
|
|
3676
3645
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3677
3646
|
|
|
3678
|
-
function
|
|
3647
|
+
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); }; }
|
|
3679
3648
|
|
|
3680
|
-
function
|
|
3649
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3681
3650
|
|
|
3682
3651
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3683
3652
|
|
|
3653
|
+
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; } }
|
|
3654
|
+
|
|
3655
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3656
|
+
|
|
3684
3657
|
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); }
|
|
3685
3658
|
|
|
3686
3659
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3692,14 +3665,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3692
3665
|
function createSinglePlayer(activePlayer) {
|
|
3693
3666
|
var _class, _temp;
|
|
3694
3667
|
|
|
3695
|
-
return _temp = _class =
|
|
3696
|
-
/*#__PURE__*/
|
|
3697
|
-
function (_Component) {
|
|
3668
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3698
3669
|
_inherits(SinglePlayer, _Component);
|
|
3699
3670
|
|
|
3700
|
-
|
|
3701
|
-
var _getPrototypeOf2;
|
|
3671
|
+
var _super = _createSuper(SinglePlayer);
|
|
3702
3672
|
|
|
3673
|
+
function SinglePlayer() {
|
|
3703
3674
|
var _this;
|
|
3704
3675
|
|
|
3705
3676
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3708,7 +3679,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3708
3679
|
args[_key] = arguments[_key];
|
|
3709
3680
|
}
|
|
3710
3681
|
|
|
3711
|
-
_this =
|
|
3682
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3712
3683
|
|
|
3713
3684
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3714
3685
|
|
|
@@ -3776,12 +3747,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3776
3747
|
height = _this$props.height,
|
|
3777
3748
|
Wrapper = _this$props.wrapper;
|
|
3778
3749
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3779
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3750
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3780
3751
|
style: _objectSpread({}, style, {
|
|
3781
3752
|
width: width,
|
|
3782
3753
|
height: height
|
|
3783
3754
|
})
|
|
3784
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3755
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3785
3756
|
ref: this.ref,
|
|
3786
3757
|
activePlayer: activePlayer,
|
|
3787
3758
|
config: this.config
|
|
@@ -3827,23 +3798,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3827
3798
|
|
|
3828
3799
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3829
3800
|
|
|
3830
|
-
function
|
|
3801
|
+
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); }; }
|
|
3831
3802
|
|
|
3832
|
-
function
|
|
3803
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3833
3804
|
|
|
3834
3805
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3835
3806
|
|
|
3807
|
+
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; } }
|
|
3808
|
+
|
|
3809
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3810
|
+
|
|
3836
3811
|
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); }
|
|
3837
3812
|
|
|
3838
3813
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3839
3814
|
|
|
3840
3815
|
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; }
|
|
3841
3816
|
|
|
3842
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3817
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3843
3818
|
|
|
3844
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3819
|
+
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."); }
|
|
3845
3820
|
|
|
3846
|
-
function
|
|
3821
|
+
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); }
|
|
3822
|
+
|
|
3823
|
+
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; }
|
|
3824
|
+
|
|
3825
|
+
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; }
|
|
3847
3826
|
|
|
3848
3827
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3849
3828
|
|
|
@@ -3868,14 +3847,12 @@ function parsePlaylist(url) {
|
|
|
3868
3847
|
return {};
|
|
3869
3848
|
}
|
|
3870
3849
|
|
|
3871
|
-
var YouTube =
|
|
3872
|
-
/*#__PURE__*/
|
|
3873
|
-
function (_Component) {
|
|
3850
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3874
3851
|
_inherits(YouTube, _Component);
|
|
3875
3852
|
|
|
3876
|
-
|
|
3877
|
-
var _getPrototypeOf2;
|
|
3853
|
+
var _super = _createSuper(YouTube);
|
|
3878
3854
|
|
|
3855
|
+
function YouTube() {
|
|
3879
3856
|
var _this;
|
|
3880
3857
|
|
|
3881
3858
|
_classCallCheck(this, YouTube);
|
|
@@ -3884,7 +3861,7 @@ function (_Component) {
|
|
|
3884
3861
|
args[_key] = arguments[_key];
|
|
3885
3862
|
}
|
|
3886
3863
|
|
|
3887
|
-
_this =
|
|
3864
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3888
3865
|
|
|
3889
3866
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3890
3867
|
|
|
@@ -4072,9 +4049,9 @@ function (_Component) {
|
|
|
4072
4049
|
height: '100%',
|
|
4073
4050
|
display: display
|
|
4074
4051
|
};
|
|
4075
|
-
return _react["default"].createElement("div", {
|
|
4052
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4076
4053
|
style: style
|
|
4077
|
-
}, _react["default"].createElement("div", {
|
|
4054
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4078
4055
|
ref: this.ref
|
|
4079
4056
|
}));
|
|
4080
4057
|
}
|
|
@@ -4097,7 +4074,7 @@ exports["default"] = _default;
|
|
|
4097
4074
|
});
|
|
4098
4075
|
|
|
4099
4076
|
unwrapExports(YouTube_1);
|
|
4100
|
-
|
|
4077
|
+
YouTube_1.YouTube;
|
|
4101
4078
|
|
|
4102
4079
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4103
4080
|
|
|
@@ -4130,12 +4107,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4130
4107
|
|
|
4131
4108
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4132
4109
|
|
|
4133
|
-
function
|
|
4110
|
+
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); }; }
|
|
4134
4111
|
|
|
4135
|
-
function
|
|
4112
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4136
4113
|
|
|
4137
4114
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4138
4115
|
|
|
4116
|
+
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; } }
|
|
4117
|
+
|
|
4118
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4119
|
+
|
|
4139
4120
|
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); }
|
|
4140
4121
|
|
|
4141
4122
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4144,16 +4125,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4144
4125
|
|
|
4145
4126
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4146
4127
|
var SDK_GLOBAL = 'SC';
|
|
4147
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4128
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4148
4129
|
|
|
4149
|
-
var SoundCloud =
|
|
4150
|
-
/*#__PURE__*/
|
|
4151
|
-
function (_Component) {
|
|
4130
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4152
4131
|
_inherits(SoundCloud, _Component);
|
|
4153
4132
|
|
|
4154
|
-
|
|
4155
|
-
var _getPrototypeOf2;
|
|
4133
|
+
var _super = _createSuper(SoundCloud);
|
|
4156
4134
|
|
|
4135
|
+
function SoundCloud() {
|
|
4157
4136
|
var _this;
|
|
4158
4137
|
|
|
4159
4138
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4162,7 +4141,7 @@ function (_Component) {
|
|
|
4162
4141
|
args[_key] = arguments[_key];
|
|
4163
4142
|
}
|
|
4164
4143
|
|
|
4165
|
-
_this =
|
|
4144
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4166
4145
|
|
|
4167
4146
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4168
4147
|
|
|
@@ -4283,7 +4262,7 @@ function (_Component) {
|
|
|
4283
4262
|
height: '100%',
|
|
4284
4263
|
display: display
|
|
4285
4264
|
};
|
|
4286
|
-
return _react["default"].createElement("iframe", {
|
|
4265
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4287
4266
|
ref: this.ref,
|
|
4288
4267
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4289
4268
|
style: style,
|
|
@@ -4312,7 +4291,7 @@ exports["default"] = _default;
|
|
|
4312
4291
|
});
|
|
4313
4292
|
|
|
4314
4293
|
unwrapExports(SoundCloud_1);
|
|
4315
|
-
|
|
4294
|
+
SoundCloud_1.SoundCloud;
|
|
4316
4295
|
|
|
4317
4296
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4318
4297
|
|
|
@@ -4345,12 +4324,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4345
4324
|
|
|
4346
4325
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4347
4326
|
|
|
4348
|
-
function
|
|
4327
|
+
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); }; }
|
|
4349
4328
|
|
|
4350
|
-
function
|
|
4329
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4351
4330
|
|
|
4352
4331
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4353
4332
|
|
|
4333
|
+
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; } }
|
|
4334
|
+
|
|
4335
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4336
|
+
|
|
4354
4337
|
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); }
|
|
4355
4338
|
|
|
4356
4339
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4362,14 +4345,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4362
4345
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4363
4346
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4364
4347
|
|
|
4365
|
-
var Vimeo =
|
|
4366
|
-
/*#__PURE__*/
|
|
4367
|
-
function (_Component) {
|
|
4348
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4368
4349
|
_inherits(Vimeo, _Component);
|
|
4369
4350
|
|
|
4370
|
-
|
|
4371
|
-
var _getPrototypeOf2;
|
|
4351
|
+
var _super = _createSuper(Vimeo);
|
|
4372
4352
|
|
|
4353
|
+
function Vimeo() {
|
|
4373
4354
|
var _this;
|
|
4374
4355
|
|
|
4375
4356
|
_classCallCheck(this, Vimeo);
|
|
@@ -4378,7 +4359,7 @@ function (_Component) {
|
|
|
4378
4359
|
args[_key] = arguments[_key];
|
|
4379
4360
|
}
|
|
4380
4361
|
|
|
4381
|
-
_this =
|
|
4362
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4382
4363
|
|
|
4383
4364
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4384
4365
|
|
|
@@ -4535,7 +4516,7 @@ function (_Component) {
|
|
|
4535
4516
|
overflow: 'hidden',
|
|
4536
4517
|
display: display
|
|
4537
4518
|
};
|
|
4538
|
-
return _react["default"].createElement("div", {
|
|
4519
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4539
4520
|
key: this.props.url,
|
|
4540
4521
|
ref: this.ref,
|
|
4541
4522
|
style: style
|
|
@@ -4566,7 +4547,7 @@ exports["default"] = _default;
|
|
|
4566
4547
|
});
|
|
4567
4548
|
|
|
4568
4549
|
unwrapExports(Vimeo_1);
|
|
4569
|
-
|
|
4550
|
+
Vimeo_1.Vimeo;
|
|
4570
4551
|
|
|
4571
4552
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4572
4553
|
|
|
@@ -4595,12 +4576,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4595
4576
|
|
|
4596
4577
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4597
4578
|
|
|
4598
|
-
function
|
|
4579
|
+
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); }; }
|
|
4599
4580
|
|
|
4600
|
-
function
|
|
4581
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4601
4582
|
|
|
4602
4583
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4603
4584
|
|
|
4585
|
+
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; } }
|
|
4586
|
+
|
|
4587
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4588
|
+
|
|
4604
4589
|
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); }
|
|
4605
4590
|
|
|
4606
4591
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4613,14 +4598,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4613
4598
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4614
4599
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4615
4600
|
|
|
4616
|
-
var Facebook =
|
|
4617
|
-
/*#__PURE__*/
|
|
4618
|
-
function (_Component) {
|
|
4601
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4619
4602
|
_inherits(Facebook, _Component);
|
|
4620
4603
|
|
|
4621
|
-
|
|
4622
|
-
var _getPrototypeOf2;
|
|
4604
|
+
var _super = _createSuper(Facebook);
|
|
4623
4605
|
|
|
4606
|
+
function Facebook() {
|
|
4624
4607
|
var _this;
|
|
4625
4608
|
|
|
4626
4609
|
_classCallCheck(this, Facebook);
|
|
@@ -4629,7 +4612,7 @@ function (_Component) {
|
|
|
4629
4612
|
args[_key] = arguments[_key];
|
|
4630
4613
|
}
|
|
4631
4614
|
|
|
4632
|
-
_this =
|
|
4615
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4633
4616
|
|
|
4634
4617
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4635
4618
|
|
|
@@ -4745,7 +4728,7 @@ function (_Component) {
|
|
|
4745
4728
|
width: '100%',
|
|
4746
4729
|
height: '100%'
|
|
4747
4730
|
};
|
|
4748
|
-
return _react["default"].createElement("div", {
|
|
4731
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4749
4732
|
style: style,
|
|
4750
4733
|
id: this.playerID,
|
|
4751
4734
|
className: "fb-video",
|
|
@@ -4776,7 +4759,7 @@ exports["default"] = _default;
|
|
|
4776
4759
|
});
|
|
4777
4760
|
|
|
4778
4761
|
unwrapExports(Facebook_1);
|
|
4779
|
-
|
|
4762
|
+
Facebook_1.Facebook;
|
|
4780
4763
|
|
|
4781
4764
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4782
4765
|
|
|
@@ -4805,12 +4788,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4805
4788
|
|
|
4806
4789
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4807
4790
|
|
|
4808
|
-
function
|
|
4791
|
+
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); }; }
|
|
4809
4792
|
|
|
4810
|
-
function
|
|
4793
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4811
4794
|
|
|
4812
4795
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4813
4796
|
|
|
4797
|
+
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; } }
|
|
4798
|
+
|
|
4799
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4800
|
+
|
|
4814
4801
|
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); }
|
|
4815
4802
|
|
|
4816
4803
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4821,14 +4808,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4821
4808
|
var SDK_GLOBAL = 'playerjs';
|
|
4822
4809
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4823
4810
|
|
|
4824
|
-
var Streamable =
|
|
4825
|
-
/*#__PURE__*/
|
|
4826
|
-
function (_Component) {
|
|
4811
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4827
4812
|
_inherits(Streamable, _Component);
|
|
4828
4813
|
|
|
4829
|
-
|
|
4830
|
-
var _getPrototypeOf2;
|
|
4814
|
+
var _super = _createSuper(Streamable);
|
|
4831
4815
|
|
|
4816
|
+
function Streamable() {
|
|
4832
4817
|
var _this;
|
|
4833
4818
|
|
|
4834
4819
|
_classCallCheck(this, Streamable);
|
|
@@ -4837,7 +4822,7 @@ function (_Component) {
|
|
|
4837
4822
|
args[_key] = arguments[_key];
|
|
4838
4823
|
}
|
|
4839
4824
|
|
|
4840
|
-
_this =
|
|
4825
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4841
4826
|
|
|
4842
4827
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4843
4828
|
|
|
@@ -4957,7 +4942,7 @@ function (_Component) {
|
|
|
4957
4942
|
width: '100%',
|
|
4958
4943
|
height: '100%'
|
|
4959
4944
|
};
|
|
4960
|
-
return _react["default"].createElement("iframe", {
|
|
4945
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4961
4946
|
ref: this.ref,
|
|
4962
4947
|
src: "https://streamable.com/o/".concat(id),
|
|
4963
4948
|
frameBorder: "0",
|
|
@@ -4985,7 +4970,7 @@ exports["default"] = _default;
|
|
|
4985
4970
|
});
|
|
4986
4971
|
|
|
4987
4972
|
unwrapExports(Streamable_1);
|
|
4988
|
-
|
|
4973
|
+
Streamable_1.Streamable;
|
|
4989
4974
|
|
|
4990
4975
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4991
4976
|
|
|
@@ -5018,12 +5003,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5018
5003
|
|
|
5019
5004
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5020
5005
|
|
|
5021
|
-
function
|
|
5006
|
+
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); }; }
|
|
5022
5007
|
|
|
5023
|
-
function
|
|
5008
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5024
5009
|
|
|
5025
5010
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5026
5011
|
|
|
5012
|
+
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; } }
|
|
5013
|
+
|
|
5014
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5015
|
+
|
|
5027
5016
|
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); }
|
|
5028
5017
|
|
|
5029
5018
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5034,26 +5023,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5034
5023
|
var SDK_GLOBAL = 'Wistia';
|
|
5035
5024
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5036
5025
|
|
|
5037
|
-
var Wistia =
|
|
5038
|
-
/*#__PURE__*/
|
|
5039
|
-
function (_Component) {
|
|
5026
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
5040
5027
|
_inherits(Wistia, _Component);
|
|
5041
5028
|
|
|
5042
|
-
|
|
5043
|
-
var _getPrototypeOf2;
|
|
5029
|
+
var _super = _createSuper(Wistia);
|
|
5044
5030
|
|
|
5031
|
+
function Wistia() {
|
|
5045
5032
|
var _this;
|
|
5046
5033
|
|
|
5047
5034
|
_classCallCheck(this, Wistia);
|
|
5048
5035
|
|
|
5049
|
-
for (var _len = arguments.length,
|
|
5050
|
-
|
|
5036
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5037
|
+
_args[_key] = arguments[_key];
|
|
5051
5038
|
}
|
|
5052
5039
|
|
|
5053
|
-
_this =
|
|
5040
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5054
5041
|
|
|
5055
5042
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5056
5043
|
|
|
5044
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5045
|
+
var _this$props;
|
|
5046
|
+
|
|
5047
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5048
|
+
});
|
|
5049
|
+
|
|
5050
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5051
|
+
var _this$props2;
|
|
5052
|
+
|
|
5053
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5054
|
+
});
|
|
5055
|
+
|
|
5056
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5057
|
+
var _this$props3;
|
|
5058
|
+
|
|
5059
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5060
|
+
});
|
|
5061
|
+
|
|
5062
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5063
|
+
var _this$props4;
|
|
5064
|
+
|
|
5065
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5066
|
+
});
|
|
5067
|
+
|
|
5057
5068
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5058
5069
|
_this.callPlayer('mute');
|
|
5059
5070
|
});
|
|
@@ -5075,17 +5086,13 @@ function (_Component) {
|
|
|
5075
5086
|
value: function load(url) {
|
|
5076
5087
|
var _this2 = this;
|
|
5077
5088
|
|
|
5078
|
-
var _this$
|
|
5079
|
-
playing = _this$
|
|
5080
|
-
muted = _this$
|
|
5081
|
-
controls = _this$
|
|
5082
|
-
_onReady = _this$
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
onSeek = _this$props.onSeek,
|
|
5086
|
-
onEnded = _this$props.onEnded,
|
|
5087
|
-
config = _this$props.config,
|
|
5088
|
-
onError = _this$props.onError;
|
|
5089
|
+
var _this$props5 = this.props,
|
|
5090
|
+
playing = _this$props5.playing,
|
|
5091
|
+
muted = _this$props5.muted,
|
|
5092
|
+
controls = _this$props5.controls,
|
|
5093
|
+
_onReady = _this$props5.onReady,
|
|
5094
|
+
config = _this$props5.config,
|
|
5095
|
+
onError = _this$props5.onError;
|
|
5089
5096
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5090
5097
|
window._wq = window._wq || [];
|
|
5091
5098
|
|
|
@@ -5102,19 +5109,28 @@ function (_Component) {
|
|
|
5102
5109
|
|
|
5103
5110
|
_this2.unbind();
|
|
5104
5111
|
|
|
5105
|
-
_this2.player.bind('play', onPlay);
|
|
5112
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5106
5113
|
|
|
5107
|
-
_this2.player.bind('pause', onPause);
|
|
5114
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5108
5115
|
|
|
5109
|
-
_this2.player.bind('seek', onSeek);
|
|
5116
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5110
5117
|
|
|
5111
|
-
_this2.player.bind('end', onEnded);
|
|
5118
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5112
5119
|
|
|
5113
5120
|
_onReady();
|
|
5114
5121
|
}
|
|
5115
5122
|
});
|
|
5116
5123
|
}, onError);
|
|
5117
5124
|
}
|
|
5125
|
+
}, {
|
|
5126
|
+
key: "unbind",
|
|
5127
|
+
value: function unbind() {
|
|
5128
|
+
this.player.unbind('play', this.onPlay);
|
|
5129
|
+
this.player.unbind('pause', this.onPause);
|
|
5130
|
+
this.player.unbind('seek', this.onSeek);
|
|
5131
|
+
this.player.unbind('end', this.onEnded);
|
|
5132
|
+
} // Proxy methods to prevent listener leaks
|
|
5133
|
+
|
|
5118
5134
|
}, {
|
|
5119
5135
|
key: "play",
|
|
5120
5136
|
value: function play() {
|
|
@@ -5125,19 +5141,6 @@ function (_Component) {
|
|
|
5125
5141
|
value: function pause() {
|
|
5126
5142
|
this.callPlayer('pause');
|
|
5127
5143
|
}
|
|
5128
|
-
}, {
|
|
5129
|
-
key: "unbind",
|
|
5130
|
-
value: function unbind() {
|
|
5131
|
-
var _this$props2 = this.props,
|
|
5132
|
-
onPlay = _this$props2.onPlay,
|
|
5133
|
-
onPause = _this$props2.onPause,
|
|
5134
|
-
onSeek = _this$props2.onSeek,
|
|
5135
|
-
onEnded = _this$props2.onEnded;
|
|
5136
|
-
this.player.unbind('play', onPlay);
|
|
5137
|
-
this.player.unbind('pause', onPause);
|
|
5138
|
-
this.player.unbind('seek', onSeek);
|
|
5139
|
-
this.player.unbind('end', onEnded);
|
|
5140
|
-
}
|
|
5141
5144
|
}, {
|
|
5142
5145
|
key: "stop",
|
|
5143
5146
|
value: function stop() {
|
|
@@ -5183,7 +5186,7 @@ function (_Component) {
|
|
|
5183
5186
|
width: '100%',
|
|
5184
5187
|
height: '100%'
|
|
5185
5188
|
};
|
|
5186
|
-
return _react["default"].createElement("div", {
|
|
5189
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5187
5190
|
key: id,
|
|
5188
5191
|
className: className,
|
|
5189
5192
|
style: style
|
|
@@ -5210,7 +5213,7 @@ exports["default"] = _default;
|
|
|
5210
5213
|
});
|
|
5211
5214
|
|
|
5212
5215
|
unwrapExports(Wistia_1);
|
|
5213
|
-
|
|
5216
|
+
Wistia_1.Wistia;
|
|
5214
5217
|
|
|
5215
5218
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5216
5219
|
|
|
@@ -5243,12 +5246,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5243
5246
|
|
|
5244
5247
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5245
5248
|
|
|
5246
|
-
function
|
|
5249
|
+
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); }; }
|
|
5247
5250
|
|
|
5248
|
-
function
|
|
5251
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5249
5252
|
|
|
5250
5253
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5251
5254
|
|
|
5255
|
+
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; } }
|
|
5256
|
+
|
|
5257
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5258
|
+
|
|
5252
5259
|
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); }
|
|
5253
5260
|
|
|
5254
5261
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5261,14 +5268,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5261
5268
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5262
5269
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5263
5270
|
|
|
5264
|
-
var Twitch =
|
|
5265
|
-
/*#__PURE__*/
|
|
5266
|
-
function (_Component) {
|
|
5271
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5267
5272
|
_inherits(Twitch, _Component);
|
|
5268
5273
|
|
|
5269
|
-
|
|
5270
|
-
var _getPrototypeOf2;
|
|
5274
|
+
var _super = _createSuper(Twitch);
|
|
5271
5275
|
|
|
5276
|
+
function Twitch() {
|
|
5272
5277
|
var _this;
|
|
5273
5278
|
|
|
5274
5279
|
_classCallCheck(this, Twitch);
|
|
@@ -5277,7 +5282,7 @@ function (_Component) {
|
|
|
5277
5282
|
args[_key] = arguments[_key];
|
|
5278
5283
|
}
|
|
5279
5284
|
|
|
5280
|
-
_this =
|
|
5285
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5281
5286
|
|
|
5282
5287
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5283
5288
|
|
|
@@ -5398,7 +5403,7 @@ function (_Component) {
|
|
|
5398
5403
|
width: '100%',
|
|
5399
5404
|
height: '100%'
|
|
5400
5405
|
};
|
|
5401
|
-
return _react["default"].createElement("div", {
|
|
5406
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5402
5407
|
style: style,
|
|
5403
5408
|
id: this.playerID
|
|
5404
5409
|
});
|
|
@@ -5424,7 +5429,7 @@ exports["default"] = _default;
|
|
|
5424
5429
|
});
|
|
5425
5430
|
|
|
5426
5431
|
unwrapExports(Twitch_1);
|
|
5427
|
-
|
|
5432
|
+
Twitch_1.Twitch;
|
|
5428
5433
|
|
|
5429
5434
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5430
5435
|
|
|
@@ -5451,11 +5456,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5451
5456
|
|
|
5452
5457
|
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; }
|
|
5453
5458
|
|
|
5454
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5459
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5460
|
+
|
|
5461
|
+
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."); }
|
|
5462
|
+
|
|
5463
|
+
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); }
|
|
5455
5464
|
|
|
5456
|
-
function
|
|
5465
|
+
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; }
|
|
5457
5466
|
|
|
5458
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5467
|
+
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; }
|
|
5459
5468
|
|
|
5460
5469
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5461
5470
|
|
|
@@ -5465,12 +5474,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5465
5474
|
|
|
5466
5475
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5467
5476
|
|
|
5468
|
-
function
|
|
5477
|
+
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); }; }
|
|
5469
5478
|
|
|
5470
|
-
function
|
|
5479
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5471
5480
|
|
|
5472
5481
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5473
5482
|
|
|
5483
|
+
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; } }
|
|
5484
|
+
|
|
5485
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5486
|
+
|
|
5474
5487
|
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); }
|
|
5475
5488
|
|
|
5476
5489
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5482,14 +5495,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5482
5495
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5483
5496
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5484
5497
|
|
|
5485
|
-
var DailyMotion =
|
|
5486
|
-
/*#__PURE__*/
|
|
5487
|
-
function (_Component) {
|
|
5498
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5488
5499
|
_inherits(DailyMotion, _Component);
|
|
5489
5500
|
|
|
5490
|
-
|
|
5491
|
-
var _getPrototypeOf2;
|
|
5501
|
+
var _super = _createSuper(DailyMotion);
|
|
5492
5502
|
|
|
5503
|
+
function DailyMotion() {
|
|
5493
5504
|
var _this;
|
|
5494
5505
|
|
|
5495
5506
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5498,7 +5509,7 @@ function (_Component) {
|
|
|
5498
5509
|
args[_key] = arguments[_key];
|
|
5499
5510
|
}
|
|
5500
5511
|
|
|
5501
|
-
_this =
|
|
5512
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5502
5513
|
|
|
5503
5514
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5504
5515
|
|
|
@@ -5627,9 +5638,9 @@ function (_Component) {
|
|
|
5627
5638
|
height: '100%',
|
|
5628
5639
|
display: display
|
|
5629
5640
|
};
|
|
5630
|
-
return _react["default"].createElement("div", {
|
|
5641
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5631
5642
|
style: style
|
|
5632
|
-
}, _react["default"].createElement("div", {
|
|
5643
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5633
5644
|
ref: this.ref
|
|
5634
5645
|
}));
|
|
5635
5646
|
}
|
|
@@ -5654,7 +5665,7 @@ exports["default"] = _default;
|
|
|
5654
5665
|
});
|
|
5655
5666
|
|
|
5656
5667
|
unwrapExports(DailyMotion_1);
|
|
5657
|
-
|
|
5668
|
+
DailyMotion_1.DailyMotion;
|
|
5658
5669
|
|
|
5659
5670
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5660
5671
|
|
|
@@ -5687,12 +5698,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5687
5698
|
|
|
5688
5699
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5689
5700
|
|
|
5690
|
-
function
|
|
5701
|
+
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); }; }
|
|
5691
5702
|
|
|
5692
|
-
function
|
|
5703
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5693
5704
|
|
|
5694
5705
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5695
5706
|
|
|
5707
|
+
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; } }
|
|
5708
|
+
|
|
5709
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5710
|
+
|
|
5696
5711
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5697
5712
|
|
|
5698
5713
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5703,14 +5718,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5703
5718
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5704
5719
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5705
5720
|
|
|
5706
|
-
var Mixcloud =
|
|
5707
|
-
/*#__PURE__*/
|
|
5708
|
-
function (_Component) {
|
|
5721
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5709
5722
|
_inherits(Mixcloud, _Component);
|
|
5710
5723
|
|
|
5711
|
-
|
|
5712
|
-
var _getPrototypeOf2;
|
|
5724
|
+
var _super = _createSuper(Mixcloud);
|
|
5713
5725
|
|
|
5726
|
+
function Mixcloud() {
|
|
5714
5727
|
var _this;
|
|
5715
5728
|
|
|
5716
5729
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5719,7 +5732,7 @@ function (_Component) {
|
|
|
5719
5732
|
args[_key] = arguments[_key];
|
|
5720
5733
|
}
|
|
5721
5734
|
|
|
5722
|
-
_this =
|
|
5735
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5723
5736
|
|
|
5724
5737
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5725
5738
|
|
|
@@ -5822,7 +5835,7 @@ function (_Component) {
|
|
|
5822
5835
|
})); // We have to give the iframe a key here to prevent a
|
|
5823
5836
|
// weird dialog appearing when loading a new track
|
|
5824
5837
|
|
|
5825
|
-
return _react["default"].createElement("iframe", {
|
|
5838
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5826
5839
|
key: id,
|
|
5827
5840
|
ref: this.ref,
|
|
5828
5841
|
style: style,
|
|
@@ -5851,7 +5864,7 @@ exports["default"] = _default;
|
|
|
5851
5864
|
});
|
|
5852
5865
|
|
|
5853
5866
|
unwrapExports(Mixcloud_1);
|
|
5854
|
-
|
|
5867
|
+
Mixcloud_1.Mixcloud;
|
|
5855
5868
|
|
|
5856
5869
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5857
5870
|
|
|
@@ -5882,23 +5895,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5882
5895
|
|
|
5883
5896
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5884
5897
|
|
|
5885
|
-
function
|
|
5898
|
+
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); }; }
|
|
5886
5899
|
|
|
5887
|
-
function
|
|
5900
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5888
5901
|
|
|
5889
5902
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5890
5903
|
|
|
5904
|
+
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; } }
|
|
5905
|
+
|
|
5906
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5907
|
+
|
|
5891
5908
|
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); }
|
|
5892
5909
|
|
|
5893
5910
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5894
5911
|
|
|
5895
5912
|
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; }
|
|
5896
5913
|
|
|
5914
|
+
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; } } }; }
|
|
5915
|
+
|
|
5916
|
+
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); }
|
|
5917
|
+
|
|
5918
|
+
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; }
|
|
5919
|
+
|
|
5897
5920
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5898
5921
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5899
5922
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5900
5923
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5901
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5924
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5902
5925
|
var HLS_GLOBAL = 'Hls';
|
|
5903
5926
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5904
5927
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5907,12 +5930,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5907
5930
|
|
|
5908
5931
|
function canPlay(url) {
|
|
5909
5932
|
if (url instanceof Array) {
|
|
5910
|
-
var
|
|
5911
|
-
|
|
5912
|
-
var _iteratorError = undefined;
|
|
5933
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5934
|
+
_step;
|
|
5913
5935
|
|
|
5914
5936
|
try {
|
|
5915
|
-
for (
|
|
5937
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5916
5938
|
var item = _step.value;
|
|
5917
5939
|
|
|
5918
5940
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5924,18 +5946,9 @@ function canPlay(url) {
|
|
|
5924
5946
|
}
|
|
5925
5947
|
}
|
|
5926
5948
|
} catch (err) {
|
|
5927
|
-
|
|
5928
|
-
_iteratorError = err;
|
|
5949
|
+
_iterator.e(err);
|
|
5929
5950
|
} finally {
|
|
5930
|
-
|
|
5931
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5932
|
-
_iterator["return"]();
|
|
5933
|
-
}
|
|
5934
|
-
} finally {
|
|
5935
|
-
if (_didIteratorError) {
|
|
5936
|
-
throw _iteratorError;
|
|
5937
|
-
}
|
|
5938
|
-
}
|
|
5951
|
+
_iterator.f();
|
|
5939
5952
|
}
|
|
5940
5953
|
|
|
5941
5954
|
return false;
|
|
@@ -5959,14 +5972,12 @@ function canEnablePIP(url) {
|
|
|
5959
5972
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5960
5973
|
}
|
|
5961
5974
|
|
|
5962
|
-
var FilePlayer =
|
|
5963
|
-
/*#__PURE__*/
|
|
5964
|
-
function (_Component) {
|
|
5975
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5965
5976
|
_inherits(FilePlayer, _Component);
|
|
5966
5977
|
|
|
5967
|
-
|
|
5968
|
-
var _getPrototypeOf2;
|
|
5978
|
+
var _super = _createSuper(FilePlayer);
|
|
5969
5979
|
|
|
5980
|
+
function FilePlayer() {
|
|
5970
5981
|
var _this;
|
|
5971
5982
|
|
|
5972
5983
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5975,7 +5986,7 @@ function (_Component) {
|
|
|
5975
5986
|
_args[_key] = arguments[_key];
|
|
5976
5987
|
}
|
|
5977
5988
|
|
|
5978
|
-
_this =
|
|
5989
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5979
5990
|
|
|
5980
5991
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5981
5992
|
var _this$props;
|
|
@@ -6062,19 +6073,19 @@ function (_Component) {
|
|
|
6062
6073
|
|
|
6063
6074
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6064
6075
|
if (typeof source === 'string') {
|
|
6065
|
-
return _react["default"].createElement("source", {
|
|
6076
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6066
6077
|
key: index,
|
|
6067
6078
|
src: source
|
|
6068
6079
|
});
|
|
6069
6080
|
}
|
|
6070
6081
|
|
|
6071
|
-
return _react["default"].createElement("source", _extends({
|
|
6082
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6072
6083
|
key: index
|
|
6073
6084
|
}, source));
|
|
6074
6085
|
});
|
|
6075
6086
|
|
|
6076
6087
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6077
|
-
return _react["default"].createElement("track", _extends({
|
|
6088
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6078
6089
|
key: index
|
|
6079
6090
|
}, track));
|
|
6080
6091
|
});
|
|
@@ -6112,6 +6123,10 @@ function (_Component) {
|
|
|
6112
6123
|
key: "componentWillUnmount",
|
|
6113
6124
|
value: function componentWillUnmount() {
|
|
6114
6125
|
this.removeListeners(this.player);
|
|
6126
|
+
|
|
6127
|
+
if (this.hls) {
|
|
6128
|
+
this.hls.destroy();
|
|
6129
|
+
}
|
|
6115
6130
|
}
|
|
6116
6131
|
}, {
|
|
6117
6132
|
key: "addListeners",
|
|
@@ -6242,10 +6257,6 @@ function (_Component) {
|
|
|
6242
6257
|
value: function stop() {
|
|
6243
6258
|
this.player.removeAttribute('src');
|
|
6244
6259
|
|
|
6245
|
-
if (this.hls) {
|
|
6246
|
-
this.hls.destroy();
|
|
6247
|
-
}
|
|
6248
|
-
|
|
6249
6260
|
if (this.dash) {
|
|
6250
6261
|
this.dash.reset();
|
|
6251
6262
|
}
|
|
@@ -6357,7 +6368,7 @@ function (_Component) {
|
|
|
6357
6368
|
width: width === 'auto' ? width : '100%',
|
|
6358
6369
|
height: height === 'auto' ? height : '100%'
|
|
6359
6370
|
};
|
|
6360
|
-
return _react["default"].createElement(Element, _extends({
|
|
6371
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6361
6372
|
ref: this.ref,
|
|
6362
6373
|
src: this.getSource(url),
|
|
6363
6374
|
style: style,
|
|
@@ -6387,7 +6398,7 @@ exports["default"] = _default;
|
|
|
6387
6398
|
});
|
|
6388
6399
|
|
|
6389
6400
|
unwrapExports(FilePlayer_1);
|
|
6390
|
-
|
|
6401
|
+
FilePlayer_1.FilePlayer;
|
|
6391
6402
|
|
|
6392
6403
|
var players = createCommonjsModule(function (module, exports) {
|
|
6393
6404
|
|
|
@@ -6447,12 +6458,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6447
6458
|
|
|
6448
6459
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6449
6460
|
|
|
6450
|
-
function
|
|
6461
|
+
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); }; }
|
|
6451
6462
|
|
|
6452
|
-
function
|
|
6463
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6453
6464
|
|
|
6454
6465
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6455
6466
|
|
|
6467
|
+
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; } }
|
|
6468
|
+
|
|
6469
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6470
|
+
|
|
6456
6471
|
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); }
|
|
6457
6472
|
|
|
6458
6473
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6461,14 +6476,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6461
6476
|
|
|
6462
6477
|
var ICON_SIZE = '64px';
|
|
6463
6478
|
|
|
6464
|
-
var Preview =
|
|
6465
|
-
/*#__PURE__*/
|
|
6466
|
-
function (_Component) {
|
|
6479
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6467
6480
|
_inherits(Preview, _Component);
|
|
6468
6481
|
|
|
6469
|
-
|
|
6470
|
-
var _getPrototypeOf2;
|
|
6482
|
+
var _super = _createSuper(Preview);
|
|
6471
6483
|
|
|
6484
|
+
function Preview() {
|
|
6472
6485
|
var _this;
|
|
6473
6486
|
|
|
6474
6487
|
_classCallCheck(this, Preview);
|
|
@@ -6477,7 +6490,7 @@ function (_Component) {
|
|
|
6477
6490
|
args[_key] = arguments[_key];
|
|
6478
6491
|
}
|
|
6479
6492
|
|
|
6480
|
-
_this =
|
|
6493
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6481
6494
|
|
|
6482
6495
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6483
6496
|
|
|
@@ -6575,15 +6588,15 @@ function (_Component) {
|
|
|
6575
6588
|
}
|
|
6576
6589
|
};
|
|
6577
6590
|
|
|
6578
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6591
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6579
6592
|
style: styles.shadow,
|
|
6580
6593
|
className: "react-player__shadow"
|
|
6581
|
-
}, _react["default"].createElement("div", {
|
|
6594
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6582
6595
|
style: styles.playIcon,
|
|
6583
6596
|
className: "react-player__play-icon"
|
|
6584
6597
|
}));
|
|
6585
6598
|
|
|
6586
|
-
return _react["default"].createElement("div", {
|
|
6599
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6587
6600
|
style: styles.preview,
|
|
6588
6601
|
className: "react-player__preview",
|
|
6589
6602
|
onClick: onClick
|
|
@@ -6620,6 +6633,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6620
6633
|
|
|
6621
6634
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6622
6635
|
|
|
6636
|
+
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; } } }; }
|
|
6637
|
+
|
|
6638
|
+
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); }
|
|
6639
|
+
|
|
6640
|
+
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; }
|
|
6641
|
+
|
|
6623
6642
|
var PRELOAD_PLAYERS = [{
|
|
6624
6643
|
Player: YouTube_1.YouTube,
|
|
6625
6644
|
configKey: 'youtube',
|
|
@@ -6640,16 +6659,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6640
6659
|
|
|
6641
6660
|
function renderPreloadPlayers(url, controls, config) {
|
|
6642
6661
|
var players = [];
|
|
6643
|
-
|
|
6644
|
-
var
|
|
6645
|
-
|
|
6662
|
+
|
|
6663
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6664
|
+
_step;
|
|
6646
6665
|
|
|
6647
6666
|
try {
|
|
6648
|
-
for (
|
|
6667
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6649
6668
|
var player = _step.value;
|
|
6650
6669
|
|
|
6651
6670
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6652
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6671
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6653
6672
|
key: player.Player.displayName,
|
|
6654
6673
|
activePlayer: player.Player,
|
|
6655
6674
|
url: player.url,
|
|
@@ -6661,18 +6680,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6661
6680
|
}
|
|
6662
6681
|
}
|
|
6663
6682
|
} catch (err) {
|
|
6664
|
-
|
|
6665
|
-
_iteratorError = err;
|
|
6683
|
+
_iterator.e(err);
|
|
6666
6684
|
} finally {
|
|
6667
|
-
|
|
6668
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6669
|
-
_iterator["return"]();
|
|
6670
|
-
}
|
|
6671
|
-
} finally {
|
|
6672
|
-
if (_didIteratorError) {
|
|
6673
|
-
throw _iteratorError;
|
|
6674
|
-
}
|
|
6675
|
-
}
|
|
6685
|
+
_iterator.f();
|
|
6676
6686
|
}
|
|
6677
6687
|
|
|
6678
6688
|
return players;
|
|
@@ -6796,13 +6806,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6796
6806
|
|
|
6797
6807
|
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); }
|
|
6798
6808
|
|
|
6799
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6809
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6800
6810
|
|
|
6801
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6811
|
+
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."); }
|
|
6802
6812
|
|
|
6803
|
-
function
|
|
6813
|
+
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); }
|
|
6804
6814
|
|
|
6805
|
-
function
|
|
6815
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6816
|
+
|
|
6817
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6818
|
+
|
|
6819
|
+
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; }
|
|
6806
6820
|
|
|
6807
6821
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6808
6822
|
|
|
@@ -6810,12 +6824,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6810
6824
|
|
|
6811
6825
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6812
6826
|
|
|
6813
|
-
function
|
|
6827
|
+
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); }; }
|
|
6814
6828
|
|
|
6815
|
-
function
|
|
6829
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6816
6830
|
|
|
6817
6831
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6818
6832
|
|
|
6833
|
+
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; } }
|
|
6834
|
+
|
|
6835
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6836
|
+
|
|
6819
6837
|
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); }
|
|
6820
6838
|
|
|
6821
6839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6825,14 +6843,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6825
6843
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6826
6844
|
var customPlayers = [];
|
|
6827
6845
|
|
|
6828
|
-
var ReactPlayer =
|
|
6829
|
-
/*#__PURE__*/
|
|
6830
|
-
function (_Component) {
|
|
6846
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6831
6847
|
_inherits(ReactPlayer, _Component);
|
|
6832
6848
|
|
|
6833
|
-
|
|
6834
|
-
var _getPrototypeOf2;
|
|
6849
|
+
var _super = _createSuper(ReactPlayer);
|
|
6835
6850
|
|
|
6851
|
+
function ReactPlayer() {
|
|
6836
6852
|
var _this;
|
|
6837
6853
|
|
|
6838
6854
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6841,7 +6857,7 @@ function (_Component) {
|
|
|
6841
6857
|
args[_key] = arguments[_key];
|
|
6842
6858
|
}
|
|
6843
6859
|
|
|
6844
|
-
_this =
|
|
6860
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6845
6861
|
|
|
6846
6862
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6847
6863
|
|
|
@@ -6952,7 +6968,7 @@ function (_Component) {
|
|
|
6952
6968
|
key: "renderActivePlayer",
|
|
6953
6969
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6954
6970
|
if (!url) return null;
|
|
6955
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6971
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6956
6972
|
key: activePlayer.displayName,
|
|
6957
6973
|
ref: this.activePlayerRef,
|
|
6958
6974
|
config: this.config,
|
|
@@ -6989,14 +7005,14 @@ function (_Component) {
|
|
|
6989
7005
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6990
7006
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6991
7007
|
|
|
6992
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
7008
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6993
7009
|
url: url,
|
|
6994
7010
|
light: light,
|
|
6995
7011
|
playIcon: playIcon,
|
|
6996
7012
|
onClick: this.handleClickPreview
|
|
6997
7013
|
});
|
|
6998
7014
|
|
|
6999
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
7015
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
7000
7016
|
ref: this.wrapperRef,
|
|
7001
7017
|
style: _objectSpread({}, style, {
|
|
7002
7018
|
width: width,
|
|
@@ -7320,7 +7336,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7320
7336
|
var queue = Math.floor(duration / 10);
|
|
7321
7337
|
var segment = Math.floor(current / queue);
|
|
7322
7338
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7323
|
-
Segment.report_video_event('Video Ready',
|
|
7339
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7324
7340
|
//autoplay
|
|
7325
7341
|
|
|
7326
7342
|
//Small pause before starting next video
|
|
@@ -7341,7 +7357,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7341
7357
|
var segment = Math.floor(current / queue);
|
|
7342
7358
|
|
|
7343
7359
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7344
|
-
Segment.report_video_event('Video End',
|
|
7360
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7345
7361
|
setEndReported(true);
|
|
7346
7362
|
clearInterval(intervalID);
|
|
7347
7363
|
}
|
|
@@ -7392,7 +7408,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7392
7408
|
var segment = Math.floor(current / queue);
|
|
7393
7409
|
if (!queueProgress.includes(segment)) {
|
|
7394
7410
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7395
|
-
Segment.report_video_event('Video Segment',
|
|
7411
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7396
7412
|
queueProgress.push(segment);
|
|
7397
7413
|
}
|
|
7398
7414
|
};
|
|
@@ -7406,7 +7422,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7406
7422
|
var segment = Math.floor(current / queue);
|
|
7407
7423
|
|
|
7408
7424
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7409
|
-
Segment.report_video_event('Video Play',
|
|
7425
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7410
7426
|
|
|
7411
7427
|
if (!playReported) {
|
|
7412
7428
|
setPlayReported(true);
|
|
@@ -7425,7 +7441,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7425
7441
|
var segment = Math.floor(current / queue);
|
|
7426
7442
|
|
|
7427
7443
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7428
|
-
Segment.report_video_event('Video Pause',
|
|
7444
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7429
7445
|
};
|
|
7430
7446
|
|
|
7431
7447
|
// Youtube Options
|
|
@@ -7543,7 +7559,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7543
7559
|
React__default.createElement(
|
|
7544
7560
|
'div',
|
|
7545
7561
|
{ className: 'vid-text' },
|
|
7546
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7562
|
+
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()))
|
|
7547
7563
|
),
|
|
7548
7564
|
React__default.createElement(
|
|
7549
7565
|
'style',
|
|
@@ -7553,14 +7569,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7553
7569
|
);
|
|
7554
7570
|
};
|
|
7555
7571
|
|
|
7556
|
-
var Poll = function Poll(_ref) {
|
|
7557
|
-
var node = _ref.node
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
onVote = _ref.onVote
|
|
7562
|
-
_ref
|
|
7563
|
-
getSerializers = _ref.getSerializers;
|
|
7572
|
+
var Poll$1 = function Poll(_ref) {
|
|
7573
|
+
var node = _ref.node;
|
|
7574
|
+
_ref.client;
|
|
7575
|
+
_ref.pageview;
|
|
7576
|
+
_ref.videoAccountIDs;
|
|
7577
|
+
var onVote = _ref.onVote;
|
|
7578
|
+
_ref.showVotes;
|
|
7579
|
+
var getSerializers = _ref.getSerializers;
|
|
7564
7580
|
|
|
7565
7581
|
var _useState = useState(null),
|
|
7566
7582
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7694,22 +7710,22 @@ _export(_export.S, 'Object', {
|
|
|
7694
7710
|
}
|
|
7695
7711
|
});
|
|
7696
7712
|
|
|
7697
|
-
var values = _core.Object.values;
|
|
7713
|
+
var values$1 = _core.Object.values;
|
|
7698
7714
|
|
|
7699
|
-
var values
|
|
7700
|
-
module.exports = { "default": values, __esModule: true };
|
|
7715
|
+
var values = createCommonjsModule(function (module) {
|
|
7716
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7701
7717
|
});
|
|
7702
7718
|
|
|
7703
|
-
var _Object$values = unwrapExports(values
|
|
7719
|
+
var _Object$values = unwrapExports(values);
|
|
7704
7720
|
|
|
7705
|
-
var Poll
|
|
7706
|
-
var node = _ref.node
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
onVote = _ref.onVote
|
|
7711
|
-
_ref
|
|
7712
|
-
getSerializers = _ref.getSerializers;
|
|
7721
|
+
var Poll = function Poll(_ref) {
|
|
7722
|
+
var node = _ref.node;
|
|
7723
|
+
_ref.client;
|
|
7724
|
+
_ref.pageview;
|
|
7725
|
+
_ref.videoAccountIDs;
|
|
7726
|
+
var onVote = _ref.onVote;
|
|
7727
|
+
_ref.showVotes;
|
|
7728
|
+
var getSerializers = _ref.getSerializers;
|
|
7713
7729
|
|
|
7714
7730
|
var _useState = useState(null),
|
|
7715
7731
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7861,7 +7877,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7861
7877
|
);
|
|
7862
7878
|
};
|
|
7863
7879
|
|
|
7864
|
-
var numberOfPaginations =
|
|
7880
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7865
7881
|
|
|
7866
7882
|
var Quiz = function Quiz(_ref) {
|
|
7867
7883
|
var quizzes = _ref.quizzes,
|
|
@@ -7981,7 +7997,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7981
7997
|
var renderPagination = function renderPagination() {
|
|
7982
7998
|
return React__default.createElement(
|
|
7983
7999
|
Pagination,
|
|
7984
|
-
{ className: 'p-0 m-0', size:
|
|
8000
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7985
8001
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7986
8002
|
return changePage('first');
|
|
7987
8003
|
}, disabled: currentPage === 1 }),
|
|
@@ -8156,7 +8172,7 @@ var Leads = function Leads(_ref) {
|
|
|
8156
8172
|
);
|
|
8157
8173
|
};
|
|
8158
8174
|
|
|
8159
|
-
var Slideshow
|
|
8175
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8160
8176
|
var slides = _ref.node.slides,
|
|
8161
8177
|
client = _ref.client,
|
|
8162
8178
|
pageview = _ref.pageview,
|
|
@@ -8307,7 +8323,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8307
8323
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8308
8324
|
React__default.createElement(
|
|
8309
8325
|
'a',
|
|
8310
|
-
_extends
|
|
8326
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8311
8327
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8312
8328
|
React__default.createElement(
|
|
8313
8329
|
'div',
|
|
@@ -8602,7 +8618,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8602
8618
|
|
|
8603
8619
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8604
8620
|
if (biography) {
|
|
8605
|
-
return React__default.createElement(BlockContent, _extends
|
|
8621
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8606
8622
|
}
|
|
8607
8623
|
};
|
|
8608
8624
|
|
|
@@ -8688,7 +8704,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8688
8704
|
//console.log('useLayoutEffect')
|
|
8689
8705
|
if (!firstLoad) {
|
|
8690
8706
|
setUpArrowClicked(false);
|
|
8691
|
-
if (
|
|
8707
|
+
if (main_43) {
|
|
8692
8708
|
grabLoadedAds();
|
|
8693
8709
|
} else {
|
|
8694
8710
|
scrollToArticle();
|
|
@@ -8712,7 +8728,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8712
8728
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8713
8729
|
if (pageview) pageview(path);
|
|
8714
8730
|
|
|
8715
|
-
if (!
|
|
8731
|
+
if (!main_43) {
|
|
8716
8732
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8717
8733
|
if (window.googletag && googletag.pubadsReady) {
|
|
8718
8734
|
lib_3.refresh();
|
|
@@ -8720,7 +8736,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8720
8736
|
});
|
|
8721
8737
|
}
|
|
8722
8738
|
//Refresh leaderboard ad on mobile
|
|
8723
|
-
if (
|
|
8739
|
+
if (main_43) {
|
|
8724
8740
|
var leaderboardSlotId = '';
|
|
8725
8741
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8726
8742
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8789,7 +8805,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8789
8805
|
React__default.createElement(
|
|
8790
8806
|
'div',
|
|
8791
8807
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8792
|
-
|
|
8808
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8793
8809
|
if (index === 0) {
|
|
8794
8810
|
return React__default.createElement(
|
|
8795
8811
|
'div',
|
|
@@ -8880,7 +8896,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8880
8896
|
React__default.createElement(
|
|
8881
8897
|
'div',
|
|
8882
8898
|
{ className: 'mt-2 mb-2' },
|
|
8883
|
-
React__default.createElement(BlockContent, _extends
|
|
8899
|
+
React__default.createElement(BlockContent, _extends({
|
|
8884
8900
|
serializers: getSerializers,
|
|
8885
8901
|
videoAccountIDs: accountIDs,
|
|
8886
8902
|
blocks: article.text,
|
|
@@ -8911,7 +8927,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8911
8927
|
React__default.createElement(
|
|
8912
8928
|
'div',
|
|
8913
8929
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8914
|
-
|
|
8930
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8915
8931
|
if (innerIndex === 0) {
|
|
8916
8932
|
return React__default.createElement(
|
|
8917
8933
|
'div',
|
|
@@ -8984,7 +9000,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8984
9000
|
}
|
|
8985
9001
|
};
|
|
8986
9002
|
|
|
8987
|
-
var FigureImage = React__default.memo(function (_ref2) {
|
|
9003
|
+
var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
8988
9004
|
var node = _ref2.node,
|
|
8989
9005
|
client = _ref2.client,
|
|
8990
9006
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8998,7 +9014,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8998
9014
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8999
9015
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9000
9016
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9001
|
-
React__default.createElement('img', _extends
|
|
9017
|
+
React__default.createElement('img', _extends({
|
|
9002
9018
|
style: figureImageStyle,
|
|
9003
9019
|
className: 'figure-image',
|
|
9004
9020
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9066,7 +9082,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9066
9082
|
} else {
|
|
9067
9083
|
return React__default.createElement(
|
|
9068
9084
|
Tooltip,
|
|
9069
|
-
_extends
|
|
9085
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9070
9086
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9071
9087
|
);
|
|
9072
9088
|
}
|
|
@@ -9080,32 +9096,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9080
9096
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9081
9097
|
|
|
9082
9098
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9083
|
-
var triggerAction =
|
|
9084
|
-
var placementLocation =
|
|
9099
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9100
|
+
var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9085
9101
|
return React__default.createElement(
|
|
9086
9102
|
'picture',
|
|
9087
9103
|
null,
|
|
9088
9104
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9089
9105
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9090
9106
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9091
|
-
|
|
9107
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9092
9108
|
style: figureImageStyle,
|
|
9093
9109
|
className: 'figure-image',
|
|
9094
9110
|
src: urlFor({ source: node, client: client }),
|
|
9095
9111
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9096
|
-
}, !link && !
|
|
9112
|
+
}, !link && !main_42 && {
|
|
9097
9113
|
onClick: function onClick() {
|
|
9098
9114
|
return handleClickFigure(node, client);
|
|
9099
9115
|
}
|
|
9100
9116
|
})) : React__default.createElement(
|
|
9101
9117
|
OverlayTrigger,
|
|
9102
9118
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9103
|
-
React__default.createElement('img', _extends
|
|
9119
|
+
React__default.createElement('img', _extends({
|
|
9104
9120
|
style: figureImageStyle,
|
|
9105
9121
|
className: 'figure-image',
|
|
9106
9122
|
src: urlFor({ source: node, client: client }),
|
|
9107
9123
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9108
|
-
}, !link && !
|
|
9124
|
+
}, !link && !main_42 && {
|
|
9109
9125
|
onClick: function onClick() {
|
|
9110
9126
|
return handleClickFigure(node, client);
|
|
9111
9127
|
}
|
|
@@ -9181,7 +9197,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9181
9197
|
React__default.Fragment,
|
|
9182
9198
|
null,
|
|
9183
9199
|
infoBox.length >= 1 ? React__default.createElement(
|
|
9184
|
-
Figure$
|
|
9200
|
+
Figure$2,
|
|
9185
9201
|
{ className: '' + class_name, style: figureStyle },
|
|
9186
9202
|
link ? React__default.createElement(
|
|
9187
9203
|
'a',
|
|
@@ -9203,17 +9219,17 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9203
9219
|
}
|
|
9204
9220
|
})
|
|
9205
9221
|
) : React__default.createElement(
|
|
9206
|
-
Figure$
|
|
9222
|
+
Figure$2,
|
|
9207
9223
|
{ className: '' + class_name, style: figureStyle },
|
|
9208
9224
|
link ? React__default.createElement(
|
|
9209
9225
|
'a',
|
|
9210
9226
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9211
|
-
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9227
|
+
React__default.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9212
9228
|
React__default.createElement(FigureCaption, null)
|
|
9213
9229
|
) : React__default.createElement(
|
|
9214
9230
|
React__default.Fragment,
|
|
9215
9231
|
null,
|
|
9216
|
-
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9232
|
+
React__default.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9217
9233
|
React__default.createElement(FigureCaption, null)
|
|
9218
9234
|
),
|
|
9219
9235
|
React__default.createElement(LightBox, {
|
|
@@ -9250,7 +9266,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9250
9266
|
}, [ref]);
|
|
9251
9267
|
}
|
|
9252
9268
|
|
|
9253
|
-
var FigureImage
|
|
9269
|
+
var FigureImage = React__default.memo(function (_ref) {
|
|
9254
9270
|
var imagesCount = _ref.imagesCount,
|
|
9255
9271
|
image = _ref.image,
|
|
9256
9272
|
client = _ref.client,
|
|
@@ -9264,7 +9280,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9264
9280
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9265
9281
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9266
9282
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9267
|
-
React__default.createElement('img', _extends
|
|
9283
|
+
React__default.createElement('img', _extends({
|
|
9268
9284
|
'images-count': imagesCount,
|
|
9269
9285
|
className: 'multi-figure-image',
|
|
9270
9286
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9324,32 +9340,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9324
9340
|
link = _ref3.link,
|
|
9325
9341
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9326
9342
|
|
|
9327
|
-
var triggerAction =
|
|
9328
|
-
var placementLocation =
|
|
9343
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9344
|
+
var placementLocation = main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9329
9345
|
return React__default.createElement(
|
|
9330
9346
|
'picture',
|
|
9331
9347
|
null,
|
|
9332
9348
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9333
9349
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9334
9350
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9335
|
-
|
|
9351
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9336
9352
|
'images-count': imagesCount,
|
|
9337
9353
|
className: 'multi-figure-image',
|
|
9338
9354
|
src: urlFor({ source: image, client: client }),
|
|
9339
9355
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9340
|
-
}, !link && !
|
|
9356
|
+
}, !link && !main_42 && {
|
|
9341
9357
|
onClick: function onClick() {
|
|
9342
9358
|
return handleClickFigure(image, client);
|
|
9343
9359
|
}
|
|
9344
9360
|
})) : React__default.createElement(
|
|
9345
9361
|
OverlayTrigger,
|
|
9346
9362
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9347
|
-
React__default.createElement('img', _extends
|
|
9363
|
+
React__default.createElement('img', _extends({
|
|
9348
9364
|
'images-count': imagesCount,
|
|
9349
9365
|
className: 'multi-figure-image',
|
|
9350
9366
|
src: urlFor({ source: image, client: client }),
|
|
9351
9367
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9352
|
-
}, !link && !
|
|
9368
|
+
}, !link && !main_42 && {
|
|
9353
9369
|
onClick: function onClick() {
|
|
9354
9370
|
return handleClickFigure(image, client);
|
|
9355
9371
|
}
|
|
@@ -9377,7 +9393,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9377
9393
|
} else {
|
|
9378
9394
|
return React__default.createElement(
|
|
9379
9395
|
Tooltip,
|
|
9380
|
-
_extends
|
|
9396
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9381
9397
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9382
9398
|
);
|
|
9383
9399
|
}
|
|
@@ -9397,7 +9413,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9397
9413
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9398
9414
|
image.link ? React__default.createElement(
|
|
9399
9415
|
'a',
|
|
9400
|
-
_extends
|
|
9416
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9401
9417
|
React__default.createElement(
|
|
9402
9418
|
'div',
|
|
9403
9419
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9425,14 +9441,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9425
9441
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9426
9442
|
image.link ? React__default.createElement(
|
|
9427
9443
|
'a',
|
|
9428
|
-
_extends
|
|
9444
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9429
9445
|
React__default.createElement(
|
|
9430
9446
|
'div',
|
|
9431
9447
|
{ className: 'multi-figure-image-container' },
|
|
9432
9448
|
React__default.createElement(
|
|
9433
9449
|
LazyLoad,
|
|
9434
9450
|
{ once: true },
|
|
9435
|
-
React__default.createElement(FigureImage
|
|
9451
|
+
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9436
9452
|
),
|
|
9437
9453
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9438
9454
|
)
|
|
@@ -9442,7 +9458,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9442
9458
|
React__default.createElement(
|
|
9443
9459
|
LazyLoad,
|
|
9444
9460
|
{ once: true },
|
|
9445
|
-
React__default.createElement(FigureImage
|
|
9461
|
+
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9446
9462
|
),
|
|
9447
9463
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9448
9464
|
)
|
|
@@ -9554,7 +9570,7 @@ exports.__esModule = true;
|
|
|
9554
9570
|
|
|
9555
9571
|
|
|
9556
9572
|
|
|
9557
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9573
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9558
9574
|
|
|
9559
9575
|
|
|
9560
9576
|
|
|
@@ -9723,9 +9739,9 @@ var ScriptTag = function (_Component) {
|
|
|
9723
9739
|
|
|
9724
9740
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9725
9741
|
// eslint-disable-next-line no-unused-vars
|
|
9726
|
-
var _props3 = this.props
|
|
9727
|
-
|
|
9728
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9742
|
+
var _props3 = this.props;
|
|
9743
|
+
_props3.isHydrating;
|
|
9744
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9729
9745
|
|
|
9730
9746
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9731
9747
|
return _this2.domRef = tag;
|
|
@@ -9867,7 +9883,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9867
9883
|
return React__default.createElement(
|
|
9868
9884
|
'div',
|
|
9869
9885
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9870
|
-
React__default.createElement(BlockContent, _extends
|
|
9886
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9871
9887
|
);
|
|
9872
9888
|
})
|
|
9873
9889
|
);
|
|
@@ -10001,7 +10017,7 @@ var getSerializers = function getSerializers() {
|
|
|
10001
10017
|
var node = _ref6.node;
|
|
10002
10018
|
var slides = node.slides;
|
|
10003
10019
|
|
|
10004
|
-
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10020
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10005
10021
|
},
|
|
10006
10022
|
sidebar: function sidebar(_ref7) {
|
|
10007
10023
|
var node = _ref7.node;
|
|
@@ -10039,12 +10055,12 @@ var getSerializers = function getSerializers() {
|
|
|
10039
10055
|
poll: function poll(_ref13) {
|
|
10040
10056
|
var node = _ref13.node;
|
|
10041
10057
|
|
|
10042
|
-
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10058
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10043
10059
|
},
|
|
10044
10060
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10045
10061
|
var node = _ref14.node;
|
|
10046
10062
|
|
|
10047
|
-
return React__default.createElement(Poll
|
|
10063
|
+
return React__default.createElement(Poll, {
|
|
10048
10064
|
node: node,
|
|
10049
10065
|
client: client,
|
|
10050
10066
|
pageview: pageview,
|
|
@@ -10070,7 +10086,7 @@ var getSerializers = function getSerializers() {
|
|
|
10070
10086
|
slideshows: function slideshows(_ref17) {
|
|
10071
10087
|
var node = _ref17.node;
|
|
10072
10088
|
|
|
10073
|
-
return React__default.createElement(Slideshow
|
|
10089
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10074
10090
|
},
|
|
10075
10091
|
nativeAd: function nativeAd(_ref18) {
|
|
10076
10092
|
var node = _ref18.node;
|
|
@@ -10145,7 +10161,7 @@ var getSerializers = function getSerializers() {
|
|
|
10145
10161
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10146
10162
|
return href ? React__default.createElement(
|
|
10147
10163
|
'a',
|
|
10148
|
-
_extends
|
|
10164
|
+
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10149
10165
|
children
|
|
10150
10166
|
) : children;
|
|
10151
10167
|
},
|