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