@mjhls/mjh-framework 1.0.803 → 1.0.804-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -30
- package/dist/cjs/AD300x250x600.js +30 -30
- package/dist/cjs/AD728x90.js +33 -33
- package/dist/cjs/ADFloatingFooter.js +44 -32
- package/dist/cjs/ADFooter.js +28 -20
- package/dist/cjs/ADGutter.js +32 -32
- package/dist/cjs/{ADInfeed-d9976673.js → ADInfeed-6c2d52f3.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -32
- package/dist/cjs/ADSponsoredResources.js +32 -32
- package/dist/cjs/ADWebcast.js +32 -32
- package/dist/cjs/ADWelcome.js +33 -33
- package/dist/cjs/{ADlgInfeed-0610e1bb.js → ADlgInfeed-fd573385.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -35
- package/dist/cjs/AdSlotsProvider.js +17 -17
- package/dist/cjs/AlgoliaSearch.js +14122 -60
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +57 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -61
- package/dist/cjs/Auth.js +662 -686
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +84 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -61
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +96 -99
- package/dist/cjs/DeckQueue.js +89 -92
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-26baccf1.js} +34 -34
- package/dist/cjs/EventsDeck.js +135 -142
- package/dist/cjs/ExternalResources.js +80 -80
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +179 -182
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +131 -136
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +70 -70
- package/dist/cjs/HorizontalHero.js +26 -27
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +71 -76
- package/dist/cjs/IssueLanding.js +43 -43
- package/dist/cjs/LeftNav.js +39 -40
- package/dist/cjs/MasterDeck.js +72 -72
- package/dist/cjs/MediaSeriesLanding.js +1091 -1182
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +131 -139
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +109 -109
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +42 -42
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +108 -112
- package/dist/cjs/QueueDeckExpanded.js +295 -294
- package/dist/cjs/RecentNews.js +24 -25
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +39 -38
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-4abb21b4.js} +37 -38
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-97dd19a5.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +58 -63
- package/dist/cjs/TaxonomyDescription.js +54 -54
- package/dist/cjs/TemplateNormal.js +76 -76
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +27 -28
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +73 -76
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesListing.js +78 -78
- package/dist/cjs/View.js +262 -264
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-9d158713.js → extends-60837c34.js} +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +12 -425
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +44 -43
- package/dist/cjs/{getTargeting-fbbe92ba.js → getTargeting-34e3ba68.js} +3 -3
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
- package/dist/cjs/{index-a766f892.js → index-b53c1261.js} +984 -1007
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-9225638f.js → index.esm-66ffa47a.js} +10 -5
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +162 -164
- package/dist/cjs/{inherits-3ff1b657.js → inherits-513d81cd.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -23
- package/dist/esm/AD300x250x600.js +24 -23
- package/dist/esm/AD728x90.js +27 -26
- package/dist/esm/ADFloatingFooter.js +36 -23
- package/dist/esm/ADFooter.js +20 -11
- package/dist/esm/ADGutter.js +23 -22
- package/dist/esm/{ADInfeed-33e556f5.js → ADInfeed-04878bcc.js} +6 -6
- package/dist/esm/ADSkyscraper.js +23 -22
- package/dist/esm/ADSponsoredResources.js +23 -22
- package/dist/esm/ADWebcast.js +23 -22
- package/dist/esm/ADWelcome.js +20 -19
- package/dist/esm/{ADlgInfeed-1270c526.js → ADlgInfeed-fb45c8cf.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +24 -23
- package/dist/esm/AdSlotsProvider.js +13 -12
- package/dist/esm/AlgoliaSearch.js +14091 -28
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +48 -47
- package/dist/esm/ArticleSeriesLandingPage.js +33 -32
- package/dist/esm/ArticleSeriesListing.js +34 -33
- package/dist/esm/Auth.js +575 -595
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +25 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +39 -38
- package/dist/esm/ConferenceArticleCard.js +7 -7
- package/dist/esm/DeckContent.js +49 -48
- package/dist/esm/DeckQueue.js +48 -47
- package/dist/esm/{Dfp-be030f2a.js → Dfp-b7236041.js} +15 -14
- package/dist/esm/EventsDeck.js +50 -50
- package/dist/esm/ExternalResources.js +48 -47
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +11 -11
- package/dist/esm/GridContent.js +81 -80
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +29 -29
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +45 -44
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +26 -26
- package/dist/esm/IssueDeck.js +36 -36
- package/dist/esm/IssueLanding.js +36 -35
- package/dist/esm/LeftNav.js +22 -21
- package/dist/esm/MasterDeck.js +37 -36
- package/dist/esm/MediaSeriesLanding.js +643 -731
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +34 -34
- package/dist/esm/NavNative.js +35 -35
- package/dist/esm/NavNormal.js +18 -18
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +57 -56
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +34 -33
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +23 -23
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +38 -37
- package/dist/esm/RecentNews.js +6 -6
- package/dist/esm/RelatedContent.js +6 -6
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +20 -19
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-36be7223.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-db5ba548.js} +12 -12
- package/dist/esm/TaxonomyCard.js +24 -24
- package/dist/esm/TaxonomyDescription.js +45 -44
- package/dist/esm/TemplateNormal.js +51 -50
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +11 -11
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +53 -52
- package/dist/esm/VideoSeriesCard.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -37
- package/dist/esm/VideoSeriesListing.js +35 -34
- package/dist/esm/View.js +92 -90
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-f076879e.js → extends-eb69e8ac.js} +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -425
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +44 -43
- package/dist/esm/{getTargeting-0958ad0e.js → getTargeting-739e9fed.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-f354da27.js → index-6271cfc8.js} +612 -628
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-e874e770.js → index.esm-b08f4b04.js} +10 -5
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +119 -118
- package/dist/esm/{inherits-f71787cf.js → inherits-fb9b6e8f.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,40 +1,40 @@
|
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-eb69e8ac.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-fb9b6e8f.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
1
7
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
5
|
-
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
8
9
|
import PropTypes from 'prop-types';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
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 { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
12
20
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
21
|
+
import Beam from './Beam.js';
|
|
22
|
+
import DFPAdSlot from './AdSlot.js';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
25
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
26
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
+
import { u as util } from './util-7700fc59.js';
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
30
|
+
import Head from 'next/head';
|
|
21
31
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as
|
|
23
|
-
import
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
33
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
26
34
|
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
-
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-f71787cf.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
35
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
36
36
|
|
|
37
|
-
var urlFor
|
|
37
|
+
var urlFor = function urlFor(source, builder) {
|
|
38
38
|
return builder.image(source).auto('format');
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
44
44
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
var Slideshow
|
|
47
|
+
var Slideshow = function Slideshow(_ref) {
|
|
48
48
|
var slides = _ref.slides,
|
|
49
49
|
client = _ref.client,
|
|
50
50
|
pageview = _ref.pageview;
|
|
@@ -85,7 +85,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
85
85
|
return React__default.createElement(
|
|
86
86
|
Carousel.Item,
|
|
87
87
|
{ key: slide._key },
|
|
88
|
-
React__default.createElement('img', { src: slide.asset && urlFor
|
|
88
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
89
89
|
slide.caption && React__default.createElement(
|
|
90
90
|
'p',
|
|
91
91
|
{ className: 'p-2' },
|
|
@@ -97,18 +97,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
var isArray = Array.isArray;
|
|
101
|
+
var keyList = Object.keys;
|
|
102
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
103
103
|
|
|
104
104
|
var fastDeepEqual = function equal(a, b) {
|
|
105
105
|
if (a === b) return true;
|
|
106
106
|
|
|
107
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
108
|
+
var arrA = isArray(a)
|
|
109
|
+
, arrB = isArray(b)
|
|
110
|
+
, i
|
|
111
|
+
, length
|
|
112
|
+
, key;
|
|
109
113
|
|
|
110
|
-
|
|
111
|
-
if (Array.isArray(a)) {
|
|
114
|
+
if (arrA && arrB) {
|
|
112
115
|
length = a.length;
|
|
113
116
|
if (length != b.length) return false;
|
|
114
117
|
for (i = length; i-- !== 0;)
|
|
@@ -116,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
116
119
|
return true;
|
|
117
120
|
}
|
|
118
121
|
|
|
122
|
+
if (arrA != arrB) return false;
|
|
119
123
|
|
|
124
|
+
var dateA = a instanceof Date
|
|
125
|
+
, dateB = b instanceof Date;
|
|
126
|
+
if (dateA != dateB) return false;
|
|
127
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
120
128
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (
|
|
129
|
+
var regexpA = a instanceof RegExp
|
|
130
|
+
, regexpB = b instanceof RegExp;
|
|
131
|
+
if (regexpA != regexpB) return false;
|
|
132
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
124
133
|
|
|
125
|
-
keys =
|
|
134
|
+
var keys = keyList(a);
|
|
126
135
|
length = keys.length;
|
|
127
|
-
|
|
136
|
+
|
|
137
|
+
if (length !== keyList(b).length)
|
|
138
|
+
return false;
|
|
128
139
|
|
|
129
140
|
for (i = length; i-- !== 0;)
|
|
130
|
-
if (!
|
|
141
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
131
142
|
|
|
132
143
|
for (i = length; i-- !== 0;) {
|
|
133
|
-
|
|
134
|
-
|
|
144
|
+
key = keys[i];
|
|
135
145
|
if (!equal(a[key], b[key])) return false;
|
|
136
146
|
}
|
|
137
147
|
|
|
138
148
|
return true;
|
|
139
149
|
}
|
|
140
150
|
|
|
141
|
-
// true if both NaN, false otherwise
|
|
142
151
|
return a!==a && b!==b;
|
|
143
152
|
};
|
|
144
153
|
|
|
@@ -676,14 +685,14 @@ function coerce(val) {
|
|
|
676
685
|
return val;
|
|
677
686
|
}
|
|
678
687
|
});
|
|
679
|
-
debug.coerce;
|
|
680
|
-
debug.disable;
|
|
681
|
-
debug.enable;
|
|
682
|
-
debug.enabled;
|
|
683
|
-
debug.humanize;
|
|
684
|
-
debug.names;
|
|
685
|
-
debug.skips;
|
|
686
|
-
debug.formatters;
|
|
688
|
+
var debug_1 = debug.coerce;
|
|
689
|
+
var debug_2 = debug.disable;
|
|
690
|
+
var debug_3 = debug.enable;
|
|
691
|
+
var debug_4 = debug.enabled;
|
|
692
|
+
var debug_5 = debug.humanize;
|
|
693
|
+
var debug_6 = debug.names;
|
|
694
|
+
var debug_7 = debug.skips;
|
|
695
|
+
var debug_8 = debug.formatters;
|
|
687
696
|
|
|
688
697
|
var browser = createCommonjsModule(function (module, exports) {
|
|
689
698
|
/**
|
|
@@ -872,13 +881,13 @@ function localstorage() {
|
|
|
872
881
|
} catch (e) {}
|
|
873
882
|
}
|
|
874
883
|
});
|
|
875
|
-
browser.log;
|
|
876
|
-
browser.formatArgs;
|
|
877
|
-
browser.save;
|
|
878
|
-
browser.load;
|
|
879
|
-
browser.useColors;
|
|
880
|
-
browser.storage;
|
|
881
|
-
browser.colors;
|
|
884
|
+
var browser_1 = browser.log;
|
|
885
|
+
var browser_2 = browser.formatArgs;
|
|
886
|
+
var browser_3 = browser.save;
|
|
887
|
+
var browser_4 = browser.load;
|
|
888
|
+
var browser_5 = browser.useColors;
|
|
889
|
+
var browser_6 = browser.storage;
|
|
890
|
+
var browser_7 = browser.colors;
|
|
882
891
|
|
|
883
892
|
// MIT lisence
|
|
884
893
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1153,14 +1162,14 @@ function init (debug) {
|
|
|
1153
1162
|
|
|
1154
1163
|
exports.enable(load());
|
|
1155
1164
|
});
|
|
1156
|
-
node.init;
|
|
1157
|
-
node.log;
|
|
1158
|
-
node.formatArgs;
|
|
1159
|
-
node.save;
|
|
1160
|
-
node.load;
|
|
1161
|
-
node.useColors;
|
|
1162
|
-
node.colors;
|
|
1163
|
-
node.inspectOpts;
|
|
1165
|
+
var node_1 = node.init;
|
|
1166
|
+
var node_2 = node.log;
|
|
1167
|
+
var node_3 = node.formatArgs;
|
|
1168
|
+
var node_4 = node.save;
|
|
1169
|
+
var node_5 = node.load;
|
|
1170
|
+
var node_6 = node.useColors;
|
|
1171
|
+
var node_7 = node.colors;
|
|
1172
|
+
var node_8 = node.inspectOpts;
|
|
1164
1173
|
|
|
1165
1174
|
var src = createCommonjsModule(function (module) {
|
|
1166
1175
|
/**
|
|
@@ -1561,239 +1570,199 @@ module.exports = exports['default'];
|
|
|
1561
1570
|
|
|
1562
1571
|
var youTubePlayer = unwrapExports(dist);
|
|
1563
1572
|
|
|
1564
|
-
function
|
|
1573
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1565
1574
|
|
|
1566
|
-
function
|
|
1575
|
+
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; };
|
|
1567
1576
|
|
|
1568
|
-
function
|
|
1569
|
-
|
|
1570
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
-
|
|
1572
|
-
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); }
|
|
1573
|
-
|
|
1574
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
-
|
|
1576
|
-
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); }; }
|
|
1577
|
-
|
|
1578
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
-
|
|
1580
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
-
|
|
1582
|
-
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; } }
|
|
1577
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1583
1578
|
|
|
1584
|
-
function
|
|
1579
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1585
1580
|
|
|
1586
|
-
function
|
|
1581
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1587
1582
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
*
|
|
1593
|
-
*
|
|
1594
|
-
* @param {Object} prevProps
|
|
1595
|
-
* @param {Object} props
|
|
1583
|
+
/**
|
|
1584
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1585
|
+
*
|
|
1586
|
+
* @param {Object} prevProps
|
|
1587
|
+
* @param {Object} props
|
|
1596
1588
|
*/
|
|
1597
|
-
|
|
1598
1589
|
function shouldUpdateVideo(prevProps, props) {
|
|
1599
1590
|
// A changing video should always trigger an update
|
|
1600
1591
|
if (prevProps.videoId !== props.videoId) {
|
|
1601
1592
|
return true;
|
|
1602
|
-
}
|
|
1603
|
-
// update.
|
|
1604
|
-
|
|
1593
|
+
}
|
|
1605
1594
|
|
|
1595
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
|
+
// update.
|
|
1606
1597
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1607
1598
|
var vars = props.opts.playerVars || {};
|
|
1599
|
+
|
|
1608
1600
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1609
1601
|
}
|
|
1610
|
-
/**
|
|
1611
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
-
* player reset is necessary.
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Object} opts
|
|
1616
|
-
*/
|
|
1617
|
-
|
|
1618
1602
|
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1609
|
+
*/
|
|
1619
1610
|
function filterResetOptions(opts) {
|
|
1620
|
-
return
|
|
1621
|
-
playerVars:
|
|
1611
|
+
return _extends({}, opts, {
|
|
1612
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1622
1613
|
autoplay: 0,
|
|
1623
1614
|
start: 0,
|
|
1624
1615
|
end: 0
|
|
1625
|
-
}
|
|
1616
|
+
})
|
|
1626
1617
|
});
|
|
1627
1618
|
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
-
* those.
|
|
1633
|
-
*
|
|
1634
|
-
* @param {Object} prevProps
|
|
1635
|
-
* @param {Object} props
|
|
1636
|
-
*/
|
|
1637
|
-
|
|
1638
1619
|
|
|
1620
|
+
/**
|
|
1621
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1622
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1623
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1624
|
+
* those.
|
|
1625
|
+
*
|
|
1626
|
+
* @param {Object} prevProps
|
|
1627
|
+
* @param {Object} props
|
|
1628
|
+
*/
|
|
1639
1629
|
function shouldResetPlayer(prevProps, props) {
|
|
1640
1630
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1641
1631
|
}
|
|
1642
|
-
/**
|
|
1643
|
-
* Check whether a props change should result in an id or className update.
|
|
1644
|
-
*
|
|
1645
|
-
* @param {Object} prevProps
|
|
1646
|
-
* @param {Object} props
|
|
1647
|
-
*/
|
|
1648
|
-
|
|
1649
1632
|
|
|
1633
|
+
/**
|
|
1634
|
+
* Check whether a props change should result in an id or className update.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {Object} prevProps
|
|
1637
|
+
* @param {Object} props
|
|
1638
|
+
*/
|
|
1650
1639
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1651
1640
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1652
1641
|
}
|
|
1653
1642
|
|
|
1654
|
-
var YouTube =
|
|
1643
|
+
var YouTube = function (_React$Component) {
|
|
1655
1644
|
_inherits(YouTube, _React$Component);
|
|
1656
1645
|
|
|
1657
|
-
var _super = _createSuper(YouTube);
|
|
1658
|
-
|
|
1659
|
-
/**
|
|
1660
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
-
*/
|
|
1664
1646
|
function YouTube(props) {
|
|
1665
|
-
var _this;
|
|
1666
|
-
|
|
1667
1647
|
_classCallCheck(this, YouTube);
|
|
1668
1648
|
|
|
1669
|
-
_this =
|
|
1649
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1670
1650
|
|
|
1671
|
-
|
|
1651
|
+
_this.onPlayerReady = function (event) {
|
|
1672
1652
|
return _this.props.onReady(event);
|
|
1673
|
-
}
|
|
1653
|
+
};
|
|
1674
1654
|
|
|
1675
|
-
|
|
1655
|
+
_this.onPlayerError = function (event) {
|
|
1676
1656
|
return _this.props.onError(event);
|
|
1677
|
-
}
|
|
1657
|
+
};
|
|
1678
1658
|
|
|
1679
|
-
|
|
1659
|
+
_this.onPlayerStateChange = function (event) {
|
|
1680
1660
|
_this.props.onStateChange(event);
|
|
1681
|
-
|
|
1682
1661
|
switch (event.data) {
|
|
1662
|
+
|
|
1683
1663
|
case YouTube.PlayerState.ENDED:
|
|
1684
1664
|
_this.props.onEnd(event);
|
|
1685
|
-
|
|
1686
1665
|
break;
|
|
1687
1666
|
|
|
1688
1667
|
case YouTube.PlayerState.PLAYING:
|
|
1689
1668
|
_this.props.onPlay(event);
|
|
1690
|
-
|
|
1691
1669
|
break;
|
|
1692
1670
|
|
|
1693
1671
|
case YouTube.PlayerState.PAUSED:
|
|
1694
1672
|
_this.props.onPause(event);
|
|
1695
|
-
|
|
1696
1673
|
break;
|
|
1697
1674
|
}
|
|
1698
|
-
}
|
|
1675
|
+
};
|
|
1699
1676
|
|
|
1700
|
-
|
|
1677
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1701
1678
|
return _this.props.onPlaybackRateChange(event);
|
|
1702
|
-
}
|
|
1679
|
+
};
|
|
1703
1680
|
|
|
1704
|
-
|
|
1681
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1705
1682
|
return _this.props.onPlaybackQualityChange(event);
|
|
1706
|
-
}
|
|
1683
|
+
};
|
|
1707
1684
|
|
|
1708
|
-
|
|
1685
|
+
_this.createPlayer = function () {
|
|
1709
1686
|
// do not attempt to create a player server-side, it won't work
|
|
1710
|
-
if (typeof document === 'undefined') return;
|
|
1711
|
-
|
|
1712
|
-
var playerOpts =
|
|
1687
|
+
if (typeof document === 'undefined') return;
|
|
1688
|
+
// create player
|
|
1689
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1713
1690
|
// preload the `videoId` video if one is already given
|
|
1714
1691
|
videoId: _this.props.videoId
|
|
1715
1692
|
});
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1693
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1694
|
+
// attach event handlers
|
|
1719
1695
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
-
|
|
1721
1696
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
-
|
|
1723
1697
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
-
|
|
1725
1698
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
-
|
|
1727
1699
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1728
|
-
}
|
|
1700
|
+
};
|
|
1729
1701
|
|
|
1730
|
-
|
|
1702
|
+
_this.resetPlayer = function () {
|
|
1731
1703
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1732
|
-
}
|
|
1704
|
+
};
|
|
1733
1705
|
|
|
1734
|
-
|
|
1706
|
+
_this.updatePlayer = function () {
|
|
1735
1707
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1736
1708
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1737
1709
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1738
1710
|
});
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
-
return _this.internalPlayer;
|
|
1743
|
-
});
|
|
1711
|
+
};
|
|
1744
1712
|
|
|
1745
|
-
|
|
1713
|
+
_this.updateVideo = function () {
|
|
1746
1714
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1747
1715
|
_this.internalPlayer.stopVideo();
|
|
1748
|
-
|
|
1749
1716
|
return;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1717
|
+
}
|
|
1752
1718
|
|
|
1719
|
+
// set queueing options
|
|
1753
1720
|
var autoplay = false;
|
|
1754
1721
|
var opts = {
|
|
1755
1722
|
videoId: _this.props.videoId
|
|
1756
1723
|
};
|
|
1757
|
-
|
|
1758
1724
|
if ('playerVars' in _this.props.opts) {
|
|
1759
1725
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
-
|
|
1761
1726
|
if ('start' in _this.props.opts.playerVars) {
|
|
1762
1727
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1763
1728
|
}
|
|
1764
|
-
|
|
1765
1729
|
if ('end' in _this.props.opts.playerVars) {
|
|
1766
1730
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1767
1731
|
}
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1732
|
+
}
|
|
1770
1733
|
|
|
1734
|
+
// if autoplay is enabled loadVideoById
|
|
1771
1735
|
if (autoplay) {
|
|
1772
1736
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
-
|
|
1774
1737
|
return;
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1738
|
+
}
|
|
1739
|
+
// default behaviour just cues the video
|
|
1778
1740
|
_this.internalPlayer.cueVideoById(opts);
|
|
1779
|
-
}
|
|
1741
|
+
};
|
|
1780
1742
|
|
|
1781
|
-
|
|
1743
|
+
_this.refContainer = function (container) {
|
|
1782
1744
|
_this.container = container;
|
|
1783
|
-
}
|
|
1745
|
+
};
|
|
1784
1746
|
|
|
1785
1747
|
_this.container = null;
|
|
1786
1748
|
_this.internalPlayer = null;
|
|
1787
1749
|
return _this;
|
|
1788
1750
|
}
|
|
1789
1751
|
|
|
1752
|
+
/**
|
|
1753
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
+
*/
|
|
1757
|
+
|
|
1758
|
+
|
|
1790
1759
|
_createClass(YouTube, [{
|
|
1791
|
-
key:
|
|
1760
|
+
key: 'componentDidMount',
|
|
1792
1761
|
value: function componentDidMount() {
|
|
1793
1762
|
this.createPlayer();
|
|
1794
1763
|
}
|
|
1795
1764
|
}, {
|
|
1796
|
-
key:
|
|
1765
|
+
key: 'componentDidUpdate',
|
|
1797
1766
|
value: function componentDidUpdate(prevProps) {
|
|
1798
1767
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1799
1768
|
this.updatePlayer();
|
|
@@ -1808,58 +1777,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1808
1777
|
}
|
|
1809
1778
|
}
|
|
1810
1779
|
}, {
|
|
1811
|
-
key:
|
|
1780
|
+
key: 'componentWillUnmount',
|
|
1812
1781
|
value: function componentWillUnmount() {
|
|
1813
|
-
/**
|
|
1814
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1815
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
-
* this method isn't quick enough to reset the container element.
|
|
1782
|
+
/**
|
|
1783
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1784
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
+
* this method isn't quick enough to reset the container element.
|
|
1818
1787
|
*/
|
|
1819
1788
|
this.internalPlayer.destroy();
|
|
1820
1789
|
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1793
|
+
*
|
|
1794
|
+
* @param {Object} event
|
|
1795
|
+
* @param {Object} target - player object
|
|
1796
|
+
*/
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
+
*
|
|
1802
|
+
* @param {Object} event
|
|
1803
|
+
* @param {Integer} data - error type
|
|
1804
|
+
* @param {Object} target - player object
|
|
1805
|
+
*/
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
+
*
|
|
1811
|
+
* @param {Object} event
|
|
1812
|
+
* @param {Integer} data - status change type
|
|
1813
|
+
* @param {Object} target - actual YT player
|
|
1814
|
+
*/
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
+
*
|
|
1820
|
+
* @param {Object} event
|
|
1821
|
+
* @param {Float} data - playback rate
|
|
1822
|
+
* @param {Object} target - actual YT player
|
|
1823
|
+
*/
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
+
*
|
|
1829
|
+
* @param {Object} event
|
|
1830
|
+
* @param {String} data - playback quality
|
|
1831
|
+
* @param {Object} target - actual YT player
|
|
1832
|
+
*/
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
+
*/
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
+
* React should update this automatically but since the Youtube Player API
|
|
1848
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
+
* Youtube Player API methods to update the video.
|
|
1826
1856
|
*/
|
|
1827
1857
|
|
|
1828
1858
|
}, {
|
|
1829
|
-
key:
|
|
1859
|
+
key: 'render',
|
|
1830
1860
|
value: function render() {
|
|
1831
|
-
return
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
id: this.props.id,
|
|
1835
|
-
|
|
1836
|
-
ref: this.refContainer
|
|
1837
|
-
}));
|
|
1861
|
+
return React__default.createElement(
|
|
1862
|
+
'div',
|
|
1863
|
+
{ className: this.props.containerClassName },
|
|
1864
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1865
|
+
);
|
|
1838
1866
|
}
|
|
1839
1867
|
}]);
|
|
1840
1868
|
|
|
1841
1869
|
return YouTube;
|
|
1842
1870
|
}(React__default.Component);
|
|
1843
1871
|
|
|
1844
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
-
UNSTARTED: -1,
|
|
1846
|
-
ENDED: 0,
|
|
1847
|
-
PLAYING: 1,
|
|
1848
|
-
PAUSED: 2,
|
|
1849
|
-
BUFFERING: 3,
|
|
1850
|
-
CUED: 5
|
|
1851
|
-
});
|
|
1852
|
-
|
|
1853
1872
|
YouTube.propTypes = {
|
|
1854
1873
|
videoId: PropTypes.string,
|
|
1874
|
+
|
|
1855
1875
|
// custom ID for player element
|
|
1856
1876
|
id: PropTypes.string,
|
|
1877
|
+
|
|
1857
1878
|
// custom class name for player element
|
|
1858
1879
|
className: PropTypes.string,
|
|
1859
1880
|
// custom class name for player container element
|
|
1860
1881
|
containerClassName: PropTypes.string,
|
|
1882
|
+
|
|
1861
1883
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1862
1884
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
+
|
|
1863
1886
|
// event subscriptions
|
|
1864
1887
|
onReady: PropTypes.func,
|
|
1865
1888
|
onError: PropTypes.func,
|
|
@@ -1871,7 +1894,6 @@ YouTube.propTypes = {
|
|
|
1871
1894
|
onPlaybackQualityChange: PropTypes.func
|
|
1872
1895
|
};
|
|
1873
1896
|
YouTube.defaultProps = {
|
|
1874
|
-
videoId: null,
|
|
1875
1897
|
id: null,
|
|
1876
1898
|
className: null,
|
|
1877
1899
|
opts: {},
|
|
@@ -1885,6 +1907,14 @@ YouTube.defaultProps = {
|
|
|
1885
1907
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1886
1908
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1887
1909
|
};
|
|
1910
|
+
YouTube.PlayerState = {
|
|
1911
|
+
UNSTARTED: -1,
|
|
1912
|
+
ENDED: 0,
|
|
1913
|
+
PLAYING: 1,
|
|
1914
|
+
PAUSED: 2,
|
|
1915
|
+
BUFFERING: 3,
|
|
1916
|
+
CUED: 5
|
|
1917
|
+
};
|
|
1888
1918
|
|
|
1889
1919
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1890
1920
|
var url = _ref.url,
|
|
@@ -1923,8 +1953,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1923
1953
|
var duration = player.getDuration();
|
|
1924
1954
|
var queue = Math.floor(duration / 10);
|
|
1925
1955
|
var segment = Math.floor(current / queue);
|
|
1926
|
-
Beam.report_beam_video('Ready',
|
|
1927
|
-
Segment.report_video_event('Video Ready',
|
|
1956
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1957
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1928
1958
|
};
|
|
1929
1959
|
|
|
1930
1960
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1934,8 +1964,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1934
1964
|
var segment = Math.floor(current / queue);
|
|
1935
1965
|
|
|
1936
1966
|
if (!queueProgress.includes(segment)) {
|
|
1937
|
-
Beam.report_beam_video('Segment',
|
|
1938
|
-
Segment.report_video_event('Video Segment',
|
|
1967
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1968
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1939
1969
|
queueProgress.push(segment);
|
|
1940
1970
|
}
|
|
1941
1971
|
};
|
|
@@ -1948,8 +1978,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1948
1978
|
var queue = Math.floor(duration / 10);
|
|
1949
1979
|
var segment = Math.floor(current / queue);
|
|
1950
1980
|
|
|
1951
|
-
Beam.report_beam_video('Play',
|
|
1952
|
-
Segment.report_video_event('Video Play',
|
|
1981
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1982
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1953
1983
|
|
|
1954
1984
|
if (!playReported) {
|
|
1955
1985
|
setPlayReported(true);
|
|
@@ -1968,8 +1998,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1968
1998
|
var queue = Math.floor(duration / 10);
|
|
1969
1999
|
var segment = Math.floor(current / queue);
|
|
1970
2000
|
|
|
1971
|
-
Beam.report_beam_video('End',
|
|
1972
|
-
Segment.report_video_event('Video End',
|
|
2001
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
2002
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1973
2003
|
setEndReported(true);
|
|
1974
2004
|
clearInterval(intervalID);
|
|
1975
2005
|
}
|
|
@@ -1982,8 +2012,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1982
2012
|
var queue = Math.floor(duration / 10);
|
|
1983
2013
|
var segment = Math.floor(current / queue);
|
|
1984
2014
|
|
|
1985
|
-
Beam.report_beam_video('Pause',
|
|
1986
|
-
Segment.report_video_event('Video Pause',
|
|
2015
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
2016
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1987
2017
|
};
|
|
1988
2018
|
|
|
1989
2019
|
return React__default.createElement(
|
|
@@ -2150,7 +2180,7 @@ var Media = function Media(_ref) {
|
|
|
2150
2180
|
React__default.createElement(
|
|
2151
2181
|
LazyLoad,
|
|
2152
2182
|
{ once: true },
|
|
2153
|
-
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2183
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2154
2184
|
),
|
|
2155
2185
|
caption && React__default.createElement(
|
|
2156
2186
|
Figure$1.Caption,
|
|
@@ -2162,7 +2192,7 @@ var Media = function Media(_ref) {
|
|
|
2162
2192
|
} else if (caption && caption !== '') {
|
|
2163
2193
|
return React__default.createElement(
|
|
2164
2194
|
'a',
|
|
2165
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2195
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2166
2196
|
href: uploadDoc.asset.url + '?dl='
|
|
2167
2197
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2168
2198
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2217,8 +2247,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2217
2247
|
var duration = player.duration;
|
|
2218
2248
|
var queue = Math.floor(duration / 10);
|
|
2219
2249
|
var segment = Math.floor(current / queue);
|
|
2220
|
-
Beam.report_beam_video('Ready',
|
|
2221
|
-
Segment.report_video_event('Video Ready',
|
|
2250
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2251
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2222
2252
|
};
|
|
2223
2253
|
|
|
2224
2254
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2227,8 +2257,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2227
2257
|
var queue = Math.floor(duration / 10);
|
|
2228
2258
|
var segment = Math.floor(current / queue);
|
|
2229
2259
|
if (!queueProgress.includes(segment)) {
|
|
2230
|
-
Beam.report_beam_video('Segment',
|
|
2231
|
-
Segment.report_video_event('Video Segment',
|
|
2260
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2261
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2232
2262
|
queueProgress.push(segment);
|
|
2233
2263
|
}
|
|
2234
2264
|
};
|
|
@@ -2240,8 +2270,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2240
2270
|
var duration = player.duration;
|
|
2241
2271
|
var queue = Math.floor(duration / 10);
|
|
2242
2272
|
var segment = Math.floor(current / queue);
|
|
2243
|
-
Beam.report_beam_video('Play',
|
|
2244
|
-
Segment.report_video_event('Video Play',
|
|
2273
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2274
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2245
2275
|
|
|
2246
2276
|
if (!playReported) {
|
|
2247
2277
|
event.persist();
|
|
@@ -2261,8 +2291,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2261
2291
|
var queue = Math.floor(duration / 10);
|
|
2262
2292
|
var segment = Math.floor(current / queue);
|
|
2263
2293
|
|
|
2264
|
-
Beam.report_beam_video('End',
|
|
2265
|
-
Segment.report_video_event('Video End',
|
|
2294
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2295
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2266
2296
|
setEndReported(true);
|
|
2267
2297
|
clearInterval(intervalID);
|
|
2268
2298
|
}
|
|
@@ -2274,8 +2304,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2274
2304
|
var duration = player.duration - current;
|
|
2275
2305
|
var queue = Math.floor(duration / 10);
|
|
2276
2306
|
var segment = Math.floor(current / queue);
|
|
2277
|
-
Beam.report_beam_video('Pause',
|
|
2278
|
-
Segment.report_video_event('Video Pause',
|
|
2307
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2308
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2279
2309
|
};
|
|
2280
2310
|
|
|
2281
2311
|
return React__default.createElement(
|
|
@@ -2336,7 +2366,7 @@ var Video = function Video(_ref) {
|
|
|
2336
2366
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2337
2367
|
//console.log('success:', success.ref)
|
|
2338
2368
|
var player = success.ref;
|
|
2339
|
-
if (_typeof
|
|
2369
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2340
2370
|
player.ima3.settings.debug = true;
|
|
2341
2371
|
if (targeting.content_placement && targeting.document_url) {
|
|
2342
2372
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2364,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2364
2394
|
player.pause();
|
|
2365
2395
|
}
|
|
2366
2396
|
|
|
2367
|
-
Beam.report_beam_video('Ready',
|
|
2368
|
-
Segment.report_video_event('Video Ready',
|
|
2397
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2369
2399
|
});
|
|
2370
2400
|
|
|
2371
2401
|
// play
|
|
@@ -2374,8 +2404,8 @@ var Video = function Video(_ref) {
|
|
|
2374
2404
|
var current = player.currentTime();
|
|
2375
2405
|
var queue = Math.floor(duration / 10);
|
|
2376
2406
|
var segment = Math.floor(current / queue);
|
|
2377
|
-
Beam.report_beam_video('Play',
|
|
2378
|
-
Segment.report_video_event('Video Play',
|
|
2407
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2408
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2379
2409
|
});
|
|
2380
2410
|
|
|
2381
2411
|
// pause
|
|
@@ -2384,8 +2414,8 @@ var Video = function Video(_ref) {
|
|
|
2384
2414
|
var current = player.currentTime();
|
|
2385
2415
|
var queue = Math.floor(duration / 10);
|
|
2386
2416
|
var segment = Math.floor(current / queue);
|
|
2387
|
-
Beam.report_beam_video('Pause',
|
|
2388
|
-
Segment.report_video_event('Video Pause',
|
|
2417
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2418
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2389
2419
|
});
|
|
2390
2420
|
|
|
2391
2421
|
// end
|
|
@@ -2394,8 +2424,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2424
|
var current = player.currentTime();
|
|
2395
2425
|
var queue = Math.floor(duration / 10);
|
|
2396
2426
|
var segment = Math.floor(current / queue);
|
|
2397
|
-
Beam.report_beam_video('End',
|
|
2398
|
-
Segment.report_video_event('Video End',
|
|
2427
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2428
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2429
|
autoplayNextVideo(evt);
|
|
2400
2430
|
});
|
|
2401
2431
|
|
|
@@ -2406,8 +2436,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2436
|
var queue = Math.floor(duration / 10);
|
|
2407
2437
|
var segment = Math.floor(current / queue);
|
|
2408
2438
|
if (!queueProgress.includes(segment)) {
|
|
2409
|
-
Beam.report_beam_video('Segment',
|
|
2410
|
-
Segment.report_video_event('Video Segment',
|
|
2439
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2440
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2411
2441
|
queueProgress.push(segment);
|
|
2412
2442
|
}
|
|
2413
2443
|
});
|
|
@@ -2418,8 +2448,8 @@ var Video = function Video(_ref) {
|
|
|
2418
2448
|
var id = player.ads.ad.id;
|
|
2419
2449
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2420
2450
|
|
|
2421
|
-
Beam.report_beam_ad('AD Started',
|
|
2422
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2451
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2452
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2423
2453
|
});
|
|
2424
2454
|
|
|
2425
2455
|
// ad ended
|
|
@@ -2427,8 +2457,8 @@ var Video = function Video(_ref) {
|
|
|
2427
2457
|
var duration = player.ads.ad.duration;
|
|
2428
2458
|
var id = player.ads.ad.id;
|
|
2429
2459
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2430
|
-
Beam.report_beam_ad('AD Ended',
|
|
2431
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2460
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2461
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2432
2462
|
});
|
|
2433
2463
|
};
|
|
2434
2464
|
|
|
@@ -2691,9 +2721,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2691
2721
|
});
|
|
2692
2722
|
|
|
2693
2723
|
unwrapExports(props);
|
|
2694
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2695
|
-
props.defaultProps;
|
|
2696
|
-
props.propTypes;
|
|
2724
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2725
|
+
var props_2 = props.defaultProps;
|
|
2726
|
+
var props_3 = props.propTypes;
|
|
2697
2727
|
|
|
2698
2728
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2699
2729
|
return isNonNullObject(value)
|
|
@@ -2858,17 +2888,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2858
2888
|
|
|
2859
2889
|
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; }
|
|
2860
2890
|
|
|
2861
|
-
function
|
|
2862
|
-
|
|
2863
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2891
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2864
2892
|
|
|
2865
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2893
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2866
2894
|
|
|
2867
|
-
function
|
|
2868
|
-
|
|
2869
|
-
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; }
|
|
2870
|
-
|
|
2871
|
-
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; }
|
|
2895
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2872
2896
|
|
|
2873
2897
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2874
2898
|
|
|
@@ -2998,12 +3022,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2998
3022
|
|
|
2999
3023
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3000
3024
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3001
|
-
|
|
3002
|
-
var
|
|
3003
|
-
|
|
3025
|
+
var _iteratorNormalCompletion = true;
|
|
3026
|
+
var _didIteratorError = false;
|
|
3027
|
+
var _iteratorError = undefined;
|
|
3004
3028
|
|
|
3005
3029
|
try {
|
|
3006
|
-
for (_iterator.
|
|
3030
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3007
3031
|
var p = _step.value;
|
|
3008
3032
|
|
|
3009
3033
|
if (props$1[p]) {
|
|
@@ -3018,9 +3042,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3018
3042
|
}
|
|
3019
3043
|
}
|
|
3020
3044
|
} catch (err) {
|
|
3021
|
-
|
|
3045
|
+
_didIteratorError = true;
|
|
3046
|
+
_iteratorError = err;
|
|
3022
3047
|
} finally {
|
|
3023
|
-
|
|
3048
|
+
try {
|
|
3049
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3050
|
+
_iterator["return"]();
|
|
3051
|
+
}
|
|
3052
|
+
} finally {
|
|
3053
|
+
if (_didIteratorError) {
|
|
3054
|
+
throw _iteratorError;
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3024
3057
|
}
|
|
3025
3058
|
|
|
3026
3059
|
return config;
|
|
@@ -3128,17 +3161,17 @@ function isMediaStream(url) {
|
|
|
3128
3161
|
});
|
|
3129
3162
|
|
|
3130
3163
|
unwrapExports(utils);
|
|
3131
|
-
utils.parseStartTime;
|
|
3132
|
-
utils.parseEndTime;
|
|
3133
|
-
utils.randomString;
|
|
3134
|
-
utils.queryString;
|
|
3135
|
-
utils.getSDK;
|
|
3136
|
-
utils.getConfig;
|
|
3137
|
-
utils.omit;
|
|
3138
|
-
utils.callPlayer;
|
|
3139
|
-
utils.isObject;
|
|
3140
|
-
utils.isEqual;
|
|
3141
|
-
utils.isMediaStream;
|
|
3164
|
+
var utils_1 = utils.parseStartTime;
|
|
3165
|
+
var utils_2 = utils.parseEndTime;
|
|
3166
|
+
var utils_3 = utils.randomString;
|
|
3167
|
+
var utils_4 = utils.queryString;
|
|
3168
|
+
var utils_5 = utils.getSDK;
|
|
3169
|
+
var utils_6 = utils.getConfig;
|
|
3170
|
+
var utils_7 = utils.omit;
|
|
3171
|
+
var utils_8 = utils.callPlayer;
|
|
3172
|
+
var utils_9 = utils.isObject;
|
|
3173
|
+
var utils_10 = utils.isEqual;
|
|
3174
|
+
var utils_11 = utils.isMediaStream;
|
|
3142
3175
|
|
|
3143
3176
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3144
3177
|
|
|
@@ -3167,16 +3200,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3167
3200
|
|
|
3168
3201
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3169
3202
|
|
|
3170
|
-
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); }; }
|
|
3171
|
-
|
|
3172
3203
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3173
3204
|
|
|
3174
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3175
|
-
|
|
3176
|
-
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; } }
|
|
3177
|
-
|
|
3178
3205
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3179
3206
|
|
|
3207
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3208
|
+
|
|
3180
3209
|
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); }
|
|
3181
3210
|
|
|
3182
3211
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3185,12 +3214,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3185
3214
|
|
|
3186
3215
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3187
3216
|
|
|
3188
|
-
var Player =
|
|
3217
|
+
var Player =
|
|
3218
|
+
/*#__PURE__*/
|
|
3219
|
+
function (_Component) {
|
|
3189
3220
|
_inherits(Player, _Component);
|
|
3190
3221
|
|
|
3191
|
-
var _super = _createSuper(Player);
|
|
3192
|
-
|
|
3193
3222
|
function Player() {
|
|
3223
|
+
var _getPrototypeOf2;
|
|
3224
|
+
|
|
3194
3225
|
var _this;
|
|
3195
3226
|
|
|
3196
3227
|
_classCallCheck(this, Player);
|
|
@@ -3199,7 +3230,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3199
3230
|
_args[_key] = arguments[_key];
|
|
3200
3231
|
}
|
|
3201
3232
|
|
|
3202
|
-
_this =
|
|
3233
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3203
3234
|
|
|
3204
3235
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3205
3236
|
|
|
@@ -3524,7 +3555,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3524
3555
|
return null;
|
|
3525
3556
|
}
|
|
3526
3557
|
|
|
3527
|
-
return
|
|
3558
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3528
3559
|
ref: this.ref,
|
|
3529
3560
|
onReady: this.handleReady,
|
|
3530
3561
|
onPlay: this.handlePlay,
|
|
@@ -3585,16 +3616,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3585
3616
|
|
|
3586
3617
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3587
3618
|
|
|
3588
|
-
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); }; }
|
|
3589
|
-
|
|
3590
3619
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3591
3620
|
|
|
3592
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3593
|
-
|
|
3594
|
-
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; } }
|
|
3595
|
-
|
|
3596
3621
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3597
3622
|
|
|
3623
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3624
|
+
|
|
3598
3625
|
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); }
|
|
3599
3626
|
|
|
3600
3627
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3606,12 +3633,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3606
3633
|
function createSinglePlayer(activePlayer) {
|
|
3607
3634
|
var _class, _temp;
|
|
3608
3635
|
|
|
3609
|
-
return _temp = _class =
|
|
3636
|
+
return _temp = _class =
|
|
3637
|
+
/*#__PURE__*/
|
|
3638
|
+
function (_Component) {
|
|
3610
3639
|
_inherits(SinglePlayer, _Component);
|
|
3611
3640
|
|
|
3612
|
-
var _super = _createSuper(SinglePlayer);
|
|
3613
|
-
|
|
3614
3641
|
function SinglePlayer() {
|
|
3642
|
+
var _getPrototypeOf2;
|
|
3643
|
+
|
|
3615
3644
|
var _this;
|
|
3616
3645
|
|
|
3617
3646
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3620,7 +3649,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3620
3649
|
args[_key] = arguments[_key];
|
|
3621
3650
|
}
|
|
3622
3651
|
|
|
3623
|
-
_this =
|
|
3652
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3624
3653
|
|
|
3625
3654
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3626
3655
|
|
|
@@ -3688,12 +3717,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3688
3717
|
height = _this$props.height,
|
|
3689
3718
|
Wrapper = _this$props.wrapper;
|
|
3690
3719
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3691
|
-
return
|
|
3720
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3692
3721
|
style: _objectSpread({}, style, {
|
|
3693
3722
|
width: width,
|
|
3694
3723
|
height: height
|
|
3695
3724
|
})
|
|
3696
|
-
}, otherProps),
|
|
3725
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3697
3726
|
ref: this.ref,
|
|
3698
3727
|
activePlayer: activePlayer,
|
|
3699
3728
|
config: this.config
|
|
@@ -3739,31 +3768,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3739
3768
|
|
|
3740
3769
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3741
3770
|
|
|
3742
|
-
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); }; }
|
|
3743
|
-
|
|
3744
3771
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3745
3772
|
|
|
3746
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3747
|
-
|
|
3748
|
-
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; } }
|
|
3749
|
-
|
|
3750
3773
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3751
3774
|
|
|
3775
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3776
|
+
|
|
3752
3777
|
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); }
|
|
3753
3778
|
|
|
3754
3779
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3755
3780
|
|
|
3756
3781
|
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; }
|
|
3757
3782
|
|
|
3758
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3759
|
-
|
|
3760
|
-
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."); }
|
|
3783
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3761
3784
|
|
|
3762
|
-
function
|
|
3785
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3763
3786
|
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3766
|
-
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; }
|
|
3787
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3767
3788
|
|
|
3768
3789
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3769
3790
|
|
|
@@ -3788,12 +3809,14 @@ function parsePlaylist(url) {
|
|
|
3788
3809
|
return {};
|
|
3789
3810
|
}
|
|
3790
3811
|
|
|
3791
|
-
var YouTube =
|
|
3812
|
+
var YouTube =
|
|
3813
|
+
/*#__PURE__*/
|
|
3814
|
+
function (_Component) {
|
|
3792
3815
|
_inherits(YouTube, _Component);
|
|
3793
3816
|
|
|
3794
|
-
var _super = _createSuper(YouTube);
|
|
3795
|
-
|
|
3796
3817
|
function YouTube() {
|
|
3818
|
+
var _getPrototypeOf2;
|
|
3819
|
+
|
|
3797
3820
|
var _this;
|
|
3798
3821
|
|
|
3799
3822
|
_classCallCheck(this, YouTube);
|
|
@@ -3802,7 +3825,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3802
3825
|
args[_key] = arguments[_key];
|
|
3803
3826
|
}
|
|
3804
3827
|
|
|
3805
|
-
_this =
|
|
3828
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3806
3829
|
|
|
3807
3830
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3808
3831
|
|
|
@@ -3990,9 +4013,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3990
4013
|
height: '100%',
|
|
3991
4014
|
display: display
|
|
3992
4015
|
};
|
|
3993
|
-
return
|
|
4016
|
+
return _react["default"].createElement("div", {
|
|
3994
4017
|
style: style
|
|
3995
|
-
},
|
|
4018
|
+
}, _react["default"].createElement("div", {
|
|
3996
4019
|
ref: this.ref
|
|
3997
4020
|
}));
|
|
3998
4021
|
}
|
|
@@ -4015,7 +4038,7 @@ exports["default"] = _default;
|
|
|
4015
4038
|
});
|
|
4016
4039
|
|
|
4017
4040
|
unwrapExports(YouTube_1);
|
|
4018
|
-
YouTube_1.YouTube;
|
|
4041
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4019
4042
|
|
|
4020
4043
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4021
4044
|
|
|
@@ -4048,16 +4071,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4048
4071
|
|
|
4049
4072
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4050
4073
|
|
|
4051
|
-
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); }; }
|
|
4052
|
-
|
|
4053
4074
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4054
4075
|
|
|
4055
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4056
|
-
|
|
4057
|
-
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; } }
|
|
4058
|
-
|
|
4059
4076
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4060
4077
|
|
|
4078
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4079
|
+
|
|
4061
4080
|
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); }
|
|
4062
4081
|
|
|
4063
4082
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4066,14 +4085,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4066
4085
|
|
|
4067
4086
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4068
4087
|
var SDK_GLOBAL = 'SC';
|
|
4069
|
-
var MATCH_URL = /(
|
|
4088
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4070
4089
|
|
|
4071
|
-
var SoundCloud =
|
|
4090
|
+
var SoundCloud =
|
|
4091
|
+
/*#__PURE__*/
|
|
4092
|
+
function (_Component) {
|
|
4072
4093
|
_inherits(SoundCloud, _Component);
|
|
4073
4094
|
|
|
4074
|
-
var _super = _createSuper(SoundCloud);
|
|
4075
|
-
|
|
4076
4095
|
function SoundCloud() {
|
|
4096
|
+
var _getPrototypeOf2;
|
|
4097
|
+
|
|
4077
4098
|
var _this;
|
|
4078
4099
|
|
|
4079
4100
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4082,7 +4103,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4082
4103
|
args[_key] = arguments[_key];
|
|
4083
4104
|
}
|
|
4084
4105
|
|
|
4085
|
-
_this =
|
|
4106
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4086
4107
|
|
|
4087
4108
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4088
4109
|
|
|
@@ -4203,7 +4224,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4203
4224
|
height: '100%',
|
|
4204
4225
|
display: display
|
|
4205
4226
|
};
|
|
4206
|
-
return
|
|
4227
|
+
return _react["default"].createElement("iframe", {
|
|
4207
4228
|
ref: this.ref,
|
|
4208
4229
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4209
4230
|
style: style,
|
|
@@ -4232,7 +4253,7 @@ exports["default"] = _default;
|
|
|
4232
4253
|
});
|
|
4233
4254
|
|
|
4234
4255
|
unwrapExports(SoundCloud_1);
|
|
4235
|
-
SoundCloud_1.SoundCloud;
|
|
4256
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4236
4257
|
|
|
4237
4258
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4238
4259
|
|
|
@@ -4265,16 +4286,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4265
4286
|
|
|
4266
4287
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4267
4288
|
|
|
4268
|
-
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); }; }
|
|
4269
|
-
|
|
4270
4289
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4271
4290
|
|
|
4272
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4273
|
-
|
|
4274
|
-
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; } }
|
|
4275
|
-
|
|
4276
4291
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4277
4292
|
|
|
4293
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4294
|
+
|
|
4278
4295
|
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); }
|
|
4279
4296
|
|
|
4280
4297
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4286,12 +4303,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4286
4303
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4287
4304
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4288
4305
|
|
|
4289
|
-
var Vimeo =
|
|
4306
|
+
var Vimeo =
|
|
4307
|
+
/*#__PURE__*/
|
|
4308
|
+
function (_Component) {
|
|
4290
4309
|
_inherits(Vimeo, _Component);
|
|
4291
4310
|
|
|
4292
|
-
var _super = _createSuper(Vimeo);
|
|
4293
|
-
|
|
4294
4311
|
function Vimeo() {
|
|
4312
|
+
var _getPrototypeOf2;
|
|
4313
|
+
|
|
4295
4314
|
var _this;
|
|
4296
4315
|
|
|
4297
4316
|
_classCallCheck(this, Vimeo);
|
|
@@ -4300,7 +4319,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4300
4319
|
args[_key] = arguments[_key];
|
|
4301
4320
|
}
|
|
4302
4321
|
|
|
4303
|
-
_this =
|
|
4322
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4304
4323
|
|
|
4305
4324
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4306
4325
|
|
|
@@ -4457,7 +4476,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4457
4476
|
overflow: 'hidden',
|
|
4458
4477
|
display: display
|
|
4459
4478
|
};
|
|
4460
|
-
return
|
|
4479
|
+
return _react["default"].createElement("div", {
|
|
4461
4480
|
key: this.props.url,
|
|
4462
4481
|
ref: this.ref,
|
|
4463
4482
|
style: style
|
|
@@ -4488,7 +4507,7 @@ exports["default"] = _default;
|
|
|
4488
4507
|
});
|
|
4489
4508
|
|
|
4490
4509
|
unwrapExports(Vimeo_1);
|
|
4491
|
-
Vimeo_1.Vimeo;
|
|
4510
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4492
4511
|
|
|
4493
4512
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4494
4513
|
|
|
@@ -4517,16 +4536,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4517
4536
|
|
|
4518
4537
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4519
4538
|
|
|
4520
|
-
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); }; }
|
|
4521
|
-
|
|
4522
4539
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4523
4540
|
|
|
4524
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4525
|
-
|
|
4526
|
-
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; } }
|
|
4527
|
-
|
|
4528
4541
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4529
4542
|
|
|
4543
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4544
|
+
|
|
4530
4545
|
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); }
|
|
4531
4546
|
|
|
4532
4547
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4539,12 +4554,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4539
4554
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4540
4555
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4541
4556
|
|
|
4542
|
-
var Facebook =
|
|
4557
|
+
var Facebook =
|
|
4558
|
+
/*#__PURE__*/
|
|
4559
|
+
function (_Component) {
|
|
4543
4560
|
_inherits(Facebook, _Component);
|
|
4544
4561
|
|
|
4545
|
-
var _super = _createSuper(Facebook);
|
|
4546
|
-
|
|
4547
4562
|
function Facebook() {
|
|
4563
|
+
var _getPrototypeOf2;
|
|
4564
|
+
|
|
4548
4565
|
var _this;
|
|
4549
4566
|
|
|
4550
4567
|
_classCallCheck(this, Facebook);
|
|
@@ -4553,7 +4570,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4553
4570
|
args[_key] = arguments[_key];
|
|
4554
4571
|
}
|
|
4555
4572
|
|
|
4556
|
-
_this =
|
|
4573
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4557
4574
|
|
|
4558
4575
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4559
4576
|
|
|
@@ -4669,7 +4686,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4669
4686
|
width: '100%',
|
|
4670
4687
|
height: '100%'
|
|
4671
4688
|
};
|
|
4672
|
-
return
|
|
4689
|
+
return _react["default"].createElement("div", {
|
|
4673
4690
|
style: style,
|
|
4674
4691
|
id: this.playerID,
|
|
4675
4692
|
className: "fb-video",
|
|
@@ -4700,7 +4717,7 @@ exports["default"] = _default;
|
|
|
4700
4717
|
});
|
|
4701
4718
|
|
|
4702
4719
|
unwrapExports(Facebook_1);
|
|
4703
|
-
Facebook_1.Facebook;
|
|
4720
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4704
4721
|
|
|
4705
4722
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4706
4723
|
|
|
@@ -4729,16 +4746,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4729
4746
|
|
|
4730
4747
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4731
4748
|
|
|
4732
|
-
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); }; }
|
|
4733
|
-
|
|
4734
4749
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4735
4750
|
|
|
4736
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4737
|
-
|
|
4738
|
-
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; } }
|
|
4739
|
-
|
|
4740
4751
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4741
4752
|
|
|
4753
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4754
|
+
|
|
4742
4755
|
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); }
|
|
4743
4756
|
|
|
4744
4757
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4749,12 +4762,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4749
4762
|
var SDK_GLOBAL = 'playerjs';
|
|
4750
4763
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4751
4764
|
|
|
4752
|
-
var Streamable =
|
|
4765
|
+
var Streamable =
|
|
4766
|
+
/*#__PURE__*/
|
|
4767
|
+
function (_Component) {
|
|
4753
4768
|
_inherits(Streamable, _Component);
|
|
4754
4769
|
|
|
4755
|
-
var _super = _createSuper(Streamable);
|
|
4756
|
-
|
|
4757
4770
|
function Streamable() {
|
|
4771
|
+
var _getPrototypeOf2;
|
|
4772
|
+
|
|
4758
4773
|
var _this;
|
|
4759
4774
|
|
|
4760
4775
|
_classCallCheck(this, Streamable);
|
|
@@ -4763,7 +4778,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4763
4778
|
args[_key] = arguments[_key];
|
|
4764
4779
|
}
|
|
4765
4780
|
|
|
4766
|
-
_this =
|
|
4781
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4767
4782
|
|
|
4768
4783
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4769
4784
|
|
|
@@ -4883,7 +4898,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4883
4898
|
width: '100%',
|
|
4884
4899
|
height: '100%'
|
|
4885
4900
|
};
|
|
4886
|
-
return
|
|
4901
|
+
return _react["default"].createElement("iframe", {
|
|
4887
4902
|
ref: this.ref,
|
|
4888
4903
|
src: "https://streamable.com/o/".concat(id),
|
|
4889
4904
|
frameBorder: "0",
|
|
@@ -4911,7 +4926,7 @@ exports["default"] = _default;
|
|
|
4911
4926
|
});
|
|
4912
4927
|
|
|
4913
4928
|
unwrapExports(Streamable_1);
|
|
4914
|
-
Streamable_1.Streamable;
|
|
4929
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4915
4930
|
|
|
4916
4931
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4917
4932
|
|
|
@@ -4944,16 +4959,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4944
4959
|
|
|
4945
4960
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4946
4961
|
|
|
4947
|
-
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); }; }
|
|
4948
|
-
|
|
4949
4962
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4950
4963
|
|
|
4951
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4952
|
-
|
|
4953
|
-
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; } }
|
|
4954
|
-
|
|
4955
4964
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4956
4965
|
|
|
4966
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4967
|
+
|
|
4957
4968
|
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); }
|
|
4958
4969
|
|
|
4959
4970
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4964,48 +4975,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4964
4975
|
var SDK_GLOBAL = 'Wistia';
|
|
4965
4976
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4966
4977
|
|
|
4967
|
-
var Wistia =
|
|
4978
|
+
var Wistia =
|
|
4979
|
+
/*#__PURE__*/
|
|
4980
|
+
function (_Component) {
|
|
4968
4981
|
_inherits(Wistia, _Component);
|
|
4969
4982
|
|
|
4970
|
-
var _super = _createSuper(Wistia);
|
|
4971
|
-
|
|
4972
4983
|
function Wistia() {
|
|
4984
|
+
var _getPrototypeOf2;
|
|
4985
|
+
|
|
4973
4986
|
var _this;
|
|
4974
4987
|
|
|
4975
4988
|
_classCallCheck(this, Wistia);
|
|
4976
4989
|
|
|
4977
|
-
for (var _len = arguments.length,
|
|
4978
|
-
|
|
4990
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4991
|
+
args[_key] = arguments[_key];
|
|
4979
4992
|
}
|
|
4980
4993
|
|
|
4981
|
-
_this =
|
|
4994
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4982
4995
|
|
|
4983
4996
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4984
4997
|
|
|
4985
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4986
|
-
var _this$props;
|
|
4987
|
-
|
|
4988
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4989
|
-
});
|
|
4990
|
-
|
|
4991
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4992
|
-
var _this$props2;
|
|
4993
|
-
|
|
4994
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4995
|
-
});
|
|
4996
|
-
|
|
4997
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4998
|
-
var _this$props3;
|
|
4999
|
-
|
|
5000
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5001
|
-
});
|
|
5002
|
-
|
|
5003
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5004
|
-
var _this$props4;
|
|
5005
|
-
|
|
5006
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5007
|
-
});
|
|
5008
|
-
|
|
5009
4998
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5010
4999
|
_this.callPlayer('mute');
|
|
5011
5000
|
});
|
|
@@ -5027,13 +5016,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5027
5016
|
value: function load(url) {
|
|
5028
5017
|
var _this2 = this;
|
|
5029
5018
|
|
|
5030
|
-
var _this$
|
|
5031
|
-
playing = _this$
|
|
5032
|
-
muted = _this$
|
|
5033
|
-
controls = _this$
|
|
5034
|
-
_onReady = _this$
|
|
5035
|
-
|
|
5036
|
-
|
|
5019
|
+
var _this$props = this.props,
|
|
5020
|
+
playing = _this$props.playing,
|
|
5021
|
+
muted = _this$props.muted,
|
|
5022
|
+
controls = _this$props.controls,
|
|
5023
|
+
_onReady = _this$props.onReady,
|
|
5024
|
+
onPlay = _this$props.onPlay,
|
|
5025
|
+
onPause = _this$props.onPause,
|
|
5026
|
+
onSeek = _this$props.onSeek,
|
|
5027
|
+
onEnded = _this$props.onEnded,
|
|
5028
|
+
config = _this$props.config,
|
|
5029
|
+
onError = _this$props.onError;
|
|
5037
5030
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5038
5031
|
window._wq = window._wq || [];
|
|
5039
5032
|
|
|
@@ -5050,28 +5043,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5050
5043
|
|
|
5051
5044
|
_this2.unbind();
|
|
5052
5045
|
|
|
5053
|
-
_this2.player.bind('play',
|
|
5046
|
+
_this2.player.bind('play', onPlay);
|
|
5054
5047
|
|
|
5055
|
-
_this2.player.bind('pause',
|
|
5048
|
+
_this2.player.bind('pause', onPause);
|
|
5056
5049
|
|
|
5057
|
-
_this2.player.bind('seek',
|
|
5050
|
+
_this2.player.bind('seek', onSeek);
|
|
5058
5051
|
|
|
5059
|
-
_this2.player.bind('end',
|
|
5052
|
+
_this2.player.bind('end', onEnded);
|
|
5060
5053
|
|
|
5061
5054
|
_onReady();
|
|
5062
5055
|
}
|
|
5063
5056
|
});
|
|
5064
5057
|
}, onError);
|
|
5065
5058
|
}
|
|
5066
|
-
}, {
|
|
5067
|
-
key: "unbind",
|
|
5068
|
-
value: function unbind() {
|
|
5069
|
-
this.player.unbind('play', this.onPlay);
|
|
5070
|
-
this.player.unbind('pause', this.onPause);
|
|
5071
|
-
this.player.unbind('seek', this.onSeek);
|
|
5072
|
-
this.player.unbind('end', this.onEnded);
|
|
5073
|
-
} // Proxy methods to prevent listener leaks
|
|
5074
|
-
|
|
5075
5059
|
}, {
|
|
5076
5060
|
key: "play",
|
|
5077
5061
|
value: function play() {
|
|
@@ -5082,6 +5066,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5082
5066
|
value: function pause() {
|
|
5083
5067
|
this.callPlayer('pause');
|
|
5084
5068
|
}
|
|
5069
|
+
}, {
|
|
5070
|
+
key: "unbind",
|
|
5071
|
+
value: function unbind() {
|
|
5072
|
+
var _this$props2 = this.props,
|
|
5073
|
+
onPlay = _this$props2.onPlay,
|
|
5074
|
+
onPause = _this$props2.onPause,
|
|
5075
|
+
onSeek = _this$props2.onSeek,
|
|
5076
|
+
onEnded = _this$props2.onEnded;
|
|
5077
|
+
this.player.unbind('play', onPlay);
|
|
5078
|
+
this.player.unbind('pause', onPause);
|
|
5079
|
+
this.player.unbind('seek', onSeek);
|
|
5080
|
+
this.player.unbind('end', onEnded);
|
|
5081
|
+
}
|
|
5085
5082
|
}, {
|
|
5086
5083
|
key: "stop",
|
|
5087
5084
|
value: function stop() {
|
|
@@ -5127,7 +5124,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5127
5124
|
width: '100%',
|
|
5128
5125
|
height: '100%'
|
|
5129
5126
|
};
|
|
5130
|
-
return
|
|
5127
|
+
return _react["default"].createElement("div", {
|
|
5131
5128
|
key: id,
|
|
5132
5129
|
className: className,
|
|
5133
5130
|
style: style
|
|
@@ -5154,7 +5151,7 @@ exports["default"] = _default;
|
|
|
5154
5151
|
});
|
|
5155
5152
|
|
|
5156
5153
|
unwrapExports(Wistia_1);
|
|
5157
|
-
Wistia_1.Wistia;
|
|
5154
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5158
5155
|
|
|
5159
5156
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5160
5157
|
|
|
@@ -5187,16 +5184,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5187
5184
|
|
|
5188
5185
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5189
5186
|
|
|
5190
|
-
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); }; }
|
|
5191
|
-
|
|
5192
5187
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5193
5188
|
|
|
5194
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5195
|
-
|
|
5196
|
-
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; } }
|
|
5197
|
-
|
|
5198
5189
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5199
5190
|
|
|
5191
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5192
|
+
|
|
5200
5193
|
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); }
|
|
5201
5194
|
|
|
5202
5195
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5209,12 +5202,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5209
5202
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5210
5203
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5211
5204
|
|
|
5212
|
-
var Twitch =
|
|
5205
|
+
var Twitch =
|
|
5206
|
+
/*#__PURE__*/
|
|
5207
|
+
function (_Component) {
|
|
5213
5208
|
_inherits(Twitch, _Component);
|
|
5214
5209
|
|
|
5215
|
-
var _super = _createSuper(Twitch);
|
|
5216
|
-
|
|
5217
5210
|
function Twitch() {
|
|
5211
|
+
var _getPrototypeOf2;
|
|
5212
|
+
|
|
5218
5213
|
var _this;
|
|
5219
5214
|
|
|
5220
5215
|
_classCallCheck(this, Twitch);
|
|
@@ -5223,7 +5218,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5223
5218
|
args[_key] = arguments[_key];
|
|
5224
5219
|
}
|
|
5225
5220
|
|
|
5226
|
-
_this =
|
|
5221
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5227
5222
|
|
|
5228
5223
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5229
5224
|
|
|
@@ -5344,7 +5339,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5344
5339
|
width: '100%',
|
|
5345
5340
|
height: '100%'
|
|
5346
5341
|
};
|
|
5347
|
-
return
|
|
5342
|
+
return _react["default"].createElement("div", {
|
|
5348
5343
|
style: style,
|
|
5349
5344
|
id: this.playerID
|
|
5350
5345
|
});
|
|
@@ -5370,7 +5365,7 @@ exports["default"] = _default;
|
|
|
5370
5365
|
});
|
|
5371
5366
|
|
|
5372
5367
|
unwrapExports(Twitch_1);
|
|
5373
|
-
Twitch_1.Twitch;
|
|
5368
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5374
5369
|
|
|
5375
5370
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5376
5371
|
|
|
@@ -5397,15 +5392,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5397
5392
|
|
|
5398
5393
|
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; }
|
|
5399
5394
|
|
|
5400
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5401
|
-
|
|
5402
|
-
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."); }
|
|
5395
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5403
5396
|
|
|
5404
|
-
function
|
|
5397
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5405
5398
|
|
|
5406
|
-
function
|
|
5407
|
-
|
|
5408
|
-
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; }
|
|
5399
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5409
5400
|
|
|
5410
5401
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5411
5402
|
|
|
@@ -5415,16 +5406,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5415
5406
|
|
|
5416
5407
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5417
5408
|
|
|
5418
|
-
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); }; }
|
|
5419
|
-
|
|
5420
5409
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5421
5410
|
|
|
5422
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5423
|
-
|
|
5424
|
-
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; } }
|
|
5425
|
-
|
|
5426
5411
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5427
5412
|
|
|
5413
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5414
|
+
|
|
5428
5415
|
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); }
|
|
5429
5416
|
|
|
5430
5417
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5436,12 +5423,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5436
5423
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5437
5424
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5438
5425
|
|
|
5439
|
-
var DailyMotion =
|
|
5426
|
+
var DailyMotion =
|
|
5427
|
+
/*#__PURE__*/
|
|
5428
|
+
function (_Component) {
|
|
5440
5429
|
_inherits(DailyMotion, _Component);
|
|
5441
5430
|
|
|
5442
|
-
var _super = _createSuper(DailyMotion);
|
|
5443
|
-
|
|
5444
5431
|
function DailyMotion() {
|
|
5432
|
+
var _getPrototypeOf2;
|
|
5433
|
+
|
|
5445
5434
|
var _this;
|
|
5446
5435
|
|
|
5447
5436
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5450,7 +5439,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5450
5439
|
args[_key] = arguments[_key];
|
|
5451
5440
|
}
|
|
5452
5441
|
|
|
5453
|
-
_this =
|
|
5442
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5454
5443
|
|
|
5455
5444
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5456
5445
|
|
|
@@ -5579,9 +5568,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5579
5568
|
height: '100%',
|
|
5580
5569
|
display: display
|
|
5581
5570
|
};
|
|
5582
|
-
return
|
|
5571
|
+
return _react["default"].createElement("div", {
|
|
5583
5572
|
style: style
|
|
5584
|
-
},
|
|
5573
|
+
}, _react["default"].createElement("div", {
|
|
5585
5574
|
ref: this.ref
|
|
5586
5575
|
}));
|
|
5587
5576
|
}
|
|
@@ -5606,7 +5595,7 @@ exports["default"] = _default;
|
|
|
5606
5595
|
});
|
|
5607
5596
|
|
|
5608
5597
|
unwrapExports(DailyMotion_1);
|
|
5609
|
-
DailyMotion_1.DailyMotion;
|
|
5598
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5610
5599
|
|
|
5611
5600
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5612
5601
|
|
|
@@ -5639,16 +5628,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5639
5628
|
|
|
5640
5629
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5641
5630
|
|
|
5642
|
-
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); }; }
|
|
5643
|
-
|
|
5644
5631
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5645
5632
|
|
|
5646
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5647
|
-
|
|
5648
|
-
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; } }
|
|
5649
|
-
|
|
5650
5633
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5651
5634
|
|
|
5635
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5636
|
+
|
|
5652
5637
|
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); }
|
|
5653
5638
|
|
|
5654
5639
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5659,12 +5644,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5659
5644
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5660
5645
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5661
5646
|
|
|
5662
|
-
var Mixcloud =
|
|
5647
|
+
var Mixcloud =
|
|
5648
|
+
/*#__PURE__*/
|
|
5649
|
+
function (_Component) {
|
|
5663
5650
|
_inherits(Mixcloud, _Component);
|
|
5664
5651
|
|
|
5665
|
-
var _super = _createSuper(Mixcloud);
|
|
5666
|
-
|
|
5667
5652
|
function Mixcloud() {
|
|
5653
|
+
var _getPrototypeOf2;
|
|
5654
|
+
|
|
5668
5655
|
var _this;
|
|
5669
5656
|
|
|
5670
5657
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5673,7 +5660,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5673
5660
|
args[_key] = arguments[_key];
|
|
5674
5661
|
}
|
|
5675
5662
|
|
|
5676
|
-
_this =
|
|
5663
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5677
5664
|
|
|
5678
5665
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5679
5666
|
|
|
@@ -5776,7 +5763,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5776
5763
|
})); // We have to give the iframe a key here to prevent a
|
|
5777
5764
|
// weird dialog appearing when loading a new track
|
|
5778
5765
|
|
|
5779
|
-
return
|
|
5766
|
+
return _react["default"].createElement("iframe", {
|
|
5780
5767
|
key: id,
|
|
5781
5768
|
ref: this.ref,
|
|
5782
5769
|
style: style,
|
|
@@ -5805,7 +5792,7 @@ exports["default"] = _default;
|
|
|
5805
5792
|
});
|
|
5806
5793
|
|
|
5807
5794
|
unwrapExports(Mixcloud_1);
|
|
5808
|
-
Mixcloud_1.Mixcloud;
|
|
5795
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5809
5796
|
|
|
5810
5797
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5811
5798
|
|
|
@@ -5836,33 +5823,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5836
5823
|
|
|
5837
5824
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5838
5825
|
|
|
5839
|
-
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); }; }
|
|
5840
|
-
|
|
5841
5826
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5842
5827
|
|
|
5843
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5844
|
-
|
|
5845
|
-
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; } }
|
|
5846
|
-
|
|
5847
5828
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5848
5829
|
|
|
5830
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5831
|
+
|
|
5849
5832
|
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); }
|
|
5850
5833
|
|
|
5851
5834
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5852
5835
|
|
|
5853
5836
|
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; }
|
|
5854
5837
|
|
|
5855
|
-
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; } } }; }
|
|
5856
|
-
|
|
5857
|
-
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); }
|
|
5858
|
-
|
|
5859
|
-
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; }
|
|
5860
|
-
|
|
5861
5838
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5862
5839
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5863
5840
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5864
5841
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5865
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5842
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5866
5843
|
var HLS_GLOBAL = 'Hls';
|
|
5867
5844
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5868
5845
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5871,11 +5848,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5871
5848
|
|
|
5872
5849
|
function canPlay(url) {
|
|
5873
5850
|
if (url instanceof Array) {
|
|
5874
|
-
var
|
|
5875
|
-
|
|
5851
|
+
var _iteratorNormalCompletion = true;
|
|
5852
|
+
var _didIteratorError = false;
|
|
5853
|
+
var _iteratorError = undefined;
|
|
5876
5854
|
|
|
5877
5855
|
try {
|
|
5878
|
-
for (_iterator.
|
|
5856
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5879
5857
|
var item = _step.value;
|
|
5880
5858
|
|
|
5881
5859
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5887,9 +5865,18 @@ function canPlay(url) {
|
|
|
5887
5865
|
}
|
|
5888
5866
|
}
|
|
5889
5867
|
} catch (err) {
|
|
5890
|
-
|
|
5868
|
+
_didIteratorError = true;
|
|
5869
|
+
_iteratorError = err;
|
|
5891
5870
|
} finally {
|
|
5892
|
-
|
|
5871
|
+
try {
|
|
5872
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5873
|
+
_iterator["return"]();
|
|
5874
|
+
}
|
|
5875
|
+
} finally {
|
|
5876
|
+
if (_didIteratorError) {
|
|
5877
|
+
throw _iteratorError;
|
|
5878
|
+
}
|
|
5879
|
+
}
|
|
5893
5880
|
}
|
|
5894
5881
|
|
|
5895
5882
|
return false;
|
|
@@ -5913,12 +5900,14 @@ function canEnablePIP(url) {
|
|
|
5913
5900
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5914
5901
|
}
|
|
5915
5902
|
|
|
5916
|
-
var FilePlayer =
|
|
5903
|
+
var FilePlayer =
|
|
5904
|
+
/*#__PURE__*/
|
|
5905
|
+
function (_Component) {
|
|
5917
5906
|
_inherits(FilePlayer, _Component);
|
|
5918
5907
|
|
|
5919
|
-
var _super = _createSuper(FilePlayer);
|
|
5920
|
-
|
|
5921
5908
|
function FilePlayer() {
|
|
5909
|
+
var _getPrototypeOf2;
|
|
5910
|
+
|
|
5922
5911
|
var _this;
|
|
5923
5912
|
|
|
5924
5913
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5927,7 +5916,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5927
5916
|
_args[_key] = arguments[_key];
|
|
5928
5917
|
}
|
|
5929
5918
|
|
|
5930
|
-
_this =
|
|
5919
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5931
5920
|
|
|
5932
5921
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5933
5922
|
var _this$props;
|
|
@@ -6014,19 +6003,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6014
6003
|
|
|
6015
6004
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6016
6005
|
if (typeof source === 'string') {
|
|
6017
|
-
return
|
|
6006
|
+
return _react["default"].createElement("source", {
|
|
6018
6007
|
key: index,
|
|
6019
6008
|
src: source
|
|
6020
6009
|
});
|
|
6021
6010
|
}
|
|
6022
6011
|
|
|
6023
|
-
return
|
|
6012
|
+
return _react["default"].createElement("source", _extends({
|
|
6024
6013
|
key: index
|
|
6025
6014
|
}, source));
|
|
6026
6015
|
});
|
|
6027
6016
|
|
|
6028
6017
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6029
|
-
return
|
|
6018
|
+
return _react["default"].createElement("track", _extends({
|
|
6030
6019
|
key: index
|
|
6031
6020
|
}, track));
|
|
6032
6021
|
});
|
|
@@ -6064,10 +6053,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6064
6053
|
key: "componentWillUnmount",
|
|
6065
6054
|
value: function componentWillUnmount() {
|
|
6066
6055
|
this.removeListeners(this.player);
|
|
6067
|
-
|
|
6068
|
-
if (this.hls) {
|
|
6069
|
-
this.hls.destroy();
|
|
6070
|
-
}
|
|
6071
6056
|
}
|
|
6072
6057
|
}, {
|
|
6073
6058
|
key: "addListeners",
|
|
@@ -6198,6 +6183,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6198
6183
|
value: function stop() {
|
|
6199
6184
|
this.player.removeAttribute('src');
|
|
6200
6185
|
|
|
6186
|
+
if (this.hls) {
|
|
6187
|
+
this.hls.destroy();
|
|
6188
|
+
}
|
|
6189
|
+
|
|
6201
6190
|
if (this.dash) {
|
|
6202
6191
|
this.dash.reset();
|
|
6203
6192
|
}
|
|
@@ -6309,7 +6298,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6309
6298
|
width: width === 'auto' ? width : '100%',
|
|
6310
6299
|
height: height === 'auto' ? height : '100%'
|
|
6311
6300
|
};
|
|
6312
|
-
return
|
|
6301
|
+
return _react["default"].createElement(Element, _extends({
|
|
6313
6302
|
ref: this.ref,
|
|
6314
6303
|
src: this.getSource(url),
|
|
6315
6304
|
style: style,
|
|
@@ -6339,7 +6328,7 @@ exports["default"] = _default;
|
|
|
6339
6328
|
});
|
|
6340
6329
|
|
|
6341
6330
|
unwrapExports(FilePlayer_1);
|
|
6342
|
-
FilePlayer_1.FilePlayer;
|
|
6331
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6343
6332
|
|
|
6344
6333
|
var players = createCommonjsModule(function (module, exports) {
|
|
6345
6334
|
|
|
@@ -6399,16 +6388,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6399
6388
|
|
|
6400
6389
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6401
6390
|
|
|
6402
|
-
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); }; }
|
|
6403
|
-
|
|
6404
6391
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6405
6392
|
|
|
6406
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6407
|
-
|
|
6408
|
-
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; } }
|
|
6409
|
-
|
|
6410
6393
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6411
6394
|
|
|
6395
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6396
|
+
|
|
6412
6397
|
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); }
|
|
6413
6398
|
|
|
6414
6399
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6417,12 +6402,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6417
6402
|
|
|
6418
6403
|
var ICON_SIZE = '64px';
|
|
6419
6404
|
|
|
6420
|
-
var Preview =
|
|
6405
|
+
var Preview =
|
|
6406
|
+
/*#__PURE__*/
|
|
6407
|
+
function (_Component) {
|
|
6421
6408
|
_inherits(Preview, _Component);
|
|
6422
6409
|
|
|
6423
|
-
var _super = _createSuper(Preview);
|
|
6424
|
-
|
|
6425
6410
|
function Preview() {
|
|
6411
|
+
var _getPrototypeOf2;
|
|
6412
|
+
|
|
6426
6413
|
var _this;
|
|
6427
6414
|
|
|
6428
6415
|
_classCallCheck(this, Preview);
|
|
@@ -6431,7 +6418,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6431
6418
|
args[_key] = arguments[_key];
|
|
6432
6419
|
}
|
|
6433
6420
|
|
|
6434
|
-
_this =
|
|
6421
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6435
6422
|
|
|
6436
6423
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6437
6424
|
|
|
@@ -6529,15 +6516,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6529
6516
|
}
|
|
6530
6517
|
};
|
|
6531
6518
|
|
|
6532
|
-
var defaultPlayIcon =
|
|
6519
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6533
6520
|
style: styles.shadow,
|
|
6534
6521
|
className: "react-player__shadow"
|
|
6535
|
-
},
|
|
6522
|
+
}, _react["default"].createElement("div", {
|
|
6536
6523
|
style: styles.playIcon,
|
|
6537
6524
|
className: "react-player__play-icon"
|
|
6538
6525
|
}));
|
|
6539
6526
|
|
|
6540
|
-
return
|
|
6527
|
+
return _react["default"].createElement("div", {
|
|
6541
6528
|
style: styles.preview,
|
|
6542
6529
|
className: "react-player__preview",
|
|
6543
6530
|
onClick: onClick
|
|
@@ -6574,12 +6561,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6574
6561
|
|
|
6575
6562
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6576
6563
|
|
|
6577
|
-
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; } } }; }
|
|
6578
|
-
|
|
6579
|
-
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); }
|
|
6580
|
-
|
|
6581
|
-
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; }
|
|
6582
|
-
|
|
6583
6564
|
var PRELOAD_PLAYERS = [{
|
|
6584
6565
|
Player: YouTube_1.YouTube,
|
|
6585
6566
|
configKey: 'youtube',
|
|
@@ -6600,16 +6581,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6600
6581
|
|
|
6601
6582
|
function renderPreloadPlayers(url, controls, config) {
|
|
6602
6583
|
var players = [];
|
|
6603
|
-
|
|
6604
|
-
var
|
|
6605
|
-
|
|
6584
|
+
var _iteratorNormalCompletion = true;
|
|
6585
|
+
var _didIteratorError = false;
|
|
6586
|
+
var _iteratorError = undefined;
|
|
6606
6587
|
|
|
6607
6588
|
try {
|
|
6608
|
-
for (_iterator.
|
|
6589
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6609
6590
|
var player = _step.value;
|
|
6610
6591
|
|
|
6611
6592
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6612
|
-
players.push(
|
|
6593
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6613
6594
|
key: player.Player.displayName,
|
|
6614
6595
|
activePlayer: player.Player,
|
|
6615
6596
|
url: player.url,
|
|
@@ -6621,9 +6602,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6621
6602
|
}
|
|
6622
6603
|
}
|
|
6623
6604
|
} catch (err) {
|
|
6624
|
-
|
|
6605
|
+
_didIteratorError = true;
|
|
6606
|
+
_iteratorError = err;
|
|
6625
6607
|
} finally {
|
|
6626
|
-
|
|
6608
|
+
try {
|
|
6609
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6610
|
+
_iterator["return"]();
|
|
6611
|
+
}
|
|
6612
|
+
} finally {
|
|
6613
|
+
if (_didIteratorError) {
|
|
6614
|
+
throw _iteratorError;
|
|
6615
|
+
}
|
|
6616
|
+
}
|
|
6627
6617
|
}
|
|
6628
6618
|
|
|
6629
6619
|
return players;
|
|
@@ -6747,17 +6737,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6747
6737
|
|
|
6748
6738
|
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); }
|
|
6749
6739
|
|
|
6750
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6740
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6751
6741
|
|
|
6752
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6742
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6753
6743
|
|
|
6754
|
-
function
|
|
6744
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6755
6745
|
|
|
6756
|
-
function
|
|
6757
|
-
|
|
6758
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6759
|
-
|
|
6760
|
-
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; }
|
|
6746
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6761
6747
|
|
|
6762
6748
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6763
6749
|
|
|
@@ -6765,16 +6751,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6765
6751
|
|
|
6766
6752
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6767
6753
|
|
|
6768
|
-
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); }; }
|
|
6769
|
-
|
|
6770
6754
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6771
6755
|
|
|
6772
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6773
|
-
|
|
6774
|
-
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; } }
|
|
6775
|
-
|
|
6776
6756
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6777
6757
|
|
|
6758
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6759
|
+
|
|
6778
6760
|
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); }
|
|
6779
6761
|
|
|
6780
6762
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6784,12 +6766,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6784
6766
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6785
6767
|
var customPlayers = [];
|
|
6786
6768
|
|
|
6787
|
-
var ReactPlayer =
|
|
6769
|
+
var ReactPlayer =
|
|
6770
|
+
/*#__PURE__*/
|
|
6771
|
+
function (_Component) {
|
|
6788
6772
|
_inherits(ReactPlayer, _Component);
|
|
6789
6773
|
|
|
6790
|
-
var _super = _createSuper(ReactPlayer);
|
|
6791
|
-
|
|
6792
6774
|
function ReactPlayer() {
|
|
6775
|
+
var _getPrototypeOf2;
|
|
6776
|
+
|
|
6793
6777
|
var _this;
|
|
6794
6778
|
|
|
6795
6779
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6798,7 +6782,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6798
6782
|
args[_key] = arguments[_key];
|
|
6799
6783
|
}
|
|
6800
6784
|
|
|
6801
|
-
_this =
|
|
6785
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6802
6786
|
|
|
6803
6787
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6804
6788
|
|
|
@@ -6909,7 +6893,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6909
6893
|
key: "renderActivePlayer",
|
|
6910
6894
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6911
6895
|
if (!url) return null;
|
|
6912
|
-
return
|
|
6896
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6913
6897
|
key: activePlayer.displayName,
|
|
6914
6898
|
ref: this.activePlayerRef,
|
|
6915
6899
|
config: this.config,
|
|
@@ -6946,14 +6930,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6946
6930
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6947
6931
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6948
6932
|
|
|
6949
|
-
var preview =
|
|
6933
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6950
6934
|
url: url,
|
|
6951
6935
|
light: light,
|
|
6952
6936
|
playIcon: playIcon,
|
|
6953
6937
|
onClick: this.handleClickPreview
|
|
6954
6938
|
});
|
|
6955
6939
|
|
|
6956
|
-
return
|
|
6940
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6957
6941
|
ref: this.wrapperRef,
|
|
6958
6942
|
style: _objectSpread({}, style, {
|
|
6959
6943
|
width: width,
|
|
@@ -7280,8 +7264,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7280
7264
|
var duration = player.getDuration();
|
|
7281
7265
|
var queue = Math.floor(duration / 10);
|
|
7282
7266
|
var segment = Math.floor(current / queue);
|
|
7283
|
-
Beam.report_beam_video('Ready',
|
|
7284
|
-
Segment.report_video_event('Video Ready',
|
|
7267
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7268
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7285
7269
|
//autoplay
|
|
7286
7270
|
|
|
7287
7271
|
//Small pause before starting next video
|
|
@@ -7301,8 +7285,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7301
7285
|
var queue = Math.floor(duration / 10);
|
|
7302
7286
|
var segment = Math.floor(current / queue);
|
|
7303
7287
|
|
|
7304
|
-
Beam.report_beam_video('End',
|
|
7305
|
-
Segment.report_video_event('Video End',
|
|
7288
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7289
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7306
7290
|
setEndReported(true);
|
|
7307
7291
|
clearInterval(intervalID);
|
|
7308
7292
|
}
|
|
@@ -7352,8 +7336,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7336
|
var queue = Math.floor(duration / 10);
|
|
7353
7337
|
var segment = Math.floor(current / queue);
|
|
7354
7338
|
if (!queueProgress.includes(segment)) {
|
|
7355
|
-
Beam.report_beam_video('Segment',
|
|
7356
|
-
Segment.report_video_event('Video Segment',
|
|
7339
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7340
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7357
7341
|
queueProgress.push(segment);
|
|
7358
7342
|
}
|
|
7359
7343
|
};
|
|
@@ -7366,8 +7350,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7350
|
var queue = Math.floor(duration / 10);
|
|
7367
7351
|
var segment = Math.floor(current / queue);
|
|
7368
7352
|
|
|
7369
|
-
Beam.report_beam_video('Play',
|
|
7370
|
-
Segment.report_video_event('Video Play',
|
|
7353
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7354
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7371
7355
|
|
|
7372
7356
|
if (!playReported) {
|
|
7373
7357
|
setPlayReported(true);
|
|
@@ -7385,8 +7369,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7369
|
var queue = Math.floor(duration / 10);
|
|
7386
7370
|
var segment = Math.floor(current / queue);
|
|
7387
7371
|
|
|
7388
|
-
Beam.report_beam_video('Pause',
|
|
7389
|
-
Segment.report_video_event('Video Pause',
|
|
7372
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7373
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7390
7374
|
};
|
|
7391
7375
|
|
|
7392
7376
|
// Youtube Options
|
|
@@ -7504,7 +7488,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7504
7488
|
React__default.createElement(
|
|
7505
7489
|
'div',
|
|
7506
7490
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7491
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7508
7492
|
),
|
|
7509
7493
|
React__default.createElement(
|
|
7510
7494
|
'style',
|
|
@@ -7514,14 +7498,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7498
|
);
|
|
7515
7499
|
};
|
|
7516
7500
|
|
|
7517
|
-
var Poll
|
|
7518
|
-
var node = _ref.node
|
|
7519
|
-
_ref.client
|
|
7520
|
-
_ref.pageview
|
|
7521
|
-
_ref.videoAccountIDs
|
|
7522
|
-
|
|
7523
|
-
_ref.showVotes
|
|
7524
|
-
|
|
7501
|
+
var Poll = function Poll(_ref) {
|
|
7502
|
+
var node = _ref.node,
|
|
7503
|
+
client = _ref.client,
|
|
7504
|
+
pageview = _ref.pageview,
|
|
7505
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7506
|
+
onVote = _ref.onVote,
|
|
7507
|
+
_ref$showVotes = _ref.showVotes,
|
|
7508
|
+
getSerializers = _ref.getSerializers;
|
|
7525
7509
|
|
|
7526
7510
|
var _useState = useState(null),
|
|
7527
7511
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7655,22 +7639,22 @@ _export(_export.S, 'Object', {
|
|
|
7655
7639
|
}
|
|
7656
7640
|
});
|
|
7657
7641
|
|
|
7658
|
-
var values
|
|
7642
|
+
var values = _core.Object.values;
|
|
7659
7643
|
|
|
7660
|
-
var values = createCommonjsModule(function (module) {
|
|
7661
|
-
module.exports = { "default": values
|
|
7644
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7645
|
+
module.exports = { "default": values, __esModule: true };
|
|
7662
7646
|
});
|
|
7663
7647
|
|
|
7664
|
-
var _Object$values = unwrapExports(values);
|
|
7648
|
+
var _Object$values = unwrapExports(values$1);
|
|
7665
7649
|
|
|
7666
|
-
var Poll = function Poll(_ref) {
|
|
7667
|
-
var node = _ref.node
|
|
7668
|
-
_ref.client
|
|
7669
|
-
_ref.pageview
|
|
7670
|
-
_ref.videoAccountIDs
|
|
7671
|
-
|
|
7672
|
-
_ref.showVotes
|
|
7673
|
-
|
|
7650
|
+
var Poll$1 = function Poll(_ref) {
|
|
7651
|
+
var node = _ref.node,
|
|
7652
|
+
client = _ref.client,
|
|
7653
|
+
pageview = _ref.pageview,
|
|
7654
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7655
|
+
onVote = _ref.onVote,
|
|
7656
|
+
_ref$showVotes = _ref.showVotes,
|
|
7657
|
+
getSerializers = _ref.getSerializers;
|
|
7674
7658
|
|
|
7675
7659
|
var _useState = useState(null),
|
|
7676
7660
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7822,7 +7806,7 @@ var Poll = function Poll(_ref) {
|
|
|
7822
7806
|
);
|
|
7823
7807
|
};
|
|
7824
7808
|
|
|
7825
|
-
var numberOfPaginations =
|
|
7809
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7826
7810
|
|
|
7827
7811
|
var Quiz = function Quiz(_ref) {
|
|
7828
7812
|
var quizzes = _ref.quizzes,
|
|
@@ -7941,33 +7925,33 @@ var Quiz = function Quiz(_ref) {
|
|
|
7941
7925
|
|
|
7942
7926
|
var renderPagination = function renderPagination() {
|
|
7943
7927
|
return React__default.createElement(
|
|
7944
|
-
Pagination,
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7928
|
+
Pagination$1,
|
|
7929
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7930
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7947
7931
|
return changePage('first');
|
|
7948
7932
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7933
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7950
7934
|
return changePage('prev');
|
|
7951
7935
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7936
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7953
7937
|
return renderNewPages('prev');
|
|
7954
7938
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
7939
|
pages.map(function (page) {
|
|
7956
7940
|
return React__default.createElement(
|
|
7957
|
-
Pagination.Item,
|
|
7941
|
+
Pagination$1.Item,
|
|
7958
7942
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
7943
|
return changePage(page);
|
|
7960
7944
|
} },
|
|
7961
7945
|
page
|
|
7962
7946
|
);
|
|
7963
7947
|
}),
|
|
7964
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7948
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7965
7949
|
return renderNewPages('next');
|
|
7966
7950
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7951
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7968
7952
|
return changePage('next');
|
|
7969
7953
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7954
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7971
7955
|
return changePage('last');
|
|
7972
7956
|
}, disabled: currentPage === pageCount })
|
|
7973
7957
|
);
|
|
@@ -8112,12 +8096,12 @@ var Leads = function Leads(_ref) {
|
|
|
8112
8096
|
);
|
|
8113
8097
|
};
|
|
8114
8098
|
|
|
8115
|
-
var urlFor$
|
|
8099
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8116
8100
|
var builder = imageUrlBuilder(client);
|
|
8117
8101
|
return builder.image(source).auto('format');
|
|
8118
8102
|
};
|
|
8119
8103
|
|
|
8120
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8104
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8121
8105
|
var slides = _ref.node.slides,
|
|
8122
8106
|
client = _ref.client,
|
|
8123
8107
|
pageview = _ref.pageview,
|
|
@@ -8129,8 +8113,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8129
8113
|
|
|
8130
8114
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8131
8115
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8132
|
-
carouselIndex = _useState2[0]
|
|
8133
|
-
_useState2[1];
|
|
8116
|
+
carouselIndex = _useState2[0],
|
|
8117
|
+
setCarouselIndex = _useState2[1];
|
|
8134
8118
|
|
|
8135
8119
|
// useEffect(() => {
|
|
8136
8120
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8173,7 +8157,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8173
8157
|
React__default.createElement(
|
|
8174
8158
|
LazyLoad,
|
|
8175
8159
|
null,
|
|
8176
|
-
React__default.createElement('img', { src: urlFor$
|
|
8160
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8177
8161
|
)
|
|
8178
8162
|
),
|
|
8179
8163
|
React__default.createElement(
|
|
@@ -8264,7 +8248,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8264
8248
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8265
8249
|
React__default.createElement(
|
|
8266
8250
|
'a',
|
|
8267
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8251
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8268
8252
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8269
8253
|
React__default.createElement(
|
|
8270
8254
|
'div',
|
|
@@ -8556,7 +8540,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8556
8540
|
|
|
8557
8541
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8558
8542
|
if (biography) {
|
|
8559
|
-
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8543
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8560
8544
|
}
|
|
8561
8545
|
};
|
|
8562
8546
|
|
|
@@ -8642,7 +8626,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8642
8626
|
//console.log('useLayoutEffect')
|
|
8643
8627
|
if (!firstLoad) {
|
|
8644
8628
|
setUpArrowClicked(false);
|
|
8645
|
-
if (
|
|
8629
|
+
if (main_36) {
|
|
8646
8630
|
grabLoadedAds();
|
|
8647
8631
|
} else {
|
|
8648
8632
|
scrollToArticle();
|
|
@@ -8666,7 +8650,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8666
8650
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8667
8651
|
if (pageview) pageview(path);
|
|
8668
8652
|
|
|
8669
|
-
if (!
|
|
8653
|
+
if (!main_36) {
|
|
8670
8654
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8671
8655
|
if (window.googletag && googletag.pubadsReady) {
|
|
8672
8656
|
lib_3.refresh();
|
|
@@ -8674,7 +8658,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8674
8658
|
});
|
|
8675
8659
|
}
|
|
8676
8660
|
//Refresh leaderboard ad on mobile
|
|
8677
|
-
if (
|
|
8661
|
+
if (main_36) {
|
|
8678
8662
|
var leaderboardSlotId = '';
|
|
8679
8663
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8680
8664
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8743,7 +8727,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8743
8727
|
React__default.createElement(
|
|
8744
8728
|
'div',
|
|
8745
8729
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8746
|
-
|
|
8730
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8747
8731
|
if (index === 0) {
|
|
8748
8732
|
return React__default.createElement(
|
|
8749
8733
|
'div',
|
|
@@ -8834,7 +8818,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8834
8818
|
React__default.createElement(
|
|
8835
8819
|
'div',
|
|
8836
8820
|
{ className: 'mt-2 mb-2' },
|
|
8837
|
-
React__default.createElement(BlockContent, _extends({
|
|
8821
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8838
8822
|
serializers: getSerializers,
|
|
8839
8823
|
videoAccountIDs: accountIDs,
|
|
8840
8824
|
blocks: article.text,
|
|
@@ -8865,7 +8849,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8865
8849
|
React__default.createElement(
|
|
8866
8850
|
'div',
|
|
8867
8851
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8868
|
-
|
|
8852
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8869
8853
|
if (innerIndex === 0) {
|
|
8870
8854
|
return React__default.createElement(
|
|
8871
8855
|
'div',
|
|
@@ -8932,7 +8916,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8932
8916
|
);
|
|
8933
8917
|
};
|
|
8934
8918
|
|
|
8935
|
-
var urlFor$
|
|
8919
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8936
8920
|
var builder = imageUrlBuilder(client);
|
|
8937
8921
|
return builder.image(source).auto('format');
|
|
8938
8922
|
};
|
|
@@ -8962,10 +8946,10 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8962
8946
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8963
8947
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8964
8948
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8965
|
-
React__default.createElement('img', _extends({
|
|
8949
|
+
React__default.createElement('img', _extends$1({
|
|
8966
8950
|
style: figureImageStyle,
|
|
8967
8951
|
className: 'figure-image',
|
|
8968
|
-
src: urlFor$
|
|
8952
|
+
src: urlFor$3(node, client).url(),
|
|
8969
8953
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8970
8954
|
}, !link && {
|
|
8971
8955
|
onClick: function onClick() {
|
|
@@ -9069,7 +9053,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9069
9053
|
};
|
|
9070
9054
|
|
|
9071
9055
|
var handleClickFigure = useCallback(function (node, client) {
|
|
9072
|
-
setLightboxImgSrc(urlFor$
|
|
9056
|
+
setLightboxImgSrc(urlFor$3(node, client).url());
|
|
9073
9057
|
setShowLightbox(true);
|
|
9074
9058
|
}, [node, client]);
|
|
9075
9059
|
|
|
@@ -9077,7 +9061,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9077
9061
|
React__default.Fragment,
|
|
9078
9062
|
null,
|
|
9079
9063
|
React__default.createElement(
|
|
9080
|
-
Figure$
|
|
9064
|
+
Figure$1$1,
|
|
9081
9065
|
{ className: '' + class_name, style: figureStyle },
|
|
9082
9066
|
link ? React__default.createElement(
|
|
9083
9067
|
'a',
|
|
@@ -9109,7 +9093,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9109
9093
|
|
|
9110
9094
|
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9111
9095
|
|
|
9112
|
-
var urlFor = function urlFor(source, client) {
|
|
9096
|
+
var urlFor$4 = function urlFor(source, client) {
|
|
9113
9097
|
var builder = imageUrlBuilder(client);
|
|
9114
9098
|
return builder.image(source).auto('format');
|
|
9115
9099
|
};
|
|
@@ -9176,14 +9160,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9176
9160
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9177
9161
|
image.link ? React__default.createElement(
|
|
9178
9162
|
'a',
|
|
9179
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9163
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9180
9164
|
React__default.createElement(
|
|
9181
9165
|
'div',
|
|
9182
9166
|
{ className: 'multi-figure-image-container' },
|
|
9183
9167
|
React__default.createElement(
|
|
9184
9168
|
LazyLoad,
|
|
9185
9169
|
{ once: true },
|
|
9186
|
-
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
|
|
9170
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9187
9171
|
),
|
|
9188
9172
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9189
9173
|
)
|
|
@@ -9196,10 +9180,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9196
9180
|
React__default.createElement('img', {
|
|
9197
9181
|
'images-count': images.length,
|
|
9198
9182
|
className: 'multi-figure-image',
|
|
9199
|
-
src: urlFor(image.asset, client).url(),
|
|
9183
|
+
src: urlFor$4(image.asset, client).url(),
|
|
9200
9184
|
alt: image.alt,
|
|
9201
9185
|
onClick: function onClick() {
|
|
9202
|
-
setOpenImgSrc(urlFor(image, client).url());
|
|
9186
|
+
setOpenImgSrc(urlFor$4(image, client).url());
|
|
9203
9187
|
setOpenImg(true);
|
|
9204
9188
|
}
|
|
9205
9189
|
})
|
|
@@ -9355,7 +9339,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9355
9339
|
return React__default.createElement(
|
|
9356
9340
|
'div',
|
|
9357
9341
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9358
|
-
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9342
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9359
9343
|
);
|
|
9360
9344
|
})
|
|
9361
9345
|
);
|
|
@@ -9483,7 +9467,7 @@ var getSerializers = function getSerializers() {
|
|
|
9483
9467
|
var node = _ref6.node;
|
|
9484
9468
|
var slides = node.slides;
|
|
9485
9469
|
|
|
9486
|
-
return React__default.createElement(Slideshow
|
|
9470
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9487
9471
|
},
|
|
9488
9472
|
sidebar: function sidebar(_ref7) {
|
|
9489
9473
|
var node = _ref7.node;
|
|
@@ -9521,12 +9505,12 @@ var getSerializers = function getSerializers() {
|
|
|
9521
9505
|
poll: function poll(_ref13) {
|
|
9522
9506
|
var node = _ref13.node;
|
|
9523
9507
|
|
|
9524
|
-
return React__default.createElement(Poll
|
|
9508
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9525
9509
|
},
|
|
9526
9510
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9527
9511
|
var node = _ref14.node;
|
|
9528
9512
|
|
|
9529
|
-
return React__default.createElement(Poll, {
|
|
9513
|
+
return React__default.createElement(Poll$1, {
|
|
9530
9514
|
node: node,
|
|
9531
9515
|
client: client,
|
|
9532
9516
|
pageview: pageview,
|
|
@@ -9552,7 +9536,7 @@ var getSerializers = function getSerializers() {
|
|
|
9552
9536
|
slideshows: function slideshows(_ref17) {
|
|
9553
9537
|
var node = _ref17.node;
|
|
9554
9538
|
|
|
9555
|
-
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9539
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9556
9540
|
},
|
|
9557
9541
|
nativeAd: function nativeAd(_ref18) {
|
|
9558
9542
|
var node = _ref18.node;
|