@mjhls/mjh-framework 1.0.840-beta.1 → 1.0.840-seomanager-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +31 -30
- package/dist/cjs/AD300x250x600.js +31 -30
- package/dist/cjs/AD728x90.js +34 -33
- package/dist/cjs/ADFloatingFooter.js +33 -32
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +33 -32
- package/dist/cjs/{ADInfeed-8d621d3c.js → ADInfeed-859820d9.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +33 -32
- package/dist/cjs/ADSponsoredResources.js +33 -32
- package/dist/cjs/ADWebcast.js +33 -32
- package/dist/cjs/ADWelcome.js +34 -33
- package/dist/cjs/{ADlgInfeed-0e26bccb.js → ADlgInfeed-da3a36a6.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +36 -35
- package/dist/cjs/AdSlotsProvider.js +21 -916
- package/dist/cjs/AlgoliaSearch.js +1371 -1276
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +63 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +43 -42
- package/dist/cjs/ArticleSeriesListing.js +62 -61
- package/dist/cjs/Auth.js +686 -462
- package/dist/cjs/AuthWrapper.js +1739 -423
- 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 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +62 -59
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +94 -90
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-93399f8c.js} +35 -34
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +81 -80
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +43 -42
- package/dist/cjs/GridContent.js +190 -304
- package/dist/cjs/GridHero.js +45 -44
- package/dist/cjs/GroupDeck.js +60 -59
- package/dist/cjs/HamMagazine.js +146 -141
- 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 +73 -72
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +78 -73
- package/dist/cjs/IssueDeck.js +77 -72
- package/dist/cjs/IssueLanding.js +96 -95
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -39
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/MediaSeriesLanding.js +1232 -1141
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +153 -148
- package/dist/cjs/NavNative.js +147 -139
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +73 -72
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +125 -3957
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +43 -42
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +67 -62
- package/dist/cjs/PublicationLanding.js +139 -135
- package/dist/cjs/QueueDeckExpanded.js +310 -310
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +55 -54
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- 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 -38
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-34c6cc2b.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -38
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-948138c7.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +64 -59
- package/dist/cjs/TaxonomyDescription.js +56 -55
- package/dist/cjs/TemplateNormal.js +75 -74
- package/dist/cjs/ThumbnailCard.js +23 -21
- package/dist/cjs/Ustream.js +31 -30
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoProgramLandingPage.js +80 -76
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +52 -51
- package/dist/cjs/VideoSeriesListing.js +81 -82
- package/dist/cjs/View.js +310 -265
- package/dist/cjs/YahooHero.js +42 -41
- package/dist/cjs/YoutubeGroup.js +67 -66
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/faundadb.js +21 -21
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +8 -8
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-be6168ad.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-1d6b1687.js → index-060c5d65.js} +997 -1025
- package/dist/cjs/{index-e2e62963.js → index-50be6759.js} +26 -10
- 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-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
- package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
- package/dist/cjs/index.js +169 -164
- package/dist/cjs/{inherits-1f5a1c72.js → inherits-c2065b95.js} +20 -20
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-b566ce41.js → ADInfeed-4bf3b2f9.js} +6 -6
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +20 -20
- package/dist/esm/{ADlgInfeed-5eb7281d.js → ADlgInfeed-a3377c4a.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +24 -24
- package/dist/esm/AdSlotsProvider.js +17 -913
- package/dist/esm/AlgoliaSearch.js +599 -505
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +50 -50
- package/dist/esm/ArticleSeriesLandingPage.js +32 -32
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/Auth.js +595 -375
- package/dist/esm/AuthWrapper.js +1711 -396
- 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 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +39 -39
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +57 -57
- package/dist/esm/DeckQueue.js +50 -50
- package/dist/esm/{Dfp-b7236041.js → Dfp-2c43d2a0.js} +15 -15
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +48 -48
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +82 -200
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +39 -39
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -47
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +84 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +22 -22
- package/dist/esm/MasterDeck.js +45 -45
- package/dist/esm/MediaSeriesLanding.js +751 -663
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +44 -44
- package/dist/esm/NavNative.js +43 -43
- package/dist/esm/OncliveHero.js +4 -5
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +75 -3907
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +34 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +24 -24
- package/dist/esm/PublicationLanding.js +76 -76
- package/dist/esm/QueueDeckExpanded.js +38 -38
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +35 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-5d5c08f4.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-db963c3e.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +50 -50
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +54 -54
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +37 -39
- package/dist/esm/View.js +140 -99
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
- package/dist/esm/{index-44f4646f.js → index-01d53c17.js} +639 -674
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-aaa2dae0.js → index-98ca9cec.js} +26 -11
- package/dist/esm/{index-41a678ea.js → index-f0fc23eb.js} +4 -4
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
- package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
- package/dist/esm/index.js +124 -122
- package/dist/esm/{inherits-cf8dde54.js → inherits-a41fe93f.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- 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 +110 -111
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,37 +1,37 @@
|
|
|
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 Row$1 from 'react-bootstrap/Row';
|
|
11
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
-
import Router, { useRouter } from 'next/router';
|
|
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';
|
|
14
4
|
import urlFor from './urlFor.js';
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
5
|
+
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
6
|
+
import Router, { useRouter } from 'next/router';
|
|
24
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, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
16
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
25
19
|
import GroupDeck from './GroupDeck.js';
|
|
26
|
-
import {
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
-
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
30
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
31
21
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
+
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
+
import DFPAdSlot from './AdSlot.js';
|
|
29
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
+
import Head from 'next/head';
|
|
32
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
37
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -39,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
39
39
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var Slideshow = function Slideshow(_ref) {
|
|
42
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
43
43
|
var slides = _ref.slides,
|
|
44
44
|
client = _ref.client,
|
|
45
45
|
pageview = _ref.pageview;
|
|
@@ -78,14 +78,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
78
78
|
return React__default.createElement(
|
|
79
79
|
Carousel.Item,
|
|
80
80
|
{ key: slide._key },
|
|
81
|
-
React__default.createElement(
|
|
82
|
-
'picture',
|
|
83
|
-
null,
|
|
84
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
-
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
88
|
-
),
|
|
81
|
+
React__default.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
89
82
|
slide.caption && React__default.createElement(
|
|
90
83
|
'p',
|
|
91
84
|
{ className: 'p-2' },
|
|
@@ -97,21 +90,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
90
|
);
|
|
98
91
|
};
|
|
99
92
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
// do not edit .js files directly - edit src/index.jst
|
|
94
|
+
|
|
95
|
+
|
|
103
96
|
|
|
104
97
|
var fastDeepEqual = function equal(a, b) {
|
|
105
98
|
if (a === b) return true;
|
|
106
99
|
|
|
107
100
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
101
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
102
|
|
|
114
|
-
|
|
103
|
+
var length, i, keys;
|
|
104
|
+
if (Array.isArray(a)) {
|
|
115
105
|
length = a.length;
|
|
116
106
|
if (length != b.length) return false;
|
|
117
107
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +109,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
109
|
return true;
|
|
120
110
|
}
|
|
121
111
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
112
|
|
|
124
|
-
var dateA = a instanceof Date
|
|
125
|
-
, dateB = b instanceof Date;
|
|
126
|
-
if (dateA != dateB) return false;
|
|
127
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
128
113
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
114
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
115
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
116
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
117
|
|
|
134
|
-
|
|
118
|
+
keys = Object.keys(a);
|
|
135
119
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
120
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
121
|
|
|
140
122
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
123
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
124
|
|
|
143
125
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
126
|
+
var key = keys[i];
|
|
127
|
+
|
|
145
128
|
if (!equal(a[key], b[key])) return false;
|
|
146
129
|
}
|
|
147
130
|
|
|
148
131
|
return true;
|
|
149
132
|
}
|
|
150
133
|
|
|
134
|
+
// true if both NaN, false otherwise
|
|
151
135
|
return a!==a && b!==b;
|
|
152
136
|
};
|
|
153
137
|
|
|
@@ -685,14 +669,14 @@ function coerce(val) {
|
|
|
685
669
|
return val;
|
|
686
670
|
}
|
|
687
671
|
});
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
672
|
+
debug.coerce;
|
|
673
|
+
debug.disable;
|
|
674
|
+
debug.enable;
|
|
675
|
+
debug.enabled;
|
|
676
|
+
debug.humanize;
|
|
677
|
+
debug.names;
|
|
678
|
+
debug.skips;
|
|
679
|
+
debug.formatters;
|
|
696
680
|
|
|
697
681
|
var browser = createCommonjsModule(function (module, exports) {
|
|
698
682
|
/**
|
|
@@ -881,13 +865,13 @@ function localstorage() {
|
|
|
881
865
|
} catch (e) {}
|
|
882
866
|
}
|
|
883
867
|
});
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
868
|
+
browser.log;
|
|
869
|
+
browser.formatArgs;
|
|
870
|
+
browser.save;
|
|
871
|
+
browser.load;
|
|
872
|
+
browser.useColors;
|
|
873
|
+
browser.storage;
|
|
874
|
+
browser.colors;
|
|
891
875
|
|
|
892
876
|
// MIT lisence
|
|
893
877
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1162,14 +1146,14 @@ function init (debug) {
|
|
|
1162
1146
|
|
|
1163
1147
|
exports.enable(load());
|
|
1164
1148
|
});
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1149
|
+
node.init;
|
|
1150
|
+
node.log;
|
|
1151
|
+
node.formatArgs;
|
|
1152
|
+
node.save;
|
|
1153
|
+
node.load;
|
|
1154
|
+
node.useColors;
|
|
1155
|
+
node.colors;
|
|
1156
|
+
node.inspectOpts;
|
|
1173
1157
|
|
|
1174
1158
|
var src = createCommonjsModule(function (module) {
|
|
1175
1159
|
/**
|
|
@@ -1570,199 +1554,239 @@ module.exports = exports['default'];
|
|
|
1570
1554
|
|
|
1571
1555
|
var youTubePlayer = unwrapExports(dist);
|
|
1572
1556
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1557
|
+
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); }
|
|
1576
1558
|
|
|
1577
1559
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1560
|
|
|
1579
|
-
function
|
|
1561
|
+
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); } }
|
|
1562
|
+
|
|
1563
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1564
|
+
|
|
1565
|
+
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); }
|
|
1566
|
+
|
|
1567
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1568
|
+
|
|
1569
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1580
1570
|
|
|
1581
|
-
function
|
|
1571
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1572
|
+
|
|
1573
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1574
|
+
|
|
1575
|
+
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; } }
|
|
1576
|
+
|
|
1577
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1578
|
+
|
|
1579
|
+
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; }
|
|
1580
|
+
|
|
1581
|
+
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; }
|
|
1582
1582
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object}
|
|
1583
|
+
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; }
|
|
1584
|
+
/**
|
|
1585
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1586
|
+
*
|
|
1587
|
+
* @param {Object} prevProps
|
|
1588
|
+
* @param {Object} props
|
|
1588
1589
|
*/
|
|
1590
|
+
|
|
1589
1591
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1592
|
// A changing video should always trigger an update
|
|
1591
1593
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1594
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1596
|
// update.
|
|
1597
|
+
|
|
1598
|
+
|
|
1597
1599
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1600
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1601
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1602
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1609
1609
|
*/
|
|
1610
|
+
|
|
1611
|
+
|
|
1610
1612
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1613
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1614
|
+
playerVars: _objectSpread({
|
|
1613
1615
|
autoplay: 0,
|
|
1614
1616
|
start: 0,
|
|
1615
1617
|
end: 0
|
|
1616
|
-
})
|
|
1618
|
+
}, opts.playerVars)
|
|
1617
1619
|
});
|
|
1618
1620
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1621
|
+
/**
|
|
1622
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
+
* those.
|
|
1626
|
+
*
|
|
1627
|
+
* @param {Object} prevProps
|
|
1628
|
+
* @param {Object} props
|
|
1628
1629
|
*/
|
|
1630
|
+
|
|
1631
|
+
|
|
1629
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1634
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1635
|
+
/**
|
|
1636
|
+
* Check whether a props change should result in an id or className update.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1638
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1639
1643
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1644
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1645
|
}
|
|
1642
1646
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1647
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1648
|
_inherits(YouTube, _React$Component);
|
|
1645
1649
|
|
|
1650
|
+
var _super = _createSuper(YouTube);
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1654
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1655
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1656
|
+
*/
|
|
1646
1657
|
function YouTube(props) {
|
|
1658
|
+
var _this;
|
|
1659
|
+
|
|
1647
1660
|
_classCallCheck(this, YouTube);
|
|
1648
1661
|
|
|
1649
|
-
|
|
1662
|
+
_this = _super.call(this, props);
|
|
1650
1663
|
|
|
1651
|
-
_this
|
|
1664
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1665
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1666
|
+
});
|
|
1654
1667
|
|
|
1655
|
-
_this
|
|
1668
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1669
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1670
|
+
});
|
|
1658
1671
|
|
|
1659
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1673
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1674
|
|
|
1675
|
+
switch (event.data) {
|
|
1663
1676
|
case YouTube.PlayerState.ENDED:
|
|
1664
1677
|
_this.props.onEnd(event);
|
|
1678
|
+
|
|
1665
1679
|
break;
|
|
1666
1680
|
|
|
1667
1681
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1682
|
_this.props.onPlay(event);
|
|
1683
|
+
|
|
1669
1684
|
break;
|
|
1670
1685
|
|
|
1671
1686
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1687
|
_this.props.onPause(event);
|
|
1688
|
+
|
|
1673
1689
|
break;
|
|
1674
1690
|
}
|
|
1675
|
-
};
|
|
1691
|
+
});
|
|
1676
1692
|
|
|
1677
|
-
_this
|
|
1693
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1694
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1695
|
+
});
|
|
1680
1696
|
|
|
1681
|
-
_this
|
|
1697
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1698
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1699
|
+
});
|
|
1684
1700
|
|
|
1685
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1702
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1703
|
+
if (typeof document === 'undefined') return; // create player
|
|
1704
|
+
|
|
1705
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1706
|
// preload the `videoId` video if one is already given
|
|
1691
1707
|
videoId: _this.props.videoId
|
|
1692
1708
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1709
|
+
|
|
1710
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1711
|
+
|
|
1695
1712
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
+
|
|
1696
1714
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
+
|
|
1697
1716
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
+
|
|
1698
1718
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
+
|
|
1699
1720
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1721
|
+
});
|
|
1701
1722
|
|
|
1702
|
-
_this
|
|
1723
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1724
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1725
|
+
});
|
|
1705
1726
|
|
|
1706
|
-
_this
|
|
1727
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1728
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1729
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1730
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1731
|
});
|
|
1711
|
-
};
|
|
1732
|
+
});
|
|
1733
|
+
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1735
|
+
return _this.internalPlayer;
|
|
1736
|
+
});
|
|
1712
1737
|
|
|
1713
|
-
_this
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1739
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1740
|
_this.internalPlayer.stopVideo();
|
|
1741
|
+
|
|
1716
1742
|
return;
|
|
1717
|
-
}
|
|
1743
|
+
} // set queueing options
|
|
1744
|
+
|
|
1718
1745
|
|
|
1719
|
-
// set queueing options
|
|
1720
1746
|
var autoplay = false;
|
|
1721
1747
|
var opts = {
|
|
1722
1748
|
videoId: _this.props.videoId
|
|
1723
1749
|
};
|
|
1750
|
+
|
|
1724
1751
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1752
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
+
|
|
1726
1754
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1755
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1756
|
}
|
|
1757
|
+
|
|
1729
1758
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1759
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1760
|
}
|
|
1732
|
-
}
|
|
1761
|
+
} // if autoplay is enabled loadVideoById
|
|
1762
|
+
|
|
1733
1763
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1764
|
if (autoplay) {
|
|
1736
1765
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
+
|
|
1737
1767
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1768
|
+
} // default behaviour just cues the video
|
|
1769
|
+
|
|
1770
|
+
|
|
1740
1771
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1772
|
+
});
|
|
1742
1773
|
|
|
1743
|
-
_this
|
|
1774
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1775
|
_this.container = container;
|
|
1745
|
-
};
|
|
1776
|
+
});
|
|
1746
1777
|
|
|
1747
1778
|
_this.container = null;
|
|
1748
1779
|
_this.internalPlayer = null;
|
|
1749
1780
|
return _this;
|
|
1750
1781
|
}
|
|
1751
1782
|
|
|
1752
|
-
/**
|
|
1753
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
-
*/
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
1783
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1784
|
+
key: "componentDidMount",
|
|
1761
1785
|
value: function componentDidMount() {
|
|
1762
1786
|
this.createPlayer();
|
|
1763
1787
|
}
|
|
1764
1788
|
}, {
|
|
1765
|
-
key:
|
|
1789
|
+
key: "componentDidUpdate",
|
|
1766
1790
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1791
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1792
|
this.updatePlayer();
|
|
@@ -1777,112 +1801,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1801
|
}
|
|
1778
1802
|
}
|
|
1779
1803
|
}, {
|
|
1780
|
-
key:
|
|
1804
|
+
key: "componentWillUnmount",
|
|
1781
1805
|
value: function componentWillUnmount() {
|
|
1782
|
-
/**
|
|
1783
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1784
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
-
* this method isn't quick enough to reset the container element.
|
|
1806
|
+
/**
|
|
1807
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1808
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1809
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1810
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1811
|
*/
|
|
1788
1812
|
this.internalPlayer.destroy();
|
|
1789
1813
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
* @param {Object} target - player object
|
|
1796
|
-
*/
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
-
*
|
|
1802
|
-
* @param {Object} event
|
|
1803
|
-
* @param {Integer} data - error type
|
|
1804
|
-
* @param {Object} target - player object
|
|
1805
|
-
*/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
-
*
|
|
1811
|
-
* @param {Object} event
|
|
1812
|
-
* @param {Integer} data - status change type
|
|
1813
|
-
* @param {Object} target - actual YT player
|
|
1814
|
-
*/
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
-
*
|
|
1820
|
-
* @param {Object} event
|
|
1821
|
-
* @param {Float} data - playback rate
|
|
1822
|
-
* @param {Object} target - actual YT player
|
|
1823
|
-
*/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
-
*
|
|
1829
|
-
* @param {Object} event
|
|
1830
|
-
* @param {String} data - playback quality
|
|
1831
|
-
* @param {Object} target - actual YT player
|
|
1832
|
-
*/
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
-
*/
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
-
* React should update this automatically but since the Youtube Player API
|
|
1848
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
-
*/
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
-
* Youtube Player API methods to update the video.
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Object} target - player object
|
|
1856
1819
|
*/
|
|
1857
1820
|
|
|
1858
1821
|
}, {
|
|
1859
|
-
key:
|
|
1822
|
+
key: "render",
|
|
1860
1823
|
value: function render() {
|
|
1861
|
-
return React__default.createElement(
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1824
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1825
|
+
className: this.props.containerClassName
|
|
1826
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1827
|
+
id: this.props.id,
|
|
1828
|
+
className: this.props.className,
|
|
1829
|
+
ref: this.refContainer
|
|
1830
|
+
}));
|
|
1866
1831
|
}
|
|
1867
1832
|
}]);
|
|
1868
1833
|
|
|
1869
1834
|
return YouTube;
|
|
1870
1835
|
}(React__default.Component);
|
|
1871
1836
|
|
|
1837
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
+
UNSTARTED: -1,
|
|
1839
|
+
ENDED: 0,
|
|
1840
|
+
PLAYING: 1,
|
|
1841
|
+
PAUSED: 2,
|
|
1842
|
+
BUFFERING: 3,
|
|
1843
|
+
CUED: 5
|
|
1844
|
+
});
|
|
1845
|
+
|
|
1872
1846
|
YouTube.propTypes = {
|
|
1873
1847
|
videoId: PropTypes.string,
|
|
1874
|
-
|
|
1875
1848
|
// custom ID for player element
|
|
1876
1849
|
id: PropTypes.string,
|
|
1877
|
-
|
|
1878
1850
|
// custom class name for player element
|
|
1879
1851
|
className: PropTypes.string,
|
|
1880
1852
|
// custom class name for player container element
|
|
1881
1853
|
containerClassName: PropTypes.string,
|
|
1882
|
-
|
|
1883
1854
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1855
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
-
|
|
1886
1856
|
// event subscriptions
|
|
1887
1857
|
onReady: PropTypes.func,
|
|
1888
1858
|
onError: PropTypes.func,
|
|
@@ -1894,6 +1864,7 @@ YouTube.propTypes = {
|
|
|
1894
1864
|
onPlaybackQualityChange: PropTypes.func
|
|
1895
1865
|
};
|
|
1896
1866
|
YouTube.defaultProps = {
|
|
1867
|
+
videoId: null,
|
|
1897
1868
|
id: null,
|
|
1898
1869
|
className: null,
|
|
1899
1870
|
opts: {},
|
|
@@ -1907,14 +1878,6 @@ YouTube.defaultProps = {
|
|
|
1907
1878
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1879
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1880
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1881
|
|
|
1919
1882
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1883
|
var url = _ref.url,
|
|
@@ -1953,8 +1916,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1916
|
var duration = player.getDuration();
|
|
1954
1917
|
var queue = Math.floor(duration / 10);
|
|
1955
1918
|
var segment = Math.floor(current / queue);
|
|
1956
|
-
Beam.report_beam_video('Ready',
|
|
1957
|
-
Segment.report_video_event('Video Ready',
|
|
1919
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1920
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1958
1921
|
};
|
|
1959
1922
|
|
|
1960
1923
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1964,8 +1927,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1964
1927
|
var segment = Math.floor(current / queue);
|
|
1965
1928
|
|
|
1966
1929
|
if (!queueProgress.includes(segment)) {
|
|
1967
|
-
Beam.report_beam_video('Segment',
|
|
1968
|
-
Segment.report_video_event('Video Segment',
|
|
1930
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1931
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1969
1932
|
queueProgress.push(segment);
|
|
1970
1933
|
}
|
|
1971
1934
|
};
|
|
@@ -1978,8 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1941
|
var queue = Math.floor(duration / 10);
|
|
1979
1942
|
var segment = Math.floor(current / queue);
|
|
1980
1943
|
|
|
1981
|
-
Beam.report_beam_video('Play',
|
|
1982
|
-
Segment.report_video_event('Video Play',
|
|
1944
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1945
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1983
1946
|
|
|
1984
1947
|
if (!playReported) {
|
|
1985
1948
|
setPlayReported(true);
|
|
@@ -1998,8 +1961,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1998
1961
|
var queue = Math.floor(duration / 10);
|
|
1999
1962
|
var segment = Math.floor(current / queue);
|
|
2000
1963
|
|
|
2001
|
-
Beam.report_beam_video('End',
|
|
2002
|
-
Segment.report_video_event('Video End',
|
|
1964
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1965
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2003
1966
|
setEndReported(true);
|
|
2004
1967
|
clearInterval(intervalID);
|
|
2005
1968
|
}
|
|
@@ -2012,8 +1975,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
1975
|
var queue = Math.floor(duration / 10);
|
|
2013
1976
|
var segment = Math.floor(current / queue);
|
|
2014
1977
|
|
|
2015
|
-
Beam.report_beam_video('Pause',
|
|
2016
|
-
Segment.report_video_event('Video Pause',
|
|
1978
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1979
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2017
1980
|
};
|
|
2018
1981
|
|
|
2019
1982
|
return React__default.createElement(
|
|
@@ -2175,14 +2138,7 @@ var Media = function Media(_ref) {
|
|
|
2175
2138
|
React__default.createElement(
|
|
2176
2139
|
LazyLoad,
|
|
2177
2140
|
{ once: true },
|
|
2178
|
-
React__default.createElement(
|
|
2179
|
-
'picture',
|
|
2180
|
-
null,
|
|
2181
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2182
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2183
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2184
|
-
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
|
-
)
|
|
2141
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2186
2142
|
),
|
|
2187
2143
|
caption && React__default.createElement(
|
|
2188
2144
|
Figure$1.Caption,
|
|
@@ -2194,7 +2150,7 @@ var Media = function Media(_ref) {
|
|
|
2194
2150
|
} else if (caption && caption !== '') {
|
|
2195
2151
|
return React__default.createElement(
|
|
2196
2152
|
'a',
|
|
2197
|
-
_extends
|
|
2153
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
2199
2155
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2200
2156
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2249,8 +2205,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2205
|
var duration = player.duration;
|
|
2250
2206
|
var queue = Math.floor(duration / 10);
|
|
2251
2207
|
var segment = Math.floor(current / queue);
|
|
2252
|
-
Beam.report_beam_video('Ready',
|
|
2253
|
-
Segment.report_video_event('Video Ready',
|
|
2208
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2209
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2254
2210
|
};
|
|
2255
2211
|
|
|
2256
2212
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2259,8 +2215,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2259
2215
|
var queue = Math.floor(duration / 10);
|
|
2260
2216
|
var segment = Math.floor(current / queue);
|
|
2261
2217
|
if (!queueProgress.includes(segment)) {
|
|
2262
|
-
Beam.report_beam_video('Segment',
|
|
2263
|
-
Segment.report_video_event('Video Segment',
|
|
2218
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2219
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2264
2220
|
queueProgress.push(segment);
|
|
2265
2221
|
}
|
|
2266
2222
|
};
|
|
@@ -2272,8 +2228,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2272
2228
|
var duration = player.duration;
|
|
2273
2229
|
var queue = Math.floor(duration / 10);
|
|
2274
2230
|
var segment = Math.floor(current / queue);
|
|
2275
|
-
Beam.report_beam_video('Play',
|
|
2276
|
-
Segment.report_video_event('Video Play',
|
|
2231
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2232
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2277
2233
|
|
|
2278
2234
|
if (!playReported) {
|
|
2279
2235
|
event.persist();
|
|
@@ -2293,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2293
2249
|
var queue = Math.floor(duration / 10);
|
|
2294
2250
|
var segment = Math.floor(current / queue);
|
|
2295
2251
|
|
|
2296
|
-
Beam.report_beam_video('End',
|
|
2297
|
-
Segment.report_video_event('Video End',
|
|
2252
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2253
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2298
2254
|
setEndReported(true);
|
|
2299
2255
|
clearInterval(intervalID);
|
|
2300
2256
|
}
|
|
@@ -2306,8 +2262,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2306
2262
|
var duration = player.duration - current;
|
|
2307
2263
|
var queue = Math.floor(duration / 10);
|
|
2308
2264
|
var segment = Math.floor(current / queue);
|
|
2309
|
-
Beam.report_beam_video('Pause',
|
|
2310
|
-
Segment.report_video_event('Video Pause',
|
|
2265
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2266
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2311
2267
|
};
|
|
2312
2268
|
|
|
2313
2269
|
return React__default.createElement(
|
|
@@ -2368,7 +2324,7 @@ var Video = function Video(_ref) {
|
|
|
2368
2324
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2369
2325
|
//console.log('success:', success.ref)
|
|
2370
2326
|
var player = success.ref;
|
|
2371
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2327
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2372
2328
|
player.ima3.settings.debug = true;
|
|
2373
2329
|
if (targeting.content_placement && targeting.document_url) {
|
|
2374
2330
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2396,8 +2352,8 @@ var Video = function Video(_ref) {
|
|
|
2396
2352
|
player.pause();
|
|
2397
2353
|
}
|
|
2398
2354
|
|
|
2399
|
-
Beam.report_beam_video('Ready',
|
|
2400
|
-
Segment.report_video_event('Video Ready',
|
|
2355
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2356
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2401
2357
|
});
|
|
2402
2358
|
|
|
2403
2359
|
// play
|
|
@@ -2406,8 +2362,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2362
|
var current = player.currentTime();
|
|
2407
2363
|
var queue = Math.floor(duration / 10);
|
|
2408
2364
|
var segment = Math.floor(current / queue);
|
|
2409
|
-
Beam.report_beam_video('Play',
|
|
2410
|
-
Segment.report_video_event('Video Play',
|
|
2365
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2366
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2411
2367
|
});
|
|
2412
2368
|
|
|
2413
2369
|
// pause
|
|
@@ -2416,8 +2372,8 @@ var Video = function Video(_ref) {
|
|
|
2416
2372
|
var current = player.currentTime();
|
|
2417
2373
|
var queue = Math.floor(duration / 10);
|
|
2418
2374
|
var segment = Math.floor(current / queue);
|
|
2419
|
-
Beam.report_beam_video('Pause',
|
|
2420
|
-
Segment.report_video_event('Video Pause',
|
|
2375
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2376
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2421
2377
|
});
|
|
2422
2378
|
|
|
2423
2379
|
// end
|
|
@@ -2426,8 +2382,8 @@ var Video = function Video(_ref) {
|
|
|
2426
2382
|
var current = player.currentTime();
|
|
2427
2383
|
var queue = Math.floor(duration / 10);
|
|
2428
2384
|
var segment = Math.floor(current / queue);
|
|
2429
|
-
Beam.report_beam_video('End',
|
|
2430
|
-
Segment.report_video_event('Video End',
|
|
2385
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2386
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2431
2387
|
autoplayNextVideo(evt);
|
|
2432
2388
|
});
|
|
2433
2389
|
|
|
@@ -2438,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2438
2394
|
var queue = Math.floor(duration / 10);
|
|
2439
2395
|
var segment = Math.floor(current / queue);
|
|
2440
2396
|
if (!queueProgress.includes(segment)) {
|
|
2441
|
-
Beam.report_beam_video('Segment',
|
|
2442
|
-
Segment.report_video_event('Video Segment',
|
|
2397
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2443
2399
|
queueProgress.push(segment);
|
|
2444
2400
|
}
|
|
2445
2401
|
});
|
|
@@ -2450,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2450
2406
|
var id = player.ads.ad.id;
|
|
2451
2407
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2452
2408
|
|
|
2453
|
-
Beam.report_beam_ad('AD Started',
|
|
2454
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2409
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2410
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2455
2411
|
});
|
|
2456
2412
|
|
|
2457
2413
|
// ad ended
|
|
@@ -2459,8 +2415,8 @@ var Video = function Video(_ref) {
|
|
|
2459
2415
|
var duration = player.ads.ad.duration;
|
|
2460
2416
|
var id = player.ads.ad.id;
|
|
2461
2417
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2462
|
-
Beam.report_beam_ad('AD Ended',
|
|
2463
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2418
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2419
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2464
2420
|
});
|
|
2465
2421
|
};
|
|
2466
2422
|
|
|
@@ -2723,9 +2679,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2723
2679
|
});
|
|
2724
2680
|
|
|
2725
2681
|
unwrapExports(props);
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2682
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
+
props.defaultProps;
|
|
2684
|
+
props.propTypes;
|
|
2729
2685
|
|
|
2730
2686
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2731
2687
|
return isNonNullObject(value)
|
|
@@ -2890,11 +2846,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2890
2846
|
|
|
2891
2847
|
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; }
|
|
2892
2848
|
|
|
2893
|
-
function
|
|
2849
|
+
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; } } }; }
|
|
2850
|
+
|
|
2851
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2852
|
+
|
|
2853
|
+
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."); }
|
|
2894
2854
|
|
|
2895
|
-
function
|
|
2855
|
+
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); }
|
|
2896
2856
|
|
|
2897
|
-
function
|
|
2857
|
+
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; }
|
|
2858
|
+
|
|
2859
|
+
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; }
|
|
2898
2860
|
|
|
2899
2861
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2862
|
|
|
@@ -3024,12 +2986,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
2986
|
|
|
3025
2987
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
2988
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
2989
|
+
|
|
2990
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2991
|
+
_step;
|
|
3030
2992
|
|
|
3031
2993
|
try {
|
|
3032
|
-
for (
|
|
2994
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3033
2995
|
var p = _step.value;
|
|
3034
2996
|
|
|
3035
2997
|
if (props$1[p]) {
|
|
@@ -3044,18 +3006,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3006
|
}
|
|
3045
3007
|
}
|
|
3046
3008
|
} catch (err) {
|
|
3047
|
-
|
|
3048
|
-
_iteratorError = err;
|
|
3009
|
+
_iterator.e(err);
|
|
3049
3010
|
} finally {
|
|
3050
|
-
|
|
3051
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3052
|
-
_iterator["return"]();
|
|
3053
|
-
}
|
|
3054
|
-
} finally {
|
|
3055
|
-
if (_didIteratorError) {
|
|
3056
|
-
throw _iteratorError;
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3011
|
+
_iterator.f();
|
|
3059
3012
|
}
|
|
3060
3013
|
|
|
3061
3014
|
return config;
|
|
@@ -3163,17 +3116,17 @@ function isMediaStream(url) {
|
|
|
3163
3116
|
});
|
|
3164
3117
|
|
|
3165
3118
|
unwrapExports(utils);
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3119
|
+
utils.parseStartTime;
|
|
3120
|
+
utils.parseEndTime;
|
|
3121
|
+
utils.randomString;
|
|
3122
|
+
utils.queryString;
|
|
3123
|
+
utils.getSDK;
|
|
3124
|
+
utils.getConfig;
|
|
3125
|
+
utils.omit;
|
|
3126
|
+
utils.callPlayer;
|
|
3127
|
+
utils.isObject;
|
|
3128
|
+
utils.isEqual;
|
|
3129
|
+
utils.isMediaStream;
|
|
3177
3130
|
|
|
3178
3131
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3179
3132
|
|
|
@@ -3202,12 +3155,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3202
3155
|
|
|
3203
3156
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3204
3157
|
|
|
3205
|
-
function
|
|
3158
|
+
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); }; }
|
|
3206
3159
|
|
|
3207
|
-
function
|
|
3160
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3208
3161
|
|
|
3209
3162
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3210
3163
|
|
|
3164
|
+
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; } }
|
|
3165
|
+
|
|
3166
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3167
|
+
|
|
3211
3168
|
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); }
|
|
3212
3169
|
|
|
3213
3170
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3216,14 +3173,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3216
3173
|
|
|
3217
3174
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3218
3175
|
|
|
3219
|
-
var Player =
|
|
3220
|
-
/*#__PURE__*/
|
|
3221
|
-
function (_Component) {
|
|
3176
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3222
3177
|
_inherits(Player, _Component);
|
|
3223
3178
|
|
|
3224
|
-
|
|
3225
|
-
var _getPrototypeOf2;
|
|
3179
|
+
var _super = _createSuper(Player);
|
|
3226
3180
|
|
|
3181
|
+
function Player() {
|
|
3227
3182
|
var _this;
|
|
3228
3183
|
|
|
3229
3184
|
_classCallCheck(this, Player);
|
|
@@ -3232,7 +3187,7 @@ function (_Component) {
|
|
|
3232
3187
|
_args[_key] = arguments[_key];
|
|
3233
3188
|
}
|
|
3234
3189
|
|
|
3235
|
-
_this =
|
|
3190
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3236
3191
|
|
|
3237
3192
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3238
3193
|
|
|
@@ -3557,7 +3512,7 @@ function (_Component) {
|
|
|
3557
3512
|
return null;
|
|
3558
3513
|
}
|
|
3559
3514
|
|
|
3560
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3515
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3561
3516
|
ref: this.ref,
|
|
3562
3517
|
onReady: this.handleReady,
|
|
3563
3518
|
onPlay: this.handlePlay,
|
|
@@ -3618,12 +3573,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3618
3573
|
|
|
3619
3574
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3620
3575
|
|
|
3621
|
-
function
|
|
3576
|
+
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); }; }
|
|
3622
3577
|
|
|
3623
|
-
function
|
|
3578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3624
3579
|
|
|
3625
3580
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
3581
|
|
|
3582
|
+
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; } }
|
|
3583
|
+
|
|
3584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3585
|
+
|
|
3627
3586
|
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); }
|
|
3628
3587
|
|
|
3629
3588
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3635,14 +3594,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3635
3594
|
function createSinglePlayer(activePlayer) {
|
|
3636
3595
|
var _class, _temp;
|
|
3637
3596
|
|
|
3638
|
-
return _temp = _class =
|
|
3639
|
-
/*#__PURE__*/
|
|
3640
|
-
function (_Component) {
|
|
3597
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3641
3598
|
_inherits(SinglePlayer, _Component);
|
|
3642
3599
|
|
|
3643
|
-
|
|
3644
|
-
var _getPrototypeOf2;
|
|
3600
|
+
var _super = _createSuper(SinglePlayer);
|
|
3645
3601
|
|
|
3602
|
+
function SinglePlayer() {
|
|
3646
3603
|
var _this;
|
|
3647
3604
|
|
|
3648
3605
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3651,7 +3608,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3651
3608
|
args[_key] = arguments[_key];
|
|
3652
3609
|
}
|
|
3653
3610
|
|
|
3654
|
-
_this =
|
|
3611
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3655
3612
|
|
|
3656
3613
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3657
3614
|
|
|
@@ -3719,12 +3676,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3719
3676
|
height = _this$props.height,
|
|
3720
3677
|
Wrapper = _this$props.wrapper;
|
|
3721
3678
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3722
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3679
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3723
3680
|
style: _objectSpread({}, style, {
|
|
3724
3681
|
width: width,
|
|
3725
3682
|
height: height
|
|
3726
3683
|
})
|
|
3727
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3684
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3728
3685
|
ref: this.ref,
|
|
3729
3686
|
activePlayer: activePlayer,
|
|
3730
3687
|
config: this.config
|
|
@@ -3770,23 +3727,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3770
3727
|
|
|
3771
3728
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3772
3729
|
|
|
3773
|
-
function
|
|
3730
|
+
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); }; }
|
|
3774
3731
|
|
|
3775
|
-
function
|
|
3732
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3776
3733
|
|
|
3777
3734
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3778
3735
|
|
|
3736
|
+
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; } }
|
|
3737
|
+
|
|
3738
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3739
|
+
|
|
3779
3740
|
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); }
|
|
3780
3741
|
|
|
3781
3742
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3782
3743
|
|
|
3783
3744
|
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; }
|
|
3784
3745
|
|
|
3785
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3746
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3747
|
+
|
|
3748
|
+
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."); }
|
|
3786
3749
|
|
|
3787
|
-
function
|
|
3750
|
+
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); }
|
|
3788
3751
|
|
|
3789
|
-
function
|
|
3752
|
+
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; }
|
|
3753
|
+
|
|
3754
|
+
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; }
|
|
3790
3755
|
|
|
3791
3756
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3792
3757
|
|
|
@@ -3811,14 +3776,12 @@ function parsePlaylist(url) {
|
|
|
3811
3776
|
return {};
|
|
3812
3777
|
}
|
|
3813
3778
|
|
|
3814
|
-
var YouTube =
|
|
3815
|
-
/*#__PURE__*/
|
|
3816
|
-
function (_Component) {
|
|
3779
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3817
3780
|
_inherits(YouTube, _Component);
|
|
3818
3781
|
|
|
3819
|
-
|
|
3820
|
-
var _getPrototypeOf2;
|
|
3782
|
+
var _super = _createSuper(YouTube);
|
|
3821
3783
|
|
|
3784
|
+
function YouTube() {
|
|
3822
3785
|
var _this;
|
|
3823
3786
|
|
|
3824
3787
|
_classCallCheck(this, YouTube);
|
|
@@ -3827,7 +3790,7 @@ function (_Component) {
|
|
|
3827
3790
|
args[_key] = arguments[_key];
|
|
3828
3791
|
}
|
|
3829
3792
|
|
|
3830
|
-
_this =
|
|
3793
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3831
3794
|
|
|
3832
3795
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3833
3796
|
|
|
@@ -4015,9 +3978,9 @@ function (_Component) {
|
|
|
4015
3978
|
height: '100%',
|
|
4016
3979
|
display: display
|
|
4017
3980
|
};
|
|
4018
|
-
return _react["default"].createElement("div", {
|
|
3981
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4019
3982
|
style: style
|
|
4020
|
-
}, _react["default"].createElement("div", {
|
|
3983
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4021
3984
|
ref: this.ref
|
|
4022
3985
|
}));
|
|
4023
3986
|
}
|
|
@@ -4040,7 +4003,7 @@ exports["default"] = _default;
|
|
|
4040
4003
|
});
|
|
4041
4004
|
|
|
4042
4005
|
unwrapExports(YouTube_1);
|
|
4043
|
-
|
|
4006
|
+
YouTube_1.YouTube;
|
|
4044
4007
|
|
|
4045
4008
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4046
4009
|
|
|
@@ -4073,12 +4036,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4073
4036
|
|
|
4074
4037
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4075
4038
|
|
|
4076
|
-
function
|
|
4039
|
+
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); }; }
|
|
4077
4040
|
|
|
4078
|
-
function
|
|
4041
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4079
4042
|
|
|
4080
4043
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4081
4044
|
|
|
4045
|
+
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; } }
|
|
4046
|
+
|
|
4047
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4048
|
+
|
|
4082
4049
|
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); }
|
|
4083
4050
|
|
|
4084
4051
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4087,16 +4054,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4087
4054
|
|
|
4088
4055
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4089
4056
|
var SDK_GLOBAL = 'SC';
|
|
4090
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4057
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4091
4058
|
|
|
4092
|
-
var SoundCloud =
|
|
4093
|
-
/*#__PURE__*/
|
|
4094
|
-
function (_Component) {
|
|
4059
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4095
4060
|
_inherits(SoundCloud, _Component);
|
|
4096
4061
|
|
|
4097
|
-
|
|
4098
|
-
var _getPrototypeOf2;
|
|
4062
|
+
var _super = _createSuper(SoundCloud);
|
|
4099
4063
|
|
|
4064
|
+
function SoundCloud() {
|
|
4100
4065
|
var _this;
|
|
4101
4066
|
|
|
4102
4067
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4105,7 +4070,7 @@ function (_Component) {
|
|
|
4105
4070
|
args[_key] = arguments[_key];
|
|
4106
4071
|
}
|
|
4107
4072
|
|
|
4108
|
-
_this =
|
|
4073
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4109
4074
|
|
|
4110
4075
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4111
4076
|
|
|
@@ -4226,7 +4191,7 @@ function (_Component) {
|
|
|
4226
4191
|
height: '100%',
|
|
4227
4192
|
display: display
|
|
4228
4193
|
};
|
|
4229
|
-
return _react["default"].createElement("iframe", {
|
|
4194
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4230
4195
|
ref: this.ref,
|
|
4231
4196
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4232
4197
|
style: style,
|
|
@@ -4255,7 +4220,7 @@ exports["default"] = _default;
|
|
|
4255
4220
|
});
|
|
4256
4221
|
|
|
4257
4222
|
unwrapExports(SoundCloud_1);
|
|
4258
|
-
|
|
4223
|
+
SoundCloud_1.SoundCloud;
|
|
4259
4224
|
|
|
4260
4225
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4261
4226
|
|
|
@@ -4288,12 +4253,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4288
4253
|
|
|
4289
4254
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4290
4255
|
|
|
4291
|
-
function
|
|
4256
|
+
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); }; }
|
|
4292
4257
|
|
|
4293
|
-
function
|
|
4258
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4294
4259
|
|
|
4295
4260
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4296
4261
|
|
|
4262
|
+
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; } }
|
|
4263
|
+
|
|
4264
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4265
|
+
|
|
4297
4266
|
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); }
|
|
4298
4267
|
|
|
4299
4268
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4305,14 +4274,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4305
4274
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4306
4275
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4307
4276
|
|
|
4308
|
-
var Vimeo =
|
|
4309
|
-
/*#__PURE__*/
|
|
4310
|
-
function (_Component) {
|
|
4277
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4311
4278
|
_inherits(Vimeo, _Component);
|
|
4312
4279
|
|
|
4313
|
-
|
|
4314
|
-
var _getPrototypeOf2;
|
|
4280
|
+
var _super = _createSuper(Vimeo);
|
|
4315
4281
|
|
|
4282
|
+
function Vimeo() {
|
|
4316
4283
|
var _this;
|
|
4317
4284
|
|
|
4318
4285
|
_classCallCheck(this, Vimeo);
|
|
@@ -4321,7 +4288,7 @@ function (_Component) {
|
|
|
4321
4288
|
args[_key] = arguments[_key];
|
|
4322
4289
|
}
|
|
4323
4290
|
|
|
4324
|
-
_this =
|
|
4291
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4325
4292
|
|
|
4326
4293
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4327
4294
|
|
|
@@ -4478,7 +4445,7 @@ function (_Component) {
|
|
|
4478
4445
|
overflow: 'hidden',
|
|
4479
4446
|
display: display
|
|
4480
4447
|
};
|
|
4481
|
-
return _react["default"].createElement("div", {
|
|
4448
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4482
4449
|
key: this.props.url,
|
|
4483
4450
|
ref: this.ref,
|
|
4484
4451
|
style: style
|
|
@@ -4509,7 +4476,7 @@ exports["default"] = _default;
|
|
|
4509
4476
|
});
|
|
4510
4477
|
|
|
4511
4478
|
unwrapExports(Vimeo_1);
|
|
4512
|
-
|
|
4479
|
+
Vimeo_1.Vimeo;
|
|
4513
4480
|
|
|
4514
4481
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4515
4482
|
|
|
@@ -4538,12 +4505,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4538
4505
|
|
|
4539
4506
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4540
4507
|
|
|
4541
|
-
function
|
|
4508
|
+
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); }; }
|
|
4542
4509
|
|
|
4543
|
-
function
|
|
4510
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4544
4511
|
|
|
4545
4512
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4546
4513
|
|
|
4514
|
+
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; } }
|
|
4515
|
+
|
|
4516
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4517
|
+
|
|
4547
4518
|
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); }
|
|
4548
4519
|
|
|
4549
4520
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4556,14 +4527,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4556
4527
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4557
4528
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4558
4529
|
|
|
4559
|
-
var Facebook =
|
|
4560
|
-
/*#__PURE__*/
|
|
4561
|
-
function (_Component) {
|
|
4530
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4562
4531
|
_inherits(Facebook, _Component);
|
|
4563
4532
|
|
|
4564
|
-
|
|
4565
|
-
var _getPrototypeOf2;
|
|
4533
|
+
var _super = _createSuper(Facebook);
|
|
4566
4534
|
|
|
4535
|
+
function Facebook() {
|
|
4567
4536
|
var _this;
|
|
4568
4537
|
|
|
4569
4538
|
_classCallCheck(this, Facebook);
|
|
@@ -4572,7 +4541,7 @@ function (_Component) {
|
|
|
4572
4541
|
args[_key] = arguments[_key];
|
|
4573
4542
|
}
|
|
4574
4543
|
|
|
4575
|
-
_this =
|
|
4544
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4576
4545
|
|
|
4577
4546
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4578
4547
|
|
|
@@ -4688,7 +4657,7 @@ function (_Component) {
|
|
|
4688
4657
|
width: '100%',
|
|
4689
4658
|
height: '100%'
|
|
4690
4659
|
};
|
|
4691
|
-
return _react["default"].createElement("div", {
|
|
4660
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4692
4661
|
style: style,
|
|
4693
4662
|
id: this.playerID,
|
|
4694
4663
|
className: "fb-video",
|
|
@@ -4719,7 +4688,7 @@ exports["default"] = _default;
|
|
|
4719
4688
|
});
|
|
4720
4689
|
|
|
4721
4690
|
unwrapExports(Facebook_1);
|
|
4722
|
-
|
|
4691
|
+
Facebook_1.Facebook;
|
|
4723
4692
|
|
|
4724
4693
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4725
4694
|
|
|
@@ -4748,12 +4717,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4748
4717
|
|
|
4749
4718
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4750
4719
|
|
|
4751
|
-
function
|
|
4720
|
+
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); }; }
|
|
4752
4721
|
|
|
4753
|
-
function
|
|
4722
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4754
4723
|
|
|
4755
4724
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4756
4725
|
|
|
4726
|
+
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; } }
|
|
4727
|
+
|
|
4728
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4729
|
+
|
|
4757
4730
|
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); }
|
|
4758
4731
|
|
|
4759
4732
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4764,14 +4737,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4764
4737
|
var SDK_GLOBAL = 'playerjs';
|
|
4765
4738
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4766
4739
|
|
|
4767
|
-
var Streamable =
|
|
4768
|
-
/*#__PURE__*/
|
|
4769
|
-
function (_Component) {
|
|
4740
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4770
4741
|
_inherits(Streamable, _Component);
|
|
4771
4742
|
|
|
4772
|
-
|
|
4773
|
-
var _getPrototypeOf2;
|
|
4743
|
+
var _super = _createSuper(Streamable);
|
|
4774
4744
|
|
|
4745
|
+
function Streamable() {
|
|
4775
4746
|
var _this;
|
|
4776
4747
|
|
|
4777
4748
|
_classCallCheck(this, Streamable);
|
|
@@ -4780,7 +4751,7 @@ function (_Component) {
|
|
|
4780
4751
|
args[_key] = arguments[_key];
|
|
4781
4752
|
}
|
|
4782
4753
|
|
|
4783
|
-
_this =
|
|
4754
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4784
4755
|
|
|
4785
4756
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4786
4757
|
|
|
@@ -4900,7 +4871,7 @@ function (_Component) {
|
|
|
4900
4871
|
width: '100%',
|
|
4901
4872
|
height: '100%'
|
|
4902
4873
|
};
|
|
4903
|
-
return _react["default"].createElement("iframe", {
|
|
4874
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4904
4875
|
ref: this.ref,
|
|
4905
4876
|
src: "https://streamable.com/o/".concat(id),
|
|
4906
4877
|
frameBorder: "0",
|
|
@@ -4928,7 +4899,7 @@ exports["default"] = _default;
|
|
|
4928
4899
|
});
|
|
4929
4900
|
|
|
4930
4901
|
unwrapExports(Streamable_1);
|
|
4931
|
-
|
|
4902
|
+
Streamable_1.Streamable;
|
|
4932
4903
|
|
|
4933
4904
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4934
4905
|
|
|
@@ -4961,12 +4932,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4961
4932
|
|
|
4962
4933
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4963
4934
|
|
|
4964
|
-
function
|
|
4935
|
+
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); }; }
|
|
4965
4936
|
|
|
4966
|
-
function
|
|
4937
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4967
4938
|
|
|
4968
4939
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4969
4940
|
|
|
4941
|
+
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; } }
|
|
4942
|
+
|
|
4943
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4944
|
+
|
|
4970
4945
|
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); }
|
|
4971
4946
|
|
|
4972
4947
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4977,26 +4952,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4977
4952
|
var SDK_GLOBAL = 'Wistia';
|
|
4978
4953
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4979
4954
|
|
|
4980
|
-
var Wistia =
|
|
4981
|
-
/*#__PURE__*/
|
|
4982
|
-
function (_Component) {
|
|
4955
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4983
4956
|
_inherits(Wistia, _Component);
|
|
4984
4957
|
|
|
4985
|
-
|
|
4986
|
-
var _getPrototypeOf2;
|
|
4958
|
+
var _super = _createSuper(Wistia);
|
|
4987
4959
|
|
|
4960
|
+
function Wistia() {
|
|
4988
4961
|
var _this;
|
|
4989
4962
|
|
|
4990
4963
|
_classCallCheck(this, Wistia);
|
|
4991
4964
|
|
|
4992
|
-
for (var _len = arguments.length,
|
|
4993
|
-
|
|
4965
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4966
|
+
_args[_key] = arguments[_key];
|
|
4994
4967
|
}
|
|
4995
4968
|
|
|
4996
|
-
_this =
|
|
4969
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4997
4970
|
|
|
4998
4971
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4999
4972
|
|
|
4973
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4974
|
+
var _this$props;
|
|
4975
|
+
|
|
4976
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4977
|
+
});
|
|
4978
|
+
|
|
4979
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4980
|
+
var _this$props2;
|
|
4981
|
+
|
|
4982
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4983
|
+
});
|
|
4984
|
+
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4986
|
+
var _this$props3;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4992
|
+
var _this$props4;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
5000
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5001
4998
|
_this.callPlayer('mute');
|
|
5002
4999
|
});
|
|
@@ -5018,17 +5015,13 @@ function (_Component) {
|
|
|
5018
5015
|
value: function load(url) {
|
|
5019
5016
|
var _this2 = this;
|
|
5020
5017
|
|
|
5021
|
-
var _this$
|
|
5022
|
-
playing = _this$
|
|
5023
|
-
muted = _this$
|
|
5024
|
-
controls = _this$
|
|
5025
|
-
_onReady = _this$
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
onSeek = _this$props.onSeek,
|
|
5029
|
-
onEnded = _this$props.onEnded,
|
|
5030
|
-
config = _this$props.config,
|
|
5031
|
-
onError = _this$props.onError;
|
|
5018
|
+
var _this$props5 = this.props,
|
|
5019
|
+
playing = _this$props5.playing,
|
|
5020
|
+
muted = _this$props5.muted,
|
|
5021
|
+
controls = _this$props5.controls,
|
|
5022
|
+
_onReady = _this$props5.onReady,
|
|
5023
|
+
config = _this$props5.config,
|
|
5024
|
+
onError = _this$props5.onError;
|
|
5032
5025
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5033
5026
|
window._wq = window._wq || [];
|
|
5034
5027
|
|
|
@@ -5045,19 +5038,28 @@ function (_Component) {
|
|
|
5045
5038
|
|
|
5046
5039
|
_this2.unbind();
|
|
5047
5040
|
|
|
5048
|
-
_this2.player.bind('play', onPlay);
|
|
5041
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5049
5042
|
|
|
5050
|
-
_this2.player.bind('pause', onPause);
|
|
5043
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5051
5044
|
|
|
5052
|
-
_this2.player.bind('seek', onSeek);
|
|
5045
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5053
5046
|
|
|
5054
|
-
_this2.player.bind('end', onEnded);
|
|
5047
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5055
5048
|
|
|
5056
5049
|
_onReady();
|
|
5057
5050
|
}
|
|
5058
5051
|
});
|
|
5059
5052
|
}, onError);
|
|
5060
5053
|
}
|
|
5054
|
+
}, {
|
|
5055
|
+
key: "unbind",
|
|
5056
|
+
value: function unbind() {
|
|
5057
|
+
this.player.unbind('play', this.onPlay);
|
|
5058
|
+
this.player.unbind('pause', this.onPause);
|
|
5059
|
+
this.player.unbind('seek', this.onSeek);
|
|
5060
|
+
this.player.unbind('end', this.onEnded);
|
|
5061
|
+
} // Proxy methods to prevent listener leaks
|
|
5062
|
+
|
|
5061
5063
|
}, {
|
|
5062
5064
|
key: "play",
|
|
5063
5065
|
value: function play() {
|
|
@@ -5068,19 +5070,6 @@ function (_Component) {
|
|
|
5068
5070
|
value: function pause() {
|
|
5069
5071
|
this.callPlayer('pause');
|
|
5070
5072
|
}
|
|
5071
|
-
}, {
|
|
5072
|
-
key: "unbind",
|
|
5073
|
-
value: function unbind() {
|
|
5074
|
-
var _this$props2 = this.props,
|
|
5075
|
-
onPlay = _this$props2.onPlay,
|
|
5076
|
-
onPause = _this$props2.onPause,
|
|
5077
|
-
onSeek = _this$props2.onSeek,
|
|
5078
|
-
onEnded = _this$props2.onEnded;
|
|
5079
|
-
this.player.unbind('play', onPlay);
|
|
5080
|
-
this.player.unbind('pause', onPause);
|
|
5081
|
-
this.player.unbind('seek', onSeek);
|
|
5082
|
-
this.player.unbind('end', onEnded);
|
|
5083
|
-
}
|
|
5084
5073
|
}, {
|
|
5085
5074
|
key: "stop",
|
|
5086
5075
|
value: function stop() {
|
|
@@ -5126,7 +5115,7 @@ function (_Component) {
|
|
|
5126
5115
|
width: '100%',
|
|
5127
5116
|
height: '100%'
|
|
5128
5117
|
};
|
|
5129
|
-
return _react["default"].createElement("div", {
|
|
5118
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5130
5119
|
key: id,
|
|
5131
5120
|
className: className,
|
|
5132
5121
|
style: style
|
|
@@ -5153,7 +5142,7 @@ exports["default"] = _default;
|
|
|
5153
5142
|
});
|
|
5154
5143
|
|
|
5155
5144
|
unwrapExports(Wistia_1);
|
|
5156
|
-
|
|
5145
|
+
Wistia_1.Wistia;
|
|
5157
5146
|
|
|
5158
5147
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5159
5148
|
|
|
@@ -5186,12 +5175,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5186
5175
|
|
|
5187
5176
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5188
5177
|
|
|
5189
|
-
function
|
|
5178
|
+
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); }; }
|
|
5190
5179
|
|
|
5191
|
-
function
|
|
5180
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5192
5181
|
|
|
5193
5182
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
5183
|
|
|
5184
|
+
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; } }
|
|
5185
|
+
|
|
5186
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5187
|
+
|
|
5195
5188
|
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); }
|
|
5196
5189
|
|
|
5197
5190
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5204,14 +5197,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5204
5197
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5205
5198
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5206
5199
|
|
|
5207
|
-
var Twitch =
|
|
5208
|
-
/*#__PURE__*/
|
|
5209
|
-
function (_Component) {
|
|
5200
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5210
5201
|
_inherits(Twitch, _Component);
|
|
5211
5202
|
|
|
5212
|
-
|
|
5213
|
-
var _getPrototypeOf2;
|
|
5203
|
+
var _super = _createSuper(Twitch);
|
|
5214
5204
|
|
|
5205
|
+
function Twitch() {
|
|
5215
5206
|
var _this;
|
|
5216
5207
|
|
|
5217
5208
|
_classCallCheck(this, Twitch);
|
|
@@ -5220,7 +5211,7 @@ function (_Component) {
|
|
|
5220
5211
|
args[_key] = arguments[_key];
|
|
5221
5212
|
}
|
|
5222
5213
|
|
|
5223
|
-
_this =
|
|
5214
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5224
5215
|
|
|
5225
5216
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5226
5217
|
|
|
@@ -5341,7 +5332,7 @@ function (_Component) {
|
|
|
5341
5332
|
width: '100%',
|
|
5342
5333
|
height: '100%'
|
|
5343
5334
|
};
|
|
5344
|
-
return _react["default"].createElement("div", {
|
|
5335
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5345
5336
|
style: style,
|
|
5346
5337
|
id: this.playerID
|
|
5347
5338
|
});
|
|
@@ -5367,7 +5358,7 @@ exports["default"] = _default;
|
|
|
5367
5358
|
});
|
|
5368
5359
|
|
|
5369
5360
|
unwrapExports(Twitch_1);
|
|
5370
|
-
|
|
5361
|
+
Twitch_1.Twitch;
|
|
5371
5362
|
|
|
5372
5363
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5373
5364
|
|
|
@@ -5394,11 +5385,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5394
5385
|
|
|
5395
5386
|
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; }
|
|
5396
5387
|
|
|
5397
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5388
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5398
5389
|
|
|
5399
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5390
|
+
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."); }
|
|
5400
5391
|
|
|
5401
|
-
function
|
|
5392
|
+
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); }
|
|
5393
|
+
|
|
5394
|
+
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; }
|
|
5395
|
+
|
|
5396
|
+
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; }
|
|
5402
5397
|
|
|
5403
5398
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5404
5399
|
|
|
@@ -5408,12 +5403,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5408
5403
|
|
|
5409
5404
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5410
5405
|
|
|
5411
|
-
function
|
|
5406
|
+
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); }; }
|
|
5412
5407
|
|
|
5413
|
-
function
|
|
5408
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5414
5409
|
|
|
5415
5410
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5416
5411
|
|
|
5412
|
+
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; } }
|
|
5413
|
+
|
|
5414
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5415
|
+
|
|
5417
5416
|
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); }
|
|
5418
5417
|
|
|
5419
5418
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5425,14 +5424,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5425
5424
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5426
5425
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5427
5426
|
|
|
5428
|
-
var DailyMotion =
|
|
5429
|
-
/*#__PURE__*/
|
|
5430
|
-
function (_Component) {
|
|
5427
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5431
5428
|
_inherits(DailyMotion, _Component);
|
|
5432
5429
|
|
|
5433
|
-
|
|
5434
|
-
var _getPrototypeOf2;
|
|
5430
|
+
var _super = _createSuper(DailyMotion);
|
|
5435
5431
|
|
|
5432
|
+
function DailyMotion() {
|
|
5436
5433
|
var _this;
|
|
5437
5434
|
|
|
5438
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5441,7 +5438,7 @@ function (_Component) {
|
|
|
5441
5438
|
args[_key] = arguments[_key];
|
|
5442
5439
|
}
|
|
5443
5440
|
|
|
5444
|
-
_this =
|
|
5441
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5445
5442
|
|
|
5446
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5447
5444
|
|
|
@@ -5570,9 +5567,9 @@ function (_Component) {
|
|
|
5570
5567
|
height: '100%',
|
|
5571
5568
|
display: display
|
|
5572
5569
|
};
|
|
5573
|
-
return _react["default"].createElement("div", {
|
|
5570
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5574
5571
|
style: style
|
|
5575
|
-
}, _react["default"].createElement("div", {
|
|
5572
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5576
5573
|
ref: this.ref
|
|
5577
5574
|
}));
|
|
5578
5575
|
}
|
|
@@ -5597,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5597
5594
|
});
|
|
5598
5595
|
|
|
5599
5596
|
unwrapExports(DailyMotion_1);
|
|
5600
|
-
|
|
5597
|
+
DailyMotion_1.DailyMotion;
|
|
5601
5598
|
|
|
5602
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5603
5600
|
|
|
@@ -5630,12 +5627,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5630
5627
|
|
|
5631
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5632
5629
|
|
|
5633
|
-
function
|
|
5630
|
+
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); }; }
|
|
5634
5631
|
|
|
5635
|
-
function
|
|
5632
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5636
5633
|
|
|
5637
5634
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5638
5635
|
|
|
5636
|
+
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; } }
|
|
5637
|
+
|
|
5638
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5639
|
+
|
|
5639
5640
|
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); }
|
|
5640
5641
|
|
|
5641
5642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5646,14 +5647,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5646
5647
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5647
5648
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5648
5649
|
|
|
5649
|
-
var Mixcloud =
|
|
5650
|
-
/*#__PURE__*/
|
|
5651
|
-
function (_Component) {
|
|
5650
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5652
5651
|
_inherits(Mixcloud, _Component);
|
|
5653
5652
|
|
|
5654
|
-
|
|
5655
|
-
var _getPrototypeOf2;
|
|
5653
|
+
var _super = _createSuper(Mixcloud);
|
|
5656
5654
|
|
|
5655
|
+
function Mixcloud() {
|
|
5657
5656
|
var _this;
|
|
5658
5657
|
|
|
5659
5658
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5662,7 +5661,7 @@ function (_Component) {
|
|
|
5662
5661
|
args[_key] = arguments[_key];
|
|
5663
5662
|
}
|
|
5664
5663
|
|
|
5665
|
-
_this =
|
|
5664
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5666
5665
|
|
|
5667
5666
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5668
5667
|
|
|
@@ -5765,7 +5764,7 @@ function (_Component) {
|
|
|
5765
5764
|
})); // We have to give the iframe a key here to prevent a
|
|
5766
5765
|
// weird dialog appearing when loading a new track
|
|
5767
5766
|
|
|
5768
|
-
return _react["default"].createElement("iframe", {
|
|
5767
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5769
5768
|
key: id,
|
|
5770
5769
|
ref: this.ref,
|
|
5771
5770
|
style: style,
|
|
@@ -5794,7 +5793,7 @@ exports["default"] = _default;
|
|
|
5794
5793
|
});
|
|
5795
5794
|
|
|
5796
5795
|
unwrapExports(Mixcloud_1);
|
|
5797
|
-
|
|
5796
|
+
Mixcloud_1.Mixcloud;
|
|
5798
5797
|
|
|
5799
5798
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5800
5799
|
|
|
@@ -5825,23 +5824,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5825
5824
|
|
|
5826
5825
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5827
5826
|
|
|
5828
|
-
function
|
|
5827
|
+
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); }; }
|
|
5829
5828
|
|
|
5830
|
-
function
|
|
5829
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5831
5830
|
|
|
5832
5831
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5833
5832
|
|
|
5833
|
+
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; } }
|
|
5834
|
+
|
|
5835
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5836
|
+
|
|
5834
5837
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5835
5838
|
|
|
5836
5839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5837
5840
|
|
|
5838
5841
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5839
5842
|
|
|
5843
|
+
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; } } }; }
|
|
5844
|
+
|
|
5845
|
+
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); }
|
|
5846
|
+
|
|
5847
|
+
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; }
|
|
5848
|
+
|
|
5840
5849
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5841
5850
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5842
5851
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5843
5852
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5844
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5853
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5845
5854
|
var HLS_GLOBAL = 'Hls';
|
|
5846
5855
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5847
5856
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5850,12 +5859,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5850
5859
|
|
|
5851
5860
|
function canPlay(url) {
|
|
5852
5861
|
if (url instanceof Array) {
|
|
5853
|
-
var
|
|
5854
|
-
|
|
5855
|
-
var _iteratorError = undefined;
|
|
5862
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5863
|
+
_step;
|
|
5856
5864
|
|
|
5857
5865
|
try {
|
|
5858
|
-
for (
|
|
5866
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5859
5867
|
var item = _step.value;
|
|
5860
5868
|
|
|
5861
5869
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5867,18 +5875,9 @@ function canPlay(url) {
|
|
|
5867
5875
|
}
|
|
5868
5876
|
}
|
|
5869
5877
|
} catch (err) {
|
|
5870
|
-
|
|
5871
|
-
_iteratorError = err;
|
|
5878
|
+
_iterator.e(err);
|
|
5872
5879
|
} finally {
|
|
5873
|
-
|
|
5874
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5875
|
-
_iterator["return"]();
|
|
5876
|
-
}
|
|
5877
|
-
} finally {
|
|
5878
|
-
if (_didIteratorError) {
|
|
5879
|
-
throw _iteratorError;
|
|
5880
|
-
}
|
|
5881
|
-
}
|
|
5880
|
+
_iterator.f();
|
|
5882
5881
|
}
|
|
5883
5882
|
|
|
5884
5883
|
return false;
|
|
@@ -5902,14 +5901,12 @@ function canEnablePIP(url) {
|
|
|
5902
5901
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5903
5902
|
}
|
|
5904
5903
|
|
|
5905
|
-
var FilePlayer =
|
|
5906
|
-
/*#__PURE__*/
|
|
5907
|
-
function (_Component) {
|
|
5904
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5908
5905
|
_inherits(FilePlayer, _Component);
|
|
5909
5906
|
|
|
5910
|
-
|
|
5911
|
-
var _getPrototypeOf2;
|
|
5907
|
+
var _super = _createSuper(FilePlayer);
|
|
5912
5908
|
|
|
5909
|
+
function FilePlayer() {
|
|
5913
5910
|
var _this;
|
|
5914
5911
|
|
|
5915
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5918,7 +5915,7 @@ function (_Component) {
|
|
|
5918
5915
|
_args[_key] = arguments[_key];
|
|
5919
5916
|
}
|
|
5920
5917
|
|
|
5921
|
-
_this =
|
|
5918
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5922
5919
|
|
|
5923
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5924
5921
|
var _this$props;
|
|
@@ -6005,19 +6002,19 @@ function (_Component) {
|
|
|
6005
6002
|
|
|
6006
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6007
6004
|
if (typeof source === 'string') {
|
|
6008
|
-
return _react["default"].createElement("source", {
|
|
6005
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6009
6006
|
key: index,
|
|
6010
6007
|
src: source
|
|
6011
6008
|
});
|
|
6012
6009
|
}
|
|
6013
6010
|
|
|
6014
|
-
return _react["default"].createElement("source", _extends({
|
|
6011
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6015
6012
|
key: index
|
|
6016
6013
|
}, source));
|
|
6017
6014
|
});
|
|
6018
6015
|
|
|
6019
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6020
|
-
return _react["default"].createElement("track", _extends({
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6021
6018
|
key: index
|
|
6022
6019
|
}, track));
|
|
6023
6020
|
});
|
|
@@ -6055,6 +6052,10 @@ function (_Component) {
|
|
|
6055
6052
|
key: "componentWillUnmount",
|
|
6056
6053
|
value: function componentWillUnmount() {
|
|
6057
6054
|
this.removeListeners(this.player);
|
|
6055
|
+
|
|
6056
|
+
if (this.hls) {
|
|
6057
|
+
this.hls.destroy();
|
|
6058
|
+
}
|
|
6058
6059
|
}
|
|
6059
6060
|
}, {
|
|
6060
6061
|
key: "addListeners",
|
|
@@ -6185,10 +6186,6 @@ function (_Component) {
|
|
|
6185
6186
|
value: function stop() {
|
|
6186
6187
|
this.player.removeAttribute('src');
|
|
6187
6188
|
|
|
6188
|
-
if (this.hls) {
|
|
6189
|
-
this.hls.destroy();
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
6189
|
if (this.dash) {
|
|
6193
6190
|
this.dash.reset();
|
|
6194
6191
|
}
|
|
@@ -6300,7 +6297,7 @@ function (_Component) {
|
|
|
6300
6297
|
width: width === 'auto' ? width : '100%',
|
|
6301
6298
|
height: height === 'auto' ? height : '100%'
|
|
6302
6299
|
};
|
|
6303
|
-
return _react["default"].createElement(Element, _extends({
|
|
6300
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6304
6301
|
ref: this.ref,
|
|
6305
6302
|
src: this.getSource(url),
|
|
6306
6303
|
style: style,
|
|
@@ -6330,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6330
6327
|
});
|
|
6331
6328
|
|
|
6332
6329
|
unwrapExports(FilePlayer_1);
|
|
6333
|
-
|
|
6330
|
+
FilePlayer_1.FilePlayer;
|
|
6334
6331
|
|
|
6335
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6336
6333
|
|
|
@@ -6390,12 +6387,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6390
6387
|
|
|
6391
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6392
6389
|
|
|
6393
|
-
function
|
|
6390
|
+
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); }; }
|
|
6394
6391
|
|
|
6395
|
-
function
|
|
6392
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6396
6393
|
|
|
6397
6394
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6398
6395
|
|
|
6396
|
+
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; } }
|
|
6397
|
+
|
|
6398
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6399
|
+
|
|
6399
6400
|
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); }
|
|
6400
6401
|
|
|
6401
6402
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6404,14 +6405,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6404
6405
|
|
|
6405
6406
|
var ICON_SIZE = '64px';
|
|
6406
6407
|
|
|
6407
|
-
var Preview =
|
|
6408
|
-
/*#__PURE__*/
|
|
6409
|
-
function (_Component) {
|
|
6408
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6410
6409
|
_inherits(Preview, _Component);
|
|
6411
6410
|
|
|
6412
|
-
|
|
6413
|
-
var _getPrototypeOf2;
|
|
6411
|
+
var _super = _createSuper(Preview);
|
|
6414
6412
|
|
|
6413
|
+
function Preview() {
|
|
6415
6414
|
var _this;
|
|
6416
6415
|
|
|
6417
6416
|
_classCallCheck(this, Preview);
|
|
@@ -6420,7 +6419,7 @@ function (_Component) {
|
|
|
6420
6419
|
args[_key] = arguments[_key];
|
|
6421
6420
|
}
|
|
6422
6421
|
|
|
6423
|
-
_this =
|
|
6422
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6424
6423
|
|
|
6425
6424
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6426
6425
|
|
|
@@ -6518,15 +6517,15 @@ function (_Component) {
|
|
|
6518
6517
|
}
|
|
6519
6518
|
};
|
|
6520
6519
|
|
|
6521
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6520
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6521
|
style: styles.shadow,
|
|
6523
6522
|
className: "react-player__shadow"
|
|
6524
|
-
}, _react["default"].createElement("div", {
|
|
6523
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6524
|
style: styles.playIcon,
|
|
6526
6525
|
className: "react-player__play-icon"
|
|
6527
6526
|
}));
|
|
6528
6527
|
|
|
6529
|
-
return _react["default"].createElement("div", {
|
|
6528
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6530
6529
|
style: styles.preview,
|
|
6531
6530
|
className: "react-player__preview",
|
|
6532
6531
|
onClick: onClick
|
|
@@ -6563,6 +6562,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6563
6562
|
|
|
6564
6563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6565
6564
|
|
|
6565
|
+
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; } } }; }
|
|
6566
|
+
|
|
6567
|
+
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); }
|
|
6568
|
+
|
|
6569
|
+
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; }
|
|
6570
|
+
|
|
6566
6571
|
var PRELOAD_PLAYERS = [{
|
|
6567
6572
|
Player: YouTube_1.YouTube,
|
|
6568
6573
|
configKey: 'youtube',
|
|
@@ -6583,16 +6588,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6583
6588
|
|
|
6584
6589
|
function renderPreloadPlayers(url, controls, config) {
|
|
6585
6590
|
var players = [];
|
|
6586
|
-
|
|
6587
|
-
var
|
|
6588
|
-
|
|
6591
|
+
|
|
6592
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6593
|
+
_step;
|
|
6589
6594
|
|
|
6590
6595
|
try {
|
|
6591
|
-
for (
|
|
6596
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6592
6597
|
var player = _step.value;
|
|
6593
6598
|
|
|
6594
6599
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6595
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6600
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6596
6601
|
key: player.Player.displayName,
|
|
6597
6602
|
activePlayer: player.Player,
|
|
6598
6603
|
url: player.url,
|
|
@@ -6604,18 +6609,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6604
6609
|
}
|
|
6605
6610
|
}
|
|
6606
6611
|
} catch (err) {
|
|
6607
|
-
|
|
6608
|
-
_iteratorError = err;
|
|
6612
|
+
_iterator.e(err);
|
|
6609
6613
|
} finally {
|
|
6610
|
-
|
|
6611
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6612
|
-
_iterator["return"]();
|
|
6613
|
-
}
|
|
6614
|
-
} finally {
|
|
6615
|
-
if (_didIteratorError) {
|
|
6616
|
-
throw _iteratorError;
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6614
|
+
_iterator.f();
|
|
6619
6615
|
}
|
|
6620
6616
|
|
|
6621
6617
|
return players;
|
|
@@ -6739,13 +6735,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6739
6735
|
|
|
6740
6736
|
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); }
|
|
6741
6737
|
|
|
6742
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6738
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6739
|
+
|
|
6740
|
+
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."); }
|
|
6743
6741
|
|
|
6744
|
-
function
|
|
6742
|
+
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); }
|
|
6745
6743
|
|
|
6746
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6744
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6747
6745
|
|
|
6748
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6746
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6747
|
+
|
|
6748
|
+
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; }
|
|
6749
6749
|
|
|
6750
6750
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6751
6751
|
|
|
@@ -6753,12 +6753,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6753
6753
|
|
|
6754
6754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6755
6755
|
|
|
6756
|
-
function
|
|
6756
|
+
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); }; }
|
|
6757
6757
|
|
|
6758
|
-
function
|
|
6758
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6759
6759
|
|
|
6760
6760
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
6761
|
|
|
6762
|
+
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; } }
|
|
6763
|
+
|
|
6764
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6765
|
+
|
|
6762
6766
|
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); }
|
|
6763
6767
|
|
|
6764
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6768,14 +6772,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6768
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6769
6773
|
var customPlayers = [];
|
|
6770
6774
|
|
|
6771
|
-
var ReactPlayer =
|
|
6772
|
-
/*#__PURE__*/
|
|
6773
|
-
function (_Component) {
|
|
6775
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6774
6776
|
_inherits(ReactPlayer, _Component);
|
|
6775
6777
|
|
|
6776
|
-
|
|
6777
|
-
var _getPrototypeOf2;
|
|
6778
|
+
var _super = _createSuper(ReactPlayer);
|
|
6778
6779
|
|
|
6780
|
+
function ReactPlayer() {
|
|
6779
6781
|
var _this;
|
|
6780
6782
|
|
|
6781
6783
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6784,7 +6786,7 @@ function (_Component) {
|
|
|
6784
6786
|
args[_key] = arguments[_key];
|
|
6785
6787
|
}
|
|
6786
6788
|
|
|
6787
|
-
_this =
|
|
6789
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6788
6790
|
|
|
6789
6791
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6790
6792
|
|
|
@@ -6895,7 +6897,7 @@ function (_Component) {
|
|
|
6895
6897
|
key: "renderActivePlayer",
|
|
6896
6898
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6897
6899
|
if (!url) return null;
|
|
6898
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6900
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6899
6901
|
key: activePlayer.displayName,
|
|
6900
6902
|
ref: this.activePlayerRef,
|
|
6901
6903
|
config: this.config,
|
|
@@ -6932,14 +6934,14 @@ function (_Component) {
|
|
|
6932
6934
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6933
6935
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6934
6936
|
|
|
6935
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6937
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6936
6938
|
url: url,
|
|
6937
6939
|
light: light,
|
|
6938
6940
|
playIcon: playIcon,
|
|
6939
6941
|
onClick: this.handleClickPreview
|
|
6940
6942
|
});
|
|
6941
6943
|
|
|
6942
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6944
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6943
6945
|
ref: this.wrapperRef,
|
|
6944
6946
|
style: _objectSpread({}, style, {
|
|
6945
6947
|
width: width,
|
|
@@ -7261,8 +7263,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7261
7263
|
var duration = player.getDuration();
|
|
7262
7264
|
var queue = Math.floor(duration / 10);
|
|
7263
7265
|
var segment = Math.floor(current / queue);
|
|
7264
|
-
Beam.report_beam_video('Ready',
|
|
7265
|
-
Segment.report_video_event('Video Ready',
|
|
7266
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7267
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7266
7268
|
//autoplay
|
|
7267
7269
|
|
|
7268
7270
|
//Small pause before starting next video
|
|
@@ -7282,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7282
7284
|
var queue = Math.floor(duration / 10);
|
|
7283
7285
|
var segment = Math.floor(current / queue);
|
|
7284
7286
|
|
|
7285
|
-
Beam.report_beam_video('End',
|
|
7286
|
-
Segment.report_video_event('Video End',
|
|
7287
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7287
7289
|
setEndReported(true);
|
|
7288
7290
|
clearInterval(intervalID);
|
|
7289
7291
|
}
|
|
@@ -7333,8 +7335,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7333
7335
|
var queue = Math.floor(duration / 10);
|
|
7334
7336
|
var segment = Math.floor(current / queue);
|
|
7335
7337
|
if (!queueProgress.includes(segment)) {
|
|
7336
|
-
Beam.report_beam_video('Segment',
|
|
7337
|
-
Segment.report_video_event('Video Segment',
|
|
7338
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7339
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7338
7340
|
queueProgress.push(segment);
|
|
7339
7341
|
}
|
|
7340
7342
|
};
|
|
@@ -7347,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7347
7349
|
var queue = Math.floor(duration / 10);
|
|
7348
7350
|
var segment = Math.floor(current / queue);
|
|
7349
7351
|
|
|
7350
|
-
Beam.report_beam_video('Play',
|
|
7351
|
-
Segment.report_video_event('Video Play',
|
|
7352
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7352
7354
|
|
|
7353
7355
|
if (!playReported) {
|
|
7354
7356
|
setPlayReported(true);
|
|
@@ -7366,8 +7368,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7368
|
var queue = Math.floor(duration / 10);
|
|
7367
7369
|
var segment = Math.floor(current / queue);
|
|
7368
7370
|
|
|
7369
|
-
Beam.report_beam_video('Pause',
|
|
7370
|
-
Segment.report_video_event('Video Pause',
|
|
7371
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7372
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7371
7373
|
};
|
|
7372
7374
|
|
|
7373
7375
|
// Youtube Options
|
|
@@ -7485,7 +7487,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7485
7487
|
React__default.createElement(
|
|
7486
7488
|
'div',
|
|
7487
7489
|
{ className: 'vid-text' },
|
|
7488
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7490
|
+
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()))
|
|
7489
7491
|
),
|
|
7490
7492
|
React__default.createElement(
|
|
7491
7493
|
'style',
|
|
@@ -7495,14 +7497,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7495
7497
|
);
|
|
7496
7498
|
};
|
|
7497
7499
|
|
|
7498
|
-
var Poll = function Poll(_ref) {
|
|
7499
|
-
var node = _ref.node
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
onVote = _ref.onVote
|
|
7504
|
-
_ref
|
|
7505
|
-
getSerializers = _ref.getSerializers;
|
|
7500
|
+
var Poll$1 = function Poll(_ref) {
|
|
7501
|
+
var node = _ref.node;
|
|
7502
|
+
_ref.client;
|
|
7503
|
+
_ref.pageview;
|
|
7504
|
+
_ref.videoAccountIDs;
|
|
7505
|
+
var onVote = _ref.onVote;
|
|
7506
|
+
_ref.showVotes;
|
|
7507
|
+
var getSerializers = _ref.getSerializers;
|
|
7506
7508
|
|
|
7507
7509
|
var _useState = useState(null),
|
|
7508
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7636,22 +7638,22 @@ _export(_export.S, 'Object', {
|
|
|
7636
7638
|
}
|
|
7637
7639
|
});
|
|
7638
7640
|
|
|
7639
|
-
var values = _core.Object.values;
|
|
7641
|
+
var values$1 = _core.Object.values;
|
|
7640
7642
|
|
|
7641
|
-
var values
|
|
7642
|
-
module.exports = { "default": values, __esModule: true };
|
|
7643
|
+
var values = createCommonjsModule(function (module) {
|
|
7644
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7643
7645
|
});
|
|
7644
7646
|
|
|
7645
|
-
var _Object$values = unwrapExports(values
|
|
7647
|
+
var _Object$values = unwrapExports(values);
|
|
7646
7648
|
|
|
7647
|
-
var Poll
|
|
7648
|
-
var node = _ref.node
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
onVote = _ref.onVote
|
|
7653
|
-
_ref
|
|
7654
|
-
getSerializers = _ref.getSerializers;
|
|
7649
|
+
var Poll = function Poll(_ref) {
|
|
7650
|
+
var node = _ref.node;
|
|
7651
|
+
_ref.client;
|
|
7652
|
+
_ref.pageview;
|
|
7653
|
+
_ref.videoAccountIDs;
|
|
7654
|
+
var onVote = _ref.onVote;
|
|
7655
|
+
_ref.showVotes;
|
|
7656
|
+
var getSerializers = _ref.getSerializers;
|
|
7655
7657
|
|
|
7656
7658
|
var _useState = useState(null),
|
|
7657
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7803,7 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7803
7805
|
);
|
|
7804
7806
|
};
|
|
7805
7807
|
|
|
7806
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7807
7809
|
|
|
7808
7810
|
var Quiz = function Quiz(_ref) {
|
|
7809
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7922,33 +7924,33 @@ var Quiz = function Quiz(_ref) {
|
|
|
7922
7924
|
|
|
7923
7925
|
var renderPagination = function renderPagination() {
|
|
7924
7926
|
return React__default.createElement(
|
|
7925
|
-
Pagination
|
|
7926
|
-
{ className: 'p-0 m-0', size:
|
|
7927
|
-
React__default.createElement(Pagination
|
|
7927
|
+
Pagination,
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7929
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7928
7930
|
return changePage('first');
|
|
7929
7931
|
}, disabled: currentPage === 1 }),
|
|
7930
|
-
React__default.createElement(Pagination
|
|
7932
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7931
7933
|
return changePage('prev');
|
|
7932
7934
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
React__default.createElement(Pagination
|
|
7935
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7934
7936
|
return renderNewPages('prev');
|
|
7935
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7936
7938
|
pages.map(function (page) {
|
|
7937
7939
|
return React__default.createElement(
|
|
7938
|
-
Pagination
|
|
7940
|
+
Pagination.Item,
|
|
7939
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7940
7942
|
return changePage(page);
|
|
7941
7943
|
} },
|
|
7942
7944
|
page
|
|
7943
7945
|
);
|
|
7944
7946
|
}),
|
|
7945
|
-
React__default.createElement(Pagination
|
|
7947
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7946
7948
|
return renderNewPages('next');
|
|
7947
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7948
|
-
React__default.createElement(Pagination
|
|
7950
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7949
7951
|
return changePage('next');
|
|
7950
7952
|
}, disabled: currentPage === pageCount }),
|
|
7951
|
-
React__default.createElement(Pagination
|
|
7953
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7952
7954
|
return changePage('last');
|
|
7953
7955
|
}, disabled: currentPage === pageCount })
|
|
7954
7956
|
);
|
|
@@ -8093,7 +8095,7 @@ var Leads = function Leads(_ref) {
|
|
|
8093
8095
|
);
|
|
8094
8096
|
};
|
|
8095
8097
|
|
|
8096
|
-
var Slideshow
|
|
8098
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8097
8099
|
var slides = _ref.node.slides,
|
|
8098
8100
|
client = _ref.client,
|
|
8099
8101
|
pageview = _ref.pageview,
|
|
@@ -8105,8 +8107,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8105
8107
|
|
|
8106
8108
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8107
8109
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8108
|
-
carouselIndex = _useState2[0]
|
|
8109
|
-
|
|
8110
|
+
carouselIndex = _useState2[0];
|
|
8111
|
+
_useState2[1];
|
|
8110
8112
|
|
|
8111
8113
|
// useEffect(() => {
|
|
8112
8114
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8149,14 +8151,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8149
8151
|
React__default.createElement(
|
|
8150
8152
|
LazyLoad,
|
|
8151
8153
|
null,
|
|
8152
|
-
React__default.createElement(
|
|
8153
|
-
'picture',
|
|
8154
|
-
null,
|
|
8155
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8156
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8157
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8158
|
-
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8159
|
-
)
|
|
8154
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8160
8155
|
)
|
|
8161
8156
|
),
|
|
8162
8157
|
React__default.createElement(
|
|
@@ -8243,7 +8238,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8243
8238
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8244
8239
|
React__default.createElement(
|
|
8245
8240
|
'a',
|
|
8246
|
-
_extends
|
|
8241
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8247
8242
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8248
8243
|
React__default.createElement(
|
|
8249
8244
|
'div',
|
|
@@ -8251,14 +8246,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8251
8246
|
imageBox && React__default.createElement(
|
|
8252
8247
|
LazyLoad,
|
|
8253
8248
|
{ once: true },
|
|
8254
|
-
React__default.createElement(
|
|
8255
|
-
'picture',
|
|
8256
|
-
null,
|
|
8257
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8258
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8259
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8260
|
-
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8261
|
-
)
|
|
8249
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8262
8250
|
),
|
|
8263
8251
|
media.caption && React__default.createElement(
|
|
8264
8252
|
'span',
|
|
@@ -8538,7 +8526,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8538
8526
|
|
|
8539
8527
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8540
8528
|
if (biography) {
|
|
8541
|
-
return React__default.createElement(BlockContent, _extends
|
|
8529
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8542
8530
|
}
|
|
8543
8531
|
};
|
|
8544
8532
|
|
|
@@ -8624,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8624
8612
|
//console.log('useLayoutEffect')
|
|
8625
8613
|
if (!firstLoad) {
|
|
8626
8614
|
setUpArrowClicked(false);
|
|
8627
|
-
if (
|
|
8615
|
+
if (main_43) {
|
|
8628
8616
|
grabLoadedAds();
|
|
8629
8617
|
} else {
|
|
8630
8618
|
scrollToArticle();
|
|
@@ -8648,7 +8636,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8648
8636
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8649
8637
|
if (pageview) pageview(path);
|
|
8650
8638
|
|
|
8651
|
-
if (!
|
|
8639
|
+
if (!main_43) {
|
|
8652
8640
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8653
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
8654
8642
|
lib_3.refresh();
|
|
@@ -8656,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8656
8644
|
});
|
|
8657
8645
|
}
|
|
8658
8646
|
//Refresh leaderboard ad on mobile
|
|
8659
|
-
if (
|
|
8647
|
+
if (main_43) {
|
|
8660
8648
|
var leaderboardSlotId = '';
|
|
8661
8649
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8662
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8725,7 +8713,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8725
8713
|
React__default.createElement(
|
|
8726
8714
|
'div',
|
|
8727
8715
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8728
|
-
|
|
8716
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8729
8717
|
if (index === 0) {
|
|
8730
8718
|
return React__default.createElement(
|
|
8731
8719
|
'div',
|
|
@@ -8816,7 +8804,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8816
8804
|
React__default.createElement(
|
|
8817
8805
|
'div',
|
|
8818
8806
|
{ className: 'mt-2 mb-2' },
|
|
8819
|
-
React__default.createElement(BlockContent, _extends
|
|
8807
|
+
React__default.createElement(BlockContent, _extends({
|
|
8820
8808
|
serializers: getSerializers,
|
|
8821
8809
|
videoAccountIDs: accountIDs,
|
|
8822
8810
|
blocks: article.text,
|
|
@@ -8847,7 +8835,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8847
8835
|
React__default.createElement(
|
|
8848
8836
|
'div',
|
|
8849
8837
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8850
|
-
|
|
8838
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8851
8839
|
if (innerIndex === 0) {
|
|
8852
8840
|
return React__default.createElement(
|
|
8853
8841
|
'div',
|
|
@@ -8934,7 +8922,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8934
8922
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8935
8923
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8936
8924
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8937
|
-
React__default.createElement('img', _extends
|
|
8925
|
+
React__default.createElement('img', _extends({
|
|
8938
8926
|
style: figureImageStyle,
|
|
8939
8927
|
className: 'figure-image',
|
|
8940
8928
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9049,7 +9037,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9049
9037
|
React__default.Fragment,
|
|
9050
9038
|
null,
|
|
9051
9039
|
React__default.createElement(
|
|
9052
|
-
Figure$
|
|
9040
|
+
Figure$2,
|
|
9053
9041
|
{ className: '' + class_name, style: figureStyle },
|
|
9054
9042
|
link ? React__default.createElement(
|
|
9055
9043
|
'a',
|
|
@@ -9096,33 +9084,6 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9096
9084
|
}, [ref]);
|
|
9097
9085
|
}
|
|
9098
9086
|
|
|
9099
|
-
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9100
|
-
var imagesCount = _ref.imagesCount,
|
|
9101
|
-
image = _ref.image,
|
|
9102
|
-
client = _ref.client,
|
|
9103
|
-
imgAlt = _ref.imgAlt,
|
|
9104
|
-
link = _ref.link,
|
|
9105
|
-
handleClickFigure = _ref.handleClickFigure;
|
|
9106
|
-
|
|
9107
|
-
return React__default.createElement(
|
|
9108
|
-
'picture',
|
|
9109
|
-
null,
|
|
9110
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9111
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9112
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9113
|
-
React__default.createElement('img', _extends$1({
|
|
9114
|
-
'images-count': imagesCount,
|
|
9115
|
-
className: 'multi-figure-image',
|
|
9116
|
-
src: urlFor({ source: image, client: client }),
|
|
9117
|
-
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9118
|
-
}, !link && {
|
|
9119
|
-
onClick: function onClick() {
|
|
9120
|
-
return handleClickFigure(image, client);
|
|
9121
|
-
}
|
|
9122
|
-
}))
|
|
9123
|
-
);
|
|
9124
|
-
});
|
|
9125
|
-
|
|
9126
9087
|
var MultiFigure = function MultiFigure(props) {
|
|
9127
9088
|
var images = props.node.images,
|
|
9128
9089
|
client = props.client,
|
|
@@ -9142,9 +9103,9 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9142
9103
|
var lightboxContainer = useRef(null);
|
|
9143
9104
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9144
9105
|
|
|
9145
|
-
var FigureCaption = function FigureCaption(
|
|
9146
|
-
var caption =
|
|
9147
|
-
imgcaption =
|
|
9106
|
+
var FigureCaption = function FigureCaption(_ref) {
|
|
9107
|
+
var caption = _ref.caption,
|
|
9108
|
+
imgcaption = _ref.imgcaption;
|
|
9148
9109
|
|
|
9149
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9150
9111
|
return React__default.createElement(
|
|
@@ -9157,11 +9118,6 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9157
9118
|
} else return null;
|
|
9158
9119
|
};
|
|
9159
9120
|
|
|
9160
|
-
var handleClickFigure = useCallback(function (image, client) {
|
|
9161
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9162
|
-
setOpenImg(true);
|
|
9163
|
-
}, [client]);
|
|
9164
|
-
|
|
9165
9121
|
if (images && images.length > 0) {
|
|
9166
9122
|
return React__default.createElement(
|
|
9167
9123
|
'div',
|
|
@@ -9175,14 +9131,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9175
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9176
9132
|
image.link ? React__default.createElement(
|
|
9177
9133
|
'a',
|
|
9178
|
-
_extends
|
|
9134
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9179
9135
|
React__default.createElement(
|
|
9180
9136
|
'div',
|
|
9181
9137
|
{ className: 'multi-figure-image-container' },
|
|
9182
9138
|
React__default.createElement(
|
|
9183
9139
|
LazyLoad,
|
|
9184
9140
|
{ once: true },
|
|
9185
|
-
React__default.createElement(
|
|
9141
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9186
9142
|
),
|
|
9187
9143
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9188
9144
|
)
|
|
@@ -9192,7 +9148,16 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9192
9148
|
React__default.createElement(
|
|
9193
9149
|
LazyLoad,
|
|
9194
9150
|
{ once: true },
|
|
9195
|
-
React__default.createElement(
|
|
9151
|
+
React__default.createElement('img', {
|
|
9152
|
+
'images-count': images.length,
|
|
9153
|
+
className: 'multi-figure-image',
|
|
9154
|
+
src: urlFor({ source: image.asset, client: client }),
|
|
9155
|
+
alt: image.alt,
|
|
9156
|
+
onClick: function onClick() {
|
|
9157
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9158
|
+
setOpenImg(true);
|
|
9159
|
+
}
|
|
9160
|
+
})
|
|
9196
9161
|
),
|
|
9197
9162
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9198
9163
|
)
|
|
@@ -9207,7 +9172,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9207
9172
|
React__default.createElement(
|
|
9208
9173
|
'style',
|
|
9209
9174
|
{ jsx: 'true' },
|
|
9210
|
-
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n
|
|
9175
|
+
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
9211
9176
|
)
|
|
9212
9177
|
);
|
|
9213
9178
|
}
|
|
@@ -9258,7 +9223,7 @@ exports.__esModule = true;
|
|
|
9258
9223
|
|
|
9259
9224
|
|
|
9260
9225
|
|
|
9261
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9226
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9262
9227
|
|
|
9263
9228
|
|
|
9264
9229
|
|
|
@@ -9427,9 +9392,9 @@ var ScriptTag = function (_Component) {
|
|
|
9427
9392
|
|
|
9428
9393
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9429
9394
|
// eslint-disable-next-line no-unused-vars
|
|
9430
|
-
var _props3 = this.props
|
|
9431
|
-
|
|
9432
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9395
|
+
var _props3 = this.props;
|
|
9396
|
+
_props3.isHydrating;
|
|
9397
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9433
9398
|
|
|
9434
9399
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9435
9400
|
return _this2.domRef = tag;
|
|
@@ -9571,7 +9536,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9571
9536
|
return React__default.createElement(
|
|
9572
9537
|
'div',
|
|
9573
9538
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9574
|
-
React__default.createElement(BlockContent, _extends
|
|
9539
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9575
9540
|
);
|
|
9576
9541
|
})
|
|
9577
9542
|
);
|
|
@@ -9699,7 +9664,7 @@ var getSerializers = function getSerializers() {
|
|
|
9699
9664
|
var node = _ref6.node;
|
|
9700
9665
|
var slides = node.slides;
|
|
9701
9666
|
|
|
9702
|
-
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9667
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9703
9668
|
},
|
|
9704
9669
|
sidebar: function sidebar(_ref7) {
|
|
9705
9670
|
var node = _ref7.node;
|
|
@@ -9737,12 +9702,12 @@ var getSerializers = function getSerializers() {
|
|
|
9737
9702
|
poll: function poll(_ref13) {
|
|
9738
9703
|
var node = _ref13.node;
|
|
9739
9704
|
|
|
9740
|
-
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9705
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9741
9706
|
},
|
|
9742
9707
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9743
9708
|
var node = _ref14.node;
|
|
9744
9709
|
|
|
9745
|
-
return React__default.createElement(Poll
|
|
9710
|
+
return React__default.createElement(Poll, {
|
|
9746
9711
|
node: node,
|
|
9747
9712
|
client: client,
|
|
9748
9713
|
pageview: pageview,
|
|
@@ -9768,7 +9733,7 @@ var getSerializers = function getSerializers() {
|
|
|
9768
9733
|
slideshows: function slideshows(_ref17) {
|
|
9769
9734
|
var node = _ref17.node;
|
|
9770
9735
|
|
|
9771
|
-
return React__default.createElement(Slideshow
|
|
9736
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9772
9737
|
},
|
|
9773
9738
|
nativeAd: function nativeAd(_ref18) {
|
|
9774
9739
|
var node = _ref18.node;
|