@mjhls/mjh-framework 1.0.811-beta.0 → 1.0.811
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-7c4b33b3.js → ADInfeed-d9976673.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-563e0168.js → ADlgInfeed-0610e1bb.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 -14122
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +57 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -61
- package/dist/cjs/Auth.js +686 -462
- 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 +24 -23
- 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 +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +182 -179
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +136 -131
- 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 +70 -70
- package/dist/cjs/HorizontalHero.js +27 -26
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +76 -71
- package/dist/cjs/IssueLanding.js +43 -43
- package/dist/cjs/LeftNav.js +40 -39
- package/dist/cjs/MasterDeck.js +72 -72
- package/dist/cjs/MediaSeriesLanding.js +1182 -1091
- 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/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +109 -109
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +42 -42
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +112 -108
- package/dist/cjs/QueueDeckExpanded.js +294 -295
- package/dist/cjs/RecentNews.js +25 -24
- package/dist/cjs/RelatedContent.js +25 -24
- 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-4abb21b4.js → SeriesSlider-2db54929.js} +38 -37
- 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-97dd19a5.js → SocialSearchComponent-948138c7.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +63 -58
- package/dist/cjs/TaxonomyDescription.js +54 -54
- package/dist/cjs/TemplateNormal.js +76 -76
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +31 -30
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +76 -73
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesListing.js +78 -78
- package/dist/cjs/View.js +263 -261
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +63 -62
- 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-9d158713.js} +7 -8
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -44
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-fbbe92ba.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-7340b76d.js → index-a766f892.js} +1059 -1261
- 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-66ffa47a.js → index.esm-9225638f.js} +5 -10
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
- package/dist/cjs/index.js +165 -162
- package/dist/cjs/{inherits-9953db94.js → inherits-3ff1b657.js} +22 -25
- 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/{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 +2 -2
- 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-31055afd.js → ADInfeed-33e556f5.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-dcb27a6c.js → ADlgInfeed-1270c526.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 +28 -14091
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +47 -48
- package/dist/esm/ArticleSeriesLandingPage.js +32 -33
- package/dist/esm/ArticleSeriesListing.js +33 -34
- package/dist/esm/Auth.js +595 -375
- 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 +48 -49
- package/dist/esm/DeckQueue.js +47 -48
- 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 +11 -11
- package/dist/esm/GridContent.js +80 -81
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +29 -29
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +44 -45
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +26 -26
- package/dist/esm/IssueDeck.js +36 -36
- package/dist/esm/IssueLanding.js +35 -36
- package/dist/esm/LeftNav.js +21 -22
- package/dist/esm/MasterDeck.js +36 -37
- package/dist/esm/MediaSeriesLanding.js +731 -643
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +34 -34
- package/dist/esm/NavNative.js +34 -34
- package/dist/esm/NavNormal.js +18 -18
- package/dist/esm/OncliveHero.js +4 -5
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +56 -57
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +33 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +23 -23
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +37 -38
- package/dist/esm/RecentNews.js +6 -6
- package/dist/esm/RelatedContent.js +6 -6
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-36be7223.js → SeriesSlider-c8477bf3.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-db5ba548.js → SocialSearchComponent-db963c3e.js} +12 -12
- package/dist/esm/TaxonomyCard.js +24 -24
- package/dist/esm/TaxonomyDescription.js +44 -45
- package/dist/esm/TemplateNormal.js +50 -51
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +52 -53
- package/dist/esm/VideoSeriesCard.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +37 -38
- package/dist/esm/VideoSeriesListing.js +34 -35
- package/dist/esm/View.js +89 -91
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +21 -21
- 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-f076879e.js} +8 -8
- 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 +43 -44
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-0958ad0e.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-73a91c0b.js → index-f354da27.js} +681 -890
- 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-cf08bf18.js → index.esm-d4932dea.js} +6 -13
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-e874e770.js} +5 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
- package/dist/esm/index.js +119 -119
- package/dist/esm/{inherits-cf8dde54.js → inherits-f71787cf.js} +20 -20
- 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/{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/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/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
-
import { _ as _extends$1, 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';
|
|
7
1
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
2
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
13
6
|
import Router, { useRouter } from 'next/router';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
-
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
+
import { u as util } from './util-3ab476bf.js';
|
|
11
|
+
import Beam from './Beam.js';
|
|
12
|
+
import Segment from './Segment.js';
|
|
13
|
+
import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
15
|
+
import { _ as _extends } from './extends-f076879e.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';
|
|
24
19
|
import GroupDeck from './GroupDeck.js';
|
|
25
|
-
import {
|
|
26
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
-
import { u as util } from './util-7700fc59.js';
|
|
28
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
29
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
30
21
|
import SocialShare from './SocialShare.js';
|
|
31
|
-
import { _ as
|
|
32
|
-
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';
|
|
33
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
34
|
-
import
|
|
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 } from './inherits-f71787cf.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
35
36
|
|
|
36
|
-
var urlFor = function urlFor(source, builder) {
|
|
37
|
+
var urlFor$4 = function urlFor(source, builder) {
|
|
37
38
|
return builder.image(source).auto('format');
|
|
38
39
|
};
|
|
39
40
|
|
|
@@ -43,7 +44,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
43
44
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
44
45
|
};
|
|
45
46
|
|
|
46
|
-
var Slideshow = function Slideshow(_ref) {
|
|
47
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
47
48
|
var slides = _ref.slides,
|
|
48
49
|
client = _ref.client,
|
|
49
50
|
pageview = _ref.pageview;
|
|
@@ -84,7 +85,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
84
85
|
return React__default.createElement(
|
|
85
86
|
Carousel.Item,
|
|
86
87
|
{ key: slide._key },
|
|
87
|
-
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
React__default.createElement('img', { src: slide.asset && urlFor$4(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
89
|
slide.caption && React__default.createElement(
|
|
89
90
|
'p',
|
|
90
91
|
{ className: 'p-2' },
|
|
@@ -96,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
96
97
|
);
|
|
97
98
|
};
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
102
103
|
|
|
103
104
|
var fastDeepEqual = function equal(a, b) {
|
|
104
105
|
if (a === b) return true;
|
|
105
106
|
|
|
106
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
107
|
-
|
|
108
|
-
, arrB = isArray(b)
|
|
109
|
-
, i
|
|
110
|
-
, length
|
|
111
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
112
109
|
|
|
113
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
114
112
|
length = a.length;
|
|
115
113
|
if (length != b.length) return false;
|
|
116
114
|
for (i = length; i-- !== 0;)
|
|
@@ -118,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
118
116
|
return true;
|
|
119
117
|
}
|
|
120
118
|
|
|
121
|
-
if (arrA != arrB) return false;
|
|
122
119
|
|
|
123
|
-
var dateA = a instanceof Date
|
|
124
|
-
, dateB = b instanceof Date;
|
|
125
|
-
if (dateA != dateB) return false;
|
|
126
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
127
120
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
132
124
|
|
|
133
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
134
126
|
length = keys.length;
|
|
135
|
-
|
|
136
|
-
if (length !== keyList(b).length)
|
|
137
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
138
128
|
|
|
139
129
|
for (i = length; i-- !== 0;)
|
|
140
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
141
131
|
|
|
142
132
|
for (i = length; i-- !== 0;) {
|
|
143
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
144
135
|
if (!equal(a[key], b[key])) return false;
|
|
145
136
|
}
|
|
146
137
|
|
|
147
138
|
return true;
|
|
148
139
|
}
|
|
149
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
150
142
|
return a!==a && b!==b;
|
|
151
143
|
};
|
|
152
144
|
|
|
@@ -684,14 +676,14 @@ function coerce(val) {
|
|
|
684
676
|
return val;
|
|
685
677
|
}
|
|
686
678
|
});
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
679
|
+
debug.coerce;
|
|
680
|
+
debug.disable;
|
|
681
|
+
debug.enable;
|
|
682
|
+
debug.enabled;
|
|
683
|
+
debug.humanize;
|
|
684
|
+
debug.names;
|
|
685
|
+
debug.skips;
|
|
686
|
+
debug.formatters;
|
|
695
687
|
|
|
696
688
|
var browser = createCommonjsModule(function (module, exports) {
|
|
697
689
|
/**
|
|
@@ -880,13 +872,13 @@ function localstorage() {
|
|
|
880
872
|
} catch (e) {}
|
|
881
873
|
}
|
|
882
874
|
});
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
875
|
+
browser.log;
|
|
876
|
+
browser.formatArgs;
|
|
877
|
+
browser.save;
|
|
878
|
+
browser.load;
|
|
879
|
+
browser.useColors;
|
|
880
|
+
browser.storage;
|
|
881
|
+
browser.colors;
|
|
890
882
|
|
|
891
883
|
// MIT lisence
|
|
892
884
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1161,14 +1153,14 @@ function init (debug) {
|
|
|
1161
1153
|
|
|
1162
1154
|
exports.enable(load());
|
|
1163
1155
|
});
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1156
|
+
node.init;
|
|
1157
|
+
node.log;
|
|
1158
|
+
node.formatArgs;
|
|
1159
|
+
node.save;
|
|
1160
|
+
node.load;
|
|
1161
|
+
node.useColors;
|
|
1162
|
+
node.colors;
|
|
1163
|
+
node.inspectOpts;
|
|
1172
1164
|
|
|
1173
1165
|
var src = createCommonjsModule(function (module) {
|
|
1174
1166
|
/**
|
|
@@ -1569,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
1569
1561
|
|
|
1570
1562
|
var youTubePlayer = unwrapExports(dist);
|
|
1571
1563
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
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; };
|
|
1564
|
+
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); }
|
|
1575
1565
|
|
|
1576
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1577
1567
|
|
|
1578
|
-
function
|
|
1568
|
+
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); } }
|
|
1569
|
+
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
+
|
|
1572
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1573
|
+
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1579
1583
|
|
|
1580
|
-
function
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
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; }
|
|
1587
|
+
|
|
1588
|
+
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; }
|
|
1581
1589
|
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
*
|
|
1585
|
-
*
|
|
1586
|
-
* @param {Object}
|
|
1590
|
+
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; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
1587
1596
|
*/
|
|
1597
|
+
|
|
1588
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
1589
1599
|
// A changing video should always trigger an update
|
|
1590
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
1591
1601
|
return true;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
1596
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1597
1607
|
var vars = props.opts.playerVars || {};
|
|
1598
|
-
|
|
1599
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1600
1609
|
}
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1608
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
1609
1619
|
function filterResetOptions(opts) {
|
|
1610
|
-
return
|
|
1611
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
1612
1622
|
autoplay: 0,
|
|
1613
1623
|
start: 0,
|
|
1614
1624
|
end: 0
|
|
1615
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
1616
1626
|
});
|
|
1617
1627
|
}
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
* @param {Object}
|
|
1626
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1627
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
1628
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1629
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1630
1641
|
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object}
|
|
1636
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
1637
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
1638
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1639
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1640
1652
|
}
|
|
1641
1653
|
|
|
1642
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1643
1655
|
_inherits(YouTube, _React$Component);
|
|
1644
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
1645
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
1646
1667
|
_classCallCheck(this, YouTube);
|
|
1647
1668
|
|
|
1648
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
1649
1670
|
|
|
1650
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1651
1672
|
return _this.props.onReady(event);
|
|
1652
|
-
};
|
|
1673
|
+
});
|
|
1653
1674
|
|
|
1654
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1655
1676
|
return _this.props.onError(event);
|
|
1656
|
-
};
|
|
1677
|
+
});
|
|
1657
1678
|
|
|
1658
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1659
1680
|
_this.props.onStateChange(event);
|
|
1660
|
-
switch (event.data) {
|
|
1661
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
1662
1683
|
case YouTube.PlayerState.ENDED:
|
|
1663
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
1664
1686
|
break;
|
|
1665
1687
|
|
|
1666
1688
|
case YouTube.PlayerState.PLAYING:
|
|
1667
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
1668
1691
|
break;
|
|
1669
1692
|
|
|
1670
1693
|
case YouTube.PlayerState.PAUSED:
|
|
1671
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
1672
1696
|
break;
|
|
1673
1697
|
}
|
|
1674
|
-
};
|
|
1698
|
+
});
|
|
1675
1699
|
|
|
1676
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1677
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
1678
|
-
};
|
|
1702
|
+
});
|
|
1679
1703
|
|
|
1680
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1681
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
1682
|
-
};
|
|
1706
|
+
});
|
|
1683
1707
|
|
|
1684
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1685
1709
|
// do not attempt to create a player server-side, it won't work
|
|
1686
|
-
if (typeof document === 'undefined') return;
|
|
1687
|
-
|
|
1688
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1689
1713
|
// preload the `videoId` video if one is already given
|
|
1690
1714
|
videoId: _this.props.videoId
|
|
1691
1715
|
});
|
|
1692
|
-
|
|
1693
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
1694
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
1695
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
1696
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
1697
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
1698
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1699
|
-
};
|
|
1728
|
+
});
|
|
1700
1729
|
|
|
1701
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1702
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1703
|
-
};
|
|
1732
|
+
});
|
|
1704
1733
|
|
|
1705
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1706
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1707
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1708
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1709
1738
|
});
|
|
1710
|
-
};
|
|
1739
|
+
});
|
|
1740
|
+
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
1711
1744
|
|
|
1712
|
-
_this
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1713
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1714
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
1715
1749
|
return;
|
|
1716
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
1717
1752
|
|
|
1718
|
-
// set queueing options
|
|
1719
1753
|
var autoplay = false;
|
|
1720
1754
|
var opts = {
|
|
1721
1755
|
videoId: _this.props.videoId
|
|
1722
1756
|
};
|
|
1757
|
+
|
|
1723
1758
|
if ('playerVars' in _this.props.opts) {
|
|
1724
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
1725
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
1726
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1727
1763
|
}
|
|
1764
|
+
|
|
1728
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
1729
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1730
1767
|
}
|
|
1731
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
1732
1770
|
|
|
1733
|
-
// if autoplay is enabled loadVideoById
|
|
1734
1771
|
if (autoplay) {
|
|
1735
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
1736
1774
|
return;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
1739
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
1740
|
-
};
|
|
1779
|
+
});
|
|
1741
1780
|
|
|
1742
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1743
1782
|
_this.container = container;
|
|
1744
|
-
};
|
|
1783
|
+
});
|
|
1745
1784
|
|
|
1746
1785
|
_this.container = null;
|
|
1747
1786
|
_this.internalPlayer = null;
|
|
1748
1787
|
return _this;
|
|
1749
1788
|
}
|
|
1750
1789
|
|
|
1751
|
-
/**
|
|
1752
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1753
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1754
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1755
|
-
*/
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
1790
|
_createClass(YouTube, [{
|
|
1759
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
1760
1792
|
value: function componentDidMount() {
|
|
1761
1793
|
this.createPlayer();
|
|
1762
1794
|
}
|
|
1763
1795
|
}, {
|
|
1764
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
1765
1797
|
value: function componentDidUpdate(prevProps) {
|
|
1766
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1767
1799
|
this.updatePlayer();
|
|
@@ -1776,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
1776
1808
|
}
|
|
1777
1809
|
}
|
|
1778
1810
|
}, {
|
|
1779
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
1780
1812
|
value: function componentWillUnmount() {
|
|
1781
|
-
/**
|
|
1782
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1783
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1784
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1785
|
-
* this method isn't quick enough to reset the container element.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
1786
1818
|
*/
|
|
1787
1819
|
this.internalPlayer.destroy();
|
|
1788
1820
|
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
* @param {Object} target - player object
|
|
1795
|
-
*/
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1800
|
-
*
|
|
1801
|
-
* @param {Object} event
|
|
1802
|
-
* @param {Integer} data - error type
|
|
1803
|
-
* @param {Object} target - player object
|
|
1804
|
-
*/
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1809
|
-
*
|
|
1810
|
-
* @param {Object} event
|
|
1811
|
-
* @param {Integer} data - status change type
|
|
1812
|
-
* @param {Object} target - actual YT player
|
|
1813
|
-
*/
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1818
|
-
*
|
|
1819
|
-
* @param {Object} event
|
|
1820
|
-
* @param {Float} data - playback rate
|
|
1821
|
-
* @param {Object} target - actual YT player
|
|
1822
|
-
*/
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1827
|
-
*
|
|
1828
|
-
* @param {Object} event
|
|
1829
|
-
* @param {String} data - playback quality
|
|
1830
|
-
* @param {Object} target - actual YT player
|
|
1831
|
-
*/
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1841
|
-
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
/**
|
|
1845
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1846
|
-
* React should update this automatically but since the Youtube Player API
|
|
1847
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1848
|
-
*/
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1853
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1854
|
-
* Youtube Player API methods to update the video.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
1855
1826
|
*/
|
|
1856
1827
|
|
|
1857
1828
|
}, {
|
|
1858
|
-
key:
|
|
1829
|
+
key: "render",
|
|
1859
1830
|
value: function render() {
|
|
1860
|
-
return React__default.createElement(
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1831
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
1865
1838
|
}
|
|
1866
1839
|
}]);
|
|
1867
1840
|
|
|
1868
1841
|
return YouTube;
|
|
1869
1842
|
}(React__default.Component);
|
|
1870
1843
|
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
1852
|
+
|
|
1871
1853
|
YouTube.propTypes = {
|
|
1872
1854
|
videoId: PropTypes.string,
|
|
1873
|
-
|
|
1874
1855
|
// custom ID for player element
|
|
1875
1856
|
id: PropTypes.string,
|
|
1876
|
-
|
|
1877
1857
|
// custom class name for player element
|
|
1878
1858
|
className: PropTypes.string,
|
|
1879
1859
|
// custom class name for player container element
|
|
1880
1860
|
containerClassName: PropTypes.string,
|
|
1881
|
-
|
|
1882
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1883
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
|
-
|
|
1885
1863
|
// event subscriptions
|
|
1886
1864
|
onReady: PropTypes.func,
|
|
1887
1865
|
onError: PropTypes.func,
|
|
@@ -1893,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
1893
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
1894
1872
|
};
|
|
1895
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
1896
1875
|
id: null,
|
|
1897
1876
|
className: null,
|
|
1898
1877
|
opts: {},
|
|
@@ -1906,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1906
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1907
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1908
1887
|
};
|
|
1909
|
-
YouTube.PlayerState = {
|
|
1910
|
-
UNSTARTED: -1,
|
|
1911
|
-
ENDED: 0,
|
|
1912
|
-
PLAYING: 1,
|
|
1913
|
-
PAUSED: 2,
|
|
1914
|
-
BUFFERING: 3,
|
|
1915
|
-
CUED: 5
|
|
1916
|
-
};
|
|
1917
1888
|
|
|
1918
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1919
1890
|
var url = _ref.url,
|
|
@@ -1952,8 +1923,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1952
1923
|
var duration = player.getDuration();
|
|
1953
1924
|
var queue = Math.floor(duration / 10);
|
|
1954
1925
|
var segment = Math.floor(current / queue);
|
|
1955
|
-
Beam.report_beam_video('Ready',
|
|
1956
|
-
Segment.report_video_event('Video Ready',
|
|
1926
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1927
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1957
1928
|
};
|
|
1958
1929
|
|
|
1959
1930
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1963,8 +1934,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1963
1934
|
var segment = Math.floor(current / queue);
|
|
1964
1935
|
|
|
1965
1936
|
if (!queueProgress.includes(segment)) {
|
|
1966
|
-
Beam.report_beam_video('Segment',
|
|
1967
|
-
Segment.report_video_event('Video Segment',
|
|
1937
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1938
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1968
1939
|
queueProgress.push(segment);
|
|
1969
1940
|
}
|
|
1970
1941
|
};
|
|
@@ -1977,8 +1948,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1977
1948
|
var queue = Math.floor(duration / 10);
|
|
1978
1949
|
var segment = Math.floor(current / queue);
|
|
1979
1950
|
|
|
1980
|
-
Beam.report_beam_video('Play',
|
|
1981
|
-
Segment.report_video_event('Video Play',
|
|
1951
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1952
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1982
1953
|
|
|
1983
1954
|
if (!playReported) {
|
|
1984
1955
|
setPlayReported(true);
|
|
@@ -1997,8 +1968,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1997
1968
|
var queue = Math.floor(duration / 10);
|
|
1998
1969
|
var segment = Math.floor(current / queue);
|
|
1999
1970
|
|
|
2000
|
-
Beam.report_beam_video('End',
|
|
2001
|
-
Segment.report_video_event('Video End',
|
|
1971
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1972
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2002
1973
|
setEndReported(true);
|
|
2003
1974
|
clearInterval(intervalID);
|
|
2004
1975
|
}
|
|
@@ -2011,8 +1982,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2011
1982
|
var queue = Math.floor(duration / 10);
|
|
2012
1983
|
var segment = Math.floor(current / queue);
|
|
2013
1984
|
|
|
2014
|
-
Beam.report_beam_video('Pause',
|
|
2015
|
-
Segment.report_video_event('Video Pause',
|
|
1985
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1986
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2016
1987
|
};
|
|
2017
1988
|
|
|
2018
1989
|
return React__default.createElement(
|
|
@@ -2179,7 +2150,7 @@ var Media = function Media(_ref) {
|
|
|
2179
2150
|
React__default.createElement(
|
|
2180
2151
|
LazyLoad,
|
|
2181
2152
|
{ once: true },
|
|
2182
|
-
React__default.createElement(Figure$1.Image, _extends
|
|
2153
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2183
2154
|
),
|
|
2184
2155
|
caption && React__default.createElement(
|
|
2185
2156
|
Figure$1.Caption,
|
|
@@ -2191,7 +2162,7 @@ var Media = function Media(_ref) {
|
|
|
2191
2162
|
} else if (caption && caption !== '') {
|
|
2192
2163
|
return React__default.createElement(
|
|
2193
2164
|
'a',
|
|
2194
|
-
_extends
|
|
2165
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2195
2166
|
href: uploadDoc.asset.url + '?dl='
|
|
2196
2167
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2197
2168
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2246,8 +2217,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2246
2217
|
var duration = player.duration;
|
|
2247
2218
|
var queue = Math.floor(duration / 10);
|
|
2248
2219
|
var segment = Math.floor(current / queue);
|
|
2249
|
-
Beam.report_beam_video('Ready',
|
|
2250
|
-
Segment.report_video_event('Video Ready',
|
|
2220
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2221
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2251
2222
|
};
|
|
2252
2223
|
|
|
2253
2224
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2256,8 +2227,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2256
2227
|
var queue = Math.floor(duration / 10);
|
|
2257
2228
|
var segment = Math.floor(current / queue);
|
|
2258
2229
|
if (!queueProgress.includes(segment)) {
|
|
2259
|
-
Beam.report_beam_video('Segment',
|
|
2260
|
-
Segment.report_video_event('Video Segment',
|
|
2230
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2231
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2261
2232
|
queueProgress.push(segment);
|
|
2262
2233
|
}
|
|
2263
2234
|
};
|
|
@@ -2269,8 +2240,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2269
2240
|
var duration = player.duration;
|
|
2270
2241
|
var queue = Math.floor(duration / 10);
|
|
2271
2242
|
var segment = Math.floor(current / queue);
|
|
2272
|
-
Beam.report_beam_video('Play',
|
|
2273
|
-
Segment.report_video_event('Video Play',
|
|
2243
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2244
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2274
2245
|
|
|
2275
2246
|
if (!playReported) {
|
|
2276
2247
|
event.persist();
|
|
@@ -2290,8 +2261,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2290
2261
|
var queue = Math.floor(duration / 10);
|
|
2291
2262
|
var segment = Math.floor(current / queue);
|
|
2292
2263
|
|
|
2293
|
-
Beam.report_beam_video('End',
|
|
2294
|
-
Segment.report_video_event('Video End',
|
|
2264
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2265
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2295
2266
|
setEndReported(true);
|
|
2296
2267
|
clearInterval(intervalID);
|
|
2297
2268
|
}
|
|
@@ -2303,8 +2274,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2303
2274
|
var duration = player.duration - current;
|
|
2304
2275
|
var queue = Math.floor(duration / 10);
|
|
2305
2276
|
var segment = Math.floor(current / queue);
|
|
2306
|
-
Beam.report_beam_video('Pause',
|
|
2307
|
-
Segment.report_video_event('Video Pause',
|
|
2277
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2278
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2308
2279
|
};
|
|
2309
2280
|
|
|
2310
2281
|
return React__default.createElement(
|
|
@@ -2365,7 +2336,7 @@ var Video = function Video(_ref) {
|
|
|
2365
2336
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2366
2337
|
//console.log('success:', success.ref)
|
|
2367
2338
|
var player = success.ref;
|
|
2368
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2339
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2369
2340
|
player.ima3.settings.debug = true;
|
|
2370
2341
|
if (targeting.content_placement && targeting.document_url) {
|
|
2371
2342
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2393,8 +2364,8 @@ var Video = function Video(_ref) {
|
|
|
2393
2364
|
player.pause();
|
|
2394
2365
|
}
|
|
2395
2366
|
|
|
2396
|
-
Beam.report_beam_video('Ready',
|
|
2397
|
-
Segment.report_video_event('Video Ready',
|
|
2367
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2368
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
2369
|
});
|
|
2399
2370
|
|
|
2400
2371
|
// play
|
|
@@ -2403,8 +2374,8 @@ var Video = function Video(_ref) {
|
|
|
2403
2374
|
var current = player.currentTime();
|
|
2404
2375
|
var queue = Math.floor(duration / 10);
|
|
2405
2376
|
var segment = Math.floor(current / queue);
|
|
2406
|
-
Beam.report_beam_video('Play',
|
|
2407
|
-
Segment.report_video_event('Video Play',
|
|
2377
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2378
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2408
2379
|
});
|
|
2409
2380
|
|
|
2410
2381
|
// pause
|
|
@@ -2413,8 +2384,8 @@ var Video = function Video(_ref) {
|
|
|
2413
2384
|
var current = player.currentTime();
|
|
2414
2385
|
var queue = Math.floor(duration / 10);
|
|
2415
2386
|
var segment = Math.floor(current / queue);
|
|
2416
|
-
Beam.report_beam_video('Pause',
|
|
2417
|
-
Segment.report_video_event('Video Pause',
|
|
2387
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2388
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2418
2389
|
});
|
|
2419
2390
|
|
|
2420
2391
|
// end
|
|
@@ -2423,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2394
|
var current = player.currentTime();
|
|
2424
2395
|
var queue = Math.floor(duration / 10);
|
|
2425
2396
|
var segment = Math.floor(current / queue);
|
|
2426
|
-
Beam.report_beam_video('End',
|
|
2427
|
-
Segment.report_video_event('Video End',
|
|
2397
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2428
2399
|
autoplayNextVideo(evt);
|
|
2429
2400
|
});
|
|
2430
2401
|
|
|
@@ -2435,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2435
2406
|
var queue = Math.floor(duration / 10);
|
|
2436
2407
|
var segment = Math.floor(current / queue);
|
|
2437
2408
|
if (!queueProgress.includes(segment)) {
|
|
2438
|
-
Beam.report_beam_video('Segment',
|
|
2439
|
-
Segment.report_video_event('Video Segment',
|
|
2409
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2410
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2440
2411
|
queueProgress.push(segment);
|
|
2441
2412
|
}
|
|
2442
2413
|
});
|
|
@@ -2447,8 +2418,8 @@ var Video = function Video(_ref) {
|
|
|
2447
2418
|
var id = player.ads.ad.id;
|
|
2448
2419
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2449
2420
|
|
|
2450
|
-
Beam.report_beam_ad('AD Started',
|
|
2451
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2421
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2422
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2452
2423
|
});
|
|
2453
2424
|
|
|
2454
2425
|
// ad ended
|
|
@@ -2456,8 +2427,8 @@ var Video = function Video(_ref) {
|
|
|
2456
2427
|
var duration = player.ads.ad.duration;
|
|
2457
2428
|
var id = player.ads.ad.id;
|
|
2458
2429
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2459
|
-
Beam.report_beam_ad('AD Ended',
|
|
2460
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2430
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2431
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2461
2432
|
});
|
|
2462
2433
|
};
|
|
2463
2434
|
|
|
@@ -2720,9 +2691,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2720
2691
|
});
|
|
2721
2692
|
|
|
2722
2693
|
unwrapExports(props);
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2694
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2695
|
+
props.defaultProps;
|
|
2696
|
+
props.propTypes;
|
|
2726
2697
|
|
|
2727
2698
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2728
2699
|
return isNonNullObject(value)
|
|
@@ -2887,11 +2858,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2887
2858
|
|
|
2888
2859
|
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; }
|
|
2889
2860
|
|
|
2890
|
-
function
|
|
2861
|
+
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; } } }; }
|
|
2891
2862
|
|
|
2892
|
-
function
|
|
2863
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2893
2864
|
|
|
2894
|
-
function
|
|
2865
|
+
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."); }
|
|
2866
|
+
|
|
2867
|
+
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); }
|
|
2868
|
+
|
|
2869
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2870
|
+
|
|
2871
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2895
2872
|
|
|
2896
2873
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2897
2874
|
|
|
@@ -3021,12 +2998,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3021
2998
|
|
|
3022
2999
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3023
3000
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3024
|
-
|
|
3025
|
-
var
|
|
3026
|
-
|
|
3001
|
+
|
|
3002
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3003
|
+
_step;
|
|
3027
3004
|
|
|
3028
3005
|
try {
|
|
3029
|
-
for (
|
|
3006
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3030
3007
|
var p = _step.value;
|
|
3031
3008
|
|
|
3032
3009
|
if (props$1[p]) {
|
|
@@ -3041,18 +3018,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3041
3018
|
}
|
|
3042
3019
|
}
|
|
3043
3020
|
} catch (err) {
|
|
3044
|
-
|
|
3045
|
-
_iteratorError = err;
|
|
3021
|
+
_iterator.e(err);
|
|
3046
3022
|
} finally {
|
|
3047
|
-
|
|
3048
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3049
|
-
_iterator["return"]();
|
|
3050
|
-
}
|
|
3051
|
-
} finally {
|
|
3052
|
-
if (_didIteratorError) {
|
|
3053
|
-
throw _iteratorError;
|
|
3054
|
-
}
|
|
3055
|
-
}
|
|
3023
|
+
_iterator.f();
|
|
3056
3024
|
}
|
|
3057
3025
|
|
|
3058
3026
|
return config;
|
|
@@ -3160,17 +3128,17 @@ function isMediaStream(url) {
|
|
|
3160
3128
|
});
|
|
3161
3129
|
|
|
3162
3130
|
unwrapExports(utils);
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3131
|
+
utils.parseStartTime;
|
|
3132
|
+
utils.parseEndTime;
|
|
3133
|
+
utils.randomString;
|
|
3134
|
+
utils.queryString;
|
|
3135
|
+
utils.getSDK;
|
|
3136
|
+
utils.getConfig;
|
|
3137
|
+
utils.omit;
|
|
3138
|
+
utils.callPlayer;
|
|
3139
|
+
utils.isObject;
|
|
3140
|
+
utils.isEqual;
|
|
3141
|
+
utils.isMediaStream;
|
|
3174
3142
|
|
|
3175
3143
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3176
3144
|
|
|
@@ -3199,12 +3167,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3199
3167
|
|
|
3200
3168
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3201
3169
|
|
|
3202
|
-
function
|
|
3170
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3203
3171
|
|
|
3204
|
-
function
|
|
3172
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3205
3173
|
|
|
3206
3174
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3207
3175
|
|
|
3176
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3177
|
+
|
|
3178
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3179
|
+
|
|
3208
3180
|
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); }
|
|
3209
3181
|
|
|
3210
3182
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3213,14 +3185,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3213
3185
|
|
|
3214
3186
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3215
3187
|
|
|
3216
|
-
var Player =
|
|
3217
|
-
/*#__PURE__*/
|
|
3218
|
-
function (_Component) {
|
|
3188
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3219
3189
|
_inherits(Player, _Component);
|
|
3220
3190
|
|
|
3221
|
-
|
|
3222
|
-
var _getPrototypeOf2;
|
|
3191
|
+
var _super = _createSuper(Player);
|
|
3223
3192
|
|
|
3193
|
+
function Player() {
|
|
3224
3194
|
var _this;
|
|
3225
3195
|
|
|
3226
3196
|
_classCallCheck(this, Player);
|
|
@@ -3229,7 +3199,7 @@ function (_Component) {
|
|
|
3229
3199
|
_args[_key] = arguments[_key];
|
|
3230
3200
|
}
|
|
3231
3201
|
|
|
3232
|
-
_this =
|
|
3202
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3233
3203
|
|
|
3234
3204
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3235
3205
|
|
|
@@ -3554,7 +3524,7 @@ function (_Component) {
|
|
|
3554
3524
|
return null;
|
|
3555
3525
|
}
|
|
3556
3526
|
|
|
3557
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3527
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3558
3528
|
ref: this.ref,
|
|
3559
3529
|
onReady: this.handleReady,
|
|
3560
3530
|
onPlay: this.handlePlay,
|
|
@@ -3615,12 +3585,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3615
3585
|
|
|
3616
3586
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3617
3587
|
|
|
3618
|
-
function
|
|
3588
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3619
3589
|
|
|
3620
|
-
function
|
|
3590
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3621
3591
|
|
|
3622
3592
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3623
3593
|
|
|
3594
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3595
|
+
|
|
3596
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3597
|
+
|
|
3624
3598
|
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); }
|
|
3625
3599
|
|
|
3626
3600
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3632,14 +3606,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3632
3606
|
function createSinglePlayer(activePlayer) {
|
|
3633
3607
|
var _class, _temp;
|
|
3634
3608
|
|
|
3635
|
-
return _temp = _class =
|
|
3636
|
-
/*#__PURE__*/
|
|
3637
|
-
function (_Component) {
|
|
3609
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3638
3610
|
_inherits(SinglePlayer, _Component);
|
|
3639
3611
|
|
|
3640
|
-
|
|
3641
|
-
var _getPrototypeOf2;
|
|
3612
|
+
var _super = _createSuper(SinglePlayer);
|
|
3642
3613
|
|
|
3614
|
+
function SinglePlayer() {
|
|
3643
3615
|
var _this;
|
|
3644
3616
|
|
|
3645
3617
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3648,7 +3620,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3648
3620
|
args[_key] = arguments[_key];
|
|
3649
3621
|
}
|
|
3650
3622
|
|
|
3651
|
-
_this =
|
|
3623
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3652
3624
|
|
|
3653
3625
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3654
3626
|
|
|
@@ -3716,12 +3688,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3716
3688
|
height = _this$props.height,
|
|
3717
3689
|
Wrapper = _this$props.wrapper;
|
|
3718
3690
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3719
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3691
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3720
3692
|
style: _objectSpread({}, style, {
|
|
3721
3693
|
width: width,
|
|
3722
3694
|
height: height
|
|
3723
3695
|
})
|
|
3724
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3696
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3725
3697
|
ref: this.ref,
|
|
3726
3698
|
activePlayer: activePlayer,
|
|
3727
3699
|
config: this.config
|
|
@@ -3767,23 +3739,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3767
3739
|
|
|
3768
3740
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3769
3741
|
|
|
3770
|
-
function
|
|
3742
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3771
3743
|
|
|
3772
|
-
function
|
|
3744
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3773
3745
|
|
|
3774
3746
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3775
3747
|
|
|
3748
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3749
|
+
|
|
3750
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3751
|
+
|
|
3776
3752
|
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); }
|
|
3777
3753
|
|
|
3778
3754
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3779
3755
|
|
|
3780
3756
|
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; }
|
|
3781
3757
|
|
|
3782
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3758
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3759
|
+
|
|
3760
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3761
|
+
|
|
3762
|
+
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); }
|
|
3783
3763
|
|
|
3784
|
-
function
|
|
3764
|
+
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; }
|
|
3785
3765
|
|
|
3786
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3766
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3787
3767
|
|
|
3788
3768
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3789
3769
|
|
|
@@ -3808,14 +3788,12 @@ function parsePlaylist(url) {
|
|
|
3808
3788
|
return {};
|
|
3809
3789
|
}
|
|
3810
3790
|
|
|
3811
|
-
var YouTube =
|
|
3812
|
-
/*#__PURE__*/
|
|
3813
|
-
function (_Component) {
|
|
3791
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3814
3792
|
_inherits(YouTube, _Component);
|
|
3815
3793
|
|
|
3816
|
-
|
|
3817
|
-
var _getPrototypeOf2;
|
|
3794
|
+
var _super = _createSuper(YouTube);
|
|
3818
3795
|
|
|
3796
|
+
function YouTube() {
|
|
3819
3797
|
var _this;
|
|
3820
3798
|
|
|
3821
3799
|
_classCallCheck(this, YouTube);
|
|
@@ -3824,7 +3802,7 @@ function (_Component) {
|
|
|
3824
3802
|
args[_key] = arguments[_key];
|
|
3825
3803
|
}
|
|
3826
3804
|
|
|
3827
|
-
_this =
|
|
3805
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3828
3806
|
|
|
3829
3807
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3830
3808
|
|
|
@@ -4012,9 +3990,9 @@ function (_Component) {
|
|
|
4012
3990
|
height: '100%',
|
|
4013
3991
|
display: display
|
|
4014
3992
|
};
|
|
4015
|
-
return _react["default"].createElement("div", {
|
|
3993
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4016
3994
|
style: style
|
|
4017
|
-
}, _react["default"].createElement("div", {
|
|
3995
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4018
3996
|
ref: this.ref
|
|
4019
3997
|
}));
|
|
4020
3998
|
}
|
|
@@ -4037,7 +4015,7 @@ exports["default"] = _default;
|
|
|
4037
4015
|
});
|
|
4038
4016
|
|
|
4039
4017
|
unwrapExports(YouTube_1);
|
|
4040
|
-
|
|
4018
|
+
YouTube_1.YouTube;
|
|
4041
4019
|
|
|
4042
4020
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4043
4021
|
|
|
@@ -4070,12 +4048,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4070
4048
|
|
|
4071
4049
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4072
4050
|
|
|
4073
|
-
function
|
|
4051
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4074
4052
|
|
|
4075
|
-
function
|
|
4053
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4076
4054
|
|
|
4077
4055
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4078
4056
|
|
|
4057
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4058
|
+
|
|
4059
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4060
|
+
|
|
4079
4061
|
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); }
|
|
4080
4062
|
|
|
4081
4063
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4084,16 +4066,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4084
4066
|
|
|
4085
4067
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4086
4068
|
var SDK_GLOBAL = 'SC';
|
|
4087
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4069
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4088
4070
|
|
|
4089
|
-
var SoundCloud =
|
|
4090
|
-
/*#__PURE__*/
|
|
4091
|
-
function (_Component) {
|
|
4071
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4092
4072
|
_inherits(SoundCloud, _Component);
|
|
4093
4073
|
|
|
4094
|
-
|
|
4095
|
-
var _getPrototypeOf2;
|
|
4074
|
+
var _super = _createSuper(SoundCloud);
|
|
4096
4075
|
|
|
4076
|
+
function SoundCloud() {
|
|
4097
4077
|
var _this;
|
|
4098
4078
|
|
|
4099
4079
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4102,7 +4082,7 @@ function (_Component) {
|
|
|
4102
4082
|
args[_key] = arguments[_key];
|
|
4103
4083
|
}
|
|
4104
4084
|
|
|
4105
|
-
_this =
|
|
4085
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4106
4086
|
|
|
4107
4087
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4108
4088
|
|
|
@@ -4223,7 +4203,7 @@ function (_Component) {
|
|
|
4223
4203
|
height: '100%',
|
|
4224
4204
|
display: display
|
|
4225
4205
|
};
|
|
4226
|
-
return _react["default"].createElement("iframe", {
|
|
4206
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4227
4207
|
ref: this.ref,
|
|
4228
4208
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4229
4209
|
style: style,
|
|
@@ -4252,7 +4232,7 @@ exports["default"] = _default;
|
|
|
4252
4232
|
});
|
|
4253
4233
|
|
|
4254
4234
|
unwrapExports(SoundCloud_1);
|
|
4255
|
-
|
|
4235
|
+
SoundCloud_1.SoundCloud;
|
|
4256
4236
|
|
|
4257
4237
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4258
4238
|
|
|
@@ -4285,12 +4265,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4285
4265
|
|
|
4286
4266
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4287
4267
|
|
|
4288
|
-
function
|
|
4268
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4289
4269
|
|
|
4290
|
-
function
|
|
4270
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4291
4271
|
|
|
4292
4272
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4293
4273
|
|
|
4274
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4275
|
+
|
|
4276
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4277
|
+
|
|
4294
4278
|
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); }
|
|
4295
4279
|
|
|
4296
4280
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4302,14 +4286,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4302
4286
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4303
4287
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4304
4288
|
|
|
4305
|
-
var Vimeo =
|
|
4306
|
-
/*#__PURE__*/
|
|
4307
|
-
function (_Component) {
|
|
4289
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4308
4290
|
_inherits(Vimeo, _Component);
|
|
4309
4291
|
|
|
4310
|
-
|
|
4311
|
-
var _getPrototypeOf2;
|
|
4292
|
+
var _super = _createSuper(Vimeo);
|
|
4312
4293
|
|
|
4294
|
+
function Vimeo() {
|
|
4313
4295
|
var _this;
|
|
4314
4296
|
|
|
4315
4297
|
_classCallCheck(this, Vimeo);
|
|
@@ -4318,7 +4300,7 @@ function (_Component) {
|
|
|
4318
4300
|
args[_key] = arguments[_key];
|
|
4319
4301
|
}
|
|
4320
4302
|
|
|
4321
|
-
_this =
|
|
4303
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4322
4304
|
|
|
4323
4305
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4324
4306
|
|
|
@@ -4475,7 +4457,7 @@ function (_Component) {
|
|
|
4475
4457
|
overflow: 'hidden',
|
|
4476
4458
|
display: display
|
|
4477
4459
|
};
|
|
4478
|
-
return _react["default"].createElement("div", {
|
|
4460
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4479
4461
|
key: this.props.url,
|
|
4480
4462
|
ref: this.ref,
|
|
4481
4463
|
style: style
|
|
@@ -4506,7 +4488,7 @@ exports["default"] = _default;
|
|
|
4506
4488
|
});
|
|
4507
4489
|
|
|
4508
4490
|
unwrapExports(Vimeo_1);
|
|
4509
|
-
|
|
4491
|
+
Vimeo_1.Vimeo;
|
|
4510
4492
|
|
|
4511
4493
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4512
4494
|
|
|
@@ -4535,12 +4517,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4535
4517
|
|
|
4536
4518
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4537
4519
|
|
|
4538
|
-
function
|
|
4520
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4539
4521
|
|
|
4540
|
-
function
|
|
4522
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4541
4523
|
|
|
4542
4524
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4543
4525
|
|
|
4526
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4527
|
+
|
|
4528
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4529
|
+
|
|
4544
4530
|
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); }
|
|
4545
4531
|
|
|
4546
4532
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4553,14 +4539,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4553
4539
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4554
4540
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4555
4541
|
|
|
4556
|
-
var Facebook =
|
|
4557
|
-
/*#__PURE__*/
|
|
4558
|
-
function (_Component) {
|
|
4542
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4559
4543
|
_inherits(Facebook, _Component);
|
|
4560
4544
|
|
|
4561
|
-
|
|
4562
|
-
var _getPrototypeOf2;
|
|
4545
|
+
var _super = _createSuper(Facebook);
|
|
4563
4546
|
|
|
4547
|
+
function Facebook() {
|
|
4564
4548
|
var _this;
|
|
4565
4549
|
|
|
4566
4550
|
_classCallCheck(this, Facebook);
|
|
@@ -4569,7 +4553,7 @@ function (_Component) {
|
|
|
4569
4553
|
args[_key] = arguments[_key];
|
|
4570
4554
|
}
|
|
4571
4555
|
|
|
4572
|
-
_this =
|
|
4556
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4573
4557
|
|
|
4574
4558
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4575
4559
|
|
|
@@ -4685,7 +4669,7 @@ function (_Component) {
|
|
|
4685
4669
|
width: '100%',
|
|
4686
4670
|
height: '100%'
|
|
4687
4671
|
};
|
|
4688
|
-
return _react["default"].createElement("div", {
|
|
4672
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4689
4673
|
style: style,
|
|
4690
4674
|
id: this.playerID,
|
|
4691
4675
|
className: "fb-video",
|
|
@@ -4716,7 +4700,7 @@ exports["default"] = _default;
|
|
|
4716
4700
|
});
|
|
4717
4701
|
|
|
4718
4702
|
unwrapExports(Facebook_1);
|
|
4719
|
-
|
|
4703
|
+
Facebook_1.Facebook;
|
|
4720
4704
|
|
|
4721
4705
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4722
4706
|
|
|
@@ -4745,12 +4729,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4745
4729
|
|
|
4746
4730
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4747
4731
|
|
|
4748
|
-
function
|
|
4732
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4749
4733
|
|
|
4750
|
-
function
|
|
4734
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4751
4735
|
|
|
4752
4736
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4753
4737
|
|
|
4738
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4739
|
+
|
|
4740
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4741
|
+
|
|
4754
4742
|
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); }
|
|
4755
4743
|
|
|
4756
4744
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4761,14 +4749,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4761
4749
|
var SDK_GLOBAL = 'playerjs';
|
|
4762
4750
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4763
4751
|
|
|
4764
|
-
var Streamable =
|
|
4765
|
-
/*#__PURE__*/
|
|
4766
|
-
function (_Component) {
|
|
4752
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4767
4753
|
_inherits(Streamable, _Component);
|
|
4768
4754
|
|
|
4769
|
-
|
|
4770
|
-
var _getPrototypeOf2;
|
|
4755
|
+
var _super = _createSuper(Streamable);
|
|
4771
4756
|
|
|
4757
|
+
function Streamable() {
|
|
4772
4758
|
var _this;
|
|
4773
4759
|
|
|
4774
4760
|
_classCallCheck(this, Streamable);
|
|
@@ -4777,7 +4763,7 @@ function (_Component) {
|
|
|
4777
4763
|
args[_key] = arguments[_key];
|
|
4778
4764
|
}
|
|
4779
4765
|
|
|
4780
|
-
_this =
|
|
4766
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4781
4767
|
|
|
4782
4768
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4783
4769
|
|
|
@@ -4897,7 +4883,7 @@ function (_Component) {
|
|
|
4897
4883
|
width: '100%',
|
|
4898
4884
|
height: '100%'
|
|
4899
4885
|
};
|
|
4900
|
-
return _react["default"].createElement("iframe", {
|
|
4886
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4901
4887
|
ref: this.ref,
|
|
4902
4888
|
src: "https://streamable.com/o/".concat(id),
|
|
4903
4889
|
frameBorder: "0",
|
|
@@ -4925,7 +4911,7 @@ exports["default"] = _default;
|
|
|
4925
4911
|
});
|
|
4926
4912
|
|
|
4927
4913
|
unwrapExports(Streamable_1);
|
|
4928
|
-
|
|
4914
|
+
Streamable_1.Streamable;
|
|
4929
4915
|
|
|
4930
4916
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4931
4917
|
|
|
@@ -4958,12 +4944,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4958
4944
|
|
|
4959
4945
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4960
4946
|
|
|
4947
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4948
|
+
|
|
4961
4949
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4962
4950
|
|
|
4963
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4964
|
-
|
|
4965
4951
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4966
4952
|
|
|
4953
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4954
|
+
|
|
4955
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4956
|
+
|
|
4967
4957
|
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); }
|
|
4968
4958
|
|
|
4969
4959
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4974,26 +4964,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4974
4964
|
var SDK_GLOBAL = 'Wistia';
|
|
4975
4965
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4976
4966
|
|
|
4977
|
-
var Wistia =
|
|
4978
|
-
/*#__PURE__*/
|
|
4979
|
-
function (_Component) {
|
|
4967
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4980
4968
|
_inherits(Wistia, _Component);
|
|
4981
4969
|
|
|
4982
|
-
|
|
4983
|
-
var _getPrototypeOf2;
|
|
4970
|
+
var _super = _createSuper(Wistia);
|
|
4984
4971
|
|
|
4972
|
+
function Wistia() {
|
|
4985
4973
|
var _this;
|
|
4986
4974
|
|
|
4987
4975
|
_classCallCheck(this, Wistia);
|
|
4988
4976
|
|
|
4989
|
-
for (var _len = arguments.length,
|
|
4990
|
-
|
|
4977
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4978
|
+
_args[_key] = arguments[_key];
|
|
4991
4979
|
}
|
|
4992
4980
|
|
|
4993
|
-
_this =
|
|
4981
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4994
4982
|
|
|
4995
4983
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4996
4984
|
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4986
|
+
var _this$props;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4992
|
+
var _this$props2;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
4997
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4998
|
+
var _this$props3;
|
|
4999
|
+
|
|
5000
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5001
|
+
});
|
|
5002
|
+
|
|
5003
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5004
|
+
var _this$props4;
|
|
5005
|
+
|
|
5006
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5007
|
+
});
|
|
5008
|
+
|
|
4997
5009
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4998
5010
|
_this.callPlayer('mute');
|
|
4999
5011
|
});
|
|
@@ -5015,17 +5027,13 @@ function (_Component) {
|
|
|
5015
5027
|
value: function load(url) {
|
|
5016
5028
|
var _this2 = this;
|
|
5017
5029
|
|
|
5018
|
-
var _this$
|
|
5019
|
-
playing = _this$
|
|
5020
|
-
muted = _this$
|
|
5021
|
-
controls = _this$
|
|
5022
|
-
_onReady = _this$
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
onSeek = _this$props.onSeek,
|
|
5026
|
-
onEnded = _this$props.onEnded,
|
|
5027
|
-
config = _this$props.config,
|
|
5028
|
-
onError = _this$props.onError;
|
|
5030
|
+
var _this$props5 = this.props,
|
|
5031
|
+
playing = _this$props5.playing,
|
|
5032
|
+
muted = _this$props5.muted,
|
|
5033
|
+
controls = _this$props5.controls,
|
|
5034
|
+
_onReady = _this$props5.onReady,
|
|
5035
|
+
config = _this$props5.config,
|
|
5036
|
+
onError = _this$props5.onError;
|
|
5029
5037
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5030
5038
|
window._wq = window._wq || [];
|
|
5031
5039
|
|
|
@@ -5042,19 +5050,28 @@ function (_Component) {
|
|
|
5042
5050
|
|
|
5043
5051
|
_this2.unbind();
|
|
5044
5052
|
|
|
5045
|
-
_this2.player.bind('play', onPlay);
|
|
5053
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5046
5054
|
|
|
5047
|
-
_this2.player.bind('pause', onPause);
|
|
5055
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5048
5056
|
|
|
5049
|
-
_this2.player.bind('seek', onSeek);
|
|
5057
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5050
5058
|
|
|
5051
|
-
_this2.player.bind('end', onEnded);
|
|
5059
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5052
5060
|
|
|
5053
5061
|
_onReady();
|
|
5054
5062
|
}
|
|
5055
5063
|
});
|
|
5056
5064
|
}, onError);
|
|
5057
5065
|
}
|
|
5066
|
+
}, {
|
|
5067
|
+
key: "unbind",
|
|
5068
|
+
value: function unbind() {
|
|
5069
|
+
this.player.unbind('play', this.onPlay);
|
|
5070
|
+
this.player.unbind('pause', this.onPause);
|
|
5071
|
+
this.player.unbind('seek', this.onSeek);
|
|
5072
|
+
this.player.unbind('end', this.onEnded);
|
|
5073
|
+
} // Proxy methods to prevent listener leaks
|
|
5074
|
+
|
|
5058
5075
|
}, {
|
|
5059
5076
|
key: "play",
|
|
5060
5077
|
value: function play() {
|
|
@@ -5065,19 +5082,6 @@ function (_Component) {
|
|
|
5065
5082
|
value: function pause() {
|
|
5066
5083
|
this.callPlayer('pause');
|
|
5067
5084
|
}
|
|
5068
|
-
}, {
|
|
5069
|
-
key: "unbind",
|
|
5070
|
-
value: function unbind() {
|
|
5071
|
-
var _this$props2 = this.props,
|
|
5072
|
-
onPlay = _this$props2.onPlay,
|
|
5073
|
-
onPause = _this$props2.onPause,
|
|
5074
|
-
onSeek = _this$props2.onSeek,
|
|
5075
|
-
onEnded = _this$props2.onEnded;
|
|
5076
|
-
this.player.unbind('play', onPlay);
|
|
5077
|
-
this.player.unbind('pause', onPause);
|
|
5078
|
-
this.player.unbind('seek', onSeek);
|
|
5079
|
-
this.player.unbind('end', onEnded);
|
|
5080
|
-
}
|
|
5081
5085
|
}, {
|
|
5082
5086
|
key: "stop",
|
|
5083
5087
|
value: function stop() {
|
|
@@ -5123,7 +5127,7 @@ function (_Component) {
|
|
|
5123
5127
|
width: '100%',
|
|
5124
5128
|
height: '100%'
|
|
5125
5129
|
};
|
|
5126
|
-
return _react["default"].createElement("div", {
|
|
5130
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5127
5131
|
key: id,
|
|
5128
5132
|
className: className,
|
|
5129
5133
|
style: style
|
|
@@ -5150,7 +5154,7 @@ exports["default"] = _default;
|
|
|
5150
5154
|
});
|
|
5151
5155
|
|
|
5152
5156
|
unwrapExports(Wistia_1);
|
|
5153
|
-
|
|
5157
|
+
Wistia_1.Wistia;
|
|
5154
5158
|
|
|
5155
5159
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5156
5160
|
|
|
@@ -5183,12 +5187,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5183
5187
|
|
|
5184
5188
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5185
5189
|
|
|
5186
|
-
function
|
|
5190
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5187
5191
|
|
|
5188
|
-
function
|
|
5192
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5189
5193
|
|
|
5190
5194
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5191
5195
|
|
|
5196
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5197
|
+
|
|
5198
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5199
|
+
|
|
5192
5200
|
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); }
|
|
5193
5201
|
|
|
5194
5202
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5201,14 +5209,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5201
5209
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5202
5210
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5203
5211
|
|
|
5204
|
-
var Twitch =
|
|
5205
|
-
/*#__PURE__*/
|
|
5206
|
-
function (_Component) {
|
|
5212
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5207
5213
|
_inherits(Twitch, _Component);
|
|
5208
5214
|
|
|
5209
|
-
|
|
5210
|
-
var _getPrototypeOf2;
|
|
5215
|
+
var _super = _createSuper(Twitch);
|
|
5211
5216
|
|
|
5217
|
+
function Twitch() {
|
|
5212
5218
|
var _this;
|
|
5213
5219
|
|
|
5214
5220
|
_classCallCheck(this, Twitch);
|
|
@@ -5217,7 +5223,7 @@ function (_Component) {
|
|
|
5217
5223
|
args[_key] = arguments[_key];
|
|
5218
5224
|
}
|
|
5219
5225
|
|
|
5220
|
-
_this =
|
|
5226
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5221
5227
|
|
|
5222
5228
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5223
5229
|
|
|
@@ -5338,7 +5344,7 @@ function (_Component) {
|
|
|
5338
5344
|
width: '100%',
|
|
5339
5345
|
height: '100%'
|
|
5340
5346
|
};
|
|
5341
|
-
return _react["default"].createElement("div", {
|
|
5347
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5342
5348
|
style: style,
|
|
5343
5349
|
id: this.playerID
|
|
5344
5350
|
});
|
|
@@ -5364,7 +5370,7 @@ exports["default"] = _default;
|
|
|
5364
5370
|
});
|
|
5365
5371
|
|
|
5366
5372
|
unwrapExports(Twitch_1);
|
|
5367
|
-
|
|
5373
|
+
Twitch_1.Twitch;
|
|
5368
5374
|
|
|
5369
5375
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5370
5376
|
|
|
@@ -5391,11 +5397,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5391
5397
|
|
|
5392
5398
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5393
5399
|
|
|
5394
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5400
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5401
|
+
|
|
5402
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5395
5403
|
|
|
5396
|
-
function
|
|
5404
|
+
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); }
|
|
5397
5405
|
|
|
5398
|
-
function
|
|
5406
|
+
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; }
|
|
5407
|
+
|
|
5408
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5399
5409
|
|
|
5400
5410
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5401
5411
|
|
|
@@ -5405,12 +5415,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5405
5415
|
|
|
5406
5416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5407
5417
|
|
|
5408
|
-
function
|
|
5418
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5409
5419
|
|
|
5410
|
-
function
|
|
5420
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5411
5421
|
|
|
5412
5422
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5413
5423
|
|
|
5424
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5425
|
+
|
|
5426
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5427
|
+
|
|
5414
5428
|
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); }
|
|
5415
5429
|
|
|
5416
5430
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5422,14 +5436,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5422
5436
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5423
5437
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5424
5438
|
|
|
5425
|
-
var DailyMotion =
|
|
5426
|
-
/*#__PURE__*/
|
|
5427
|
-
function (_Component) {
|
|
5439
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5428
5440
|
_inherits(DailyMotion, _Component);
|
|
5429
5441
|
|
|
5430
|
-
|
|
5431
|
-
var _getPrototypeOf2;
|
|
5442
|
+
var _super = _createSuper(DailyMotion);
|
|
5432
5443
|
|
|
5444
|
+
function DailyMotion() {
|
|
5433
5445
|
var _this;
|
|
5434
5446
|
|
|
5435
5447
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5438,7 +5450,7 @@ function (_Component) {
|
|
|
5438
5450
|
args[_key] = arguments[_key];
|
|
5439
5451
|
}
|
|
5440
5452
|
|
|
5441
|
-
_this =
|
|
5453
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5442
5454
|
|
|
5443
5455
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5444
5456
|
|
|
@@ -5567,9 +5579,9 @@ function (_Component) {
|
|
|
5567
5579
|
height: '100%',
|
|
5568
5580
|
display: display
|
|
5569
5581
|
};
|
|
5570
|
-
return _react["default"].createElement("div", {
|
|
5582
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5571
5583
|
style: style
|
|
5572
|
-
}, _react["default"].createElement("div", {
|
|
5584
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5573
5585
|
ref: this.ref
|
|
5574
5586
|
}));
|
|
5575
5587
|
}
|
|
@@ -5594,7 +5606,7 @@ exports["default"] = _default;
|
|
|
5594
5606
|
});
|
|
5595
5607
|
|
|
5596
5608
|
unwrapExports(DailyMotion_1);
|
|
5597
|
-
|
|
5609
|
+
DailyMotion_1.DailyMotion;
|
|
5598
5610
|
|
|
5599
5611
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5600
5612
|
|
|
@@ -5627,12 +5639,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5627
5639
|
|
|
5628
5640
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5629
5641
|
|
|
5630
|
-
function
|
|
5642
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5631
5643
|
|
|
5632
|
-
function
|
|
5644
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5633
5645
|
|
|
5634
5646
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5635
5647
|
|
|
5648
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5649
|
+
|
|
5650
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5651
|
+
|
|
5636
5652
|
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); }
|
|
5637
5653
|
|
|
5638
5654
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5643,14 +5659,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5643
5659
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5644
5660
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5645
5661
|
|
|
5646
|
-
var Mixcloud =
|
|
5647
|
-
/*#__PURE__*/
|
|
5648
|
-
function (_Component) {
|
|
5662
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5649
5663
|
_inherits(Mixcloud, _Component);
|
|
5650
5664
|
|
|
5651
|
-
|
|
5652
|
-
var _getPrototypeOf2;
|
|
5665
|
+
var _super = _createSuper(Mixcloud);
|
|
5653
5666
|
|
|
5667
|
+
function Mixcloud() {
|
|
5654
5668
|
var _this;
|
|
5655
5669
|
|
|
5656
5670
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5659,7 +5673,7 @@ function (_Component) {
|
|
|
5659
5673
|
args[_key] = arguments[_key];
|
|
5660
5674
|
}
|
|
5661
5675
|
|
|
5662
|
-
_this =
|
|
5676
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5663
5677
|
|
|
5664
5678
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5665
5679
|
|
|
@@ -5762,7 +5776,7 @@ function (_Component) {
|
|
|
5762
5776
|
})); // We have to give the iframe a key here to prevent a
|
|
5763
5777
|
// weird dialog appearing when loading a new track
|
|
5764
5778
|
|
|
5765
|
-
return _react["default"].createElement("iframe", {
|
|
5779
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5766
5780
|
key: id,
|
|
5767
5781
|
ref: this.ref,
|
|
5768
5782
|
style: style,
|
|
@@ -5791,7 +5805,7 @@ exports["default"] = _default;
|
|
|
5791
5805
|
});
|
|
5792
5806
|
|
|
5793
5807
|
unwrapExports(Mixcloud_1);
|
|
5794
|
-
|
|
5808
|
+
Mixcloud_1.Mixcloud;
|
|
5795
5809
|
|
|
5796
5810
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5797
5811
|
|
|
@@ -5822,23 +5836,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5822
5836
|
|
|
5823
5837
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5824
5838
|
|
|
5825
|
-
function
|
|
5839
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5826
5840
|
|
|
5827
|
-
function
|
|
5841
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5828
5842
|
|
|
5829
5843
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5830
5844
|
|
|
5845
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5846
|
+
|
|
5847
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5848
|
+
|
|
5831
5849
|
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); }
|
|
5832
5850
|
|
|
5833
5851
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5834
5852
|
|
|
5835
5853
|
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; }
|
|
5836
5854
|
|
|
5855
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5856
|
+
|
|
5857
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5858
|
+
|
|
5859
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5860
|
+
|
|
5837
5861
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5838
5862
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5839
5863
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5840
5864
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5841
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5865
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5842
5866
|
var HLS_GLOBAL = 'Hls';
|
|
5843
5867
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5844
5868
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5847,12 +5871,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5847
5871
|
|
|
5848
5872
|
function canPlay(url) {
|
|
5849
5873
|
if (url instanceof Array) {
|
|
5850
|
-
var
|
|
5851
|
-
|
|
5852
|
-
var _iteratorError = undefined;
|
|
5874
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5875
|
+
_step;
|
|
5853
5876
|
|
|
5854
5877
|
try {
|
|
5855
|
-
for (
|
|
5878
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5856
5879
|
var item = _step.value;
|
|
5857
5880
|
|
|
5858
5881
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5864,18 +5887,9 @@ function canPlay(url) {
|
|
|
5864
5887
|
}
|
|
5865
5888
|
}
|
|
5866
5889
|
} catch (err) {
|
|
5867
|
-
|
|
5868
|
-
_iteratorError = err;
|
|
5890
|
+
_iterator.e(err);
|
|
5869
5891
|
} finally {
|
|
5870
|
-
|
|
5871
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5872
|
-
_iterator["return"]();
|
|
5873
|
-
}
|
|
5874
|
-
} finally {
|
|
5875
|
-
if (_didIteratorError) {
|
|
5876
|
-
throw _iteratorError;
|
|
5877
|
-
}
|
|
5878
|
-
}
|
|
5892
|
+
_iterator.f();
|
|
5879
5893
|
}
|
|
5880
5894
|
|
|
5881
5895
|
return false;
|
|
@@ -5899,14 +5913,12 @@ function canEnablePIP(url) {
|
|
|
5899
5913
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5900
5914
|
}
|
|
5901
5915
|
|
|
5902
|
-
var FilePlayer =
|
|
5903
|
-
/*#__PURE__*/
|
|
5904
|
-
function (_Component) {
|
|
5916
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5905
5917
|
_inherits(FilePlayer, _Component);
|
|
5906
5918
|
|
|
5907
|
-
|
|
5908
|
-
var _getPrototypeOf2;
|
|
5919
|
+
var _super = _createSuper(FilePlayer);
|
|
5909
5920
|
|
|
5921
|
+
function FilePlayer() {
|
|
5910
5922
|
var _this;
|
|
5911
5923
|
|
|
5912
5924
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5915,7 +5927,7 @@ function (_Component) {
|
|
|
5915
5927
|
_args[_key] = arguments[_key];
|
|
5916
5928
|
}
|
|
5917
5929
|
|
|
5918
|
-
_this =
|
|
5930
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5919
5931
|
|
|
5920
5932
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5921
5933
|
var _this$props;
|
|
@@ -6002,19 +6014,19 @@ function (_Component) {
|
|
|
6002
6014
|
|
|
6003
6015
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6004
6016
|
if (typeof source === 'string') {
|
|
6005
|
-
return _react["default"].createElement("source", {
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6006
6018
|
key: index,
|
|
6007
6019
|
src: source
|
|
6008
6020
|
});
|
|
6009
6021
|
}
|
|
6010
6022
|
|
|
6011
|
-
return _react["default"].createElement("source", _extends({
|
|
6023
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6012
6024
|
key: index
|
|
6013
6025
|
}, source));
|
|
6014
6026
|
});
|
|
6015
6027
|
|
|
6016
6028
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6017
|
-
return _react["default"].createElement("track", _extends({
|
|
6029
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6018
6030
|
key: index
|
|
6019
6031
|
}, track));
|
|
6020
6032
|
});
|
|
@@ -6052,6 +6064,10 @@ function (_Component) {
|
|
|
6052
6064
|
key: "componentWillUnmount",
|
|
6053
6065
|
value: function componentWillUnmount() {
|
|
6054
6066
|
this.removeListeners(this.player);
|
|
6067
|
+
|
|
6068
|
+
if (this.hls) {
|
|
6069
|
+
this.hls.destroy();
|
|
6070
|
+
}
|
|
6055
6071
|
}
|
|
6056
6072
|
}, {
|
|
6057
6073
|
key: "addListeners",
|
|
@@ -6182,10 +6198,6 @@ function (_Component) {
|
|
|
6182
6198
|
value: function stop() {
|
|
6183
6199
|
this.player.removeAttribute('src');
|
|
6184
6200
|
|
|
6185
|
-
if (this.hls) {
|
|
6186
|
-
this.hls.destroy();
|
|
6187
|
-
}
|
|
6188
|
-
|
|
6189
6201
|
if (this.dash) {
|
|
6190
6202
|
this.dash.reset();
|
|
6191
6203
|
}
|
|
@@ -6297,7 +6309,7 @@ function (_Component) {
|
|
|
6297
6309
|
width: width === 'auto' ? width : '100%',
|
|
6298
6310
|
height: height === 'auto' ? height : '100%'
|
|
6299
6311
|
};
|
|
6300
|
-
return _react["default"].createElement(Element, _extends({
|
|
6312
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6301
6313
|
ref: this.ref,
|
|
6302
6314
|
src: this.getSource(url),
|
|
6303
6315
|
style: style,
|
|
@@ -6327,7 +6339,7 @@ exports["default"] = _default;
|
|
|
6327
6339
|
});
|
|
6328
6340
|
|
|
6329
6341
|
unwrapExports(FilePlayer_1);
|
|
6330
|
-
|
|
6342
|
+
FilePlayer_1.FilePlayer;
|
|
6331
6343
|
|
|
6332
6344
|
var players = createCommonjsModule(function (module, exports) {
|
|
6333
6345
|
|
|
@@ -6387,12 +6399,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6387
6399
|
|
|
6388
6400
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6389
6401
|
|
|
6390
|
-
function
|
|
6402
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6391
6403
|
|
|
6392
|
-
function
|
|
6404
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6393
6405
|
|
|
6394
6406
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6395
6407
|
|
|
6408
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6409
|
+
|
|
6410
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6411
|
+
|
|
6396
6412
|
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); }
|
|
6397
6413
|
|
|
6398
6414
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6401,14 +6417,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6401
6417
|
|
|
6402
6418
|
var ICON_SIZE = '64px';
|
|
6403
6419
|
|
|
6404
|
-
var Preview =
|
|
6405
|
-
/*#__PURE__*/
|
|
6406
|
-
function (_Component) {
|
|
6420
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6407
6421
|
_inherits(Preview, _Component);
|
|
6408
6422
|
|
|
6409
|
-
|
|
6410
|
-
var _getPrototypeOf2;
|
|
6423
|
+
var _super = _createSuper(Preview);
|
|
6411
6424
|
|
|
6425
|
+
function Preview() {
|
|
6412
6426
|
var _this;
|
|
6413
6427
|
|
|
6414
6428
|
_classCallCheck(this, Preview);
|
|
@@ -6417,7 +6431,7 @@ function (_Component) {
|
|
|
6417
6431
|
args[_key] = arguments[_key];
|
|
6418
6432
|
}
|
|
6419
6433
|
|
|
6420
|
-
_this =
|
|
6434
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6421
6435
|
|
|
6422
6436
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6423
6437
|
|
|
@@ -6515,15 +6529,15 @@ function (_Component) {
|
|
|
6515
6529
|
}
|
|
6516
6530
|
};
|
|
6517
6531
|
|
|
6518
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6532
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6519
6533
|
style: styles.shadow,
|
|
6520
6534
|
className: "react-player__shadow"
|
|
6521
|
-
}, _react["default"].createElement("div", {
|
|
6535
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6536
|
style: styles.playIcon,
|
|
6523
6537
|
className: "react-player__play-icon"
|
|
6524
6538
|
}));
|
|
6525
6539
|
|
|
6526
|
-
return _react["default"].createElement("div", {
|
|
6540
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6527
6541
|
style: styles.preview,
|
|
6528
6542
|
className: "react-player__preview",
|
|
6529
6543
|
onClick: onClick
|
|
@@ -6560,6 +6574,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6560
6574
|
|
|
6561
6575
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6562
6576
|
|
|
6577
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6578
|
+
|
|
6579
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6580
|
+
|
|
6581
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6582
|
+
|
|
6563
6583
|
var PRELOAD_PLAYERS = [{
|
|
6564
6584
|
Player: YouTube_1.YouTube,
|
|
6565
6585
|
configKey: 'youtube',
|
|
@@ -6580,16 +6600,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6580
6600
|
|
|
6581
6601
|
function renderPreloadPlayers(url, controls, config) {
|
|
6582
6602
|
var players = [];
|
|
6583
|
-
|
|
6584
|
-
var
|
|
6585
|
-
|
|
6603
|
+
|
|
6604
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6605
|
+
_step;
|
|
6586
6606
|
|
|
6587
6607
|
try {
|
|
6588
|
-
for (
|
|
6608
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6589
6609
|
var player = _step.value;
|
|
6590
6610
|
|
|
6591
6611
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6592
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6612
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6593
6613
|
key: player.Player.displayName,
|
|
6594
6614
|
activePlayer: player.Player,
|
|
6595
6615
|
url: player.url,
|
|
@@ -6601,18 +6621,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6601
6621
|
}
|
|
6602
6622
|
}
|
|
6603
6623
|
} catch (err) {
|
|
6604
|
-
|
|
6605
|
-
_iteratorError = err;
|
|
6624
|
+
_iterator.e(err);
|
|
6606
6625
|
} finally {
|
|
6607
|
-
|
|
6608
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6609
|
-
_iterator["return"]();
|
|
6610
|
-
}
|
|
6611
|
-
} finally {
|
|
6612
|
-
if (_didIteratorError) {
|
|
6613
|
-
throw _iteratorError;
|
|
6614
|
-
}
|
|
6615
|
-
}
|
|
6626
|
+
_iterator.f();
|
|
6616
6627
|
}
|
|
6617
6628
|
|
|
6618
6629
|
return players;
|
|
@@ -6736,13 +6747,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6736
6747
|
|
|
6737
6748
|
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); }
|
|
6738
6749
|
|
|
6739
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6750
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6751
|
+
|
|
6752
|
+
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."); }
|
|
6740
6753
|
|
|
6741
|
-
function
|
|
6754
|
+
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); }
|
|
6742
6755
|
|
|
6743
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6756
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6744
6757
|
|
|
6745
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6758
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6759
|
+
|
|
6760
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6746
6761
|
|
|
6747
6762
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6748
6763
|
|
|
@@ -6750,12 +6765,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6750
6765
|
|
|
6751
6766
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6752
6767
|
|
|
6753
|
-
function
|
|
6768
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6754
6769
|
|
|
6755
|
-
function
|
|
6770
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6756
6771
|
|
|
6757
6772
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6758
6773
|
|
|
6774
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6775
|
+
|
|
6776
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6777
|
+
|
|
6759
6778
|
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); }
|
|
6760
6779
|
|
|
6761
6780
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6765,14 +6784,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6765
6784
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6766
6785
|
var customPlayers = [];
|
|
6767
6786
|
|
|
6768
|
-
var ReactPlayer =
|
|
6769
|
-
/*#__PURE__*/
|
|
6770
|
-
function (_Component) {
|
|
6787
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6771
6788
|
_inherits(ReactPlayer, _Component);
|
|
6772
6789
|
|
|
6773
|
-
|
|
6774
|
-
var _getPrototypeOf2;
|
|
6790
|
+
var _super = _createSuper(ReactPlayer);
|
|
6775
6791
|
|
|
6792
|
+
function ReactPlayer() {
|
|
6776
6793
|
var _this;
|
|
6777
6794
|
|
|
6778
6795
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6781,7 +6798,7 @@ function (_Component) {
|
|
|
6781
6798
|
args[_key] = arguments[_key];
|
|
6782
6799
|
}
|
|
6783
6800
|
|
|
6784
|
-
_this =
|
|
6801
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6785
6802
|
|
|
6786
6803
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6787
6804
|
|
|
@@ -6892,7 +6909,7 @@ function (_Component) {
|
|
|
6892
6909
|
key: "renderActivePlayer",
|
|
6893
6910
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6894
6911
|
if (!url) return null;
|
|
6895
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6912
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6896
6913
|
key: activePlayer.displayName,
|
|
6897
6914
|
ref: this.activePlayerRef,
|
|
6898
6915
|
config: this.config,
|
|
@@ -6929,14 +6946,14 @@ function (_Component) {
|
|
|
6929
6946
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6930
6947
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6931
6948
|
|
|
6932
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6949
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6933
6950
|
url: url,
|
|
6934
6951
|
light: light,
|
|
6935
6952
|
playIcon: playIcon,
|
|
6936
6953
|
onClick: this.handleClickPreview
|
|
6937
6954
|
});
|
|
6938
6955
|
|
|
6939
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6956
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6940
6957
|
ref: this.wrapperRef,
|
|
6941
6958
|
style: _objectSpread({}, style, {
|
|
6942
6959
|
width: width,
|
|
@@ -7263,8 +7280,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7263
7280
|
var duration = player.getDuration();
|
|
7264
7281
|
var queue = Math.floor(duration / 10);
|
|
7265
7282
|
var segment = Math.floor(current / queue);
|
|
7266
|
-
Beam.report_beam_video('Ready',
|
|
7267
|
-
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);
|
|
7268
7285
|
//autoplay
|
|
7269
7286
|
|
|
7270
7287
|
//Small pause before starting next video
|
|
@@ -7284,8 +7301,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7301
|
var queue = Math.floor(duration / 10);
|
|
7285
7302
|
var segment = Math.floor(current / queue);
|
|
7286
7303
|
|
|
7287
|
-
Beam.report_beam_video('End',
|
|
7288
|
-
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);
|
|
7289
7306
|
setEndReported(true);
|
|
7290
7307
|
clearInterval(intervalID);
|
|
7291
7308
|
}
|
|
@@ -7335,8 +7352,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7352
|
var queue = Math.floor(duration / 10);
|
|
7336
7353
|
var segment = Math.floor(current / queue);
|
|
7337
7354
|
if (!queueProgress.includes(segment)) {
|
|
7338
|
-
Beam.report_beam_video('Segment',
|
|
7339
|
-
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);
|
|
7340
7357
|
queueProgress.push(segment);
|
|
7341
7358
|
}
|
|
7342
7359
|
};
|
|
@@ -7349,8 +7366,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7366
|
var queue = Math.floor(duration / 10);
|
|
7350
7367
|
var segment = Math.floor(current / queue);
|
|
7351
7368
|
|
|
7352
|
-
Beam.report_beam_video('Play',
|
|
7353
|
-
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);
|
|
7354
7371
|
|
|
7355
7372
|
if (!playReported) {
|
|
7356
7373
|
setPlayReported(true);
|
|
@@ -7368,8 +7385,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7368
7385
|
var queue = Math.floor(duration / 10);
|
|
7369
7386
|
var segment = Math.floor(current / queue);
|
|
7370
7387
|
|
|
7371
|
-
Beam.report_beam_video('Pause',
|
|
7372
|
-
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);
|
|
7373
7390
|
};
|
|
7374
7391
|
|
|
7375
7392
|
// Youtube Options
|
|
@@ -7487,7 +7504,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7487
7504
|
React__default.createElement(
|
|
7488
7505
|
'div',
|
|
7489
7506
|
{ className: 'vid-text' },
|
|
7490
|
-
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()))
|
|
7491
7508
|
),
|
|
7492
7509
|
React__default.createElement(
|
|
7493
7510
|
'style',
|
|
@@ -7497,14 +7514,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7514
|
);
|
|
7498
7515
|
};
|
|
7499
7516
|
|
|
7500
|
-
var Poll = function Poll(_ref) {
|
|
7501
|
-
var node = _ref.node
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
onVote = _ref.onVote
|
|
7506
|
-
_ref
|
|
7507
|
-
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;
|
|
7508
7525
|
|
|
7509
7526
|
var _useState = useState(null),
|
|
7510
7527
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7638,22 +7655,22 @@ _export(_export.S, 'Object', {
|
|
|
7638
7655
|
}
|
|
7639
7656
|
});
|
|
7640
7657
|
|
|
7641
|
-
var values = _core.Object.values;
|
|
7658
|
+
var values$1 = _core.Object.values;
|
|
7642
7659
|
|
|
7643
|
-
var values
|
|
7644
|
-
module.exports = { "default": values, __esModule: true };
|
|
7660
|
+
var values = createCommonjsModule(function (module) {
|
|
7661
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7645
7662
|
});
|
|
7646
7663
|
|
|
7647
|
-
var _Object$values = unwrapExports(values
|
|
7664
|
+
var _Object$values = unwrapExports(values);
|
|
7648
7665
|
|
|
7649
|
-
var Poll
|
|
7650
|
-
var node = _ref.node
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
onVote = _ref.onVote
|
|
7655
|
-
_ref
|
|
7656
|
-
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;
|
|
7657
7674
|
|
|
7658
7675
|
var _useState = useState(null),
|
|
7659
7676
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7805,7 +7822,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7805
7822
|
);
|
|
7806
7823
|
};
|
|
7807
7824
|
|
|
7808
|
-
var numberOfPaginations =
|
|
7825
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7809
7826
|
|
|
7810
7827
|
var Quiz = function Quiz(_ref) {
|
|
7811
7828
|
var quizzes = _ref.quizzes,
|
|
@@ -7924,33 +7941,33 @@ var Quiz = function Quiz(_ref) {
|
|
|
7924
7941
|
|
|
7925
7942
|
var renderPagination = function renderPagination() {
|
|
7926
7943
|
return React__default.createElement(
|
|
7927
|
-
Pagination
|
|
7928
|
-
{ className: 'p-0 m-0', size:
|
|
7929
|
-
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() {
|
|
7930
7947
|
return changePage('first');
|
|
7931
7948
|
}, disabled: currentPage === 1 }),
|
|
7932
|
-
React__default.createElement(Pagination
|
|
7949
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7933
7950
|
return changePage('prev');
|
|
7934
7951
|
}, disabled: currentPage === 1 }),
|
|
7935
|
-
React__default.createElement(Pagination
|
|
7952
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7936
7953
|
return renderNewPages('prev');
|
|
7937
7954
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7938
7955
|
pages.map(function (page) {
|
|
7939
7956
|
return React__default.createElement(
|
|
7940
|
-
Pagination
|
|
7957
|
+
Pagination.Item,
|
|
7941
7958
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7942
7959
|
return changePage(page);
|
|
7943
7960
|
} },
|
|
7944
7961
|
page
|
|
7945
7962
|
);
|
|
7946
7963
|
}),
|
|
7947
|
-
React__default.createElement(Pagination
|
|
7964
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7948
7965
|
return renderNewPages('next');
|
|
7949
7966
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7950
|
-
React__default.createElement(Pagination
|
|
7967
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7951
7968
|
return changePage('next');
|
|
7952
7969
|
}, disabled: currentPage === pageCount }),
|
|
7953
|
-
React__default.createElement(Pagination
|
|
7970
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7954
7971
|
return changePage('last');
|
|
7955
7972
|
}, disabled: currentPage === pageCount })
|
|
7956
7973
|
);
|
|
@@ -8095,12 +8112,12 @@ var Leads = function Leads(_ref) {
|
|
|
8095
8112
|
);
|
|
8096
8113
|
};
|
|
8097
8114
|
|
|
8098
|
-
var urlFor$
|
|
8115
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8099
8116
|
var builder = imageUrlBuilder(client);
|
|
8100
8117
|
return builder.image(source).auto('format');
|
|
8101
8118
|
};
|
|
8102
8119
|
|
|
8103
|
-
var Slideshow
|
|
8120
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8104
8121
|
var slides = _ref.node.slides,
|
|
8105
8122
|
client = _ref.client,
|
|
8106
8123
|
pageview = _ref.pageview,
|
|
@@ -8112,8 +8129,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8112
8129
|
|
|
8113
8130
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8114
8131
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8115
|
-
carouselIndex = _useState2[0]
|
|
8116
|
-
|
|
8132
|
+
carouselIndex = _useState2[0];
|
|
8133
|
+
_useState2[1];
|
|
8117
8134
|
|
|
8118
8135
|
// useEffect(() => {
|
|
8119
8136
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8156,7 +8173,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8156
8173
|
React__default.createElement(
|
|
8157
8174
|
LazyLoad,
|
|
8158
8175
|
null,
|
|
8159
|
-
React__default.createElement('img', { src: urlFor$
|
|
8176
|
+
React__default.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8160
8177
|
)
|
|
8161
8178
|
),
|
|
8162
8179
|
React__default.createElement(
|
|
@@ -8247,7 +8264,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8247
8264
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8248
8265
|
React__default.createElement(
|
|
8249
8266
|
'a',
|
|
8250
|
-
_extends
|
|
8267
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8251
8268
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8252
8269
|
React__default.createElement(
|
|
8253
8270
|
'div',
|
|
@@ -8539,7 +8556,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8539
8556
|
|
|
8540
8557
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8541
8558
|
if (biography) {
|
|
8542
|
-
return React__default.createElement(BlockContent, _extends
|
|
8559
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8543
8560
|
}
|
|
8544
8561
|
};
|
|
8545
8562
|
|
|
@@ -8625,7 +8642,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8625
8642
|
//console.log('useLayoutEffect')
|
|
8626
8643
|
if (!firstLoad) {
|
|
8627
8644
|
setUpArrowClicked(false);
|
|
8628
|
-
if (
|
|
8645
|
+
if (main_43) {
|
|
8629
8646
|
grabLoadedAds();
|
|
8630
8647
|
} else {
|
|
8631
8648
|
scrollToArticle();
|
|
@@ -8649,7 +8666,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8649
8666
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8650
8667
|
if (pageview) pageview(path);
|
|
8651
8668
|
|
|
8652
|
-
if (!
|
|
8669
|
+
if (!main_43) {
|
|
8653
8670
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8654
8671
|
if (window.googletag && googletag.pubadsReady) {
|
|
8655
8672
|
lib_3.refresh();
|
|
@@ -8657,7 +8674,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8657
8674
|
});
|
|
8658
8675
|
}
|
|
8659
8676
|
//Refresh leaderboard ad on mobile
|
|
8660
|
-
if (
|
|
8677
|
+
if (main_43) {
|
|
8661
8678
|
var leaderboardSlotId = '';
|
|
8662
8679
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8663
8680
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8726,7 +8743,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8726
8743
|
React__default.createElement(
|
|
8727
8744
|
'div',
|
|
8728
8745
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8729
|
-
|
|
8746
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8730
8747
|
if (index === 0) {
|
|
8731
8748
|
return React__default.createElement(
|
|
8732
8749
|
'div',
|
|
@@ -8817,7 +8834,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8817
8834
|
React__default.createElement(
|
|
8818
8835
|
'div',
|
|
8819
8836
|
{ className: 'mt-2 mb-2' },
|
|
8820
|
-
React__default.createElement(BlockContent, _extends
|
|
8837
|
+
React__default.createElement(BlockContent, _extends({
|
|
8821
8838
|
serializers: getSerializers,
|
|
8822
8839
|
videoAccountIDs: accountIDs,
|
|
8823
8840
|
blocks: article.text,
|
|
@@ -8848,7 +8865,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8848
8865
|
React__default.createElement(
|
|
8849
8866
|
'div',
|
|
8850
8867
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8851
|
-
|
|
8868
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8852
8869
|
if (innerIndex === 0) {
|
|
8853
8870
|
return React__default.createElement(
|
|
8854
8871
|
'div',
|
|
@@ -8915,7 +8932,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8915
8932
|
);
|
|
8916
8933
|
};
|
|
8917
8934
|
|
|
8918
|
-
var urlFor$
|
|
8935
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8919
8936
|
var builder = imageUrlBuilder(client);
|
|
8920
8937
|
return builder.image(source).auto('format');
|
|
8921
8938
|
};
|
|
@@ -8945,10 +8962,10 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8945
8962
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8946
8963
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8947
8964
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8948
|
-
React__default.createElement('img', _extends
|
|
8965
|
+
React__default.createElement('img', _extends({
|
|
8949
8966
|
style: figureImageStyle,
|
|
8950
8967
|
className: 'figure-image',
|
|
8951
|
-
src: urlFor$
|
|
8968
|
+
src: urlFor$1(node, client).url(),
|
|
8952
8969
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8953
8970
|
}, !link && {
|
|
8954
8971
|
onClick: function onClick() {
|
|
@@ -9052,7 +9069,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9052
9069
|
};
|
|
9053
9070
|
|
|
9054
9071
|
var handleClickFigure = useCallback(function (node, client) {
|
|
9055
|
-
setLightboxImgSrc(urlFor$
|
|
9072
|
+
setLightboxImgSrc(urlFor$1(node, client).url());
|
|
9056
9073
|
setShowLightbox(true);
|
|
9057
9074
|
}, [node, client]);
|
|
9058
9075
|
|
|
@@ -9060,7 +9077,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9060
9077
|
React__default.Fragment,
|
|
9061
9078
|
null,
|
|
9062
9079
|
React__default.createElement(
|
|
9063
|
-
Figure$
|
|
9080
|
+
Figure$2,
|
|
9064
9081
|
{ className: '' + class_name, style: figureStyle },
|
|
9065
9082
|
link ? React__default.createElement(
|
|
9066
9083
|
'a',
|
|
@@ -9092,7 +9109,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9092
9109
|
|
|
9093
9110
|
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9094
9111
|
|
|
9095
|
-
var urlFor
|
|
9112
|
+
var urlFor = function urlFor(source, client) {
|
|
9096
9113
|
var builder = imageUrlBuilder(client);
|
|
9097
9114
|
return builder.image(source).auto('format');
|
|
9098
9115
|
};
|
|
@@ -9159,14 +9176,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9159
9176
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9160
9177
|
image.link ? React__default.createElement(
|
|
9161
9178
|
'a',
|
|
9162
|
-
_extends
|
|
9179
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9163
9180
|
React__default.createElement(
|
|
9164
9181
|
'div',
|
|
9165
9182
|
{ className: 'multi-figure-image-container' },
|
|
9166
9183
|
React__default.createElement(
|
|
9167
9184
|
LazyLoad,
|
|
9168
9185
|
{ once: true },
|
|
9169
|
-
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor
|
|
9186
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
|
|
9170
9187
|
),
|
|
9171
9188
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9172
9189
|
)
|
|
@@ -9179,10 +9196,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9179
9196
|
React__default.createElement('img', {
|
|
9180
9197
|
'images-count': images.length,
|
|
9181
9198
|
className: 'multi-figure-image',
|
|
9182
|
-
src: urlFor
|
|
9199
|
+
src: urlFor(image.asset, client).url(),
|
|
9183
9200
|
alt: image.alt,
|
|
9184
9201
|
onClick: function onClick() {
|
|
9185
|
-
setOpenImgSrc(urlFor
|
|
9202
|
+
setOpenImgSrc(urlFor(image, client).url());
|
|
9186
9203
|
setOpenImg(true);
|
|
9187
9204
|
}
|
|
9188
9205
|
})
|
|
@@ -9226,260 +9243,6 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9226
9243
|
);
|
|
9227
9244
|
};
|
|
9228
9245
|
|
|
9229
|
-
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9230
|
-
|
|
9231
|
-
exports.__esModule = true;
|
|
9232
|
-
|
|
9233
|
-
exports.default = function (obj, keys) {
|
|
9234
|
-
var target = {};
|
|
9235
|
-
|
|
9236
|
-
for (var i in obj) {
|
|
9237
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
9238
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9239
|
-
target[i] = obj[i];
|
|
9240
|
-
}
|
|
9241
|
-
|
|
9242
|
-
return target;
|
|
9243
|
-
};
|
|
9244
|
-
});
|
|
9245
|
-
|
|
9246
|
-
unwrapExports(objectWithoutProperties);
|
|
9247
|
-
|
|
9248
|
-
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9249
|
-
|
|
9250
|
-
exports.__esModule = true;
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
var _inherits3 = _interopRequireDefault(inherits);
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9279
|
-
|
|
9280
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9281
|
-
var noop = function noop() {};
|
|
9282
|
-
|
|
9283
|
-
var ScriptTag = function (_Component) {
|
|
9284
|
-
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9285
|
-
|
|
9286
|
-
ScriptTag.removeNode = function removeNode(node) {
|
|
9287
|
-
if (node) {
|
|
9288
|
-
node.parentNode.removeChild(node);
|
|
9289
|
-
}
|
|
9290
|
-
};
|
|
9291
|
-
|
|
9292
|
-
function ScriptTag(props, context) {
|
|
9293
|
-
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9294
|
-
|
|
9295
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9296
|
-
|
|
9297
|
-
_this.domRef = null;
|
|
9298
|
-
_this.state = {
|
|
9299
|
-
isHydrated: props.isHydrating,
|
|
9300
|
-
additionalNode: null,
|
|
9301
|
-
removeAdditionalNode: null
|
|
9302
|
-
};
|
|
9303
|
-
return _this;
|
|
9304
|
-
}
|
|
9305
|
-
|
|
9306
|
-
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9307
|
-
var _props = this.props,
|
|
9308
|
-
onError = _props.onError,
|
|
9309
|
-
onLoad = _props.onLoad,
|
|
9310
|
-
nonce = _props.nonce;
|
|
9311
|
-
|
|
9312
|
-
// Create a new HTML script element
|
|
9313
|
-
|
|
9314
|
-
var newElement = document.createElement("script");
|
|
9315
|
-
|
|
9316
|
-
// Copy all attribute values
|
|
9317
|
-
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9318
|
-
var attr = this.domRef.attributes[i];
|
|
9319
|
-
if (attr.nodeName === 'nonce') {
|
|
9320
|
-
// The browser clears the nonce value - grab from props
|
|
9321
|
-
newElement.setAttribute(attr.nodeName, nonce);
|
|
9322
|
-
} else {
|
|
9323
|
-
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9324
|
-
}
|
|
9325
|
-
}
|
|
9326
|
-
|
|
9327
|
-
// Copy the inner script
|
|
9328
|
-
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9329
|
-
newElement.innerHTML = this.domRef.innerHTML;
|
|
9330
|
-
}
|
|
9331
|
-
|
|
9332
|
-
// Bind event listeners
|
|
9333
|
-
newElement.addEventListener('load', onLoad);
|
|
9334
|
-
newElement.addEventListener('error', onError);
|
|
9335
|
-
|
|
9336
|
-
// Append the new script tag
|
|
9337
|
-
this.domRef.parentNode.appendChild(newElement);
|
|
9338
|
-
return newElement;
|
|
9339
|
-
};
|
|
9340
|
-
|
|
9341
|
-
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9342
|
-
var isHydrated = this.state.isHydrated;
|
|
9343
|
-
|
|
9344
|
-
if (isHydrated) {
|
|
9345
|
-
// was rendered on server, don't replace elements when hydrating
|
|
9346
|
-
return;
|
|
9347
|
-
}
|
|
9348
|
-
|
|
9349
|
-
this.setState({
|
|
9350
|
-
additionalNode: this.appendAdditionalElement(),
|
|
9351
|
-
removeAdditionalNode: null
|
|
9352
|
-
});
|
|
9353
|
-
};
|
|
9354
|
-
|
|
9355
|
-
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9356
|
-
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9357
|
-
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9358
|
-
|
|
9359
|
-
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9360
|
-
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9361
|
-
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9362
|
-
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9363
|
-
// This really complicates the component - for now we'll leave it as is.
|
|
9364
|
-
var _props2 = this.props,
|
|
9365
|
-
src = _props2.src,
|
|
9366
|
-
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9367
|
-
|
|
9368
|
-
if (src && src === nextProps.src) {
|
|
9369
|
-
// The 'src' attribute has not changed
|
|
9370
|
-
return;
|
|
9371
|
-
}
|
|
9372
|
-
|
|
9373
|
-
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9374
|
-
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9375
|
-
return;
|
|
9376
|
-
}
|
|
9377
|
-
|
|
9378
|
-
this.setState({
|
|
9379
|
-
removeAdditionalNode: this.state.additionalNode,
|
|
9380
|
-
additionalNode: null
|
|
9381
|
-
});
|
|
9382
|
-
};
|
|
9383
|
-
|
|
9384
|
-
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9385
|
-
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9386
|
-
};
|
|
9387
|
-
|
|
9388
|
-
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9389
|
-
var _state = this.state,
|
|
9390
|
-
additionalNode = _state.additionalNode,
|
|
9391
|
-
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9392
|
-
|
|
9393
|
-
if (additionalNode === null) {
|
|
9394
|
-
this.setState({
|
|
9395
|
-
additionalNode: this.appendAdditionalElement()
|
|
9396
|
-
});
|
|
9397
|
-
}
|
|
9398
|
-
|
|
9399
|
-
if (removeAdditionalNode !== null) {
|
|
9400
|
-
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9401
|
-
this.setState({
|
|
9402
|
-
removeAdditionalNode: null
|
|
9403
|
-
});
|
|
9404
|
-
}
|
|
9405
|
-
};
|
|
9406
|
-
|
|
9407
|
-
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9408
|
-
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9409
|
-
ScriptTag.removeNode(this.state.additionalNode);
|
|
9410
|
-
};
|
|
9411
|
-
|
|
9412
|
-
ScriptTag.prototype.render = function render() {
|
|
9413
|
-
var _this2 = this;
|
|
9414
|
-
|
|
9415
|
-
var additionalNode = this.state.additionalNode;
|
|
9416
|
-
|
|
9417
|
-
if (additionalNode !== null) {
|
|
9418
|
-
return null;
|
|
9419
|
-
}
|
|
9420
|
-
|
|
9421
|
-
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9422
|
-
// eslint-disable-next-line no-unused-vars
|
|
9423
|
-
var _props3 = this.props,
|
|
9424
|
-
isHydrating = _props3.isHydrating,
|
|
9425
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9426
|
-
|
|
9427
|
-
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9428
|
-
return _this2.domRef = tag;
|
|
9429
|
-
} }));
|
|
9430
|
-
};
|
|
9431
|
-
|
|
9432
|
-
return ScriptTag;
|
|
9433
|
-
}(React__default.Component);
|
|
9434
|
-
|
|
9435
|
-
ScriptTag.propTypes = {
|
|
9436
|
-
/**
|
|
9437
|
-
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9438
|
-
*/
|
|
9439
|
-
isHydrating: _propTypes2.default.bool,
|
|
9440
|
-
|
|
9441
|
-
// Standard <script> tag props
|
|
9442
|
-
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9443
|
-
crossOrigin: _propTypes2.default.string,
|
|
9444
|
-
defer: _propTypes2.default.bool,
|
|
9445
|
-
integrity: _propTypes2.default.string,
|
|
9446
|
-
nonce: _propTypes2.default.string,
|
|
9447
|
-
src: _propTypes2.default.string,
|
|
9448
|
-
text: _propTypes2.default.string,
|
|
9449
|
-
type: _propTypes2.default.string,
|
|
9450
|
-
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9451
|
-
|
|
9452
|
-
// globals
|
|
9453
|
-
onError: _propTypes2.default.func,
|
|
9454
|
-
onLoad: _propTypes2.default.func
|
|
9455
|
-
};
|
|
9456
|
-
ScriptTag.defaultProps = {
|
|
9457
|
-
isHydrating: false,
|
|
9458
|
-
onError: noop,
|
|
9459
|
-
onLoad: noop
|
|
9460
|
-
};
|
|
9461
|
-
exports.default = ScriptTag;
|
|
9462
|
-
});
|
|
9463
|
-
|
|
9464
|
-
unwrapExports(ScriptTag_1);
|
|
9465
|
-
|
|
9466
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
9467
|
-
|
|
9468
|
-
exports.__esModule = true;
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9473
|
-
|
|
9474
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9475
|
-
|
|
9476
|
-
exports.default = _ScriptTag2.default;
|
|
9477
|
-
});
|
|
9478
|
-
|
|
9479
|
-
var ScriptTag = unwrapExports(lib);
|
|
9480
|
-
|
|
9481
|
-
var enterpriseDomainName = 'mjhlifesciences';
|
|
9482
|
-
|
|
9483
9246
|
var FormAssembly = function FormAssembly(props) {
|
|
9484
9247
|
var _props$node = props.node,
|
|
9485
9248
|
FormID = _props$node.FormID,
|
|
@@ -9487,37 +9250,65 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9487
9250
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
9488
9251
|
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme;
|
|
9489
9252
|
|
|
9253
|
+
var formAssemblyRef = useRef(null);
|
|
9254
|
+
|
|
9490
9255
|
var _useState = useState(null),
|
|
9491
9256
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9492
|
-
|
|
9493
|
-
|
|
9257
|
+
htmlSnippet = _useState2[0],
|
|
9258
|
+
setHtmlSnippet = _useState2[1];
|
|
9494
9259
|
|
|
9495
9260
|
useEffect(function () {
|
|
9496
|
-
|
|
9497
|
-
var
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9261
|
+
_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
9262
|
+
var response, result;
|
|
9263
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
9264
|
+
while (1) {
|
|
9265
|
+
switch (_context.prev = _context.next) {
|
|
9266
|
+
case 0:
|
|
9267
|
+
_context.prev = 0;
|
|
9268
|
+
_context.next = 3;
|
|
9269
|
+
return fetch('/api/form_assembly?formid=' + FormID);
|
|
9270
|
+
|
|
9271
|
+
case 3:
|
|
9272
|
+
response = _context.sent;
|
|
9273
|
+
_context.next = 6;
|
|
9274
|
+
return response.json();
|
|
9275
|
+
|
|
9276
|
+
case 6:
|
|
9277
|
+
result = _context.sent;
|
|
9278
|
+
|
|
9279
|
+
setHtmlSnippet(result.data);
|
|
9280
|
+
_context.next = 13;
|
|
9281
|
+
break;
|
|
9282
|
+
|
|
9283
|
+
case 10:
|
|
9284
|
+
_context.prev = 10;
|
|
9285
|
+
_context.t0 = _context['catch'](0);
|
|
9286
|
+
|
|
9287
|
+
console.error(_context.t0);
|
|
9288
|
+
|
|
9289
|
+
case 13:
|
|
9290
|
+
case 'end':
|
|
9291
|
+
return _context.stop();
|
|
9292
|
+
}
|
|
9293
|
+
}
|
|
9294
|
+
}, _callee, this, [[0, 10]]);
|
|
9295
|
+
}))();
|
|
9509
9296
|
}, []);
|
|
9510
9297
|
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9298
|
+
useEffect(function () {
|
|
9299
|
+
setTimeout(function () {
|
|
9300
|
+
var form = formAssemblyRef && formAssemblyRef.current;
|
|
9301
|
+
if (htmlSnippet && form) {
|
|
9302
|
+
var anonymousIDField = form.querySelector('#tfa_1');
|
|
9303
|
+
var promoCodeField = form.querySelector('#tfa_2');
|
|
9304
|
+
var anonymousID = analytics.user() && analytics.user().anonymousId();
|
|
9305
|
+
if (anonymousID && needSegmentSupport && anonymousIDField) anonymousIDField.value = anonymousID;
|
|
9306
|
+
if (promoCodeField && Promocode) promoCodeField.value = Promocode;
|
|
9307
|
+
}
|
|
9308
|
+
}, 1000);
|
|
9309
|
+
}, [htmlSnippet]);
|
|
9310
|
+
|
|
9311
|
+
return htmlSnippet && React__default.createElement('div', { className: 'form-assembly', ref: formAssemblyRef, dangerouslySetInnerHTML: { __html: htmlSnippet } });
|
|
9521
9312
|
};
|
|
9522
9313
|
|
|
9523
9314
|
var BlockTable = function BlockTable(props) {
|
|
@@ -9564,7 +9355,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9564
9355
|
return React__default.createElement(
|
|
9565
9356
|
'div',
|
|
9566
9357
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9567
|
-
React__default.createElement(BlockContent, _extends
|
|
9358
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9568
9359
|
);
|
|
9569
9360
|
})
|
|
9570
9361
|
);
|
|
@@ -9692,7 +9483,7 @@ var getSerializers = function getSerializers() {
|
|
|
9692
9483
|
var node = _ref6.node;
|
|
9693
9484
|
var slides = node.slides;
|
|
9694
9485
|
|
|
9695
|
-
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9486
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9696
9487
|
},
|
|
9697
9488
|
sidebar: function sidebar(_ref7) {
|
|
9698
9489
|
var node = _ref7.node;
|
|
@@ -9730,12 +9521,12 @@ var getSerializers = function getSerializers() {
|
|
|
9730
9521
|
poll: function poll(_ref13) {
|
|
9731
9522
|
var node = _ref13.node;
|
|
9732
9523
|
|
|
9733
|
-
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9524
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9734
9525
|
},
|
|
9735
9526
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9736
9527
|
var node = _ref14.node;
|
|
9737
9528
|
|
|
9738
|
-
return React__default.createElement(Poll
|
|
9529
|
+
return React__default.createElement(Poll, {
|
|
9739
9530
|
node: node,
|
|
9740
9531
|
client: client,
|
|
9741
9532
|
pageview: pageview,
|
|
@@ -9761,7 +9552,7 @@ var getSerializers = function getSerializers() {
|
|
|
9761
9552
|
slideshows: function slideshows(_ref17) {
|
|
9762
9553
|
var node = _ref17.node;
|
|
9763
9554
|
|
|
9764
|
-
return React__default.createElement(Slideshow
|
|
9555
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9765
9556
|
},
|
|
9766
9557
|
nativeAd: function nativeAd(_ref18) {
|
|
9767
9558
|
var node = _ref18.node;
|