@mjhls/mjh-framework 1.0.863 → 1.0.864-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -30
- package/dist/cjs/AD300x250x600.js +30 -30
- package/dist/cjs/AD728x90.js +33 -33
- package/dist/cjs/ADFloatingFooter.js +32 -32
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -32
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-98c71bcd.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-98d7c699.js → ADlgInfeed-9de32585.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -35
- package/dist/cjs/AdSlotsProvider.js +912 -20
- package/dist/cjs/AlgoliaSearch.js +14023 -60
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +21 -25
- package/dist/cjs/ArticleProgramLandingPage.js +62 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +43 -43
- package/dist/cjs/ArticleSeriesListing.js +62 -62
- package/dist/cjs/Auth.js +1506 -682
- package/dist/cjs/AuthWrapper.js +268 -310
- 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 +22 -23
- 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 +24 -26
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +234 -238
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +132 -137
- 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 +72 -72
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +73 -78
- package/dist/cjs/IssueDeck.js +72 -77
- package/dist/cjs/IssueLanding.js +67 -67
- package/dist/cjs/LeftNav.js +39 -40
- package/dist/cjs/MasterDeck.js +72 -72
- package/dist/cjs/MediaSeriesLanding.js +1095 -1186
- 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 +130 -138
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +72 -73
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +3919 -118
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +43 -43
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +62 -67
- package/dist/cjs/PublicationLanding.js +108 -112
- package/dist/cjs/QueueDeckExpanded.js +311 -310
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +26 -27
- 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-e3e8ead7.js → SeriesSlider-8bbc989f.js} +35 -36
- 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-cea213aa.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +55 -55
- package/dist/cjs/TemplateNormal.js +74 -74
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +30 -31
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +76 -79
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesListing.js +79 -79
- package/dist/cjs/View.js +263 -265
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +75 -82
- 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-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +21 -21
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +8 -8
- package/dist/cjs/getSerializers.js +46 -45
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-f1821260.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-3c2fa34e.js → index-763f071f.js} +1067 -1088
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +166 -171
- package/dist/cjs/{inherits-c2065b95.js → inherits-1f5a1c72.js} +20 -20
- package/dist/cjs/inherits-8d29278d.js +110 -0
- 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/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-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 +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-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 +23 -22
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -22
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-1cc9d817.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-d94f1437.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +24 -23
- package/dist/esm/AdSlotsProvider.js +909 -16
- package/dist/esm/AlgoliaSearch.js +13993 -29
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +15 -18
- package/dist/esm/ArticleProgramLandingPage.js +50 -49
- package/dist/esm/ArticleSeriesLandingPage.js +33 -32
- package/dist/esm/ArticleSeriesListing.js +35 -34
- package/dist/esm/Auth.js +1420 -592
- package/dist/esm/AuthWrapper.js +246 -287
- 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 +50 -49
- package/dist/esm/DeckQueue.js +49 -48
- 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 +12 -12
- package/dist/esm/GridContent.js +91 -90
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +30 -30
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -46
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +56 -55
- package/dist/esm/LeftNav.js +22 -21
- package/dist/esm/MasterDeck.js +37 -36
- package/dist/esm/MediaSeriesLanding.js +645 -733
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +34 -34
- package/dist/esm/NavNative.js +34 -34
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +3865 -64
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +35 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +24 -24
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +39 -38
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +7 -7
- 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 +21 -20
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-a866bb21.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +46 -45
- package/dist/esm/TemplateNormal.js +50 -49
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +54 -53
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +39 -38
- package/dist/esm/VideoSeriesListing.js +36 -35
- package/dist/esm/View.js +91 -89
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +37 -43
- 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-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -45
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-bd800589.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-fce5c5b6.js → index-36e590e8.js} +642 -653
- package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +124 -126
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.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/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-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/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- 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/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
2
7
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
5
|
-
import urlFor from './urlFor.js';
|
|
6
|
-
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
|
-
import Router, { useRouter } from 'next/router';
|
|
8
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import { u as util } from './util-3ab476bf.js';
|
|
12
|
-
import Beam from './Beam.js';
|
|
13
|
-
import Segment from './Segment.js';
|
|
14
|
-
import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
|
|
15
|
-
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
16
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
19
|
-
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
21
|
-
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
30
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import urlFor from './urlFor.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 Segment from './Segment.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
|
+
import GroupDeck from './GroupDeck.js';
|
|
26
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
+
import { u as util } from './util-7700fc59.js';
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
31
30
|
import Head from 'next/head';
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
31
|
+
import SocialShare from './SocialShare.js';
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
33
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
-
import Popover from 'react-bootstrap/Popover';
|
|
36
|
+
import Tooltip$1 from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover$1 from 'react-bootstrap/Popover';
|
|
38
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -42,7 +42,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
42
42
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var Slideshow
|
|
45
|
+
var Slideshow = function Slideshow(_ref) {
|
|
46
46
|
var slides = _ref.slides,
|
|
47
47
|
client = _ref.client,
|
|
48
48
|
pageview = _ref.pageview;
|
|
@@ -100,18 +100,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
var isArray = Array.isArray;
|
|
104
|
+
var keyList = Object.keys;
|
|
105
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
106
106
|
|
|
107
107
|
var fastDeepEqual = function equal(a, b) {
|
|
108
108
|
if (a === b) return true;
|
|
109
109
|
|
|
110
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
111
|
+
var arrA = isArray(a)
|
|
112
|
+
, arrB = isArray(b)
|
|
113
|
+
, i
|
|
114
|
+
, length
|
|
115
|
+
, key;
|
|
112
116
|
|
|
113
|
-
|
|
114
|
-
if (Array.isArray(a)) {
|
|
117
|
+
if (arrA && arrB) {
|
|
115
118
|
length = a.length;
|
|
116
119
|
if (length != b.length) return false;
|
|
117
120
|
for (i = length; i-- !== 0;)
|
|
@@ -119,29 +122,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
122
|
return true;
|
|
120
123
|
}
|
|
121
124
|
|
|
125
|
+
if (arrA != arrB) return false;
|
|
122
126
|
|
|
127
|
+
var dateA = a instanceof Date
|
|
128
|
+
, dateB = b instanceof Date;
|
|
129
|
+
if (dateA != dateB) return false;
|
|
130
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (
|
|
132
|
+
var regexpA = a instanceof RegExp
|
|
133
|
+
, regexpB = b instanceof RegExp;
|
|
134
|
+
if (regexpA != regexpB) return false;
|
|
135
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
127
136
|
|
|
128
|
-
keys =
|
|
137
|
+
var keys = keyList(a);
|
|
129
138
|
length = keys.length;
|
|
130
|
-
|
|
139
|
+
|
|
140
|
+
if (length !== keyList(b).length)
|
|
141
|
+
return false;
|
|
131
142
|
|
|
132
143
|
for (i = length; i-- !== 0;)
|
|
133
|
-
if (!
|
|
144
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
134
145
|
|
|
135
146
|
for (i = length; i-- !== 0;) {
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
key = keys[i];
|
|
138
148
|
if (!equal(a[key], b[key])) return false;
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
return true;
|
|
142
152
|
}
|
|
143
153
|
|
|
144
|
-
// true if both NaN, false otherwise
|
|
145
154
|
return a!==a && b!==b;
|
|
146
155
|
};
|
|
147
156
|
|
|
@@ -679,14 +688,14 @@ function coerce(val) {
|
|
|
679
688
|
return val;
|
|
680
689
|
}
|
|
681
690
|
});
|
|
682
|
-
debug.coerce;
|
|
683
|
-
debug.disable;
|
|
684
|
-
debug.enable;
|
|
685
|
-
debug.enabled;
|
|
686
|
-
debug.humanize;
|
|
687
|
-
debug.names;
|
|
688
|
-
debug.skips;
|
|
689
|
-
debug.formatters;
|
|
691
|
+
var debug_1 = debug.coerce;
|
|
692
|
+
var debug_2 = debug.disable;
|
|
693
|
+
var debug_3 = debug.enable;
|
|
694
|
+
var debug_4 = debug.enabled;
|
|
695
|
+
var debug_5 = debug.humanize;
|
|
696
|
+
var debug_6 = debug.names;
|
|
697
|
+
var debug_7 = debug.skips;
|
|
698
|
+
var debug_8 = debug.formatters;
|
|
690
699
|
|
|
691
700
|
var browser = createCommonjsModule(function (module, exports) {
|
|
692
701
|
/**
|
|
@@ -875,13 +884,13 @@ function localstorage() {
|
|
|
875
884
|
} catch (e) {}
|
|
876
885
|
}
|
|
877
886
|
});
|
|
878
|
-
browser.log;
|
|
879
|
-
browser.formatArgs;
|
|
880
|
-
browser.save;
|
|
881
|
-
browser.load;
|
|
882
|
-
browser.useColors;
|
|
883
|
-
browser.storage;
|
|
884
|
-
browser.colors;
|
|
887
|
+
var browser_1 = browser.log;
|
|
888
|
+
var browser_2 = browser.formatArgs;
|
|
889
|
+
var browser_3 = browser.save;
|
|
890
|
+
var browser_4 = browser.load;
|
|
891
|
+
var browser_5 = browser.useColors;
|
|
892
|
+
var browser_6 = browser.storage;
|
|
893
|
+
var browser_7 = browser.colors;
|
|
885
894
|
|
|
886
895
|
// MIT lisence
|
|
887
896
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1156,14 +1165,14 @@ function init (debug) {
|
|
|
1156
1165
|
|
|
1157
1166
|
exports.enable(load());
|
|
1158
1167
|
});
|
|
1159
|
-
node.init;
|
|
1160
|
-
node.log;
|
|
1161
|
-
node.formatArgs;
|
|
1162
|
-
node.save;
|
|
1163
|
-
node.load;
|
|
1164
|
-
node.useColors;
|
|
1165
|
-
node.colors;
|
|
1166
|
-
node.inspectOpts;
|
|
1168
|
+
var node_1 = node.init;
|
|
1169
|
+
var node_2 = node.log;
|
|
1170
|
+
var node_3 = node.formatArgs;
|
|
1171
|
+
var node_4 = node.save;
|
|
1172
|
+
var node_5 = node.load;
|
|
1173
|
+
var node_6 = node.useColors;
|
|
1174
|
+
var node_7 = node.colors;
|
|
1175
|
+
var node_8 = node.inspectOpts;
|
|
1167
1176
|
|
|
1168
1177
|
var src = createCommonjsModule(function (module) {
|
|
1169
1178
|
/**
|
|
@@ -1564,239 +1573,199 @@ module.exports = exports['default'];
|
|
|
1564
1573
|
|
|
1565
1574
|
var youTubePlayer = unwrapExports(dist);
|
|
1566
1575
|
|
|
1567
|
-
function
|
|
1568
|
-
|
|
1569
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1570
|
-
|
|
1571
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1572
|
-
|
|
1573
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1574
|
-
|
|
1575
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1576
|
-
|
|
1577
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1578
|
-
|
|
1579
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1580
|
-
|
|
1581
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1576
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1582
1577
|
|
|
1583
|
-
function
|
|
1578
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1584
1579
|
|
|
1585
|
-
function
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1586
1581
|
|
|
1587
|
-
function
|
|
1582
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1588
1583
|
|
|
1589
|
-
function
|
|
1584
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1590
1585
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
* @param {Object} prevProps
|
|
1598
|
-
* @param {Object} props
|
|
1586
|
+
/**
|
|
1587
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1588
|
+
*
|
|
1589
|
+
* @param {Object} prevProps
|
|
1590
|
+
* @param {Object} props
|
|
1599
1591
|
*/
|
|
1600
|
-
|
|
1601
1592
|
function shouldUpdateVideo(prevProps, props) {
|
|
1602
1593
|
// A changing video should always trigger an update
|
|
1603
1594
|
if (prevProps.videoId !== props.videoId) {
|
|
1604
1595
|
return true;
|
|
1605
|
-
}
|
|
1606
|
-
// update.
|
|
1607
|
-
|
|
1596
|
+
}
|
|
1608
1597
|
|
|
1598
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
|
+
// update.
|
|
1609
1600
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1610
1601
|
var vars = props.opts.playerVars || {};
|
|
1602
|
+
|
|
1611
1603
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1612
1604
|
}
|
|
1613
|
-
/**
|
|
1614
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1615
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
-
* player reset is necessary.
|
|
1617
|
-
*
|
|
1618
|
-
* @param {Object} opts
|
|
1619
|
-
*/
|
|
1620
|
-
|
|
1621
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1608
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
+
* player reset is necessary.
|
|
1610
|
+
*
|
|
1611
|
+
* @param {Object} opts
|
|
1612
|
+
*/
|
|
1622
1613
|
function filterResetOptions(opts) {
|
|
1623
|
-
return
|
|
1624
|
-
playerVars:
|
|
1614
|
+
return _extends({}, opts, {
|
|
1615
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1625
1616
|
autoplay: 0,
|
|
1626
1617
|
start: 0,
|
|
1627
1618
|
end: 0
|
|
1628
|
-
}
|
|
1619
|
+
})
|
|
1629
1620
|
});
|
|
1630
1621
|
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
-
* those.
|
|
1636
|
-
*
|
|
1637
|
-
* @param {Object} prevProps
|
|
1638
|
-
* @param {Object} props
|
|
1639
|
-
*/
|
|
1640
|
-
|
|
1641
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1625
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1626
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1627
|
+
* those.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Object} prevProps
|
|
1630
|
+
* @param {Object} props
|
|
1631
|
+
*/
|
|
1642
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1643
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1644
1634
|
}
|
|
1645
|
-
/**
|
|
1646
|
-
* Check whether a props change should result in an id or className update.
|
|
1647
|
-
*
|
|
1648
|
-
* @param {Object} prevProps
|
|
1649
|
-
* @param {Object} props
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Check whether a props change should result in an id or className update.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {Object} prevProps
|
|
1640
|
+
* @param {Object} props
|
|
1641
|
+
*/
|
|
1653
1642
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1654
1643
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1655
1644
|
}
|
|
1656
1645
|
|
|
1657
|
-
var YouTube =
|
|
1646
|
+
var YouTube = function (_React$Component) {
|
|
1658
1647
|
_inherits(YouTube, _React$Component);
|
|
1659
1648
|
|
|
1660
|
-
var _super = _createSuper(YouTube);
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1664
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1665
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1666
|
-
*/
|
|
1667
1649
|
function YouTube(props) {
|
|
1668
|
-
var _this;
|
|
1669
|
-
|
|
1670
1650
|
_classCallCheck(this, YouTube);
|
|
1671
1651
|
|
|
1672
|
-
_this =
|
|
1652
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1673
1653
|
|
|
1674
|
-
|
|
1654
|
+
_this.onPlayerReady = function (event) {
|
|
1675
1655
|
return _this.props.onReady(event);
|
|
1676
|
-
}
|
|
1656
|
+
};
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerError = function (event) {
|
|
1679
1659
|
return _this.props.onError(event);
|
|
1680
|
-
}
|
|
1660
|
+
};
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerStateChange = function (event) {
|
|
1683
1663
|
_this.props.onStateChange(event);
|
|
1684
|
-
|
|
1685
1664
|
switch (event.data) {
|
|
1665
|
+
|
|
1686
1666
|
case YouTube.PlayerState.ENDED:
|
|
1687
1667
|
_this.props.onEnd(event);
|
|
1688
|
-
|
|
1689
1668
|
break;
|
|
1690
1669
|
|
|
1691
1670
|
case YouTube.PlayerState.PLAYING:
|
|
1692
1671
|
_this.props.onPlay(event);
|
|
1693
|
-
|
|
1694
1672
|
break;
|
|
1695
1673
|
|
|
1696
1674
|
case YouTube.PlayerState.PAUSED:
|
|
1697
1675
|
_this.props.onPause(event);
|
|
1698
|
-
|
|
1699
1676
|
break;
|
|
1700
1677
|
}
|
|
1701
|
-
}
|
|
1678
|
+
};
|
|
1702
1679
|
|
|
1703
|
-
|
|
1680
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1704
1681
|
return _this.props.onPlaybackRateChange(event);
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1708
1685
|
return _this.props.onPlaybackQualityChange(event);
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.createPlayer = function () {
|
|
1712
1689
|
// do not attempt to create a player server-side, it won't work
|
|
1713
|
-
if (typeof document === 'undefined') return;
|
|
1714
|
-
|
|
1715
|
-
var playerOpts =
|
|
1690
|
+
if (typeof document === 'undefined') return;
|
|
1691
|
+
// create player
|
|
1692
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1716
1693
|
// preload the `videoId` video if one is already given
|
|
1717
1694
|
videoId: _this.props.videoId
|
|
1718
1695
|
});
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1696
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1697
|
+
// attach event handlers
|
|
1722
1698
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
-
|
|
1724
1699
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
-
|
|
1726
1700
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
-
|
|
1728
1701
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
-
|
|
1730
1702
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1731
|
-
}
|
|
1703
|
+
};
|
|
1732
1704
|
|
|
1733
|
-
|
|
1705
|
+
_this.resetPlayer = function () {
|
|
1734
1706
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1735
|
-
}
|
|
1707
|
+
};
|
|
1736
1708
|
|
|
1737
|
-
|
|
1709
|
+
_this.updatePlayer = function () {
|
|
1738
1710
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1739
1711
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1740
1712
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1741
1713
|
});
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
-
return _this.internalPlayer;
|
|
1746
|
-
});
|
|
1714
|
+
};
|
|
1747
1715
|
|
|
1748
|
-
|
|
1716
|
+
_this.updateVideo = function () {
|
|
1749
1717
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1750
1718
|
_this.internalPlayer.stopVideo();
|
|
1751
|
-
|
|
1752
1719
|
return;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1720
|
+
}
|
|
1755
1721
|
|
|
1722
|
+
// set queueing options
|
|
1756
1723
|
var autoplay = false;
|
|
1757
1724
|
var opts = {
|
|
1758
1725
|
videoId: _this.props.videoId
|
|
1759
1726
|
};
|
|
1760
|
-
|
|
1761
1727
|
if ('playerVars' in _this.props.opts) {
|
|
1762
1728
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
-
|
|
1764
1729
|
if ('start' in _this.props.opts.playerVars) {
|
|
1765
1730
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1766
1731
|
}
|
|
1767
|
-
|
|
1768
1732
|
if ('end' in _this.props.opts.playerVars) {
|
|
1769
1733
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1770
1734
|
}
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1735
|
+
}
|
|
1773
1736
|
|
|
1737
|
+
// if autoplay is enabled loadVideoById
|
|
1774
1738
|
if (autoplay) {
|
|
1775
1739
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
-
|
|
1777
1740
|
return;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1741
|
+
}
|
|
1742
|
+
// default behaviour just cues the video
|
|
1781
1743
|
_this.internalPlayer.cueVideoById(opts);
|
|
1782
|
-
}
|
|
1744
|
+
};
|
|
1783
1745
|
|
|
1784
|
-
|
|
1746
|
+
_this.refContainer = function (container) {
|
|
1785
1747
|
_this.container = container;
|
|
1786
|
-
}
|
|
1748
|
+
};
|
|
1787
1749
|
|
|
1788
1750
|
_this.container = null;
|
|
1789
1751
|
_this.internalPlayer = null;
|
|
1790
1752
|
return _this;
|
|
1791
1753
|
}
|
|
1792
1754
|
|
|
1755
|
+
/**
|
|
1756
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
+
*/
|
|
1760
|
+
|
|
1761
|
+
|
|
1793
1762
|
_createClass(YouTube, [{
|
|
1794
|
-
key:
|
|
1763
|
+
key: 'componentDidMount',
|
|
1795
1764
|
value: function componentDidMount() {
|
|
1796
1765
|
this.createPlayer();
|
|
1797
1766
|
}
|
|
1798
1767
|
}, {
|
|
1799
|
-
key:
|
|
1768
|
+
key: 'componentDidUpdate',
|
|
1800
1769
|
value: function componentDidUpdate(prevProps) {
|
|
1801
1770
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1802
1771
|
this.updatePlayer();
|
|
@@ -1811,58 +1780,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1811
1780
|
}
|
|
1812
1781
|
}
|
|
1813
1782
|
}, {
|
|
1814
|
-
key:
|
|
1783
|
+
key: 'componentWillUnmount',
|
|
1815
1784
|
value: function componentWillUnmount() {
|
|
1816
|
-
/**
|
|
1817
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1818
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
-
* this method isn't quick enough to reset the container element.
|
|
1785
|
+
/**
|
|
1786
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1787
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
+
* this method isn't quick enough to reset the container element.
|
|
1821
1790
|
*/
|
|
1822
1791
|
this.internalPlayer.destroy();
|
|
1823
1792
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1796
|
+
*
|
|
1797
|
+
* @param {Object} event
|
|
1798
|
+
* @param {Object} target - player object
|
|
1799
|
+
*/
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Integer} data - error type
|
|
1807
|
+
* @param {Object} target - player object
|
|
1808
|
+
*/
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
+
*
|
|
1814
|
+
* @param {Object} event
|
|
1815
|
+
* @param {Integer} data - status change type
|
|
1816
|
+
* @param {Object} target - actual YT player
|
|
1817
|
+
*/
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
+
*
|
|
1823
|
+
* @param {Object} event
|
|
1824
|
+
* @param {Float} data - playback rate
|
|
1825
|
+
* @param {Object} target - actual YT player
|
|
1826
|
+
*/
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
+
*
|
|
1832
|
+
* @param {Object} event
|
|
1833
|
+
* @param {String} data - playback quality
|
|
1834
|
+
* @param {Object} target - actual YT player
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
+
* React should update this automatically but since the Youtube Player API
|
|
1851
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
+
* Youtube Player API methods to update the video.
|
|
1829
1859
|
*/
|
|
1830
1860
|
|
|
1831
1861
|
}, {
|
|
1832
|
-
key:
|
|
1862
|
+
key: 'render',
|
|
1833
1863
|
value: function render() {
|
|
1834
|
-
return
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
id: this.props.id,
|
|
1838
|
-
|
|
1839
|
-
ref: this.refContainer
|
|
1840
|
-
}));
|
|
1864
|
+
return React__default.createElement(
|
|
1865
|
+
'div',
|
|
1866
|
+
{ className: this.props.containerClassName },
|
|
1867
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1868
|
+
);
|
|
1841
1869
|
}
|
|
1842
1870
|
}]);
|
|
1843
1871
|
|
|
1844
1872
|
return YouTube;
|
|
1845
1873
|
}(React__default.Component);
|
|
1846
1874
|
|
|
1847
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
-
UNSTARTED: -1,
|
|
1849
|
-
ENDED: 0,
|
|
1850
|
-
PLAYING: 1,
|
|
1851
|
-
PAUSED: 2,
|
|
1852
|
-
BUFFERING: 3,
|
|
1853
|
-
CUED: 5
|
|
1854
|
-
});
|
|
1855
|
-
|
|
1856
1875
|
YouTube.propTypes = {
|
|
1857
1876
|
videoId: PropTypes.string,
|
|
1877
|
+
|
|
1858
1878
|
// custom ID for player element
|
|
1859
1879
|
id: PropTypes.string,
|
|
1880
|
+
|
|
1860
1881
|
// custom class name for player element
|
|
1861
1882
|
className: PropTypes.string,
|
|
1862
1883
|
// custom class name for player container element
|
|
1863
1884
|
containerClassName: PropTypes.string,
|
|
1885
|
+
|
|
1864
1886
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1865
1887
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
+
|
|
1866
1889
|
// event subscriptions
|
|
1867
1890
|
onReady: PropTypes.func,
|
|
1868
1891
|
onError: PropTypes.func,
|
|
@@ -1874,7 +1897,6 @@ YouTube.propTypes = {
|
|
|
1874
1897
|
onPlaybackQualityChange: PropTypes.func
|
|
1875
1898
|
};
|
|
1876
1899
|
YouTube.defaultProps = {
|
|
1877
|
-
videoId: null,
|
|
1878
1900
|
id: null,
|
|
1879
1901
|
className: null,
|
|
1880
1902
|
opts: {},
|
|
@@ -1888,6 +1910,14 @@ YouTube.defaultProps = {
|
|
|
1888
1910
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1889
1911
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1890
1912
|
};
|
|
1913
|
+
YouTube.PlayerState = {
|
|
1914
|
+
UNSTARTED: -1,
|
|
1915
|
+
ENDED: 0,
|
|
1916
|
+
PLAYING: 1,
|
|
1917
|
+
PAUSED: 2,
|
|
1918
|
+
BUFFERING: 3,
|
|
1919
|
+
CUED: 5
|
|
1920
|
+
};
|
|
1891
1921
|
|
|
1892
1922
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1893
1923
|
var url = _ref.url,
|
|
@@ -1926,8 +1956,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1926
1956
|
var duration = player.getDuration();
|
|
1927
1957
|
var queue = Math.floor(duration / 10);
|
|
1928
1958
|
var segment = Math.floor(current / queue);
|
|
1929
|
-
Beam.report_beam_video('Ready',
|
|
1930
|
-
Segment.report_video_event('Video Ready',
|
|
1959
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1960
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1931
1961
|
};
|
|
1932
1962
|
|
|
1933
1963
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1937,8 +1967,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1967
|
var segment = Math.floor(current / queue);
|
|
1938
1968
|
|
|
1939
1969
|
if (!queueProgress.includes(segment)) {
|
|
1940
|
-
Beam.report_beam_video('Segment',
|
|
1941
|
-
Segment.report_video_event('Video Segment',
|
|
1970
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1971
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1942
1972
|
queueProgress.push(segment);
|
|
1943
1973
|
}
|
|
1944
1974
|
};
|
|
@@ -1951,8 +1981,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1951
1981
|
var queue = Math.floor(duration / 10);
|
|
1952
1982
|
var segment = Math.floor(current / queue);
|
|
1953
1983
|
|
|
1954
|
-
Beam.report_beam_video('Play',
|
|
1955
|
-
Segment.report_video_event('Video Play',
|
|
1984
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1985
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1956
1986
|
|
|
1957
1987
|
if (!playReported) {
|
|
1958
1988
|
setPlayReported(true);
|
|
@@ -1971,8 +2001,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
2001
|
var queue = Math.floor(duration / 10);
|
|
1972
2002
|
var segment = Math.floor(current / queue);
|
|
1973
2003
|
|
|
1974
|
-
Beam.report_beam_video('End',
|
|
1975
|
-
Segment.report_video_event('Video End',
|
|
2004
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
2005
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1976
2006
|
setEndReported(true);
|
|
1977
2007
|
clearInterval(intervalID);
|
|
1978
2008
|
}
|
|
@@ -1985,8 +2015,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
2015
|
var queue = Math.floor(duration / 10);
|
|
1986
2016
|
var segment = Math.floor(current / queue);
|
|
1987
2017
|
|
|
1988
|
-
Beam.report_beam_video('Pause',
|
|
1989
|
-
Segment.report_video_event('Video Pause',
|
|
2018
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
2019
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
2020
|
};
|
|
1991
2021
|
|
|
1992
2022
|
return React__default.createElement(
|
|
@@ -2154,7 +2184,7 @@ var Media = function Media(_ref) {
|
|
|
2154
2184
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2155
2185
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2156
2186
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2157
|
-
React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2187
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2158
2188
|
)
|
|
2159
2189
|
),
|
|
2160
2190
|
caption && React__default.createElement(
|
|
@@ -2167,7 +2197,7 @@ var Media = function Media(_ref) {
|
|
|
2167
2197
|
} else if (caption && caption !== '') {
|
|
2168
2198
|
return React__default.createElement(
|
|
2169
2199
|
'a',
|
|
2170
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2200
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2171
2201
|
href: uploadDoc.asset.url + '?dl='
|
|
2172
2202
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2173
2203
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2222,8 +2252,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2222
2252
|
var duration = player.duration;
|
|
2223
2253
|
var queue = Math.floor(duration / 10);
|
|
2224
2254
|
var segment = Math.floor(current / queue);
|
|
2225
|
-
Beam.report_beam_video('Ready',
|
|
2226
|
-
Segment.report_video_event('Video Ready',
|
|
2255
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2256
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2227
2257
|
};
|
|
2228
2258
|
|
|
2229
2259
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2232,8 +2262,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2232
2262
|
var queue = Math.floor(duration / 10);
|
|
2233
2263
|
var segment = Math.floor(current / queue);
|
|
2234
2264
|
if (!queueProgress.includes(segment)) {
|
|
2235
|
-
Beam.report_beam_video('Segment',
|
|
2236
|
-
Segment.report_video_event('Video Segment',
|
|
2265
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2266
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2237
2267
|
queueProgress.push(segment);
|
|
2238
2268
|
}
|
|
2239
2269
|
};
|
|
@@ -2245,8 +2275,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2245
2275
|
var duration = player.duration;
|
|
2246
2276
|
var queue = Math.floor(duration / 10);
|
|
2247
2277
|
var segment = Math.floor(current / queue);
|
|
2248
|
-
Beam.report_beam_video('Play',
|
|
2249
|
-
Segment.report_video_event('Video Play',
|
|
2278
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2279
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2250
2280
|
|
|
2251
2281
|
if (!playReported) {
|
|
2252
2282
|
event.persist();
|
|
@@ -2266,8 +2296,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2266
2296
|
var queue = Math.floor(duration / 10);
|
|
2267
2297
|
var segment = Math.floor(current / queue);
|
|
2268
2298
|
|
|
2269
|
-
Beam.report_beam_video('End',
|
|
2270
|
-
Segment.report_video_event('Video End',
|
|
2299
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2300
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2271
2301
|
setEndReported(true);
|
|
2272
2302
|
clearInterval(intervalID);
|
|
2273
2303
|
}
|
|
@@ -2279,8 +2309,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2279
2309
|
var duration = player.duration - current;
|
|
2280
2310
|
var queue = Math.floor(duration / 10);
|
|
2281
2311
|
var segment = Math.floor(current / queue);
|
|
2282
|
-
Beam.report_beam_video('Pause',
|
|
2283
|
-
Segment.report_video_event('Video Pause',
|
|
2312
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2313
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2284
2314
|
};
|
|
2285
2315
|
|
|
2286
2316
|
return React__default.createElement(
|
|
@@ -2341,7 +2371,7 @@ var Video = function Video(_ref) {
|
|
|
2341
2371
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2342
2372
|
//console.log('success:', success.ref)
|
|
2343
2373
|
var player = success.ref;
|
|
2344
|
-
if (_typeof
|
|
2374
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2345
2375
|
player.ima3.settings.debug = true;
|
|
2346
2376
|
if (targeting.content_placement && targeting.document_url) {
|
|
2347
2377
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2369,8 +2399,8 @@ var Video = function Video(_ref) {
|
|
|
2369
2399
|
player.pause();
|
|
2370
2400
|
}
|
|
2371
2401
|
|
|
2372
|
-
Beam.report_beam_video('Ready',
|
|
2373
|
-
Segment.report_video_event('Video Ready',
|
|
2402
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2403
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2374
2404
|
});
|
|
2375
2405
|
|
|
2376
2406
|
// play
|
|
@@ -2379,8 +2409,8 @@ var Video = function Video(_ref) {
|
|
|
2379
2409
|
var current = player.currentTime();
|
|
2380
2410
|
var queue = Math.floor(duration / 10);
|
|
2381
2411
|
var segment = Math.floor(current / queue);
|
|
2382
|
-
Beam.report_beam_video('Play',
|
|
2383
|
-
Segment.report_video_event('Video Play',
|
|
2412
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2413
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2384
2414
|
});
|
|
2385
2415
|
|
|
2386
2416
|
// pause
|
|
@@ -2389,8 +2419,8 @@ var Video = function Video(_ref) {
|
|
|
2389
2419
|
var current = player.currentTime();
|
|
2390
2420
|
var queue = Math.floor(duration / 10);
|
|
2391
2421
|
var segment = Math.floor(current / queue);
|
|
2392
|
-
Beam.report_beam_video('Pause',
|
|
2393
|
-
Segment.report_video_event('Video Pause',
|
|
2422
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2423
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2394
2424
|
});
|
|
2395
2425
|
|
|
2396
2426
|
// end
|
|
@@ -2399,8 +2429,8 @@ var Video = function Video(_ref) {
|
|
|
2399
2429
|
var current = player.currentTime();
|
|
2400
2430
|
var queue = Math.floor(duration / 10);
|
|
2401
2431
|
var segment = Math.floor(current / queue);
|
|
2402
|
-
Beam.report_beam_video('End',
|
|
2403
|
-
Segment.report_video_event('Video End',
|
|
2432
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2433
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
2434
|
autoplayNextVideo(evt);
|
|
2405
2435
|
});
|
|
2406
2436
|
|
|
@@ -2411,8 +2441,8 @@ var Video = function Video(_ref) {
|
|
|
2411
2441
|
var queue = Math.floor(duration / 10);
|
|
2412
2442
|
var segment = Math.floor(current / queue);
|
|
2413
2443
|
if (!queueProgress.includes(segment)) {
|
|
2414
|
-
Beam.report_beam_video('Segment',
|
|
2415
|
-
Segment.report_video_event('Video Segment',
|
|
2444
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2445
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2416
2446
|
queueProgress.push(segment);
|
|
2417
2447
|
}
|
|
2418
2448
|
});
|
|
@@ -2423,8 +2453,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2453
|
var id = player.ads.ad.id;
|
|
2424
2454
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2425
2455
|
|
|
2426
|
-
Beam.report_beam_ad('AD Started',
|
|
2427
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2456
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2457
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2428
2458
|
});
|
|
2429
2459
|
|
|
2430
2460
|
// ad ended
|
|
@@ -2432,8 +2462,8 @@ var Video = function Video(_ref) {
|
|
|
2432
2462
|
var duration = player.ads.ad.duration;
|
|
2433
2463
|
var id = player.ads.ad.id;
|
|
2434
2464
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2435
|
-
Beam.report_beam_ad('AD Ended',
|
|
2436
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2465
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2466
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2437
2467
|
});
|
|
2438
2468
|
};
|
|
2439
2469
|
|
|
@@ -2696,9 +2726,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2696
2726
|
});
|
|
2697
2727
|
|
|
2698
2728
|
unwrapExports(props);
|
|
2699
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2700
|
-
props.defaultProps;
|
|
2701
|
-
props.propTypes;
|
|
2729
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2730
|
+
var props_2 = props.defaultProps;
|
|
2731
|
+
var props_3 = props.propTypes;
|
|
2702
2732
|
|
|
2703
2733
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2704
2734
|
return isNonNullObject(value)
|
|
@@ -2863,17 +2893,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2863
2893
|
|
|
2864
2894
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2865
2895
|
|
|
2866
|
-
function
|
|
2867
|
-
|
|
2868
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2896
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2869
2897
|
|
|
2870
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2898
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2871
2899
|
|
|
2872
|
-
function
|
|
2873
|
-
|
|
2874
|
-
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; }
|
|
2875
|
-
|
|
2876
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2900
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2877
2901
|
|
|
2878
2902
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2879
2903
|
|
|
@@ -3003,12 +3027,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3003
3027
|
|
|
3004
3028
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3005
3029
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3006
|
-
|
|
3007
|
-
var
|
|
3008
|
-
|
|
3030
|
+
var _iteratorNormalCompletion = true;
|
|
3031
|
+
var _didIteratorError = false;
|
|
3032
|
+
var _iteratorError = undefined;
|
|
3009
3033
|
|
|
3010
3034
|
try {
|
|
3011
|
-
for (_iterator.
|
|
3035
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3012
3036
|
var p = _step.value;
|
|
3013
3037
|
|
|
3014
3038
|
if (props$1[p]) {
|
|
@@ -3023,9 +3047,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3023
3047
|
}
|
|
3024
3048
|
}
|
|
3025
3049
|
} catch (err) {
|
|
3026
|
-
|
|
3050
|
+
_didIteratorError = true;
|
|
3051
|
+
_iteratorError = err;
|
|
3027
3052
|
} finally {
|
|
3028
|
-
|
|
3053
|
+
try {
|
|
3054
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3055
|
+
_iterator["return"]();
|
|
3056
|
+
}
|
|
3057
|
+
} finally {
|
|
3058
|
+
if (_didIteratorError) {
|
|
3059
|
+
throw _iteratorError;
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3029
3062
|
}
|
|
3030
3063
|
|
|
3031
3064
|
return config;
|
|
@@ -3133,17 +3166,17 @@ function isMediaStream(url) {
|
|
|
3133
3166
|
});
|
|
3134
3167
|
|
|
3135
3168
|
unwrapExports(utils);
|
|
3136
|
-
utils.parseStartTime;
|
|
3137
|
-
utils.parseEndTime;
|
|
3138
|
-
utils.randomString;
|
|
3139
|
-
utils.queryString;
|
|
3140
|
-
utils.getSDK;
|
|
3141
|
-
utils.getConfig;
|
|
3142
|
-
utils.omit;
|
|
3143
|
-
utils.callPlayer;
|
|
3144
|
-
utils.isObject;
|
|
3145
|
-
utils.isEqual;
|
|
3146
|
-
utils.isMediaStream;
|
|
3169
|
+
var utils_1 = utils.parseStartTime;
|
|
3170
|
+
var utils_2 = utils.parseEndTime;
|
|
3171
|
+
var utils_3 = utils.randomString;
|
|
3172
|
+
var utils_4 = utils.queryString;
|
|
3173
|
+
var utils_5 = utils.getSDK;
|
|
3174
|
+
var utils_6 = utils.getConfig;
|
|
3175
|
+
var utils_7 = utils.omit;
|
|
3176
|
+
var utils_8 = utils.callPlayer;
|
|
3177
|
+
var utils_9 = utils.isObject;
|
|
3178
|
+
var utils_10 = utils.isEqual;
|
|
3179
|
+
var utils_11 = utils.isMediaStream;
|
|
3147
3180
|
|
|
3148
3181
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3149
3182
|
|
|
@@ -3172,16 +3205,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3172
3205
|
|
|
3173
3206
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3174
3207
|
|
|
3175
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3176
|
-
|
|
3177
3208
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3178
3209
|
|
|
3179
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3180
|
-
|
|
3181
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3182
|
-
|
|
3183
3210
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3184
3211
|
|
|
3212
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3213
|
+
|
|
3185
3214
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3186
3215
|
|
|
3187
3216
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3190,12 +3219,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3190
3219
|
|
|
3191
3220
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3192
3221
|
|
|
3193
|
-
var Player =
|
|
3222
|
+
var Player =
|
|
3223
|
+
/*#__PURE__*/
|
|
3224
|
+
function (_Component) {
|
|
3194
3225
|
_inherits(Player, _Component);
|
|
3195
3226
|
|
|
3196
|
-
var _super = _createSuper(Player);
|
|
3197
|
-
|
|
3198
3227
|
function Player() {
|
|
3228
|
+
var _getPrototypeOf2;
|
|
3229
|
+
|
|
3199
3230
|
var _this;
|
|
3200
3231
|
|
|
3201
3232
|
_classCallCheck(this, Player);
|
|
@@ -3204,7 +3235,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3204
3235
|
_args[_key] = arguments[_key];
|
|
3205
3236
|
}
|
|
3206
3237
|
|
|
3207
|
-
_this =
|
|
3238
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3208
3239
|
|
|
3209
3240
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3210
3241
|
|
|
@@ -3529,7 +3560,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3529
3560
|
return null;
|
|
3530
3561
|
}
|
|
3531
3562
|
|
|
3532
|
-
return
|
|
3563
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3533
3564
|
ref: this.ref,
|
|
3534
3565
|
onReady: this.handleReady,
|
|
3535
3566
|
onPlay: this.handlePlay,
|
|
@@ -3590,16 +3621,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3590
3621
|
|
|
3591
3622
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3592
3623
|
|
|
3593
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3594
|
-
|
|
3595
3624
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3596
3625
|
|
|
3597
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3598
|
-
|
|
3599
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3600
|
-
|
|
3601
3626
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3602
3627
|
|
|
3628
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3629
|
+
|
|
3603
3630
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3604
3631
|
|
|
3605
3632
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3611,12 +3638,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3611
3638
|
function createSinglePlayer(activePlayer) {
|
|
3612
3639
|
var _class, _temp;
|
|
3613
3640
|
|
|
3614
|
-
return _temp = _class =
|
|
3641
|
+
return _temp = _class =
|
|
3642
|
+
/*#__PURE__*/
|
|
3643
|
+
function (_Component) {
|
|
3615
3644
|
_inherits(SinglePlayer, _Component);
|
|
3616
3645
|
|
|
3617
|
-
var _super = _createSuper(SinglePlayer);
|
|
3618
|
-
|
|
3619
3646
|
function SinglePlayer() {
|
|
3647
|
+
var _getPrototypeOf2;
|
|
3648
|
+
|
|
3620
3649
|
var _this;
|
|
3621
3650
|
|
|
3622
3651
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3625,7 +3654,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3625
3654
|
args[_key] = arguments[_key];
|
|
3626
3655
|
}
|
|
3627
3656
|
|
|
3628
|
-
_this =
|
|
3657
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3629
3658
|
|
|
3630
3659
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3631
3660
|
|
|
@@ -3693,12 +3722,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3693
3722
|
height = _this$props.height,
|
|
3694
3723
|
Wrapper = _this$props.wrapper;
|
|
3695
3724
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3696
|
-
return
|
|
3725
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3697
3726
|
style: _objectSpread({}, style, {
|
|
3698
3727
|
width: width,
|
|
3699
3728
|
height: height
|
|
3700
3729
|
})
|
|
3701
|
-
}, otherProps),
|
|
3730
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3702
3731
|
ref: this.ref,
|
|
3703
3732
|
activePlayer: activePlayer,
|
|
3704
3733
|
config: this.config
|
|
@@ -3744,31 +3773,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3744
3773
|
|
|
3745
3774
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3746
3775
|
|
|
3747
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3748
|
-
|
|
3749
3776
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3750
3777
|
|
|
3751
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3752
|
-
|
|
3753
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3754
|
-
|
|
3755
3778
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3756
3779
|
|
|
3780
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3781
|
+
|
|
3757
3782
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3758
3783
|
|
|
3759
3784
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3760
3785
|
|
|
3761
3786
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3762
3787
|
|
|
3763
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3788
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3764
3789
|
|
|
3765
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3790
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3766
3791
|
|
|
3767
|
-
function
|
|
3768
|
-
|
|
3769
|
-
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; }
|
|
3770
|
-
|
|
3771
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3792
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3772
3793
|
|
|
3773
3794
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3774
3795
|
|
|
@@ -3793,12 +3814,14 @@ function parsePlaylist(url) {
|
|
|
3793
3814
|
return {};
|
|
3794
3815
|
}
|
|
3795
3816
|
|
|
3796
|
-
var YouTube =
|
|
3817
|
+
var YouTube =
|
|
3818
|
+
/*#__PURE__*/
|
|
3819
|
+
function (_Component) {
|
|
3797
3820
|
_inherits(YouTube, _Component);
|
|
3798
3821
|
|
|
3799
|
-
var _super = _createSuper(YouTube);
|
|
3800
|
-
|
|
3801
3822
|
function YouTube() {
|
|
3823
|
+
var _getPrototypeOf2;
|
|
3824
|
+
|
|
3802
3825
|
var _this;
|
|
3803
3826
|
|
|
3804
3827
|
_classCallCheck(this, YouTube);
|
|
@@ -3807,7 +3830,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3807
3830
|
args[_key] = arguments[_key];
|
|
3808
3831
|
}
|
|
3809
3832
|
|
|
3810
|
-
_this =
|
|
3833
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3811
3834
|
|
|
3812
3835
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3813
3836
|
|
|
@@ -3995,9 +4018,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3995
4018
|
height: '100%',
|
|
3996
4019
|
display: display
|
|
3997
4020
|
};
|
|
3998
|
-
return
|
|
4021
|
+
return _react["default"].createElement("div", {
|
|
3999
4022
|
style: style
|
|
4000
|
-
},
|
|
4023
|
+
}, _react["default"].createElement("div", {
|
|
4001
4024
|
ref: this.ref
|
|
4002
4025
|
}));
|
|
4003
4026
|
}
|
|
@@ -4020,7 +4043,7 @@ exports["default"] = _default;
|
|
|
4020
4043
|
});
|
|
4021
4044
|
|
|
4022
4045
|
unwrapExports(YouTube_1);
|
|
4023
|
-
YouTube_1.YouTube;
|
|
4046
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4024
4047
|
|
|
4025
4048
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4026
4049
|
|
|
@@ -4053,16 +4076,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4053
4076
|
|
|
4054
4077
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4055
4078
|
|
|
4056
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4057
|
-
|
|
4058
4079
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4059
4080
|
|
|
4060
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4061
|
-
|
|
4062
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4063
|
-
|
|
4064
4081
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4065
4082
|
|
|
4083
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4084
|
+
|
|
4066
4085
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4067
4086
|
|
|
4068
4087
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4071,14 +4090,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4071
4090
|
|
|
4072
4091
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4073
4092
|
var SDK_GLOBAL = 'SC';
|
|
4074
|
-
var MATCH_URL = /(
|
|
4093
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4075
4094
|
|
|
4076
|
-
var SoundCloud =
|
|
4095
|
+
var SoundCloud =
|
|
4096
|
+
/*#__PURE__*/
|
|
4097
|
+
function (_Component) {
|
|
4077
4098
|
_inherits(SoundCloud, _Component);
|
|
4078
4099
|
|
|
4079
|
-
var _super = _createSuper(SoundCloud);
|
|
4080
|
-
|
|
4081
4100
|
function SoundCloud() {
|
|
4101
|
+
var _getPrototypeOf2;
|
|
4102
|
+
|
|
4082
4103
|
var _this;
|
|
4083
4104
|
|
|
4084
4105
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4087,7 +4108,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4087
4108
|
args[_key] = arguments[_key];
|
|
4088
4109
|
}
|
|
4089
4110
|
|
|
4090
|
-
_this =
|
|
4111
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4091
4112
|
|
|
4092
4113
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4093
4114
|
|
|
@@ -4208,7 +4229,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4208
4229
|
height: '100%',
|
|
4209
4230
|
display: display
|
|
4210
4231
|
};
|
|
4211
|
-
return
|
|
4232
|
+
return _react["default"].createElement("iframe", {
|
|
4212
4233
|
ref: this.ref,
|
|
4213
4234
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4214
4235
|
style: style,
|
|
@@ -4237,7 +4258,7 @@ exports["default"] = _default;
|
|
|
4237
4258
|
});
|
|
4238
4259
|
|
|
4239
4260
|
unwrapExports(SoundCloud_1);
|
|
4240
|
-
SoundCloud_1.SoundCloud;
|
|
4261
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4241
4262
|
|
|
4242
4263
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4243
4264
|
|
|
@@ -4270,16 +4291,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4270
4291
|
|
|
4271
4292
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4272
4293
|
|
|
4273
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4274
|
-
|
|
4275
4294
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4276
4295
|
|
|
4277
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4278
|
-
|
|
4279
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4280
|
-
|
|
4281
4296
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4282
4297
|
|
|
4298
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4299
|
+
|
|
4283
4300
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4284
4301
|
|
|
4285
4302
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4291,12 +4308,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4291
4308
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4292
4309
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4293
4310
|
|
|
4294
|
-
var Vimeo =
|
|
4311
|
+
var Vimeo =
|
|
4312
|
+
/*#__PURE__*/
|
|
4313
|
+
function (_Component) {
|
|
4295
4314
|
_inherits(Vimeo, _Component);
|
|
4296
4315
|
|
|
4297
|
-
var _super = _createSuper(Vimeo);
|
|
4298
|
-
|
|
4299
4316
|
function Vimeo() {
|
|
4317
|
+
var _getPrototypeOf2;
|
|
4318
|
+
|
|
4300
4319
|
var _this;
|
|
4301
4320
|
|
|
4302
4321
|
_classCallCheck(this, Vimeo);
|
|
@@ -4305,7 +4324,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4305
4324
|
args[_key] = arguments[_key];
|
|
4306
4325
|
}
|
|
4307
4326
|
|
|
4308
|
-
_this =
|
|
4327
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4309
4328
|
|
|
4310
4329
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4311
4330
|
|
|
@@ -4462,7 +4481,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4462
4481
|
overflow: 'hidden',
|
|
4463
4482
|
display: display
|
|
4464
4483
|
};
|
|
4465
|
-
return
|
|
4484
|
+
return _react["default"].createElement("div", {
|
|
4466
4485
|
key: this.props.url,
|
|
4467
4486
|
ref: this.ref,
|
|
4468
4487
|
style: style
|
|
@@ -4493,7 +4512,7 @@ exports["default"] = _default;
|
|
|
4493
4512
|
});
|
|
4494
4513
|
|
|
4495
4514
|
unwrapExports(Vimeo_1);
|
|
4496
|
-
Vimeo_1.Vimeo;
|
|
4515
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4497
4516
|
|
|
4498
4517
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4499
4518
|
|
|
@@ -4522,16 +4541,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4522
4541
|
|
|
4523
4542
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4524
4543
|
|
|
4525
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4526
|
-
|
|
4527
4544
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4528
4545
|
|
|
4529
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4530
|
-
|
|
4531
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4532
|
-
|
|
4533
4546
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4534
4547
|
|
|
4548
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4549
|
+
|
|
4535
4550
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4536
4551
|
|
|
4537
4552
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4544,12 +4559,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4544
4559
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4545
4560
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4546
4561
|
|
|
4547
|
-
var Facebook =
|
|
4562
|
+
var Facebook =
|
|
4563
|
+
/*#__PURE__*/
|
|
4564
|
+
function (_Component) {
|
|
4548
4565
|
_inherits(Facebook, _Component);
|
|
4549
4566
|
|
|
4550
|
-
var _super = _createSuper(Facebook);
|
|
4551
|
-
|
|
4552
4567
|
function Facebook() {
|
|
4568
|
+
var _getPrototypeOf2;
|
|
4569
|
+
|
|
4553
4570
|
var _this;
|
|
4554
4571
|
|
|
4555
4572
|
_classCallCheck(this, Facebook);
|
|
@@ -4558,7 +4575,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4558
4575
|
args[_key] = arguments[_key];
|
|
4559
4576
|
}
|
|
4560
4577
|
|
|
4561
|
-
_this =
|
|
4578
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4562
4579
|
|
|
4563
4580
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4564
4581
|
|
|
@@ -4674,7 +4691,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4674
4691
|
width: '100%',
|
|
4675
4692
|
height: '100%'
|
|
4676
4693
|
};
|
|
4677
|
-
return
|
|
4694
|
+
return _react["default"].createElement("div", {
|
|
4678
4695
|
style: style,
|
|
4679
4696
|
id: this.playerID,
|
|
4680
4697
|
className: "fb-video",
|
|
@@ -4705,7 +4722,7 @@ exports["default"] = _default;
|
|
|
4705
4722
|
});
|
|
4706
4723
|
|
|
4707
4724
|
unwrapExports(Facebook_1);
|
|
4708
|
-
Facebook_1.Facebook;
|
|
4725
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4709
4726
|
|
|
4710
4727
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4711
4728
|
|
|
@@ -4734,16 +4751,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4734
4751
|
|
|
4735
4752
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4736
4753
|
|
|
4737
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4738
|
-
|
|
4739
4754
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4740
4755
|
|
|
4741
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4742
|
-
|
|
4743
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4744
|
-
|
|
4745
4756
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4746
4757
|
|
|
4758
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4759
|
+
|
|
4747
4760
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4748
4761
|
|
|
4749
4762
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4754,12 +4767,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4754
4767
|
var SDK_GLOBAL = 'playerjs';
|
|
4755
4768
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4756
4769
|
|
|
4757
|
-
var Streamable =
|
|
4770
|
+
var Streamable =
|
|
4771
|
+
/*#__PURE__*/
|
|
4772
|
+
function (_Component) {
|
|
4758
4773
|
_inherits(Streamable, _Component);
|
|
4759
4774
|
|
|
4760
|
-
var _super = _createSuper(Streamable);
|
|
4761
|
-
|
|
4762
4775
|
function Streamable() {
|
|
4776
|
+
var _getPrototypeOf2;
|
|
4777
|
+
|
|
4763
4778
|
var _this;
|
|
4764
4779
|
|
|
4765
4780
|
_classCallCheck(this, Streamable);
|
|
@@ -4768,7 +4783,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4768
4783
|
args[_key] = arguments[_key];
|
|
4769
4784
|
}
|
|
4770
4785
|
|
|
4771
|
-
_this =
|
|
4786
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4772
4787
|
|
|
4773
4788
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4774
4789
|
|
|
@@ -4888,7 +4903,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4888
4903
|
width: '100%',
|
|
4889
4904
|
height: '100%'
|
|
4890
4905
|
};
|
|
4891
|
-
return
|
|
4906
|
+
return _react["default"].createElement("iframe", {
|
|
4892
4907
|
ref: this.ref,
|
|
4893
4908
|
src: "https://streamable.com/o/".concat(id),
|
|
4894
4909
|
frameBorder: "0",
|
|
@@ -4916,7 +4931,7 @@ exports["default"] = _default;
|
|
|
4916
4931
|
});
|
|
4917
4932
|
|
|
4918
4933
|
unwrapExports(Streamable_1);
|
|
4919
|
-
Streamable_1.Streamable;
|
|
4934
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4920
4935
|
|
|
4921
4936
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4922
4937
|
|
|
@@ -4949,16 +4964,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4949
4964
|
|
|
4950
4965
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4951
4966
|
|
|
4952
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4953
|
-
|
|
4954
4967
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4955
4968
|
|
|
4956
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4957
|
-
|
|
4958
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4959
|
-
|
|
4960
4969
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4961
4970
|
|
|
4971
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4972
|
+
|
|
4962
4973
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4963
4974
|
|
|
4964
4975
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4969,48 +4980,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4969
4980
|
var SDK_GLOBAL = 'Wistia';
|
|
4970
4981
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4971
4982
|
|
|
4972
|
-
var Wistia =
|
|
4983
|
+
var Wistia =
|
|
4984
|
+
/*#__PURE__*/
|
|
4985
|
+
function (_Component) {
|
|
4973
4986
|
_inherits(Wistia, _Component);
|
|
4974
4987
|
|
|
4975
|
-
var _super = _createSuper(Wistia);
|
|
4976
|
-
|
|
4977
4988
|
function Wistia() {
|
|
4989
|
+
var _getPrototypeOf2;
|
|
4990
|
+
|
|
4978
4991
|
var _this;
|
|
4979
4992
|
|
|
4980
4993
|
_classCallCheck(this, Wistia);
|
|
4981
4994
|
|
|
4982
|
-
for (var _len = arguments.length,
|
|
4983
|
-
|
|
4995
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4996
|
+
args[_key] = arguments[_key];
|
|
4984
4997
|
}
|
|
4985
4998
|
|
|
4986
|
-
_this =
|
|
4999
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4987
5000
|
|
|
4988
5001
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4989
5002
|
|
|
4990
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4991
|
-
var _this$props;
|
|
4992
|
-
|
|
4993
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4994
|
-
});
|
|
4995
|
-
|
|
4996
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4997
|
-
var _this$props2;
|
|
4998
|
-
|
|
4999
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5000
|
-
});
|
|
5001
|
-
|
|
5002
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5003
|
-
var _this$props3;
|
|
5004
|
-
|
|
5005
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5006
|
-
});
|
|
5007
|
-
|
|
5008
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5009
|
-
var _this$props4;
|
|
5010
|
-
|
|
5011
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5012
|
-
});
|
|
5013
|
-
|
|
5014
5003
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5015
5004
|
_this.callPlayer('mute');
|
|
5016
5005
|
});
|
|
@@ -5032,13 +5021,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5032
5021
|
value: function load(url) {
|
|
5033
5022
|
var _this2 = this;
|
|
5034
5023
|
|
|
5035
|
-
var _this$
|
|
5036
|
-
playing = _this$
|
|
5037
|
-
muted = _this$
|
|
5038
|
-
controls = _this$
|
|
5039
|
-
_onReady = _this$
|
|
5040
|
-
|
|
5041
|
-
|
|
5024
|
+
var _this$props = this.props,
|
|
5025
|
+
playing = _this$props.playing,
|
|
5026
|
+
muted = _this$props.muted,
|
|
5027
|
+
controls = _this$props.controls,
|
|
5028
|
+
_onReady = _this$props.onReady,
|
|
5029
|
+
onPlay = _this$props.onPlay,
|
|
5030
|
+
onPause = _this$props.onPause,
|
|
5031
|
+
onSeek = _this$props.onSeek,
|
|
5032
|
+
onEnded = _this$props.onEnded,
|
|
5033
|
+
config = _this$props.config,
|
|
5034
|
+
onError = _this$props.onError;
|
|
5042
5035
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5043
5036
|
window._wq = window._wq || [];
|
|
5044
5037
|
|
|
@@ -5055,28 +5048,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5055
5048
|
|
|
5056
5049
|
_this2.unbind();
|
|
5057
5050
|
|
|
5058
|
-
_this2.player.bind('play',
|
|
5051
|
+
_this2.player.bind('play', onPlay);
|
|
5059
5052
|
|
|
5060
|
-
_this2.player.bind('pause',
|
|
5053
|
+
_this2.player.bind('pause', onPause);
|
|
5061
5054
|
|
|
5062
|
-
_this2.player.bind('seek',
|
|
5055
|
+
_this2.player.bind('seek', onSeek);
|
|
5063
5056
|
|
|
5064
|
-
_this2.player.bind('end',
|
|
5057
|
+
_this2.player.bind('end', onEnded);
|
|
5065
5058
|
|
|
5066
5059
|
_onReady();
|
|
5067
5060
|
}
|
|
5068
5061
|
});
|
|
5069
5062
|
}, onError);
|
|
5070
5063
|
}
|
|
5071
|
-
}, {
|
|
5072
|
-
key: "unbind",
|
|
5073
|
-
value: function unbind() {
|
|
5074
|
-
this.player.unbind('play', this.onPlay);
|
|
5075
|
-
this.player.unbind('pause', this.onPause);
|
|
5076
|
-
this.player.unbind('seek', this.onSeek);
|
|
5077
|
-
this.player.unbind('end', this.onEnded);
|
|
5078
|
-
} // Proxy methods to prevent listener leaks
|
|
5079
|
-
|
|
5080
5064
|
}, {
|
|
5081
5065
|
key: "play",
|
|
5082
5066
|
value: function play() {
|
|
@@ -5087,6 +5071,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5087
5071
|
value: function pause() {
|
|
5088
5072
|
this.callPlayer('pause');
|
|
5089
5073
|
}
|
|
5074
|
+
}, {
|
|
5075
|
+
key: "unbind",
|
|
5076
|
+
value: function unbind() {
|
|
5077
|
+
var _this$props2 = this.props,
|
|
5078
|
+
onPlay = _this$props2.onPlay,
|
|
5079
|
+
onPause = _this$props2.onPause,
|
|
5080
|
+
onSeek = _this$props2.onSeek,
|
|
5081
|
+
onEnded = _this$props2.onEnded;
|
|
5082
|
+
this.player.unbind('play', onPlay);
|
|
5083
|
+
this.player.unbind('pause', onPause);
|
|
5084
|
+
this.player.unbind('seek', onSeek);
|
|
5085
|
+
this.player.unbind('end', onEnded);
|
|
5086
|
+
}
|
|
5090
5087
|
}, {
|
|
5091
5088
|
key: "stop",
|
|
5092
5089
|
value: function stop() {
|
|
@@ -5132,7 +5129,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5132
5129
|
width: '100%',
|
|
5133
5130
|
height: '100%'
|
|
5134
5131
|
};
|
|
5135
|
-
return
|
|
5132
|
+
return _react["default"].createElement("div", {
|
|
5136
5133
|
key: id,
|
|
5137
5134
|
className: className,
|
|
5138
5135
|
style: style
|
|
@@ -5159,7 +5156,7 @@ exports["default"] = _default;
|
|
|
5159
5156
|
});
|
|
5160
5157
|
|
|
5161
5158
|
unwrapExports(Wistia_1);
|
|
5162
|
-
Wistia_1.Wistia;
|
|
5159
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5163
5160
|
|
|
5164
5161
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5165
5162
|
|
|
@@ -5192,16 +5189,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5192
5189
|
|
|
5193
5190
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5194
5191
|
|
|
5195
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5196
|
-
|
|
5197
5192
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5198
5193
|
|
|
5199
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5200
|
-
|
|
5201
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5202
|
-
|
|
5203
5194
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5204
5195
|
|
|
5196
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5197
|
+
|
|
5205
5198
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5206
5199
|
|
|
5207
5200
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5214,12 +5207,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5214
5207
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5215
5208
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5216
5209
|
|
|
5217
|
-
var Twitch =
|
|
5210
|
+
var Twitch =
|
|
5211
|
+
/*#__PURE__*/
|
|
5212
|
+
function (_Component) {
|
|
5218
5213
|
_inherits(Twitch, _Component);
|
|
5219
5214
|
|
|
5220
|
-
var _super = _createSuper(Twitch);
|
|
5221
|
-
|
|
5222
5215
|
function Twitch() {
|
|
5216
|
+
var _getPrototypeOf2;
|
|
5217
|
+
|
|
5223
5218
|
var _this;
|
|
5224
5219
|
|
|
5225
5220
|
_classCallCheck(this, Twitch);
|
|
@@ -5228,7 +5223,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5228
5223
|
args[_key] = arguments[_key];
|
|
5229
5224
|
}
|
|
5230
5225
|
|
|
5231
|
-
_this =
|
|
5226
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5232
5227
|
|
|
5233
5228
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5234
5229
|
|
|
@@ -5349,7 +5344,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5349
5344
|
width: '100%',
|
|
5350
5345
|
height: '100%'
|
|
5351
5346
|
};
|
|
5352
|
-
return
|
|
5347
|
+
return _react["default"].createElement("div", {
|
|
5353
5348
|
style: style,
|
|
5354
5349
|
id: this.playerID
|
|
5355
5350
|
});
|
|
@@ -5375,7 +5370,7 @@ exports["default"] = _default;
|
|
|
5375
5370
|
});
|
|
5376
5371
|
|
|
5377
5372
|
unwrapExports(Twitch_1);
|
|
5378
|
-
Twitch_1.Twitch;
|
|
5373
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5379
5374
|
|
|
5380
5375
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5381
5376
|
|
|
@@ -5402,15 +5397,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5402
5397
|
|
|
5403
5398
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5404
5399
|
|
|
5405
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5406
|
-
|
|
5407
|
-
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."); }
|
|
5408
|
-
|
|
5409
|
-
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); }
|
|
5400
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5410
5401
|
|
|
5411
|
-
function
|
|
5402
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5412
5403
|
|
|
5413
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5404
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5414
5405
|
|
|
5415
5406
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5416
5407
|
|
|
@@ -5420,16 +5411,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5420
5411
|
|
|
5421
5412
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5422
5413
|
|
|
5423
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5424
|
-
|
|
5425
5414
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5426
5415
|
|
|
5427
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5428
|
-
|
|
5429
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5430
|
-
|
|
5431
5416
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5432
5417
|
|
|
5418
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5419
|
+
|
|
5433
5420
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5434
5421
|
|
|
5435
5422
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5441,12 +5428,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5441
5428
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5442
5429
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5443
5430
|
|
|
5444
|
-
var DailyMotion =
|
|
5431
|
+
var DailyMotion =
|
|
5432
|
+
/*#__PURE__*/
|
|
5433
|
+
function (_Component) {
|
|
5445
5434
|
_inherits(DailyMotion, _Component);
|
|
5446
5435
|
|
|
5447
|
-
var _super = _createSuper(DailyMotion);
|
|
5448
|
-
|
|
5449
5436
|
function DailyMotion() {
|
|
5437
|
+
var _getPrototypeOf2;
|
|
5438
|
+
|
|
5450
5439
|
var _this;
|
|
5451
5440
|
|
|
5452
5441
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5455,7 +5444,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5455
5444
|
args[_key] = arguments[_key];
|
|
5456
5445
|
}
|
|
5457
5446
|
|
|
5458
|
-
_this =
|
|
5447
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5459
5448
|
|
|
5460
5449
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5461
5450
|
|
|
@@ -5584,9 +5573,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5584
5573
|
height: '100%',
|
|
5585
5574
|
display: display
|
|
5586
5575
|
};
|
|
5587
|
-
return
|
|
5576
|
+
return _react["default"].createElement("div", {
|
|
5588
5577
|
style: style
|
|
5589
|
-
},
|
|
5578
|
+
}, _react["default"].createElement("div", {
|
|
5590
5579
|
ref: this.ref
|
|
5591
5580
|
}));
|
|
5592
5581
|
}
|
|
@@ -5611,7 +5600,7 @@ exports["default"] = _default;
|
|
|
5611
5600
|
});
|
|
5612
5601
|
|
|
5613
5602
|
unwrapExports(DailyMotion_1);
|
|
5614
|
-
DailyMotion_1.DailyMotion;
|
|
5603
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5615
5604
|
|
|
5616
5605
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5617
5606
|
|
|
@@ -5644,16 +5633,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5644
5633
|
|
|
5645
5634
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5646
5635
|
|
|
5647
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5648
|
-
|
|
5649
5636
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5650
5637
|
|
|
5651
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5652
|
-
|
|
5653
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5654
|
-
|
|
5655
5638
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5656
5639
|
|
|
5640
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5641
|
+
|
|
5657
5642
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5658
5643
|
|
|
5659
5644
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5664,12 +5649,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5664
5649
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5665
5650
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5666
5651
|
|
|
5667
|
-
var Mixcloud =
|
|
5652
|
+
var Mixcloud =
|
|
5653
|
+
/*#__PURE__*/
|
|
5654
|
+
function (_Component) {
|
|
5668
5655
|
_inherits(Mixcloud, _Component);
|
|
5669
5656
|
|
|
5670
|
-
var _super = _createSuper(Mixcloud);
|
|
5671
|
-
|
|
5672
5657
|
function Mixcloud() {
|
|
5658
|
+
var _getPrototypeOf2;
|
|
5659
|
+
|
|
5673
5660
|
var _this;
|
|
5674
5661
|
|
|
5675
5662
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5678,7 +5665,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5678
5665
|
args[_key] = arguments[_key];
|
|
5679
5666
|
}
|
|
5680
5667
|
|
|
5681
|
-
_this =
|
|
5668
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5682
5669
|
|
|
5683
5670
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5684
5671
|
|
|
@@ -5781,7 +5768,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5781
5768
|
})); // We have to give the iframe a key here to prevent a
|
|
5782
5769
|
// weird dialog appearing when loading a new track
|
|
5783
5770
|
|
|
5784
|
-
return
|
|
5771
|
+
return _react["default"].createElement("iframe", {
|
|
5785
5772
|
key: id,
|
|
5786
5773
|
ref: this.ref,
|
|
5787
5774
|
style: style,
|
|
@@ -5810,7 +5797,7 @@ exports["default"] = _default;
|
|
|
5810
5797
|
});
|
|
5811
5798
|
|
|
5812
5799
|
unwrapExports(Mixcloud_1);
|
|
5813
|
-
Mixcloud_1.Mixcloud;
|
|
5800
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5814
5801
|
|
|
5815
5802
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5816
5803
|
|
|
@@ -5841,33 +5828,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5841
5828
|
|
|
5842
5829
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5843
5830
|
|
|
5844
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5845
|
-
|
|
5846
5831
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5847
5832
|
|
|
5848
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5849
|
-
|
|
5850
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5851
|
-
|
|
5852
5833
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5853
5834
|
|
|
5835
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5836
|
+
|
|
5854
5837
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5855
5838
|
|
|
5856
5839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5857
5840
|
|
|
5858
5841
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5859
5842
|
|
|
5860
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5861
|
-
|
|
5862
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5863
|
-
|
|
5864
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5865
|
-
|
|
5866
5843
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5867
5844
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5868
5845
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5869
5846
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5870
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5847
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5871
5848
|
var HLS_GLOBAL = 'Hls';
|
|
5872
5849
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5873
5850
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5876,11 +5853,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5876
5853
|
|
|
5877
5854
|
function canPlay(url) {
|
|
5878
5855
|
if (url instanceof Array) {
|
|
5879
|
-
var
|
|
5880
|
-
|
|
5856
|
+
var _iteratorNormalCompletion = true;
|
|
5857
|
+
var _didIteratorError = false;
|
|
5858
|
+
var _iteratorError = undefined;
|
|
5881
5859
|
|
|
5882
5860
|
try {
|
|
5883
|
-
for (_iterator.
|
|
5861
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5884
5862
|
var item = _step.value;
|
|
5885
5863
|
|
|
5886
5864
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5892,9 +5870,18 @@ function canPlay(url) {
|
|
|
5892
5870
|
}
|
|
5893
5871
|
}
|
|
5894
5872
|
} catch (err) {
|
|
5895
|
-
|
|
5873
|
+
_didIteratorError = true;
|
|
5874
|
+
_iteratorError = err;
|
|
5896
5875
|
} finally {
|
|
5897
|
-
|
|
5876
|
+
try {
|
|
5877
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5878
|
+
_iterator["return"]();
|
|
5879
|
+
}
|
|
5880
|
+
} finally {
|
|
5881
|
+
if (_didIteratorError) {
|
|
5882
|
+
throw _iteratorError;
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5898
5885
|
}
|
|
5899
5886
|
|
|
5900
5887
|
return false;
|
|
@@ -5918,12 +5905,14 @@ function canEnablePIP(url) {
|
|
|
5918
5905
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5919
5906
|
}
|
|
5920
5907
|
|
|
5921
|
-
var FilePlayer =
|
|
5908
|
+
var FilePlayer =
|
|
5909
|
+
/*#__PURE__*/
|
|
5910
|
+
function (_Component) {
|
|
5922
5911
|
_inherits(FilePlayer, _Component);
|
|
5923
5912
|
|
|
5924
|
-
var _super = _createSuper(FilePlayer);
|
|
5925
|
-
|
|
5926
5913
|
function FilePlayer() {
|
|
5914
|
+
var _getPrototypeOf2;
|
|
5915
|
+
|
|
5927
5916
|
var _this;
|
|
5928
5917
|
|
|
5929
5918
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5932,7 +5921,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5932
5921
|
_args[_key] = arguments[_key];
|
|
5933
5922
|
}
|
|
5934
5923
|
|
|
5935
|
-
_this =
|
|
5924
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5936
5925
|
|
|
5937
5926
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5938
5927
|
var _this$props;
|
|
@@ -6019,19 +6008,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6019
6008
|
|
|
6020
6009
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6021
6010
|
if (typeof source === 'string') {
|
|
6022
|
-
return
|
|
6011
|
+
return _react["default"].createElement("source", {
|
|
6023
6012
|
key: index,
|
|
6024
6013
|
src: source
|
|
6025
6014
|
});
|
|
6026
6015
|
}
|
|
6027
6016
|
|
|
6028
|
-
return
|
|
6017
|
+
return _react["default"].createElement("source", _extends({
|
|
6029
6018
|
key: index
|
|
6030
6019
|
}, source));
|
|
6031
6020
|
});
|
|
6032
6021
|
|
|
6033
6022
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6034
|
-
return
|
|
6023
|
+
return _react["default"].createElement("track", _extends({
|
|
6035
6024
|
key: index
|
|
6036
6025
|
}, track));
|
|
6037
6026
|
});
|
|
@@ -6069,10 +6058,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6069
6058
|
key: "componentWillUnmount",
|
|
6070
6059
|
value: function componentWillUnmount() {
|
|
6071
6060
|
this.removeListeners(this.player);
|
|
6072
|
-
|
|
6073
|
-
if (this.hls) {
|
|
6074
|
-
this.hls.destroy();
|
|
6075
|
-
}
|
|
6076
6061
|
}
|
|
6077
6062
|
}, {
|
|
6078
6063
|
key: "addListeners",
|
|
@@ -6203,6 +6188,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6203
6188
|
value: function stop() {
|
|
6204
6189
|
this.player.removeAttribute('src');
|
|
6205
6190
|
|
|
6191
|
+
if (this.hls) {
|
|
6192
|
+
this.hls.destroy();
|
|
6193
|
+
}
|
|
6194
|
+
|
|
6206
6195
|
if (this.dash) {
|
|
6207
6196
|
this.dash.reset();
|
|
6208
6197
|
}
|
|
@@ -6314,7 +6303,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6314
6303
|
width: width === 'auto' ? width : '100%',
|
|
6315
6304
|
height: height === 'auto' ? height : '100%'
|
|
6316
6305
|
};
|
|
6317
|
-
return
|
|
6306
|
+
return _react["default"].createElement(Element, _extends({
|
|
6318
6307
|
ref: this.ref,
|
|
6319
6308
|
src: this.getSource(url),
|
|
6320
6309
|
style: style,
|
|
@@ -6344,7 +6333,7 @@ exports["default"] = _default;
|
|
|
6344
6333
|
});
|
|
6345
6334
|
|
|
6346
6335
|
unwrapExports(FilePlayer_1);
|
|
6347
|
-
FilePlayer_1.FilePlayer;
|
|
6336
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6348
6337
|
|
|
6349
6338
|
var players = createCommonjsModule(function (module, exports) {
|
|
6350
6339
|
|
|
@@ -6404,16 +6393,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6404
6393
|
|
|
6405
6394
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6406
6395
|
|
|
6407
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6408
|
-
|
|
6409
6396
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6410
6397
|
|
|
6411
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6412
|
-
|
|
6413
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6414
|
-
|
|
6415
6398
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6416
6399
|
|
|
6400
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6401
|
+
|
|
6417
6402
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6418
6403
|
|
|
6419
6404
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6422,12 +6407,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6422
6407
|
|
|
6423
6408
|
var ICON_SIZE = '64px';
|
|
6424
6409
|
|
|
6425
|
-
var Preview =
|
|
6410
|
+
var Preview =
|
|
6411
|
+
/*#__PURE__*/
|
|
6412
|
+
function (_Component) {
|
|
6426
6413
|
_inherits(Preview, _Component);
|
|
6427
6414
|
|
|
6428
|
-
var _super = _createSuper(Preview);
|
|
6429
|
-
|
|
6430
6415
|
function Preview() {
|
|
6416
|
+
var _getPrototypeOf2;
|
|
6417
|
+
|
|
6431
6418
|
var _this;
|
|
6432
6419
|
|
|
6433
6420
|
_classCallCheck(this, Preview);
|
|
@@ -6436,7 +6423,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6436
6423
|
args[_key] = arguments[_key];
|
|
6437
6424
|
}
|
|
6438
6425
|
|
|
6439
|
-
_this =
|
|
6426
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6440
6427
|
|
|
6441
6428
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6442
6429
|
|
|
@@ -6534,15 +6521,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6534
6521
|
}
|
|
6535
6522
|
};
|
|
6536
6523
|
|
|
6537
|
-
var defaultPlayIcon =
|
|
6524
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6538
6525
|
style: styles.shadow,
|
|
6539
6526
|
className: "react-player__shadow"
|
|
6540
|
-
},
|
|
6527
|
+
}, _react["default"].createElement("div", {
|
|
6541
6528
|
style: styles.playIcon,
|
|
6542
6529
|
className: "react-player__play-icon"
|
|
6543
6530
|
}));
|
|
6544
6531
|
|
|
6545
|
-
return
|
|
6532
|
+
return _react["default"].createElement("div", {
|
|
6546
6533
|
style: styles.preview,
|
|
6547
6534
|
className: "react-player__preview",
|
|
6548
6535
|
onClick: onClick
|
|
@@ -6579,12 +6566,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6579
6566
|
|
|
6580
6567
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6581
6568
|
|
|
6582
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6583
|
-
|
|
6584
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6585
|
-
|
|
6586
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6587
|
-
|
|
6588
6569
|
var PRELOAD_PLAYERS = [{
|
|
6589
6570
|
Player: YouTube_1.YouTube,
|
|
6590
6571
|
configKey: 'youtube',
|
|
@@ -6605,16 +6586,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6605
6586
|
|
|
6606
6587
|
function renderPreloadPlayers(url, controls, config) {
|
|
6607
6588
|
var players = [];
|
|
6608
|
-
|
|
6609
|
-
var
|
|
6610
|
-
|
|
6589
|
+
var _iteratorNormalCompletion = true;
|
|
6590
|
+
var _didIteratorError = false;
|
|
6591
|
+
var _iteratorError = undefined;
|
|
6611
6592
|
|
|
6612
6593
|
try {
|
|
6613
|
-
for (_iterator.
|
|
6594
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6614
6595
|
var player = _step.value;
|
|
6615
6596
|
|
|
6616
6597
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6617
|
-
players.push(
|
|
6598
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6618
6599
|
key: player.Player.displayName,
|
|
6619
6600
|
activePlayer: player.Player,
|
|
6620
6601
|
url: player.url,
|
|
@@ -6626,9 +6607,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6626
6607
|
}
|
|
6627
6608
|
}
|
|
6628
6609
|
} catch (err) {
|
|
6629
|
-
|
|
6610
|
+
_didIteratorError = true;
|
|
6611
|
+
_iteratorError = err;
|
|
6630
6612
|
} finally {
|
|
6631
|
-
|
|
6613
|
+
try {
|
|
6614
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6615
|
+
_iterator["return"]();
|
|
6616
|
+
}
|
|
6617
|
+
} finally {
|
|
6618
|
+
if (_didIteratorError) {
|
|
6619
|
+
throw _iteratorError;
|
|
6620
|
+
}
|
|
6621
|
+
}
|
|
6632
6622
|
}
|
|
6633
6623
|
|
|
6634
6624
|
return players;
|
|
@@ -6752,17 +6742,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6752
6742
|
|
|
6753
6743
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6754
6744
|
|
|
6755
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6756
|
-
|
|
6757
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6745
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6758
6746
|
|
|
6759
|
-
function
|
|
6747
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6760
6748
|
|
|
6761
|
-
function _iterableToArray(iter) { if (
|
|
6749
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6762
6750
|
|
|
6763
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6764
|
-
|
|
6765
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6751
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6766
6752
|
|
|
6767
6753
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6768
6754
|
|
|
@@ -6770,16 +6756,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6770
6756
|
|
|
6771
6757
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6772
6758
|
|
|
6773
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6774
|
-
|
|
6775
6759
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6776
6760
|
|
|
6777
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6778
|
-
|
|
6779
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6780
|
-
|
|
6781
6761
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6782
6762
|
|
|
6763
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6764
|
+
|
|
6783
6765
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6784
6766
|
|
|
6785
6767
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6789,12 +6771,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6789
6771
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6790
6772
|
var customPlayers = [];
|
|
6791
6773
|
|
|
6792
|
-
var ReactPlayer =
|
|
6774
|
+
var ReactPlayer =
|
|
6775
|
+
/*#__PURE__*/
|
|
6776
|
+
function (_Component) {
|
|
6793
6777
|
_inherits(ReactPlayer, _Component);
|
|
6794
6778
|
|
|
6795
|
-
var _super = _createSuper(ReactPlayer);
|
|
6796
|
-
|
|
6797
6779
|
function ReactPlayer() {
|
|
6780
|
+
var _getPrototypeOf2;
|
|
6781
|
+
|
|
6798
6782
|
var _this;
|
|
6799
6783
|
|
|
6800
6784
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6803,7 +6787,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6803
6787
|
args[_key] = arguments[_key];
|
|
6804
6788
|
}
|
|
6805
6789
|
|
|
6806
|
-
_this =
|
|
6790
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6807
6791
|
|
|
6808
6792
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6809
6793
|
|
|
@@ -6914,7 +6898,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6914
6898
|
key: "renderActivePlayer",
|
|
6915
6899
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6916
6900
|
if (!url) return null;
|
|
6917
|
-
return
|
|
6901
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6918
6902
|
key: activePlayer.displayName,
|
|
6919
6903
|
ref: this.activePlayerRef,
|
|
6920
6904
|
config: this.config,
|
|
@@ -6951,14 +6935,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6951
6935
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6952
6936
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6953
6937
|
|
|
6954
|
-
var preview =
|
|
6938
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6955
6939
|
url: url,
|
|
6956
6940
|
light: light,
|
|
6957
6941
|
playIcon: playIcon,
|
|
6958
6942
|
onClick: this.handleClickPreview
|
|
6959
6943
|
});
|
|
6960
6944
|
|
|
6961
|
-
return
|
|
6945
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6962
6946
|
ref: this.wrapperRef,
|
|
6963
6947
|
style: _objectSpread({}, style, {
|
|
6964
6948
|
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
|
);
|
|
@@ -8108,11 +8092,16 @@ var Leads = function Leads(_ref) {
|
|
|
8108
8092
|
return React__default.createElement(
|
|
8109
8093
|
'div',
|
|
8110
8094
|
{ className: 'd-block text-center mb-3' },
|
|
8095
|
+
React__default.createElement(
|
|
8096
|
+
'style',
|
|
8097
|
+
{ jsx: 'true' },
|
|
8098
|
+
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8099
|
+
),
|
|
8111
8100
|
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8112
8101
|
);
|
|
8113
8102
|
};
|
|
8114
8103
|
|
|
8115
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8104
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8116
8105
|
var slides = _ref.node.slides,
|
|
8117
8106
|
client = _ref.client,
|
|
8118
8107
|
pageview = _ref.pageview,
|
|
@@ -8263,7 +8252,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8263
8252
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8264
8253
|
React__default.createElement(
|
|
8265
8254
|
'a',
|
|
8266
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8255
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8267
8256
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8268
8257
|
React__default.createElement(
|
|
8269
8258
|
'div',
|
|
@@ -8558,7 +8547,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8558
8547
|
|
|
8559
8548
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8560
8549
|
if (biography) {
|
|
8561
|
-
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8550
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8562
8551
|
}
|
|
8563
8552
|
};
|
|
8564
8553
|
|
|
@@ -8644,7 +8633,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8633
|
//console.log('useLayoutEffect')
|
|
8645
8634
|
if (!firstLoad) {
|
|
8646
8635
|
setUpArrowClicked(false);
|
|
8647
|
-
if (
|
|
8636
|
+
if (main_36) {
|
|
8648
8637
|
grabLoadedAds();
|
|
8649
8638
|
} else {
|
|
8650
8639
|
scrollToArticle();
|
|
@@ -8668,7 +8657,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8668
8657
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8669
8658
|
if (pageview) pageview(path);
|
|
8670
8659
|
|
|
8671
|
-
if (!
|
|
8660
|
+
if (!main_36) {
|
|
8672
8661
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8673
8662
|
if (window.googletag && googletag.pubadsReady) {
|
|
8674
8663
|
lib_3.refresh();
|
|
@@ -8676,7 +8665,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8676
8665
|
});
|
|
8677
8666
|
}
|
|
8678
8667
|
//Refresh leaderboard ad on mobile
|
|
8679
|
-
if (
|
|
8668
|
+
if (main_36) {
|
|
8680
8669
|
var leaderboardSlotId = '';
|
|
8681
8670
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8682
8671
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8745,7 +8734,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8745
8734
|
React__default.createElement(
|
|
8746
8735
|
'div',
|
|
8747
8736
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8748
|
-
|
|
8737
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8749
8738
|
if (index === 0) {
|
|
8750
8739
|
return React__default.createElement(
|
|
8751
8740
|
'div',
|
|
@@ -8836,7 +8825,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8836
8825
|
React__default.createElement(
|
|
8837
8826
|
'div',
|
|
8838
8827
|
{ className: 'mt-2 mb-2' },
|
|
8839
|
-
React__default.createElement(BlockContent, _extends({
|
|
8828
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8840
8829
|
serializers: getSerializers,
|
|
8841
8830
|
videoAccountIDs: accountIDs,
|
|
8842
8831
|
blocks: article.text,
|
|
@@ -8867,7 +8856,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8867
8856
|
React__default.createElement(
|
|
8868
8857
|
'div',
|
|
8869
8858
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8870
|
-
|
|
8859
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8871
8860
|
if (innerIndex === 0) {
|
|
8872
8861
|
return React__default.createElement(
|
|
8873
8862
|
'div',
|
|
@@ -8940,7 +8929,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8940
8929
|
}
|
|
8941
8930
|
};
|
|
8942
8931
|
|
|
8943
|
-
var FigureImage
|
|
8932
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8944
8933
|
var node = _ref2.node,
|
|
8945
8934
|
client = _ref2.client,
|
|
8946
8935
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8954,7 +8943,7 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
|
8954
8943
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8955
8944
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8956
8945
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8957
|
-
React__default.createElement('img', _extends({
|
|
8946
|
+
React__default.createElement('img', _extends$1({
|
|
8958
8947
|
style: figureImageStyle,
|
|
8959
8948
|
className: 'figure-image',
|
|
8960
8949
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9006,23 +8995,23 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9006
8995
|
var renderTooltip = function renderTooltip(props) {
|
|
9007
8996
|
if (infoBox[0].title) {
|
|
9008
8997
|
return React__default.createElement(
|
|
9009
|
-
Popover,
|
|
8998
|
+
Popover$1,
|
|
9010
8999
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9011
9000
|
React__default.createElement(
|
|
9012
|
-
Popover.Title,
|
|
9001
|
+
Popover$1.Title,
|
|
9013
9002
|
{ as: 'h3' },
|
|
9014
9003
|
infoBox[0].title
|
|
9015
9004
|
),
|
|
9016
9005
|
React__default.createElement(
|
|
9017
|
-
Popover.Content,
|
|
9006
|
+
Popover$1.Content,
|
|
9018
9007
|
null,
|
|
9019
9008
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9020
9009
|
)
|
|
9021
9010
|
);
|
|
9022
9011
|
} else {
|
|
9023
9012
|
return React__default.createElement(
|
|
9024
|
-
Tooltip,
|
|
9025
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9013
|
+
Tooltip$1,
|
|
9014
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9026
9015
|
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9027
9016
|
);
|
|
9028
9017
|
}
|
|
@@ -9036,32 +9025,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9036
9025
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9037
9026
|
|
|
9038
9027
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9039
|
-
var triggerAction =
|
|
9040
|
-
var placementLocation =
|
|
9028
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9029
|
+
var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9041
9030
|
return React__default.createElement(
|
|
9042
9031
|
'picture',
|
|
9043
9032
|
null,
|
|
9044
9033
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9045
9034
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9046
9035
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9047
|
-
|
|
9036
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9048
9037
|
style: figureImageStyle,
|
|
9049
9038
|
className: 'figure-image',
|
|
9050
9039
|
src: urlFor({ source: node, client: client }),
|
|
9051
9040
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9052
|
-
}, !link && !
|
|
9041
|
+
}, !link && !main_35 && {
|
|
9053
9042
|
onClick: function onClick() {
|
|
9054
9043
|
return handleClickFigure(node, client);
|
|
9055
9044
|
}
|
|
9056
9045
|
})) : React__default.createElement(
|
|
9057
9046
|
OverlayTrigger,
|
|
9058
9047
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9059
|
-
React__default.createElement('img', _extends({
|
|
9048
|
+
React__default.createElement('img', _extends$1({
|
|
9060
9049
|
style: figureImageStyle,
|
|
9061
9050
|
className: 'figure-image',
|
|
9062
9051
|
src: urlFor({ source: node, client: client }),
|
|
9063
9052
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9064
|
-
}, !link && !
|
|
9053
|
+
}, !link && !main_35 && {
|
|
9065
9054
|
onClick: function onClick() {
|
|
9066
9055
|
return handleClickFigure(node, client);
|
|
9067
9056
|
}
|
|
@@ -9137,7 +9126,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9137
9126
|
React__default.Fragment,
|
|
9138
9127
|
null,
|
|
9139
9128
|
infoBox.length >= 1 ? React__default.createElement(
|
|
9140
|
-
Figure$
|
|
9129
|
+
Figure$1$1,
|
|
9141
9130
|
{ className: '' + class_name, style: figureStyle },
|
|
9142
9131
|
link ? React__default.createElement(
|
|
9143
9132
|
'a',
|
|
@@ -9159,17 +9148,17 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9159
9148
|
}
|
|
9160
9149
|
})
|
|
9161
9150
|
) : React__default.createElement(
|
|
9162
|
-
Figure$
|
|
9151
|
+
Figure$1$1,
|
|
9163
9152
|
{ className: '' + class_name, style: figureStyle },
|
|
9164
9153
|
link ? React__default.createElement(
|
|
9165
9154
|
'a',
|
|
9166
9155
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9167
|
-
React__default.createElement(FigureImage
|
|
9156
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9168
9157
|
React__default.createElement(FigureCaption, null)
|
|
9169
9158
|
) : React__default.createElement(
|
|
9170
9159
|
React__default.Fragment,
|
|
9171
9160
|
null,
|
|
9172
|
-
React__default.createElement(FigureImage
|
|
9161
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9173
9162
|
React__default.createElement(FigureCaption, null)
|
|
9174
9163
|
),
|
|
9175
9164
|
React__default.createElement(LightBox, {
|
|
@@ -9206,7 +9195,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9206
9195
|
}, [ref]);
|
|
9207
9196
|
}
|
|
9208
9197
|
|
|
9209
|
-
var FigureImage = React__default.memo(function (_ref) {
|
|
9198
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9210
9199
|
var imagesCount = _ref.imagesCount,
|
|
9211
9200
|
image = _ref.image,
|
|
9212
9201
|
client = _ref.client,
|
|
@@ -9220,7 +9209,7 @@ var FigureImage = React__default.memo(function (_ref) {
|
|
|
9220
9209
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9221
9210
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9222
9211
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9223
|
-
React__default.createElement('img', _extends({
|
|
9212
|
+
React__default.createElement('img', _extends$1({
|
|
9224
9213
|
'images-count': imagesCount,
|
|
9225
9214
|
className: 'multi-figure-image',
|
|
9226
9215
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9280,32 +9269,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9280
9269
|
link = _ref3.link,
|
|
9281
9270
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9282
9271
|
|
|
9283
|
-
var triggerAction =
|
|
9284
|
-
var placementLocation =
|
|
9272
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9273
|
+
var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9285
9274
|
return React__default.createElement(
|
|
9286
9275
|
'picture',
|
|
9287
9276
|
null,
|
|
9288
9277
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9289
9278
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9290
9279
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9291
|
-
|
|
9280
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9292
9281
|
'images-count': imagesCount,
|
|
9293
9282
|
className: 'multi-figure-image',
|
|
9294
9283
|
src: urlFor({ source: image, client: client }),
|
|
9295
9284
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9296
|
-
}, !link && !
|
|
9285
|
+
}, !link && !main_35 && {
|
|
9297
9286
|
onClick: function onClick() {
|
|
9298
9287
|
return handleClickFigure(image, client);
|
|
9299
9288
|
}
|
|
9300
9289
|
})) : React__default.createElement(
|
|
9301
9290
|
OverlayTrigger,
|
|
9302
9291
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9303
|
-
React__default.createElement('img', _extends({
|
|
9292
|
+
React__default.createElement('img', _extends$1({
|
|
9304
9293
|
'images-count': imagesCount,
|
|
9305
9294
|
className: 'multi-figure-image',
|
|
9306
9295
|
src: urlFor({ source: image, client: client }),
|
|
9307
9296
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9308
|
-
}, !link && !
|
|
9297
|
+
}, !link && !main_35 && {
|
|
9309
9298
|
onClick: function onClick() {
|
|
9310
9299
|
return handleClickFigure(image, client);
|
|
9311
9300
|
}
|
|
@@ -9317,23 +9306,23 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9317
9306
|
var renderTooltip = function renderTooltip(image) {
|
|
9318
9307
|
if (image.infoBox[0].title) {
|
|
9319
9308
|
return React__default.createElement(
|
|
9320
|
-
Popover,
|
|
9309
|
+
Popover$1,
|
|
9321
9310
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9322
9311
|
React__default.createElement(
|
|
9323
|
-
Popover.Title,
|
|
9312
|
+
Popover$1.Title,
|
|
9324
9313
|
{ as: 'h3' },
|
|
9325
9314
|
image.infoBox[0].title
|
|
9326
9315
|
),
|
|
9327
9316
|
React__default.createElement(
|
|
9328
|
-
Popover.Content,
|
|
9317
|
+
Popover$1.Content,
|
|
9329
9318
|
null,
|
|
9330
9319
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9331
9320
|
)
|
|
9332
9321
|
);
|
|
9333
9322
|
} else {
|
|
9334
9323
|
return React__default.createElement(
|
|
9335
|
-
Tooltip,
|
|
9336
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9324
|
+
Tooltip$1,
|
|
9325
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9337
9326
|
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9338
9327
|
);
|
|
9339
9328
|
}
|
|
@@ -9353,7 +9342,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9353
9342
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9354
9343
|
image.link ? React__default.createElement(
|
|
9355
9344
|
'a',
|
|
9356
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9345
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9357
9346
|
React__default.createElement(
|
|
9358
9347
|
'div',
|
|
9359
9348
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9381,14 +9370,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9381
9370
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9382
9371
|
image.link ? React__default.createElement(
|
|
9383
9372
|
'a',
|
|
9384
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9373
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9385
9374
|
React__default.createElement(
|
|
9386
9375
|
'div',
|
|
9387
9376
|
{ className: 'multi-figure-image-container' },
|
|
9388
9377
|
React__default.createElement(
|
|
9389
9378
|
LazyLoad,
|
|
9390
9379
|
{ once: true },
|
|
9391
|
-
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9380
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9392
9381
|
),
|
|
9393
9382
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9394
9383
|
)
|
|
@@ -9398,7 +9387,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9398
9387
|
React__default.createElement(
|
|
9399
9388
|
LazyLoad,
|
|
9400
9389
|
{ once: true },
|
|
9401
|
-
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9390
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9402
9391
|
),
|
|
9403
9392
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9404
9393
|
)
|
|
@@ -9510,7 +9499,7 @@ exports.__esModule = true;
|
|
|
9510
9499
|
|
|
9511
9500
|
|
|
9512
9501
|
|
|
9513
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9502
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9514
9503
|
|
|
9515
9504
|
|
|
9516
9505
|
|
|
@@ -9679,9 +9668,9 @@ var ScriptTag = function (_Component) {
|
|
|
9679
9668
|
|
|
9680
9669
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9681
9670
|
// eslint-disable-next-line no-unused-vars
|
|
9682
|
-
var _props3 = this.props
|
|
9683
|
-
_props3.isHydrating
|
|
9684
|
-
|
|
9671
|
+
var _props3 = this.props,
|
|
9672
|
+
isHydrating = _props3.isHydrating,
|
|
9673
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9685
9674
|
|
|
9686
9675
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9687
9676
|
return _this2.domRef = tag;
|
|
@@ -9823,7 +9812,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9823
9812
|
return React__default.createElement(
|
|
9824
9813
|
'div',
|
|
9825
9814
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9826
|
-
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9815
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9827
9816
|
);
|
|
9828
9817
|
})
|
|
9829
9818
|
);
|
|
@@ -9951,7 +9940,7 @@ var getSerializers = function getSerializers() {
|
|
|
9951
9940
|
var node = _ref6.node;
|
|
9952
9941
|
var slides = node.slides;
|
|
9953
9942
|
|
|
9954
|
-
return React__default.createElement(Slideshow
|
|
9943
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9955
9944
|
},
|
|
9956
9945
|
sidebar: function sidebar(_ref7) {
|
|
9957
9946
|
var node = _ref7.node;
|
|
@@ -9989,12 +9978,12 @@ var getSerializers = function getSerializers() {
|
|
|
9989
9978
|
poll: function poll(_ref13) {
|
|
9990
9979
|
var node = _ref13.node;
|
|
9991
9980
|
|
|
9992
|
-
return React__default.createElement(Poll
|
|
9981
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9993
9982
|
},
|
|
9994
9983
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9995
9984
|
var node = _ref14.node;
|
|
9996
9985
|
|
|
9997
|
-
return React__default.createElement(Poll, {
|
|
9986
|
+
return React__default.createElement(Poll$1, {
|
|
9998
9987
|
node: node,
|
|
9999
9988
|
client: client,
|
|
10000
9989
|
pageview: pageview,
|
|
@@ -10020,7 +10009,7 @@ var getSerializers = function getSerializers() {
|
|
|
10020
10009
|
slideshows: function slideshows(_ref17) {
|
|
10021
10010
|
var node = _ref17.node;
|
|
10022
10011
|
|
|
10023
|
-
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10012
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10024
10013
|
},
|
|
10025
10014
|
nativeAd: function nativeAd(_ref18) {
|
|
10026
10015
|
var node = _ref18.node;
|
|
@@ -10095,7 +10084,7 @@ var getSerializers = function getSerializers() {
|
|
|
10095
10084
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10096
10085
|
return href ? React__default.createElement(
|
|
10097
10086
|
'a',
|
|
10098
|
-
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10087
|
+
_extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10099
10088
|
children
|
|
10100
10089
|
) : children;
|
|
10101
10090
|
},
|