@mjhls/mjh-framework 1.0.850-affiliatefix-v1 → 1.0.850-beta.1
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 +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-98c71bcd.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-9de32585.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +101 -34
- package/dist/cjs/AdSlotsProvider.js +33 -25
- package/dist/cjs/AlgoliaSearch.js +1080 -1076
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +58 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -62
- package/dist/cjs/AuthWrapper.js +423 -1739
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +37 -38
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +90 -94
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +79 -81
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +304 -190
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +141 -146
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -73
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +73 -78
- package/dist/cjs/IssueDeck.js +72 -77
- package/dist/cjs/IssueLanding.js +92 -96
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1138 -1230
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +148 -153
- package/dist/cjs/NavNative.js +145 -153
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +72 -73
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +106 -115
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +40 -43
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +62 -67
- package/dist/cjs/PublicationLanding.js +135 -139
- package/dist/cjs/QueueDeckExpanded.js +2172 -1167
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +54 -55
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +368 -343
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-8bbc989f.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +54 -56
- package/dist/cjs/TemplateNormal.js +74 -75
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +30 -31
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +73 -78
- package/dist/cjs/VideoSeriesCard.js +33 -34
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -51
- package/dist/cjs/VideoSeriesListing.js +82 -81
- package/dist/cjs/View.js +342 -266
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +66 -67
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +327 -10
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +28 -445
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +44 -45
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-f1821260.js} +26 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-060c5d65.js → index-4151deb3.js} +1615 -1009
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +158 -170
- package/dist/cjs/{inherits-c2065b95.js → inherits-9953db94.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -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-4bf3b2f9.js → ADInfeed-bbdd5398.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-a3377c4a.js → ADlgInfeed-4473ee3b.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +92 -24
- package/dist/esm/AdSlotsProvider.js +27 -17
- package/dist/esm/AlgoliaSearch.js +530 -525
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +49 -50
- package/dist/esm/ArticleSeriesLandingPage.js +32 -32
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/AuthWrapper.js +396 -1711
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +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-2c43d2a0.js → Dfp-b7236041.js} +15 -15
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +47 -48
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +200 -82
- 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 +46 -47
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +81 -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 +662 -751
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +44 -44
- package/dist/esm/NavNative.js +49 -49
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +55 -63
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +32 -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 +2102 -1097
- 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 +368 -343
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-a866bb21.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +45 -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 +53 -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 +39 -37
- package/dist/esm/View.js +173 -93
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-4877b617.js} +33 -33
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +325 -8
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +28 -445
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +44 -45
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-bd800589.js} +25 -16
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-01d53c17.js → index-d6dc592a.js} +1261 -648
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +117 -125
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +116 -110
- package/dist/cjs/Auth.js +0 -3652
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/md5-e1ca5797.js +0 -323
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/cjs/util-6f784d85.js +0 -576
- package/dist/esm/Auth.js +0 -3632
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/md5-4e42248e.js +0 -321
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- package/dist/esm/util-3ab476bf.js +0 -574
|
@@ -1,37 +1,36 @@
|
|
|
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$2 } from './inherits-cf8dde54.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
1
7
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import urlFor from './urlFor.js';
|
|
5
|
-
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
8
9
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { 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';
|
|
19
|
-
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
21
|
-
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
30
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
+
import Segment from './Segment.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
|
+
import GroupDeck from './GroupDeck.js';
|
|
26
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
31
29
|
import Head from 'next/head';
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
30
|
+
import SocialShare from './SocialShare.js';
|
|
31
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
32
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
33
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
34
|
|
|
36
35
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
37
36
|
var pageNumber = selectedIndex + 1;
|
|
@@ -39,7 +38,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
39
38
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
var Slideshow
|
|
41
|
+
var Slideshow = function Slideshow(_ref) {
|
|
43
42
|
var slides = _ref.slides,
|
|
44
43
|
client = _ref.client,
|
|
45
44
|
pageview = _ref.pageview;
|
|
@@ -78,7 +77,14 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
78
77
|
return React__default.createElement(
|
|
79
78
|
Carousel.Item,
|
|
80
79
|
{ key: slide._key },
|
|
81
|
-
React__default.createElement(
|
|
80
|
+
React__default.createElement(
|
|
81
|
+
'picture',
|
|
82
|
+
null,
|
|
83
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
84
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
85
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
86
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
87
|
+
),
|
|
82
88
|
slide.caption && React__default.createElement(
|
|
83
89
|
'p',
|
|
84
90
|
{ className: 'p-2' },
|
|
@@ -90,18 +96,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
90
96
|
);
|
|
91
97
|
};
|
|
92
98
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
var isArray = Array.isArray;
|
|
100
|
+
var keyList = Object.keys;
|
|
101
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
96
102
|
|
|
97
103
|
var fastDeepEqual = function equal(a, b) {
|
|
98
104
|
if (a === b) return true;
|
|
99
105
|
|
|
100
106
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
101
|
-
|
|
107
|
+
var arrA = isArray(a)
|
|
108
|
+
, arrB = isArray(b)
|
|
109
|
+
, i
|
|
110
|
+
, length
|
|
111
|
+
, key;
|
|
102
112
|
|
|
103
|
-
|
|
104
|
-
if (Array.isArray(a)) {
|
|
113
|
+
if (arrA && arrB) {
|
|
105
114
|
length = a.length;
|
|
106
115
|
if (length != b.length) return false;
|
|
107
116
|
for (i = length; i-- !== 0;)
|
|
@@ -109,29 +118,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
109
118
|
return true;
|
|
110
119
|
}
|
|
111
120
|
|
|
121
|
+
if (arrA != arrB) return false;
|
|
112
122
|
|
|
123
|
+
var dateA = a instanceof Date
|
|
124
|
+
, dateB = b instanceof Date;
|
|
125
|
+
if (dateA != dateB) return false;
|
|
126
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
113
127
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
if (
|
|
128
|
+
var regexpA = a instanceof RegExp
|
|
129
|
+
, regexpB = b instanceof RegExp;
|
|
130
|
+
if (regexpA != regexpB) return false;
|
|
131
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
117
132
|
|
|
118
|
-
keys =
|
|
133
|
+
var keys = keyList(a);
|
|
119
134
|
length = keys.length;
|
|
120
|
-
|
|
135
|
+
|
|
136
|
+
if (length !== keyList(b).length)
|
|
137
|
+
return false;
|
|
121
138
|
|
|
122
139
|
for (i = length; i-- !== 0;)
|
|
123
|
-
if (!
|
|
140
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
124
141
|
|
|
125
142
|
for (i = length; i-- !== 0;) {
|
|
126
|
-
|
|
127
|
-
|
|
143
|
+
key = keys[i];
|
|
128
144
|
if (!equal(a[key], b[key])) return false;
|
|
129
145
|
}
|
|
130
146
|
|
|
131
147
|
return true;
|
|
132
148
|
}
|
|
133
149
|
|
|
134
|
-
// true if both NaN, false otherwise
|
|
135
150
|
return a!==a && b!==b;
|
|
136
151
|
};
|
|
137
152
|
|
|
@@ -669,14 +684,14 @@ function coerce(val) {
|
|
|
669
684
|
return val;
|
|
670
685
|
}
|
|
671
686
|
});
|
|
672
|
-
debug.coerce;
|
|
673
|
-
debug.disable;
|
|
674
|
-
debug.enable;
|
|
675
|
-
debug.enabled;
|
|
676
|
-
debug.humanize;
|
|
677
|
-
debug.names;
|
|
678
|
-
debug.skips;
|
|
679
|
-
debug.formatters;
|
|
687
|
+
var debug_1 = debug.coerce;
|
|
688
|
+
var debug_2 = debug.disable;
|
|
689
|
+
var debug_3 = debug.enable;
|
|
690
|
+
var debug_4 = debug.enabled;
|
|
691
|
+
var debug_5 = debug.humanize;
|
|
692
|
+
var debug_6 = debug.names;
|
|
693
|
+
var debug_7 = debug.skips;
|
|
694
|
+
var debug_8 = debug.formatters;
|
|
680
695
|
|
|
681
696
|
var browser = createCommonjsModule(function (module, exports) {
|
|
682
697
|
/**
|
|
@@ -865,13 +880,13 @@ function localstorage() {
|
|
|
865
880
|
} catch (e) {}
|
|
866
881
|
}
|
|
867
882
|
});
|
|
868
|
-
browser.log;
|
|
869
|
-
browser.formatArgs;
|
|
870
|
-
browser.save;
|
|
871
|
-
browser.load;
|
|
872
|
-
browser.useColors;
|
|
873
|
-
browser.storage;
|
|
874
|
-
browser.colors;
|
|
883
|
+
var browser_1 = browser.log;
|
|
884
|
+
var browser_2 = browser.formatArgs;
|
|
885
|
+
var browser_3 = browser.save;
|
|
886
|
+
var browser_4 = browser.load;
|
|
887
|
+
var browser_5 = browser.useColors;
|
|
888
|
+
var browser_6 = browser.storage;
|
|
889
|
+
var browser_7 = browser.colors;
|
|
875
890
|
|
|
876
891
|
// MIT lisence
|
|
877
892
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -894,6 +909,579 @@ var tty = {
|
|
|
894
909
|
WriteStream: WriteStream
|
|
895
910
|
};
|
|
896
911
|
|
|
912
|
+
var inherits;
|
|
913
|
+
if (typeof Object.create === 'function'){
|
|
914
|
+
inherits = function inherits(ctor, superCtor) {
|
|
915
|
+
// implementation from standard node.js 'util' module
|
|
916
|
+
ctor.super_ = superCtor;
|
|
917
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
918
|
+
constructor: {
|
|
919
|
+
value: ctor,
|
|
920
|
+
enumerable: false,
|
|
921
|
+
writable: true,
|
|
922
|
+
configurable: true
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
};
|
|
926
|
+
} else {
|
|
927
|
+
inherits = function inherits(ctor, superCtor) {
|
|
928
|
+
ctor.super_ = superCtor;
|
|
929
|
+
var TempCtor = function () {};
|
|
930
|
+
TempCtor.prototype = superCtor.prototype;
|
|
931
|
+
ctor.prototype = new TempCtor();
|
|
932
|
+
ctor.prototype.constructor = ctor;
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
var inherits$1 = inherits;
|
|
936
|
+
|
|
937
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
938
|
+
var formatRegExp = /%[sdj%]/g;
|
|
939
|
+
function format(f) {
|
|
940
|
+
if (!isString(f)) {
|
|
941
|
+
var objects = [];
|
|
942
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
943
|
+
objects.push(inspect(arguments[i]));
|
|
944
|
+
}
|
|
945
|
+
return objects.join(' ');
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
var i = 1;
|
|
949
|
+
var args = arguments;
|
|
950
|
+
var len = args.length;
|
|
951
|
+
var str = String(f).replace(formatRegExp, function(x) {
|
|
952
|
+
if (x === '%%') return '%';
|
|
953
|
+
if (i >= len) return x;
|
|
954
|
+
switch (x) {
|
|
955
|
+
case '%s': return String(args[i++]);
|
|
956
|
+
case '%d': return Number(args[i++]);
|
|
957
|
+
case '%j':
|
|
958
|
+
try {
|
|
959
|
+
return JSON.stringify(args[i++]);
|
|
960
|
+
} catch (_) {
|
|
961
|
+
return '[Circular]';
|
|
962
|
+
}
|
|
963
|
+
default:
|
|
964
|
+
return x;
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
for (var x = args[i]; i < len; x = args[++i]) {
|
|
968
|
+
if (isNull(x) || !isObject(x)) {
|
|
969
|
+
str += ' ' + x;
|
|
970
|
+
} else {
|
|
971
|
+
str += ' ' + inspect(x);
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
return str;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
// Mark that a method should not be used.
|
|
978
|
+
// Returns a modified function which warns once by default.
|
|
979
|
+
// If --no-deprecation is set, then it is a no-op.
|
|
980
|
+
function deprecate(fn, msg) {
|
|
981
|
+
// Allow for deprecating things in the process of starting up.
|
|
982
|
+
if (isUndefined(global.process)) {
|
|
983
|
+
return function() {
|
|
984
|
+
return deprecate(fn, msg).apply(this, arguments);
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
var warned = false;
|
|
989
|
+
function deprecated() {
|
|
990
|
+
if (!warned) {
|
|
991
|
+
{
|
|
992
|
+
console.error(msg);
|
|
993
|
+
}
|
|
994
|
+
warned = true;
|
|
995
|
+
}
|
|
996
|
+
return fn.apply(this, arguments);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
return deprecated;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
var debugs = {};
|
|
1003
|
+
var debugEnviron;
|
|
1004
|
+
function debuglog(set) {
|
|
1005
|
+
if (isUndefined(debugEnviron))
|
|
1006
|
+
debugEnviron = '';
|
|
1007
|
+
set = set.toUpperCase();
|
|
1008
|
+
if (!debugs[set]) {
|
|
1009
|
+
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
1010
|
+
var pid = 0;
|
|
1011
|
+
debugs[set] = function() {
|
|
1012
|
+
var msg = format.apply(null, arguments);
|
|
1013
|
+
console.error('%s %d: %s', set, pid, msg);
|
|
1014
|
+
};
|
|
1015
|
+
} else {
|
|
1016
|
+
debugs[set] = function() {};
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
return debugs[set];
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Echos the value of a value. Trys to print the value out
|
|
1024
|
+
* in the best way possible given the different types.
|
|
1025
|
+
*
|
|
1026
|
+
* @param {Object} obj The object to print out.
|
|
1027
|
+
* @param {Object} opts Optional options object that alters the output.
|
|
1028
|
+
*/
|
|
1029
|
+
/* legacy: obj, showHidden, depth, colors*/
|
|
1030
|
+
function inspect(obj, opts) {
|
|
1031
|
+
// default options
|
|
1032
|
+
var ctx = {
|
|
1033
|
+
seen: [],
|
|
1034
|
+
stylize: stylizeNoColor
|
|
1035
|
+
};
|
|
1036
|
+
// legacy...
|
|
1037
|
+
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1038
|
+
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1039
|
+
if (isBoolean(opts)) {
|
|
1040
|
+
// legacy...
|
|
1041
|
+
ctx.showHidden = opts;
|
|
1042
|
+
} else if (opts) {
|
|
1043
|
+
// got an "options" object
|
|
1044
|
+
_extend(ctx, opts);
|
|
1045
|
+
}
|
|
1046
|
+
// set default options
|
|
1047
|
+
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1048
|
+
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1049
|
+
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1050
|
+
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1051
|
+
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1052
|
+
return formatValue(ctx, obj, ctx.depth);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
1056
|
+
inspect.colors = {
|
|
1057
|
+
'bold' : [1, 22],
|
|
1058
|
+
'italic' : [3, 23],
|
|
1059
|
+
'underline' : [4, 24],
|
|
1060
|
+
'inverse' : [7, 27],
|
|
1061
|
+
'white' : [37, 39],
|
|
1062
|
+
'grey' : [90, 39],
|
|
1063
|
+
'black' : [30, 39],
|
|
1064
|
+
'blue' : [34, 39],
|
|
1065
|
+
'cyan' : [36, 39],
|
|
1066
|
+
'green' : [32, 39],
|
|
1067
|
+
'magenta' : [35, 39],
|
|
1068
|
+
'red' : [31, 39],
|
|
1069
|
+
'yellow' : [33, 39]
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
// Don't use 'blue' not visible on cmd.exe
|
|
1073
|
+
inspect.styles = {
|
|
1074
|
+
'special': 'cyan',
|
|
1075
|
+
'number': 'yellow',
|
|
1076
|
+
'boolean': 'yellow',
|
|
1077
|
+
'undefined': 'grey',
|
|
1078
|
+
'null': 'bold',
|
|
1079
|
+
'string': 'green',
|
|
1080
|
+
'date': 'magenta',
|
|
1081
|
+
// "name": intentionally not styling
|
|
1082
|
+
'regexp': 'red'
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
function stylizeWithColor(str, styleType) {
|
|
1087
|
+
var style = inspect.styles[styleType];
|
|
1088
|
+
|
|
1089
|
+
if (style) {
|
|
1090
|
+
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
1091
|
+
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
1092
|
+
} else {
|
|
1093
|
+
return str;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
function stylizeNoColor(str, styleType) {
|
|
1099
|
+
return str;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
function arrayToHash(array) {
|
|
1104
|
+
var hash = {};
|
|
1105
|
+
|
|
1106
|
+
array.forEach(function(val, idx) {
|
|
1107
|
+
hash[val] = true;
|
|
1108
|
+
});
|
|
1109
|
+
|
|
1110
|
+
return hash;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
function formatValue(ctx, value, recurseTimes) {
|
|
1115
|
+
// Provide a hook for user-specified inspect functions.
|
|
1116
|
+
// Check that value is an object with an inspect function on it
|
|
1117
|
+
if (ctx.customInspect &&
|
|
1118
|
+
value &&
|
|
1119
|
+
isFunction(value.inspect) &&
|
|
1120
|
+
// Filter out the util module, it's inspect function is special
|
|
1121
|
+
value.inspect !== inspect &&
|
|
1122
|
+
// Also filter out any prototype objects using the circular check.
|
|
1123
|
+
!(value.constructor && value.constructor.prototype === value)) {
|
|
1124
|
+
var ret = value.inspect(recurseTimes, ctx);
|
|
1125
|
+
if (!isString(ret)) {
|
|
1126
|
+
ret = formatValue(ctx, ret, recurseTimes);
|
|
1127
|
+
}
|
|
1128
|
+
return ret;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
// Primitive types cannot have properties
|
|
1132
|
+
var primitive = formatPrimitive(ctx, value);
|
|
1133
|
+
if (primitive) {
|
|
1134
|
+
return primitive;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
// Look up the keys of the object.
|
|
1138
|
+
var keys = Object.keys(value);
|
|
1139
|
+
var visibleKeys = arrayToHash(keys);
|
|
1140
|
+
|
|
1141
|
+
if (ctx.showHidden) {
|
|
1142
|
+
keys = Object.getOwnPropertyNames(value);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
// IE doesn't make error fields non-enumerable
|
|
1146
|
+
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
1147
|
+
if (isError(value)
|
|
1148
|
+
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
1149
|
+
return formatError(value);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
// Some type of object without properties can be shortcutted.
|
|
1153
|
+
if (keys.length === 0) {
|
|
1154
|
+
if (isFunction(value)) {
|
|
1155
|
+
var name = value.name ? ': ' + value.name : '';
|
|
1156
|
+
return ctx.stylize('[Function' + name + ']', 'special');
|
|
1157
|
+
}
|
|
1158
|
+
if (isRegExp(value)) {
|
|
1159
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1160
|
+
}
|
|
1161
|
+
if (isDate(value)) {
|
|
1162
|
+
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
1163
|
+
}
|
|
1164
|
+
if (isError(value)) {
|
|
1165
|
+
return formatError(value);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
var base = '', array = false, braces = ['{', '}'];
|
|
1170
|
+
|
|
1171
|
+
// Make Array say that they are Array
|
|
1172
|
+
if (isArray$1(value)) {
|
|
1173
|
+
array = true;
|
|
1174
|
+
braces = ['[', ']'];
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
// Make functions say that they are functions
|
|
1178
|
+
if (isFunction(value)) {
|
|
1179
|
+
var n = value.name ? ': ' + value.name : '';
|
|
1180
|
+
base = ' [Function' + n + ']';
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
// Make RegExps say that they are RegExps
|
|
1184
|
+
if (isRegExp(value)) {
|
|
1185
|
+
base = ' ' + RegExp.prototype.toString.call(value);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
// Make dates with properties first say the date
|
|
1189
|
+
if (isDate(value)) {
|
|
1190
|
+
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
// Make error with message first say the error
|
|
1194
|
+
if (isError(value)) {
|
|
1195
|
+
base = ' ' + formatError(value);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
1199
|
+
return braces[0] + base + braces[1];
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
if (recurseTimes < 0) {
|
|
1203
|
+
if (isRegExp(value)) {
|
|
1204
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1205
|
+
} else {
|
|
1206
|
+
return ctx.stylize('[Object]', 'special');
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
ctx.seen.push(value);
|
|
1211
|
+
|
|
1212
|
+
var output;
|
|
1213
|
+
if (array) {
|
|
1214
|
+
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1215
|
+
} else {
|
|
1216
|
+
output = keys.map(function(key) {
|
|
1217
|
+
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
ctx.seen.pop();
|
|
1222
|
+
|
|
1223
|
+
return reduceToSingleString(output, base, braces);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
function formatPrimitive(ctx, value) {
|
|
1228
|
+
if (isUndefined(value))
|
|
1229
|
+
return ctx.stylize('undefined', 'undefined');
|
|
1230
|
+
if (isString(value)) {
|
|
1231
|
+
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
1232
|
+
.replace(/'/g, "\\'")
|
|
1233
|
+
.replace(/\\"/g, '"') + '\'';
|
|
1234
|
+
return ctx.stylize(simple, 'string');
|
|
1235
|
+
}
|
|
1236
|
+
if (isNumber(value))
|
|
1237
|
+
return ctx.stylize('' + value, 'number');
|
|
1238
|
+
if (isBoolean(value))
|
|
1239
|
+
return ctx.stylize('' + value, 'boolean');
|
|
1240
|
+
// For some reason typeof null is "object", so special case here.
|
|
1241
|
+
if (isNull(value))
|
|
1242
|
+
return ctx.stylize('null', 'null');
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
function formatError(value) {
|
|
1247
|
+
return '[' + Error.prototype.toString.call(value) + ']';
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1252
|
+
var output = [];
|
|
1253
|
+
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1254
|
+
if (hasOwnProperty(value, String(i))) {
|
|
1255
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1256
|
+
String(i), true));
|
|
1257
|
+
} else {
|
|
1258
|
+
output.push('');
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
keys.forEach(function(key) {
|
|
1262
|
+
if (!key.match(/^\d+$/)) {
|
|
1263
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1264
|
+
key, true));
|
|
1265
|
+
}
|
|
1266
|
+
});
|
|
1267
|
+
return output;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1272
|
+
var name, str, desc;
|
|
1273
|
+
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1274
|
+
if (desc.get) {
|
|
1275
|
+
if (desc.set) {
|
|
1276
|
+
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
1277
|
+
} else {
|
|
1278
|
+
str = ctx.stylize('[Getter]', 'special');
|
|
1279
|
+
}
|
|
1280
|
+
} else {
|
|
1281
|
+
if (desc.set) {
|
|
1282
|
+
str = ctx.stylize('[Setter]', 'special');
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
if (!hasOwnProperty(visibleKeys, key)) {
|
|
1286
|
+
name = '[' + key + ']';
|
|
1287
|
+
}
|
|
1288
|
+
if (!str) {
|
|
1289
|
+
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1290
|
+
if (isNull(recurseTimes)) {
|
|
1291
|
+
str = formatValue(ctx, desc.value, null);
|
|
1292
|
+
} else {
|
|
1293
|
+
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1294
|
+
}
|
|
1295
|
+
if (str.indexOf('\n') > -1) {
|
|
1296
|
+
if (array) {
|
|
1297
|
+
str = str.split('\n').map(function(line) {
|
|
1298
|
+
return ' ' + line;
|
|
1299
|
+
}).join('\n').substr(2);
|
|
1300
|
+
} else {
|
|
1301
|
+
str = '\n' + str.split('\n').map(function(line) {
|
|
1302
|
+
return ' ' + line;
|
|
1303
|
+
}).join('\n');
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
} else {
|
|
1307
|
+
str = ctx.stylize('[Circular]', 'special');
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
if (isUndefined(name)) {
|
|
1311
|
+
if (array && key.match(/^\d+$/)) {
|
|
1312
|
+
return str;
|
|
1313
|
+
}
|
|
1314
|
+
name = JSON.stringify('' + key);
|
|
1315
|
+
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1316
|
+
name = name.substr(1, name.length - 2);
|
|
1317
|
+
name = ctx.stylize(name, 'name');
|
|
1318
|
+
} else {
|
|
1319
|
+
name = name.replace(/'/g, "\\'")
|
|
1320
|
+
.replace(/\\"/g, '"')
|
|
1321
|
+
.replace(/(^"|"$)/g, "'");
|
|
1322
|
+
name = ctx.stylize(name, 'string');
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
return name + ': ' + str;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
function reduceToSingleString(output, base, braces) {
|
|
1331
|
+
var length = output.reduce(function(prev, cur) {
|
|
1332
|
+
if (cur.indexOf('\n') >= 0) ;
|
|
1333
|
+
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
1334
|
+
}, 0);
|
|
1335
|
+
|
|
1336
|
+
if (length > 60) {
|
|
1337
|
+
return braces[0] +
|
|
1338
|
+
(base === '' ? '' : base + '\n ') +
|
|
1339
|
+
' ' +
|
|
1340
|
+
output.join(',\n ') +
|
|
1341
|
+
' ' +
|
|
1342
|
+
braces[1];
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
1350
|
+
// because it is fragile and can be easily faked with `Object.create()`.
|
|
1351
|
+
function isArray$1(ar) {
|
|
1352
|
+
return Array.isArray(ar);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
function isBoolean(arg) {
|
|
1356
|
+
return typeof arg === 'boolean';
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
function isNull(arg) {
|
|
1360
|
+
return arg === null;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
function isNullOrUndefined(arg) {
|
|
1364
|
+
return arg == null;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
function isNumber(arg) {
|
|
1368
|
+
return typeof arg === 'number';
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
function isString(arg) {
|
|
1372
|
+
return typeof arg === 'string';
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
function isSymbol(arg) {
|
|
1376
|
+
return typeof arg === 'symbol';
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
function isUndefined(arg) {
|
|
1380
|
+
return arg === void 0;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
function isRegExp(re) {
|
|
1384
|
+
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
function isObject(arg) {
|
|
1388
|
+
return typeof arg === 'object' && arg !== null;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
function isDate(d) {
|
|
1392
|
+
return isObject(d) && objectToString(d) === '[object Date]';
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
function isError(e) {
|
|
1396
|
+
return isObject(e) &&
|
|
1397
|
+
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
function isFunction(arg) {
|
|
1401
|
+
return typeof arg === 'function';
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
function isPrimitive(arg) {
|
|
1405
|
+
return arg === null ||
|
|
1406
|
+
typeof arg === 'boolean' ||
|
|
1407
|
+
typeof arg === 'number' ||
|
|
1408
|
+
typeof arg === 'string' ||
|
|
1409
|
+
typeof arg === 'symbol' || // ES6 symbol
|
|
1410
|
+
typeof arg === 'undefined';
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
function isBuffer(maybeBuf) {
|
|
1414
|
+
return Buffer.isBuffer(maybeBuf);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
function objectToString(o) {
|
|
1418
|
+
return Object.prototype.toString.call(o);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
function pad(n) {
|
|
1423
|
+
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
1428
|
+
'Oct', 'Nov', 'Dec'];
|
|
1429
|
+
|
|
1430
|
+
// 26 Feb 16:19:34
|
|
1431
|
+
function timestamp() {
|
|
1432
|
+
var d = new Date();
|
|
1433
|
+
var time = [pad(d.getHours()),
|
|
1434
|
+
pad(d.getMinutes()),
|
|
1435
|
+
pad(d.getSeconds())].join(':');
|
|
1436
|
+
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
1441
|
+
function log() {
|
|
1442
|
+
console.log('%s - %s', timestamp(), format.apply(null, arguments));
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
function _extend(origin, add) {
|
|
1446
|
+
// Don't do anything if add isn't an object
|
|
1447
|
+
if (!add || !isObject(add)) return origin;
|
|
1448
|
+
|
|
1449
|
+
var keys = Object.keys(add);
|
|
1450
|
+
var i = keys.length;
|
|
1451
|
+
while (i--) {
|
|
1452
|
+
origin[keys[i]] = add[keys[i]];
|
|
1453
|
+
}
|
|
1454
|
+
return origin;
|
|
1455
|
+
}
|
|
1456
|
+
function hasOwnProperty(obj, prop) {
|
|
1457
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
var util = {
|
|
1461
|
+
inherits: inherits$1,
|
|
1462
|
+
_extend: _extend,
|
|
1463
|
+
log: log,
|
|
1464
|
+
isBuffer: isBuffer,
|
|
1465
|
+
isPrimitive: isPrimitive,
|
|
1466
|
+
isFunction: isFunction,
|
|
1467
|
+
isError: isError,
|
|
1468
|
+
isDate: isDate,
|
|
1469
|
+
isObject: isObject,
|
|
1470
|
+
isRegExp: isRegExp,
|
|
1471
|
+
isUndefined: isUndefined,
|
|
1472
|
+
isSymbol: isSymbol,
|
|
1473
|
+
isString: isString,
|
|
1474
|
+
isNumber: isNumber,
|
|
1475
|
+
isNullOrUndefined: isNullOrUndefined,
|
|
1476
|
+
isNull: isNull,
|
|
1477
|
+
isBoolean: isBoolean,
|
|
1478
|
+
isArray: isArray$1,
|
|
1479
|
+
inspect: inspect,
|
|
1480
|
+
deprecate: deprecate,
|
|
1481
|
+
format: format,
|
|
1482
|
+
debuglog: debuglog
|
|
1483
|
+
};
|
|
1484
|
+
|
|
897
1485
|
var require$$2 = {};
|
|
898
1486
|
|
|
899
1487
|
var node = createCommonjsModule(function (module, exports) {
|
|
@@ -1146,14 +1734,14 @@ function init (debug) {
|
|
|
1146
1734
|
|
|
1147
1735
|
exports.enable(load());
|
|
1148
1736
|
});
|
|
1149
|
-
node.init;
|
|
1150
|
-
node.log;
|
|
1151
|
-
node.formatArgs;
|
|
1152
|
-
node.save;
|
|
1153
|
-
node.load;
|
|
1154
|
-
node.useColors;
|
|
1155
|
-
node.colors;
|
|
1156
|
-
node.inspectOpts;
|
|
1737
|
+
var node_1 = node.init;
|
|
1738
|
+
var node_2 = node.log;
|
|
1739
|
+
var node_3 = node.formatArgs;
|
|
1740
|
+
var node_4 = node.save;
|
|
1741
|
+
var node_5 = node.load;
|
|
1742
|
+
var node_6 = node.useColors;
|
|
1743
|
+
var node_7 = node.colors;
|
|
1744
|
+
var node_8 = node.inspectOpts;
|
|
1157
1745
|
|
|
1158
1746
|
var src = createCommonjsModule(function (module) {
|
|
1159
1747
|
/**
|
|
@@ -1554,239 +2142,199 @@ module.exports = exports['default'];
|
|
|
1554
2142
|
|
|
1555
2143
|
var youTubePlayer = unwrapExports(dist);
|
|
1556
2144
|
|
|
1557
|
-
function
|
|
1558
|
-
|
|
1559
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2145
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1560
2146
|
|
|
1561
|
-
function
|
|
1562
|
-
|
|
1563
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2147
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1564
2148
|
|
|
1565
|
-
function
|
|
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); }; }
|
|
1570
|
-
|
|
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; } }
|
|
2149
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1576
2150
|
|
|
1577
|
-
function
|
|
2151
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1578
2152
|
|
|
1579
|
-
function
|
|
2153
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1580
2154
|
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object} prevProps
|
|
1588
|
-
* @param {Object} props
|
|
2155
|
+
/**
|
|
2156
|
+
* Check whether a `props` change should result in the video being updated.
|
|
2157
|
+
*
|
|
2158
|
+
* @param {Object} prevProps
|
|
2159
|
+
* @param {Object} props
|
|
1589
2160
|
*/
|
|
1590
|
-
|
|
1591
2161
|
function shouldUpdateVideo(prevProps, props) {
|
|
1592
2162
|
// A changing video should always trigger an update
|
|
1593
2163
|
if (prevProps.videoId !== props.videoId) {
|
|
1594
2164
|
return true;
|
|
1595
|
-
}
|
|
1596
|
-
// update.
|
|
1597
|
-
|
|
2165
|
+
}
|
|
1598
2166
|
|
|
2167
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
2168
|
+
// update.
|
|
1599
2169
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1600
2170
|
var vars = props.opts.playerVars || {};
|
|
2171
|
+
|
|
1601
2172
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1602
2173
|
}
|
|
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
|
-
*/
|
|
1610
|
-
|
|
1611
2174
|
|
|
2175
|
+
/**
|
|
2176
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
2177
|
+
* that require a player reset. The results can then be compared to see if a
|
|
2178
|
+
* player reset is necessary.
|
|
2179
|
+
*
|
|
2180
|
+
* @param {Object} opts
|
|
2181
|
+
*/
|
|
1612
2182
|
function filterResetOptions(opts) {
|
|
1613
|
-
return
|
|
1614
|
-
playerVars:
|
|
2183
|
+
return _extends({}, opts, {
|
|
2184
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1615
2185
|
autoplay: 0,
|
|
1616
2186
|
start: 0,
|
|
1617
2187
|
end: 0
|
|
1618
|
-
}
|
|
2188
|
+
})
|
|
1619
2189
|
});
|
|
1620
2190
|
}
|
|
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
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
2191
|
|
|
2192
|
+
/**
|
|
2193
|
+
* Check whether a `props` change should result in the player being reset.
|
|
2194
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
2195
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
2196
|
+
* those.
|
|
2197
|
+
*
|
|
2198
|
+
* @param {Object} prevProps
|
|
2199
|
+
* @param {Object} props
|
|
2200
|
+
*/
|
|
1632
2201
|
function shouldResetPlayer(prevProps, props) {
|
|
1633
2202
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1634
2203
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Check whether a props change should result in an id or className update.
|
|
1637
|
-
*
|
|
1638
|
-
* @param {Object} prevProps
|
|
1639
|
-
* @param {Object} props
|
|
1640
|
-
*/
|
|
1641
|
-
|
|
1642
2204
|
|
|
2205
|
+
/**
|
|
2206
|
+
* Check whether a props change should result in an id or className update.
|
|
2207
|
+
*
|
|
2208
|
+
* @param {Object} prevProps
|
|
2209
|
+
* @param {Object} props
|
|
2210
|
+
*/
|
|
1643
2211
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1644
2212
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1645
2213
|
}
|
|
1646
2214
|
|
|
1647
|
-
var YouTube =
|
|
2215
|
+
var YouTube = function (_React$Component) {
|
|
1648
2216
|
_inherits(YouTube, _React$Component);
|
|
1649
2217
|
|
|
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
|
-
*/
|
|
1657
2218
|
function YouTube(props) {
|
|
1658
|
-
var _this;
|
|
1659
|
-
|
|
1660
2219
|
_classCallCheck(this, YouTube);
|
|
1661
2220
|
|
|
1662
|
-
_this =
|
|
2221
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1663
2222
|
|
|
1664
|
-
|
|
2223
|
+
_this.onPlayerReady = function (event) {
|
|
1665
2224
|
return _this.props.onReady(event);
|
|
1666
|
-
}
|
|
2225
|
+
};
|
|
1667
2226
|
|
|
1668
|
-
|
|
2227
|
+
_this.onPlayerError = function (event) {
|
|
1669
2228
|
return _this.props.onError(event);
|
|
1670
|
-
}
|
|
2229
|
+
};
|
|
1671
2230
|
|
|
1672
|
-
|
|
2231
|
+
_this.onPlayerStateChange = function (event) {
|
|
1673
2232
|
_this.props.onStateChange(event);
|
|
1674
|
-
|
|
1675
2233
|
switch (event.data) {
|
|
2234
|
+
|
|
1676
2235
|
case YouTube.PlayerState.ENDED:
|
|
1677
2236
|
_this.props.onEnd(event);
|
|
1678
|
-
|
|
1679
2237
|
break;
|
|
1680
2238
|
|
|
1681
2239
|
case YouTube.PlayerState.PLAYING:
|
|
1682
2240
|
_this.props.onPlay(event);
|
|
1683
|
-
|
|
1684
2241
|
break;
|
|
1685
2242
|
|
|
1686
2243
|
case YouTube.PlayerState.PAUSED:
|
|
1687
2244
|
_this.props.onPause(event);
|
|
1688
|
-
|
|
1689
2245
|
break;
|
|
1690
2246
|
}
|
|
1691
|
-
}
|
|
2247
|
+
};
|
|
1692
2248
|
|
|
1693
|
-
|
|
2249
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1694
2250
|
return _this.props.onPlaybackRateChange(event);
|
|
1695
|
-
}
|
|
2251
|
+
};
|
|
1696
2252
|
|
|
1697
|
-
|
|
2253
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1698
2254
|
return _this.props.onPlaybackQualityChange(event);
|
|
1699
|
-
}
|
|
2255
|
+
};
|
|
1700
2256
|
|
|
1701
|
-
|
|
2257
|
+
_this.createPlayer = function () {
|
|
1702
2258
|
// do not attempt to create a player server-side, it won't work
|
|
1703
|
-
if (typeof document === 'undefined') return;
|
|
1704
|
-
|
|
1705
|
-
var playerOpts =
|
|
2259
|
+
if (typeof document === 'undefined') return;
|
|
2260
|
+
// create player
|
|
2261
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1706
2262
|
// preload the `videoId` video if one is already given
|
|
1707
2263
|
videoId: _this.props.videoId
|
|
1708
2264
|
});
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
2265
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
2266
|
+
// attach event handlers
|
|
1712
2267
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
-
|
|
1714
2268
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
-
|
|
1716
2269
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
-
|
|
1718
2270
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
-
|
|
1720
2271
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1721
|
-
}
|
|
2272
|
+
};
|
|
1722
2273
|
|
|
1723
|
-
|
|
2274
|
+
_this.resetPlayer = function () {
|
|
1724
2275
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1725
|
-
}
|
|
2276
|
+
};
|
|
1726
2277
|
|
|
1727
|
-
|
|
2278
|
+
_this.updatePlayer = function () {
|
|
1728
2279
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1729
2280
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1730
2281
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1731
2282
|
});
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1735
|
-
return _this.internalPlayer;
|
|
1736
|
-
});
|
|
2283
|
+
};
|
|
1737
2284
|
|
|
1738
|
-
|
|
2285
|
+
_this.updateVideo = function () {
|
|
1739
2286
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1740
2287
|
_this.internalPlayer.stopVideo();
|
|
1741
|
-
|
|
1742
2288
|
return;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
2289
|
+
}
|
|
1745
2290
|
|
|
2291
|
+
// set queueing options
|
|
1746
2292
|
var autoplay = false;
|
|
1747
2293
|
var opts = {
|
|
1748
2294
|
videoId: _this.props.videoId
|
|
1749
2295
|
};
|
|
1750
|
-
|
|
1751
2296
|
if ('playerVars' in _this.props.opts) {
|
|
1752
2297
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
-
|
|
1754
2298
|
if ('start' in _this.props.opts.playerVars) {
|
|
1755
2299
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1756
2300
|
}
|
|
1757
|
-
|
|
1758
2301
|
if ('end' in _this.props.opts.playerVars) {
|
|
1759
2302
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1760
2303
|
}
|
|
1761
|
-
}
|
|
1762
|
-
|
|
2304
|
+
}
|
|
1763
2305
|
|
|
2306
|
+
// if autoplay is enabled loadVideoById
|
|
1764
2307
|
if (autoplay) {
|
|
1765
2308
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
-
|
|
1767
2309
|
return;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
|
|
2310
|
+
}
|
|
2311
|
+
// default behaviour just cues the video
|
|
1771
2312
|
_this.internalPlayer.cueVideoById(opts);
|
|
1772
|
-
}
|
|
2313
|
+
};
|
|
1773
2314
|
|
|
1774
|
-
|
|
2315
|
+
_this.refContainer = function (container) {
|
|
1775
2316
|
_this.container = container;
|
|
1776
|
-
}
|
|
2317
|
+
};
|
|
1777
2318
|
|
|
1778
2319
|
_this.container = null;
|
|
1779
2320
|
_this.internalPlayer = null;
|
|
1780
2321
|
return _this;
|
|
1781
2322
|
}
|
|
1782
2323
|
|
|
2324
|
+
/**
|
|
2325
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
2326
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
2327
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2328
|
+
*/
|
|
2329
|
+
|
|
2330
|
+
|
|
1783
2331
|
_createClass(YouTube, [{
|
|
1784
|
-
key:
|
|
2332
|
+
key: 'componentDidMount',
|
|
1785
2333
|
value: function componentDidMount() {
|
|
1786
2334
|
this.createPlayer();
|
|
1787
2335
|
}
|
|
1788
2336
|
}, {
|
|
1789
|
-
key:
|
|
2337
|
+
key: 'componentDidUpdate',
|
|
1790
2338
|
value: function componentDidUpdate(prevProps) {
|
|
1791
2339
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1792
2340
|
this.updatePlayer();
|
|
@@ -1801,58 +2349,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1801
2349
|
}
|
|
1802
2350
|
}
|
|
1803
2351
|
}, {
|
|
1804
|
-
key:
|
|
2352
|
+
key: 'componentWillUnmount',
|
|
1805
2353
|
value: function componentWillUnmount() {
|
|
1806
|
-
/**
|
|
1807
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
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.
|
|
2354
|
+
/**
|
|
2355
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
2356
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
2357
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
2358
|
+
* this method isn't quick enough to reset the container element.
|
|
1811
2359
|
*/
|
|
1812
2360
|
this.internalPlayer.destroy();
|
|
1813
2361
|
}
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
*
|
|
1817
|
-
*
|
|
1818
|
-
*
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
2365
|
+
*
|
|
2366
|
+
* @param {Object} event
|
|
2367
|
+
* @param {Object} target - player object
|
|
2368
|
+
*/
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
/**
|
|
2372
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
2373
|
+
*
|
|
2374
|
+
* @param {Object} event
|
|
2375
|
+
* @param {Integer} data - error type
|
|
2376
|
+
* @param {Object} target - player object
|
|
2377
|
+
*/
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2382
|
+
*
|
|
2383
|
+
* @param {Object} event
|
|
2384
|
+
* @param {Integer} data - status change type
|
|
2385
|
+
* @param {Object} target - actual YT player
|
|
2386
|
+
*/
|
|
2387
|
+
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
2391
|
+
*
|
|
2392
|
+
* @param {Object} event
|
|
2393
|
+
* @param {Float} data - playback rate
|
|
2394
|
+
* @param {Object} target - actual YT player
|
|
2395
|
+
*/
|
|
2396
|
+
|
|
2397
|
+
|
|
2398
|
+
/**
|
|
2399
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
2400
|
+
*
|
|
2401
|
+
* @param {Object} event
|
|
2402
|
+
* @param {String} data - playback quality
|
|
2403
|
+
* @param {Object} target - actual YT player
|
|
2404
|
+
*/
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
2409
|
+
*/
|
|
2410
|
+
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
2414
|
+
*/
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
2419
|
+
* React should update this automatically but since the Youtube Player API
|
|
2420
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
2421
|
+
*/
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
2426
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
2427
|
+
* Youtube Player API methods to update the video.
|
|
1819
2428
|
*/
|
|
1820
2429
|
|
|
1821
2430
|
}, {
|
|
1822
|
-
key:
|
|
2431
|
+
key: 'render',
|
|
1823
2432
|
value: function render() {
|
|
1824
|
-
return
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
id: this.props.id,
|
|
1828
|
-
|
|
1829
|
-
ref: this.refContainer
|
|
1830
|
-
}));
|
|
2433
|
+
return React__default.createElement(
|
|
2434
|
+
'div',
|
|
2435
|
+
{ className: this.props.containerClassName },
|
|
2436
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
2437
|
+
);
|
|
1831
2438
|
}
|
|
1832
2439
|
}]);
|
|
1833
2440
|
|
|
1834
2441
|
return YouTube;
|
|
1835
2442
|
}(React__default.Component);
|
|
1836
2443
|
|
|
1837
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
-
UNSTARTED: -1,
|
|
1839
|
-
ENDED: 0,
|
|
1840
|
-
PLAYING: 1,
|
|
1841
|
-
PAUSED: 2,
|
|
1842
|
-
BUFFERING: 3,
|
|
1843
|
-
CUED: 5
|
|
1844
|
-
});
|
|
1845
|
-
|
|
1846
2444
|
YouTube.propTypes = {
|
|
1847
2445
|
videoId: PropTypes.string,
|
|
2446
|
+
|
|
1848
2447
|
// custom ID for player element
|
|
1849
2448
|
id: PropTypes.string,
|
|
2449
|
+
|
|
1850
2450
|
// custom class name for player element
|
|
1851
2451
|
className: PropTypes.string,
|
|
1852
2452
|
// custom class name for player container element
|
|
1853
2453
|
containerClassName: PropTypes.string,
|
|
2454
|
+
|
|
1854
2455
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1855
2456
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
2457
|
+
|
|
1856
2458
|
// event subscriptions
|
|
1857
2459
|
onReady: PropTypes.func,
|
|
1858
2460
|
onError: PropTypes.func,
|
|
@@ -1864,7 +2466,6 @@ YouTube.propTypes = {
|
|
|
1864
2466
|
onPlaybackQualityChange: PropTypes.func
|
|
1865
2467
|
};
|
|
1866
2468
|
YouTube.defaultProps = {
|
|
1867
|
-
videoId: null,
|
|
1868
2469
|
id: null,
|
|
1869
2470
|
className: null,
|
|
1870
2471
|
opts: {},
|
|
@@ -1878,6 +2479,14 @@ YouTube.defaultProps = {
|
|
|
1878
2479
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1879
2480
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1880
2481
|
};
|
|
2482
|
+
YouTube.PlayerState = {
|
|
2483
|
+
UNSTARTED: -1,
|
|
2484
|
+
ENDED: 0,
|
|
2485
|
+
PLAYING: 1,
|
|
2486
|
+
PAUSED: 2,
|
|
2487
|
+
BUFFERING: 3,
|
|
2488
|
+
CUED: 5
|
|
2489
|
+
};
|
|
1881
2490
|
|
|
1882
2491
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1883
2492
|
var url = _ref.url,
|
|
@@ -1916,8 +2525,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1916
2525
|
var duration = player.getDuration();
|
|
1917
2526
|
var queue = Math.floor(duration / 10);
|
|
1918
2527
|
var segment = Math.floor(current / queue);
|
|
1919
|
-
Beam.report_beam_video('Ready',
|
|
1920
|
-
Segment.report_video_event('Video Ready',
|
|
2528
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
2529
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1921
2530
|
};
|
|
1922
2531
|
|
|
1923
2532
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1927,8 +2536,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1927
2536
|
var segment = Math.floor(current / queue);
|
|
1928
2537
|
|
|
1929
2538
|
if (!queueProgress.includes(segment)) {
|
|
1930
|
-
Beam.report_beam_video('Segment',
|
|
1931
|
-
Segment.report_video_event('Video Segment',
|
|
2539
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
2540
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1932
2541
|
queueProgress.push(segment);
|
|
1933
2542
|
}
|
|
1934
2543
|
};
|
|
@@ -1941,8 +2550,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1941
2550
|
var queue = Math.floor(duration / 10);
|
|
1942
2551
|
var segment = Math.floor(current / queue);
|
|
1943
2552
|
|
|
1944
|
-
Beam.report_beam_video('Play',
|
|
1945
|
-
Segment.report_video_event('Video Play',
|
|
2553
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
2554
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1946
2555
|
|
|
1947
2556
|
if (!playReported) {
|
|
1948
2557
|
setPlayReported(true);
|
|
@@ -1961,8 +2570,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1961
2570
|
var queue = Math.floor(duration / 10);
|
|
1962
2571
|
var segment = Math.floor(current / queue);
|
|
1963
2572
|
|
|
1964
|
-
Beam.report_beam_video('End',
|
|
1965
|
-
Segment.report_video_event('Video End',
|
|
2573
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
2574
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1966
2575
|
setEndReported(true);
|
|
1967
2576
|
clearInterval(intervalID);
|
|
1968
2577
|
}
|
|
@@ -1975,8 +2584,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1975
2584
|
var queue = Math.floor(duration / 10);
|
|
1976
2585
|
var segment = Math.floor(current / queue);
|
|
1977
2586
|
|
|
1978
|
-
Beam.report_beam_video('Pause',
|
|
1979
|
-
Segment.report_video_event('Video Pause',
|
|
2587
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
2588
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1980
2589
|
};
|
|
1981
2590
|
|
|
1982
2591
|
return React__default.createElement(
|
|
@@ -2138,7 +2747,14 @@ var Media = function Media(_ref) {
|
|
|
2138
2747
|
React__default.createElement(
|
|
2139
2748
|
LazyLoad,
|
|
2140
2749
|
{ once: true },
|
|
2141
|
-
React__default.createElement(
|
|
2750
|
+
React__default.createElement(
|
|
2751
|
+
'picture',
|
|
2752
|
+
null,
|
|
2753
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2754
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2755
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2756
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2757
|
+
)
|
|
2142
2758
|
),
|
|
2143
2759
|
caption && React__default.createElement(
|
|
2144
2760
|
Figure$1.Caption,
|
|
@@ -2150,7 +2766,7 @@ var Media = function Media(_ref) {
|
|
|
2150
2766
|
} else if (caption && caption !== '') {
|
|
2151
2767
|
return React__default.createElement(
|
|
2152
2768
|
'a',
|
|
2153
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2769
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2154
2770
|
href: uploadDoc.asset.url + '?dl='
|
|
2155
2771
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2156
2772
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2205,8 +2821,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2205
2821
|
var duration = player.duration;
|
|
2206
2822
|
var queue = Math.floor(duration / 10);
|
|
2207
2823
|
var segment = Math.floor(current / queue);
|
|
2208
|
-
Beam.report_beam_video('Ready',
|
|
2209
|
-
Segment.report_video_event('Video Ready',
|
|
2824
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2825
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2210
2826
|
};
|
|
2211
2827
|
|
|
2212
2828
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2215,8 +2831,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2215
2831
|
var queue = Math.floor(duration / 10);
|
|
2216
2832
|
var segment = Math.floor(current / queue);
|
|
2217
2833
|
if (!queueProgress.includes(segment)) {
|
|
2218
|
-
Beam.report_beam_video('Segment',
|
|
2219
|
-
Segment.report_video_event('Video Segment',
|
|
2834
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2835
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2220
2836
|
queueProgress.push(segment);
|
|
2221
2837
|
}
|
|
2222
2838
|
};
|
|
@@ -2228,8 +2844,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2228
2844
|
var duration = player.duration;
|
|
2229
2845
|
var queue = Math.floor(duration / 10);
|
|
2230
2846
|
var segment = Math.floor(current / queue);
|
|
2231
|
-
Beam.report_beam_video('Play',
|
|
2232
|
-
Segment.report_video_event('Video Play',
|
|
2847
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2848
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2233
2849
|
|
|
2234
2850
|
if (!playReported) {
|
|
2235
2851
|
event.persist();
|
|
@@ -2249,8 +2865,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2865
|
var queue = Math.floor(duration / 10);
|
|
2250
2866
|
var segment = Math.floor(current / queue);
|
|
2251
2867
|
|
|
2252
|
-
Beam.report_beam_video('End',
|
|
2253
|
-
Segment.report_video_event('Video End',
|
|
2868
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2869
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2254
2870
|
setEndReported(true);
|
|
2255
2871
|
clearInterval(intervalID);
|
|
2256
2872
|
}
|
|
@@ -2262,8 +2878,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2878
|
var duration = player.duration - current;
|
|
2263
2879
|
var queue = Math.floor(duration / 10);
|
|
2264
2880
|
var segment = Math.floor(current / queue);
|
|
2265
|
-
Beam.report_beam_video('Pause',
|
|
2266
|
-
Segment.report_video_event('Video Pause',
|
|
2881
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2882
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2267
2883
|
};
|
|
2268
2884
|
|
|
2269
2885
|
return React__default.createElement(
|
|
@@ -2324,7 +2940,7 @@ var Video = function Video(_ref) {
|
|
|
2324
2940
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2325
2941
|
//console.log('success:', success.ref)
|
|
2326
2942
|
var player = success.ref;
|
|
2327
|
-
if (_typeof
|
|
2943
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2328
2944
|
player.ima3.settings.debug = true;
|
|
2329
2945
|
if (targeting.content_placement && targeting.document_url) {
|
|
2330
2946
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2352,8 +2968,8 @@ var Video = function Video(_ref) {
|
|
|
2352
2968
|
player.pause();
|
|
2353
2969
|
}
|
|
2354
2970
|
|
|
2355
|
-
Beam.report_beam_video('Ready',
|
|
2356
|
-
Segment.report_video_event('Video Ready',
|
|
2971
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2972
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2357
2973
|
});
|
|
2358
2974
|
|
|
2359
2975
|
// play
|
|
@@ -2362,8 +2978,8 @@ var Video = function Video(_ref) {
|
|
|
2362
2978
|
var current = player.currentTime();
|
|
2363
2979
|
var queue = Math.floor(duration / 10);
|
|
2364
2980
|
var segment = Math.floor(current / queue);
|
|
2365
|
-
Beam.report_beam_video('Play',
|
|
2366
|
-
Segment.report_video_event('Video Play',
|
|
2981
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2982
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2367
2983
|
});
|
|
2368
2984
|
|
|
2369
2985
|
// pause
|
|
@@ -2372,8 +2988,8 @@ var Video = function Video(_ref) {
|
|
|
2372
2988
|
var current = player.currentTime();
|
|
2373
2989
|
var queue = Math.floor(duration / 10);
|
|
2374
2990
|
var segment = Math.floor(current / queue);
|
|
2375
|
-
Beam.report_beam_video('Pause',
|
|
2376
|
-
Segment.report_video_event('Video Pause',
|
|
2991
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2992
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2377
2993
|
});
|
|
2378
2994
|
|
|
2379
2995
|
// end
|
|
@@ -2382,8 +2998,8 @@ var Video = function Video(_ref) {
|
|
|
2382
2998
|
var current = player.currentTime();
|
|
2383
2999
|
var queue = Math.floor(duration / 10);
|
|
2384
3000
|
var segment = Math.floor(current / queue);
|
|
2385
|
-
Beam.report_beam_video('End',
|
|
2386
|
-
Segment.report_video_event('Video End',
|
|
3001
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
3002
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
3003
|
autoplayNextVideo(evt);
|
|
2388
3004
|
});
|
|
2389
3005
|
|
|
@@ -2394,8 +3010,8 @@ var Video = function Video(_ref) {
|
|
|
2394
3010
|
var queue = Math.floor(duration / 10);
|
|
2395
3011
|
var segment = Math.floor(current / queue);
|
|
2396
3012
|
if (!queueProgress.includes(segment)) {
|
|
2397
|
-
Beam.report_beam_video('Segment',
|
|
2398
|
-
Segment.report_video_event('Video Segment',
|
|
3013
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
3014
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
3015
|
queueProgress.push(segment);
|
|
2400
3016
|
}
|
|
2401
3017
|
});
|
|
@@ -2406,8 +3022,8 @@ var Video = function Video(_ref) {
|
|
|
2406
3022
|
var id = player.ads.ad.id;
|
|
2407
3023
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2408
3024
|
|
|
2409
|
-
Beam.report_beam_ad('AD Started',
|
|
2410
|
-
Segment.report_ad_event('Video Ad Started',
|
|
3025
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
3026
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2411
3027
|
});
|
|
2412
3028
|
|
|
2413
3029
|
// ad ended
|
|
@@ -2415,8 +3031,8 @@ var Video = function Video(_ref) {
|
|
|
2415
3031
|
var duration = player.ads.ad.duration;
|
|
2416
3032
|
var id = player.ads.ad.id;
|
|
2417
3033
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2418
|
-
Beam.report_beam_ad('AD Ended',
|
|
2419
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
3034
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
3035
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2420
3036
|
});
|
|
2421
3037
|
};
|
|
2422
3038
|
|
|
@@ -2679,9 +3295,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2679
3295
|
});
|
|
2680
3296
|
|
|
2681
3297
|
unwrapExports(props);
|
|
2682
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
-
props.defaultProps;
|
|
2684
|
-
props.propTypes;
|
|
3298
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
3299
|
+
var props_2 = props.defaultProps;
|
|
3300
|
+
var props_3 = props.propTypes;
|
|
2685
3301
|
|
|
2686
3302
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2687
3303
|
return isNonNullObject(value)
|
|
@@ -2846,17 +3462,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2846
3462
|
|
|
2847
3463
|
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; }
|
|
2848
3464
|
|
|
2849
|
-
function
|
|
2850
|
-
|
|
2851
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3465
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2852
3466
|
|
|
2853
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3467
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2854
3468
|
|
|
2855
|
-
function
|
|
2856
|
-
|
|
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; }
|
|
3469
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2860
3470
|
|
|
2861
3471
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2862
3472
|
|
|
@@ -2986,12 +3596,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2986
3596
|
|
|
2987
3597
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2988
3598
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2989
|
-
|
|
2990
|
-
var
|
|
2991
|
-
|
|
3599
|
+
var _iteratorNormalCompletion = true;
|
|
3600
|
+
var _didIteratorError = false;
|
|
3601
|
+
var _iteratorError = undefined;
|
|
2992
3602
|
|
|
2993
3603
|
try {
|
|
2994
|
-
for (_iterator.
|
|
3604
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2995
3605
|
var p = _step.value;
|
|
2996
3606
|
|
|
2997
3607
|
if (props$1[p]) {
|
|
@@ -3006,9 +3616,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3006
3616
|
}
|
|
3007
3617
|
}
|
|
3008
3618
|
} catch (err) {
|
|
3009
|
-
|
|
3619
|
+
_didIteratorError = true;
|
|
3620
|
+
_iteratorError = err;
|
|
3010
3621
|
} finally {
|
|
3011
|
-
|
|
3622
|
+
try {
|
|
3623
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3624
|
+
_iterator["return"]();
|
|
3625
|
+
}
|
|
3626
|
+
} finally {
|
|
3627
|
+
if (_didIteratorError) {
|
|
3628
|
+
throw _iteratorError;
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3012
3631
|
}
|
|
3013
3632
|
|
|
3014
3633
|
return config;
|
|
@@ -3116,17 +3735,17 @@ function isMediaStream(url) {
|
|
|
3116
3735
|
});
|
|
3117
3736
|
|
|
3118
3737
|
unwrapExports(utils);
|
|
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;
|
|
3738
|
+
var utils_1 = utils.parseStartTime;
|
|
3739
|
+
var utils_2 = utils.parseEndTime;
|
|
3740
|
+
var utils_3 = utils.randomString;
|
|
3741
|
+
var utils_4 = utils.queryString;
|
|
3742
|
+
var utils_5 = utils.getSDK;
|
|
3743
|
+
var utils_6 = utils.getConfig;
|
|
3744
|
+
var utils_7 = utils.omit;
|
|
3745
|
+
var utils_8 = utils.callPlayer;
|
|
3746
|
+
var utils_9 = utils.isObject;
|
|
3747
|
+
var utils_10 = utils.isEqual;
|
|
3748
|
+
var utils_11 = utils.isMediaStream;
|
|
3130
3749
|
|
|
3131
3750
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3132
3751
|
|
|
@@ -3155,16 +3774,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3155
3774
|
|
|
3156
3775
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3157
3776
|
|
|
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); }; }
|
|
3159
|
-
|
|
3160
3777
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3161
3778
|
|
|
3162
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
3779
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3167
3780
|
|
|
3781
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3782
|
+
|
|
3168
3783
|
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); }
|
|
3169
3784
|
|
|
3170
3785
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3173,12 +3788,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3173
3788
|
|
|
3174
3789
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3175
3790
|
|
|
3176
|
-
var Player =
|
|
3791
|
+
var Player =
|
|
3792
|
+
/*#__PURE__*/
|
|
3793
|
+
function (_Component) {
|
|
3177
3794
|
_inherits(Player, _Component);
|
|
3178
3795
|
|
|
3179
|
-
var _super = _createSuper(Player);
|
|
3180
|
-
|
|
3181
3796
|
function Player() {
|
|
3797
|
+
var _getPrototypeOf2;
|
|
3798
|
+
|
|
3182
3799
|
var _this;
|
|
3183
3800
|
|
|
3184
3801
|
_classCallCheck(this, Player);
|
|
@@ -3187,7 +3804,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3187
3804
|
_args[_key] = arguments[_key];
|
|
3188
3805
|
}
|
|
3189
3806
|
|
|
3190
|
-
_this =
|
|
3807
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3191
3808
|
|
|
3192
3809
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3193
3810
|
|
|
@@ -3512,7 +4129,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3512
4129
|
return null;
|
|
3513
4130
|
}
|
|
3514
4131
|
|
|
3515
|
-
return
|
|
4132
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3516
4133
|
ref: this.ref,
|
|
3517
4134
|
onReady: this.handleReady,
|
|
3518
4135
|
onPlay: this.handlePlay,
|
|
@@ -3573,16 +4190,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3573
4190
|
|
|
3574
4191
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3575
4192
|
|
|
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); }; }
|
|
3577
|
-
|
|
3578
4193
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3579
4194
|
|
|
3580
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4195
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3585
4196
|
|
|
4197
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4198
|
+
|
|
3586
4199
|
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); }
|
|
3587
4200
|
|
|
3588
4201
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3594,12 +4207,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3594
4207
|
function createSinglePlayer(activePlayer) {
|
|
3595
4208
|
var _class, _temp;
|
|
3596
4209
|
|
|
3597
|
-
return _temp = _class =
|
|
4210
|
+
return _temp = _class =
|
|
4211
|
+
/*#__PURE__*/
|
|
4212
|
+
function (_Component) {
|
|
3598
4213
|
_inherits(SinglePlayer, _Component);
|
|
3599
4214
|
|
|
3600
|
-
var _super = _createSuper(SinglePlayer);
|
|
3601
|
-
|
|
3602
4215
|
function SinglePlayer() {
|
|
4216
|
+
var _getPrototypeOf2;
|
|
4217
|
+
|
|
3603
4218
|
var _this;
|
|
3604
4219
|
|
|
3605
4220
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3608,7 +4223,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3608
4223
|
args[_key] = arguments[_key];
|
|
3609
4224
|
}
|
|
3610
4225
|
|
|
3611
|
-
_this =
|
|
4226
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3612
4227
|
|
|
3613
4228
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3614
4229
|
|
|
@@ -3676,12 +4291,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3676
4291
|
height = _this$props.height,
|
|
3677
4292
|
Wrapper = _this$props.wrapper;
|
|
3678
4293
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3679
|
-
return
|
|
4294
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3680
4295
|
style: _objectSpread({}, style, {
|
|
3681
4296
|
width: width,
|
|
3682
4297
|
height: height
|
|
3683
4298
|
})
|
|
3684
|
-
}, otherProps),
|
|
4299
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3685
4300
|
ref: this.ref,
|
|
3686
4301
|
activePlayer: activePlayer,
|
|
3687
4302
|
config: this.config
|
|
@@ -3727,31 +4342,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3727
4342
|
|
|
3728
4343
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3729
4344
|
|
|
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); }; }
|
|
3731
|
-
|
|
3732
4345
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3733
4346
|
|
|
3734
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4347
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3739
4348
|
|
|
4349
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4350
|
+
|
|
3740
4351
|
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); }
|
|
3741
4352
|
|
|
3742
4353
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3743
4354
|
|
|
3744
4355
|
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; }
|
|
3745
4356
|
|
|
3746
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
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."); }
|
|
4357
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3749
4358
|
|
|
3750
|
-
function
|
|
4359
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3751
4360
|
|
|
3752
|
-
function
|
|
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; }
|
|
4361
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3755
4362
|
|
|
3756
4363
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3757
4364
|
|
|
@@ -3776,12 +4383,14 @@ function parsePlaylist(url) {
|
|
|
3776
4383
|
return {};
|
|
3777
4384
|
}
|
|
3778
4385
|
|
|
3779
|
-
var YouTube =
|
|
4386
|
+
var YouTube =
|
|
4387
|
+
/*#__PURE__*/
|
|
4388
|
+
function (_Component) {
|
|
3780
4389
|
_inherits(YouTube, _Component);
|
|
3781
4390
|
|
|
3782
|
-
var _super = _createSuper(YouTube);
|
|
3783
|
-
|
|
3784
4391
|
function YouTube() {
|
|
4392
|
+
var _getPrototypeOf2;
|
|
4393
|
+
|
|
3785
4394
|
var _this;
|
|
3786
4395
|
|
|
3787
4396
|
_classCallCheck(this, YouTube);
|
|
@@ -3790,7 +4399,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3790
4399
|
args[_key] = arguments[_key];
|
|
3791
4400
|
}
|
|
3792
4401
|
|
|
3793
|
-
_this =
|
|
4402
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3794
4403
|
|
|
3795
4404
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3796
4405
|
|
|
@@ -3978,9 +4587,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3978
4587
|
height: '100%',
|
|
3979
4588
|
display: display
|
|
3980
4589
|
};
|
|
3981
|
-
return
|
|
4590
|
+
return _react["default"].createElement("div", {
|
|
3982
4591
|
style: style
|
|
3983
|
-
},
|
|
4592
|
+
}, _react["default"].createElement("div", {
|
|
3984
4593
|
ref: this.ref
|
|
3985
4594
|
}));
|
|
3986
4595
|
}
|
|
@@ -4003,7 +4612,7 @@ exports["default"] = _default;
|
|
|
4003
4612
|
});
|
|
4004
4613
|
|
|
4005
4614
|
unwrapExports(YouTube_1);
|
|
4006
|
-
YouTube_1.YouTube;
|
|
4615
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4007
4616
|
|
|
4008
4617
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4009
4618
|
|
|
@@ -4036,16 +4645,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4036
4645
|
|
|
4037
4646
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4038
4647
|
|
|
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); }; }
|
|
4040
|
-
|
|
4041
4648
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4042
4649
|
|
|
4043
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4650
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4048
4651
|
|
|
4652
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4653
|
+
|
|
4049
4654
|
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); }
|
|
4050
4655
|
|
|
4051
4656
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4054,14 +4659,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4054
4659
|
|
|
4055
4660
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4056
4661
|
var SDK_GLOBAL = 'SC';
|
|
4057
|
-
var MATCH_URL = /(
|
|
4662
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4058
4663
|
|
|
4059
|
-
var SoundCloud =
|
|
4664
|
+
var SoundCloud =
|
|
4665
|
+
/*#__PURE__*/
|
|
4666
|
+
function (_Component) {
|
|
4060
4667
|
_inherits(SoundCloud, _Component);
|
|
4061
4668
|
|
|
4062
|
-
var _super = _createSuper(SoundCloud);
|
|
4063
|
-
|
|
4064
4669
|
function SoundCloud() {
|
|
4670
|
+
var _getPrototypeOf2;
|
|
4671
|
+
|
|
4065
4672
|
var _this;
|
|
4066
4673
|
|
|
4067
4674
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4070,7 +4677,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4070
4677
|
args[_key] = arguments[_key];
|
|
4071
4678
|
}
|
|
4072
4679
|
|
|
4073
|
-
_this =
|
|
4680
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4074
4681
|
|
|
4075
4682
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4076
4683
|
|
|
@@ -4191,7 +4798,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4191
4798
|
height: '100%',
|
|
4192
4799
|
display: display
|
|
4193
4800
|
};
|
|
4194
|
-
return
|
|
4801
|
+
return _react["default"].createElement("iframe", {
|
|
4195
4802
|
ref: this.ref,
|
|
4196
4803
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4197
4804
|
style: style,
|
|
@@ -4220,7 +4827,7 @@ exports["default"] = _default;
|
|
|
4220
4827
|
});
|
|
4221
4828
|
|
|
4222
4829
|
unwrapExports(SoundCloud_1);
|
|
4223
|
-
SoundCloud_1.SoundCloud;
|
|
4830
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4224
4831
|
|
|
4225
4832
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4226
4833
|
|
|
@@ -4253,16 +4860,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4253
4860
|
|
|
4254
4861
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4255
4862
|
|
|
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); }; }
|
|
4257
|
-
|
|
4258
4863
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4259
4864
|
|
|
4260
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4865
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4265
4866
|
|
|
4867
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4868
|
+
|
|
4266
4869
|
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); }
|
|
4267
4870
|
|
|
4268
4871
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4274,12 +4877,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4274
4877
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4275
4878
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4276
4879
|
|
|
4277
|
-
var Vimeo =
|
|
4880
|
+
var Vimeo =
|
|
4881
|
+
/*#__PURE__*/
|
|
4882
|
+
function (_Component) {
|
|
4278
4883
|
_inherits(Vimeo, _Component);
|
|
4279
4884
|
|
|
4280
|
-
var _super = _createSuper(Vimeo);
|
|
4281
|
-
|
|
4282
4885
|
function Vimeo() {
|
|
4886
|
+
var _getPrototypeOf2;
|
|
4887
|
+
|
|
4283
4888
|
var _this;
|
|
4284
4889
|
|
|
4285
4890
|
_classCallCheck(this, Vimeo);
|
|
@@ -4288,7 +4893,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4288
4893
|
args[_key] = arguments[_key];
|
|
4289
4894
|
}
|
|
4290
4895
|
|
|
4291
|
-
_this =
|
|
4896
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4292
4897
|
|
|
4293
4898
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4294
4899
|
|
|
@@ -4445,7 +5050,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4445
5050
|
overflow: 'hidden',
|
|
4446
5051
|
display: display
|
|
4447
5052
|
};
|
|
4448
|
-
return
|
|
5053
|
+
return _react["default"].createElement("div", {
|
|
4449
5054
|
key: this.props.url,
|
|
4450
5055
|
ref: this.ref,
|
|
4451
5056
|
style: style
|
|
@@ -4476,7 +5081,7 @@ exports["default"] = _default;
|
|
|
4476
5081
|
});
|
|
4477
5082
|
|
|
4478
5083
|
unwrapExports(Vimeo_1);
|
|
4479
|
-
Vimeo_1.Vimeo;
|
|
5084
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4480
5085
|
|
|
4481
5086
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4482
5087
|
|
|
@@ -4505,16 +5110,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4505
5110
|
|
|
4506
5111
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4507
5112
|
|
|
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); }; }
|
|
4509
|
-
|
|
4510
5113
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4511
5114
|
|
|
4512
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5115
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4517
5116
|
|
|
5117
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5118
|
+
|
|
4518
5119
|
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); }
|
|
4519
5120
|
|
|
4520
5121
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4527,12 +5128,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4527
5128
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4528
5129
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4529
5130
|
|
|
4530
|
-
var Facebook =
|
|
5131
|
+
var Facebook =
|
|
5132
|
+
/*#__PURE__*/
|
|
5133
|
+
function (_Component) {
|
|
4531
5134
|
_inherits(Facebook, _Component);
|
|
4532
5135
|
|
|
4533
|
-
var _super = _createSuper(Facebook);
|
|
4534
|
-
|
|
4535
5136
|
function Facebook() {
|
|
5137
|
+
var _getPrototypeOf2;
|
|
5138
|
+
|
|
4536
5139
|
var _this;
|
|
4537
5140
|
|
|
4538
5141
|
_classCallCheck(this, Facebook);
|
|
@@ -4541,7 +5144,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4541
5144
|
args[_key] = arguments[_key];
|
|
4542
5145
|
}
|
|
4543
5146
|
|
|
4544
|
-
_this =
|
|
5147
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4545
5148
|
|
|
4546
5149
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4547
5150
|
|
|
@@ -4657,7 +5260,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4657
5260
|
width: '100%',
|
|
4658
5261
|
height: '100%'
|
|
4659
5262
|
};
|
|
4660
|
-
return
|
|
5263
|
+
return _react["default"].createElement("div", {
|
|
4661
5264
|
style: style,
|
|
4662
5265
|
id: this.playerID,
|
|
4663
5266
|
className: "fb-video",
|
|
@@ -4688,7 +5291,7 @@ exports["default"] = _default;
|
|
|
4688
5291
|
});
|
|
4689
5292
|
|
|
4690
5293
|
unwrapExports(Facebook_1);
|
|
4691
|
-
Facebook_1.Facebook;
|
|
5294
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4692
5295
|
|
|
4693
5296
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4694
5297
|
|
|
@@ -4717,16 +5320,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4717
5320
|
|
|
4718
5321
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4719
5322
|
|
|
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); }; }
|
|
4721
|
-
|
|
4722
5323
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4723
5324
|
|
|
4724
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5325
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4729
5326
|
|
|
5327
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5328
|
+
|
|
4730
5329
|
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); }
|
|
4731
5330
|
|
|
4732
5331
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4737,12 +5336,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4737
5336
|
var SDK_GLOBAL = 'playerjs';
|
|
4738
5337
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4739
5338
|
|
|
4740
|
-
var Streamable =
|
|
5339
|
+
var Streamable =
|
|
5340
|
+
/*#__PURE__*/
|
|
5341
|
+
function (_Component) {
|
|
4741
5342
|
_inherits(Streamable, _Component);
|
|
4742
5343
|
|
|
4743
|
-
var _super = _createSuper(Streamable);
|
|
4744
|
-
|
|
4745
5344
|
function Streamable() {
|
|
5345
|
+
var _getPrototypeOf2;
|
|
5346
|
+
|
|
4746
5347
|
var _this;
|
|
4747
5348
|
|
|
4748
5349
|
_classCallCheck(this, Streamable);
|
|
@@ -4751,7 +5352,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4751
5352
|
args[_key] = arguments[_key];
|
|
4752
5353
|
}
|
|
4753
5354
|
|
|
4754
|
-
_this =
|
|
5355
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4755
5356
|
|
|
4756
5357
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4757
5358
|
|
|
@@ -4871,7 +5472,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4871
5472
|
width: '100%',
|
|
4872
5473
|
height: '100%'
|
|
4873
5474
|
};
|
|
4874
|
-
return
|
|
5475
|
+
return _react["default"].createElement("iframe", {
|
|
4875
5476
|
ref: this.ref,
|
|
4876
5477
|
src: "https://streamable.com/o/".concat(id),
|
|
4877
5478
|
frameBorder: "0",
|
|
@@ -4899,7 +5500,7 @@ exports["default"] = _default;
|
|
|
4899
5500
|
});
|
|
4900
5501
|
|
|
4901
5502
|
unwrapExports(Streamable_1);
|
|
4902
|
-
Streamable_1.Streamable;
|
|
5503
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4903
5504
|
|
|
4904
5505
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4905
5506
|
|
|
@@ -4932,16 +5533,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4932
5533
|
|
|
4933
5534
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4934
5535
|
|
|
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); }; }
|
|
4936
|
-
|
|
4937
5536
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4938
5537
|
|
|
4939
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5538
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4944
5539
|
|
|
5540
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5541
|
+
|
|
4945
5542
|
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); }
|
|
4946
5543
|
|
|
4947
5544
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4952,48 +5549,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4952
5549
|
var SDK_GLOBAL = 'Wistia';
|
|
4953
5550
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4954
5551
|
|
|
4955
|
-
var Wistia =
|
|
5552
|
+
var Wistia =
|
|
5553
|
+
/*#__PURE__*/
|
|
5554
|
+
function (_Component) {
|
|
4956
5555
|
_inherits(Wistia, _Component);
|
|
4957
5556
|
|
|
4958
|
-
var _super = _createSuper(Wistia);
|
|
4959
|
-
|
|
4960
5557
|
function Wistia() {
|
|
5558
|
+
var _getPrototypeOf2;
|
|
5559
|
+
|
|
4961
5560
|
var _this;
|
|
4962
5561
|
|
|
4963
5562
|
_classCallCheck(this, Wistia);
|
|
4964
5563
|
|
|
4965
|
-
for (var _len = arguments.length,
|
|
4966
|
-
|
|
5564
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5565
|
+
args[_key] = arguments[_key];
|
|
4967
5566
|
}
|
|
4968
5567
|
|
|
4969
|
-
_this =
|
|
5568
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4970
5569
|
|
|
4971
5570
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4972
5571
|
|
|
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
|
-
|
|
4997
5572
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4998
5573
|
_this.callPlayer('mute');
|
|
4999
5574
|
});
|
|
@@ -5015,13 +5590,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5015
5590
|
value: function load(url) {
|
|
5016
5591
|
var _this2 = this;
|
|
5017
5592
|
|
|
5018
|
-
var _this$
|
|
5019
|
-
playing = _this$
|
|
5020
|
-
muted = _this$
|
|
5021
|
-
controls = _this$
|
|
5022
|
-
_onReady = _this$
|
|
5023
|
-
|
|
5024
|
-
|
|
5593
|
+
var _this$props = this.props,
|
|
5594
|
+
playing = _this$props.playing,
|
|
5595
|
+
muted = _this$props.muted,
|
|
5596
|
+
controls = _this$props.controls,
|
|
5597
|
+
_onReady = _this$props.onReady,
|
|
5598
|
+
onPlay = _this$props.onPlay,
|
|
5599
|
+
onPause = _this$props.onPause,
|
|
5600
|
+
onSeek = _this$props.onSeek,
|
|
5601
|
+
onEnded = _this$props.onEnded,
|
|
5602
|
+
config = _this$props.config,
|
|
5603
|
+
onError = _this$props.onError;
|
|
5025
5604
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5026
5605
|
window._wq = window._wq || [];
|
|
5027
5606
|
|
|
@@ -5038,28 +5617,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5038
5617
|
|
|
5039
5618
|
_this2.unbind();
|
|
5040
5619
|
|
|
5041
|
-
_this2.player.bind('play',
|
|
5620
|
+
_this2.player.bind('play', onPlay);
|
|
5042
5621
|
|
|
5043
|
-
_this2.player.bind('pause',
|
|
5622
|
+
_this2.player.bind('pause', onPause);
|
|
5044
5623
|
|
|
5045
|
-
_this2.player.bind('seek',
|
|
5624
|
+
_this2.player.bind('seek', onSeek);
|
|
5046
5625
|
|
|
5047
|
-
_this2.player.bind('end',
|
|
5626
|
+
_this2.player.bind('end', onEnded);
|
|
5048
5627
|
|
|
5049
5628
|
_onReady();
|
|
5050
5629
|
}
|
|
5051
5630
|
});
|
|
5052
5631
|
}, onError);
|
|
5053
5632
|
}
|
|
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
|
-
|
|
5063
5633
|
}, {
|
|
5064
5634
|
key: "play",
|
|
5065
5635
|
value: function play() {
|
|
@@ -5070,6 +5640,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5070
5640
|
value: function pause() {
|
|
5071
5641
|
this.callPlayer('pause');
|
|
5072
5642
|
}
|
|
5643
|
+
}, {
|
|
5644
|
+
key: "unbind",
|
|
5645
|
+
value: function unbind() {
|
|
5646
|
+
var _this$props2 = this.props,
|
|
5647
|
+
onPlay = _this$props2.onPlay,
|
|
5648
|
+
onPause = _this$props2.onPause,
|
|
5649
|
+
onSeek = _this$props2.onSeek,
|
|
5650
|
+
onEnded = _this$props2.onEnded;
|
|
5651
|
+
this.player.unbind('play', onPlay);
|
|
5652
|
+
this.player.unbind('pause', onPause);
|
|
5653
|
+
this.player.unbind('seek', onSeek);
|
|
5654
|
+
this.player.unbind('end', onEnded);
|
|
5655
|
+
}
|
|
5073
5656
|
}, {
|
|
5074
5657
|
key: "stop",
|
|
5075
5658
|
value: function stop() {
|
|
@@ -5115,7 +5698,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5115
5698
|
width: '100%',
|
|
5116
5699
|
height: '100%'
|
|
5117
5700
|
};
|
|
5118
|
-
return
|
|
5701
|
+
return _react["default"].createElement("div", {
|
|
5119
5702
|
key: id,
|
|
5120
5703
|
className: className,
|
|
5121
5704
|
style: style
|
|
@@ -5142,7 +5725,7 @@ exports["default"] = _default;
|
|
|
5142
5725
|
});
|
|
5143
5726
|
|
|
5144
5727
|
unwrapExports(Wistia_1);
|
|
5145
|
-
Wistia_1.Wistia;
|
|
5728
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5146
5729
|
|
|
5147
5730
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5148
5731
|
|
|
@@ -5175,16 +5758,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5175
5758
|
|
|
5176
5759
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5177
5760
|
|
|
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); }; }
|
|
5179
|
-
|
|
5180
5761
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5181
5762
|
|
|
5182
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5763
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5187
5764
|
|
|
5765
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5766
|
+
|
|
5188
5767
|
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); }
|
|
5189
5768
|
|
|
5190
5769
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5197,12 +5776,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5197
5776
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5198
5777
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5199
5778
|
|
|
5200
|
-
var Twitch =
|
|
5779
|
+
var Twitch =
|
|
5780
|
+
/*#__PURE__*/
|
|
5781
|
+
function (_Component) {
|
|
5201
5782
|
_inherits(Twitch, _Component);
|
|
5202
5783
|
|
|
5203
|
-
var _super = _createSuper(Twitch);
|
|
5204
|
-
|
|
5205
5784
|
function Twitch() {
|
|
5785
|
+
var _getPrototypeOf2;
|
|
5786
|
+
|
|
5206
5787
|
var _this;
|
|
5207
5788
|
|
|
5208
5789
|
_classCallCheck(this, Twitch);
|
|
@@ -5211,7 +5792,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5211
5792
|
args[_key] = arguments[_key];
|
|
5212
5793
|
}
|
|
5213
5794
|
|
|
5214
|
-
_this =
|
|
5795
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5215
5796
|
|
|
5216
5797
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5217
5798
|
|
|
@@ -5332,7 +5913,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5332
5913
|
width: '100%',
|
|
5333
5914
|
height: '100%'
|
|
5334
5915
|
};
|
|
5335
|
-
return
|
|
5916
|
+
return _react["default"].createElement("div", {
|
|
5336
5917
|
style: style,
|
|
5337
5918
|
id: this.playerID
|
|
5338
5919
|
});
|
|
@@ -5358,7 +5939,7 @@ exports["default"] = _default;
|
|
|
5358
5939
|
});
|
|
5359
5940
|
|
|
5360
5941
|
unwrapExports(Twitch_1);
|
|
5361
|
-
Twitch_1.Twitch;
|
|
5942
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5362
5943
|
|
|
5363
5944
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5364
5945
|
|
|
@@ -5385,15 +5966,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5385
5966
|
|
|
5386
5967
|
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; }
|
|
5387
5968
|
|
|
5388
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5389
|
-
|
|
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."); }
|
|
5969
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5391
5970
|
|
|
5392
|
-
function
|
|
5971
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5393
5972
|
|
|
5394
|
-
function
|
|
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; }
|
|
5973
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5397
5974
|
|
|
5398
5975
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5399
5976
|
|
|
@@ -5403,16 +5980,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5403
5980
|
|
|
5404
5981
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5405
5982
|
|
|
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); }; }
|
|
5407
|
-
|
|
5408
5983
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5409
5984
|
|
|
5410
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5985
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5415
5986
|
|
|
5987
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5988
|
+
|
|
5416
5989
|
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); }
|
|
5417
5990
|
|
|
5418
5991
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5424,12 +5997,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5424
5997
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5425
5998
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5426
5999
|
|
|
5427
|
-
var DailyMotion =
|
|
6000
|
+
var DailyMotion =
|
|
6001
|
+
/*#__PURE__*/
|
|
6002
|
+
function (_Component) {
|
|
5428
6003
|
_inherits(DailyMotion, _Component);
|
|
5429
6004
|
|
|
5430
|
-
var _super = _createSuper(DailyMotion);
|
|
5431
|
-
|
|
5432
6005
|
function DailyMotion() {
|
|
6006
|
+
var _getPrototypeOf2;
|
|
6007
|
+
|
|
5433
6008
|
var _this;
|
|
5434
6009
|
|
|
5435
6010
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5438,7 +6013,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5438
6013
|
args[_key] = arguments[_key];
|
|
5439
6014
|
}
|
|
5440
6015
|
|
|
5441
|
-
_this =
|
|
6016
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5442
6017
|
|
|
5443
6018
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5444
6019
|
|
|
@@ -5567,9 +6142,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5567
6142
|
height: '100%',
|
|
5568
6143
|
display: display
|
|
5569
6144
|
};
|
|
5570
|
-
return
|
|
6145
|
+
return _react["default"].createElement("div", {
|
|
5571
6146
|
style: style
|
|
5572
|
-
},
|
|
6147
|
+
}, _react["default"].createElement("div", {
|
|
5573
6148
|
ref: this.ref
|
|
5574
6149
|
}));
|
|
5575
6150
|
}
|
|
@@ -5594,7 +6169,7 @@ exports["default"] = _default;
|
|
|
5594
6169
|
});
|
|
5595
6170
|
|
|
5596
6171
|
unwrapExports(DailyMotion_1);
|
|
5597
|
-
DailyMotion_1.DailyMotion;
|
|
6172
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5598
6173
|
|
|
5599
6174
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5600
6175
|
|
|
@@ -5627,16 +6202,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5627
6202
|
|
|
5628
6203
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5629
6204
|
|
|
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); }; }
|
|
5631
|
-
|
|
5632
6205
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5633
6206
|
|
|
5634
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
6207
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5639
6208
|
|
|
6209
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6210
|
+
|
|
5640
6211
|
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); }
|
|
5641
6212
|
|
|
5642
6213
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5647,12 +6218,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5647
6218
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5648
6219
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5649
6220
|
|
|
5650
|
-
var Mixcloud =
|
|
6221
|
+
var Mixcloud =
|
|
6222
|
+
/*#__PURE__*/
|
|
6223
|
+
function (_Component) {
|
|
5651
6224
|
_inherits(Mixcloud, _Component);
|
|
5652
6225
|
|
|
5653
|
-
var _super = _createSuper(Mixcloud);
|
|
5654
|
-
|
|
5655
6226
|
function Mixcloud() {
|
|
6227
|
+
var _getPrototypeOf2;
|
|
6228
|
+
|
|
5656
6229
|
var _this;
|
|
5657
6230
|
|
|
5658
6231
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5661,7 +6234,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5661
6234
|
args[_key] = arguments[_key];
|
|
5662
6235
|
}
|
|
5663
6236
|
|
|
5664
|
-
_this =
|
|
6237
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5665
6238
|
|
|
5666
6239
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5667
6240
|
|
|
@@ -5764,7 +6337,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5764
6337
|
})); // We have to give the iframe a key here to prevent a
|
|
5765
6338
|
// weird dialog appearing when loading a new track
|
|
5766
6339
|
|
|
5767
|
-
return
|
|
6340
|
+
return _react["default"].createElement("iframe", {
|
|
5768
6341
|
key: id,
|
|
5769
6342
|
ref: this.ref,
|
|
5770
6343
|
style: style,
|
|
@@ -5793,7 +6366,7 @@ exports["default"] = _default;
|
|
|
5793
6366
|
});
|
|
5794
6367
|
|
|
5795
6368
|
unwrapExports(Mixcloud_1);
|
|
5796
|
-
Mixcloud_1.Mixcloud;
|
|
6369
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5797
6370
|
|
|
5798
6371
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5799
6372
|
|
|
@@ -5824,33 +6397,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5824
6397
|
|
|
5825
6398
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5826
6399
|
|
|
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); }; }
|
|
5828
|
-
|
|
5829
6400
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5830
6401
|
|
|
5831
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
6402
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5836
6403
|
|
|
6404
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6405
|
+
|
|
5837
6406
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5838
6407
|
|
|
5839
6408
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5840
6409
|
|
|
5841
6410
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5842
6411
|
|
|
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
|
-
|
|
5849
6412
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5850
6413
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5851
6414
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5852
6415
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5853
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
6416
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5854
6417
|
var HLS_GLOBAL = 'Hls';
|
|
5855
6418
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5856
6419
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5859,11 +6422,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5859
6422
|
|
|
5860
6423
|
function canPlay(url) {
|
|
5861
6424
|
if (url instanceof Array) {
|
|
5862
|
-
var
|
|
5863
|
-
|
|
6425
|
+
var _iteratorNormalCompletion = true;
|
|
6426
|
+
var _didIteratorError = false;
|
|
6427
|
+
var _iteratorError = undefined;
|
|
5864
6428
|
|
|
5865
6429
|
try {
|
|
5866
|
-
for (_iterator.
|
|
6430
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5867
6431
|
var item = _step.value;
|
|
5868
6432
|
|
|
5869
6433
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5875,9 +6439,18 @@ function canPlay(url) {
|
|
|
5875
6439
|
}
|
|
5876
6440
|
}
|
|
5877
6441
|
} catch (err) {
|
|
5878
|
-
|
|
6442
|
+
_didIteratorError = true;
|
|
6443
|
+
_iteratorError = err;
|
|
5879
6444
|
} finally {
|
|
5880
|
-
|
|
6445
|
+
try {
|
|
6446
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6447
|
+
_iterator["return"]();
|
|
6448
|
+
}
|
|
6449
|
+
} finally {
|
|
6450
|
+
if (_didIteratorError) {
|
|
6451
|
+
throw _iteratorError;
|
|
6452
|
+
}
|
|
6453
|
+
}
|
|
5881
6454
|
}
|
|
5882
6455
|
|
|
5883
6456
|
return false;
|
|
@@ -5901,12 +6474,14 @@ function canEnablePIP(url) {
|
|
|
5901
6474
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5902
6475
|
}
|
|
5903
6476
|
|
|
5904
|
-
var FilePlayer =
|
|
6477
|
+
var FilePlayer =
|
|
6478
|
+
/*#__PURE__*/
|
|
6479
|
+
function (_Component) {
|
|
5905
6480
|
_inherits(FilePlayer, _Component);
|
|
5906
6481
|
|
|
5907
|
-
var _super = _createSuper(FilePlayer);
|
|
5908
|
-
|
|
5909
6482
|
function FilePlayer() {
|
|
6483
|
+
var _getPrototypeOf2;
|
|
6484
|
+
|
|
5910
6485
|
var _this;
|
|
5911
6486
|
|
|
5912
6487
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5915,7 +6490,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5915
6490
|
_args[_key] = arguments[_key];
|
|
5916
6491
|
}
|
|
5917
6492
|
|
|
5918
|
-
_this =
|
|
6493
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5919
6494
|
|
|
5920
6495
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5921
6496
|
var _this$props;
|
|
@@ -6002,19 +6577,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6002
6577
|
|
|
6003
6578
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6004
6579
|
if (typeof source === 'string') {
|
|
6005
|
-
return
|
|
6580
|
+
return _react["default"].createElement("source", {
|
|
6006
6581
|
key: index,
|
|
6007
6582
|
src: source
|
|
6008
6583
|
});
|
|
6009
6584
|
}
|
|
6010
6585
|
|
|
6011
|
-
return
|
|
6586
|
+
return _react["default"].createElement("source", _extends({
|
|
6012
6587
|
key: index
|
|
6013
6588
|
}, source));
|
|
6014
6589
|
});
|
|
6015
6590
|
|
|
6016
6591
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6017
|
-
return
|
|
6592
|
+
return _react["default"].createElement("track", _extends({
|
|
6018
6593
|
key: index
|
|
6019
6594
|
}, track));
|
|
6020
6595
|
});
|
|
@@ -6052,10 +6627,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6052
6627
|
key: "componentWillUnmount",
|
|
6053
6628
|
value: function componentWillUnmount() {
|
|
6054
6629
|
this.removeListeners(this.player);
|
|
6055
|
-
|
|
6056
|
-
if (this.hls) {
|
|
6057
|
-
this.hls.destroy();
|
|
6058
|
-
}
|
|
6059
6630
|
}
|
|
6060
6631
|
}, {
|
|
6061
6632
|
key: "addListeners",
|
|
@@ -6186,6 +6757,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6186
6757
|
value: function stop() {
|
|
6187
6758
|
this.player.removeAttribute('src');
|
|
6188
6759
|
|
|
6760
|
+
if (this.hls) {
|
|
6761
|
+
this.hls.destroy();
|
|
6762
|
+
}
|
|
6763
|
+
|
|
6189
6764
|
if (this.dash) {
|
|
6190
6765
|
this.dash.reset();
|
|
6191
6766
|
}
|
|
@@ -6297,7 +6872,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6297
6872
|
width: width === 'auto' ? width : '100%',
|
|
6298
6873
|
height: height === 'auto' ? height : '100%'
|
|
6299
6874
|
};
|
|
6300
|
-
return
|
|
6875
|
+
return _react["default"].createElement(Element, _extends({
|
|
6301
6876
|
ref: this.ref,
|
|
6302
6877
|
src: this.getSource(url),
|
|
6303
6878
|
style: style,
|
|
@@ -6327,7 +6902,7 @@ exports["default"] = _default;
|
|
|
6327
6902
|
});
|
|
6328
6903
|
|
|
6329
6904
|
unwrapExports(FilePlayer_1);
|
|
6330
|
-
FilePlayer_1.FilePlayer;
|
|
6905
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6331
6906
|
|
|
6332
6907
|
var players = createCommonjsModule(function (module, exports) {
|
|
6333
6908
|
|
|
@@ -6387,16 +6962,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6387
6962
|
|
|
6388
6963
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6389
6964
|
|
|
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); }; }
|
|
6391
|
-
|
|
6392
6965
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6393
6966
|
|
|
6394
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
6967
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6399
6968
|
|
|
6969
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6970
|
+
|
|
6400
6971
|
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); }
|
|
6401
6972
|
|
|
6402
6973
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6405,12 +6976,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6405
6976
|
|
|
6406
6977
|
var ICON_SIZE = '64px';
|
|
6407
6978
|
|
|
6408
|
-
var Preview =
|
|
6979
|
+
var Preview =
|
|
6980
|
+
/*#__PURE__*/
|
|
6981
|
+
function (_Component) {
|
|
6409
6982
|
_inherits(Preview, _Component);
|
|
6410
6983
|
|
|
6411
|
-
var _super = _createSuper(Preview);
|
|
6412
|
-
|
|
6413
6984
|
function Preview() {
|
|
6985
|
+
var _getPrototypeOf2;
|
|
6986
|
+
|
|
6414
6987
|
var _this;
|
|
6415
6988
|
|
|
6416
6989
|
_classCallCheck(this, Preview);
|
|
@@ -6419,7 +6992,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6419
6992
|
args[_key] = arguments[_key];
|
|
6420
6993
|
}
|
|
6421
6994
|
|
|
6422
|
-
_this =
|
|
6995
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6423
6996
|
|
|
6424
6997
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6425
6998
|
|
|
@@ -6517,15 +7090,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6517
7090
|
}
|
|
6518
7091
|
};
|
|
6519
7092
|
|
|
6520
|
-
var defaultPlayIcon =
|
|
7093
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6521
7094
|
style: styles.shadow,
|
|
6522
7095
|
className: "react-player__shadow"
|
|
6523
|
-
},
|
|
7096
|
+
}, _react["default"].createElement("div", {
|
|
6524
7097
|
style: styles.playIcon,
|
|
6525
7098
|
className: "react-player__play-icon"
|
|
6526
7099
|
}));
|
|
6527
7100
|
|
|
6528
|
-
return
|
|
7101
|
+
return _react["default"].createElement("div", {
|
|
6529
7102
|
style: styles.preview,
|
|
6530
7103
|
className: "react-player__preview",
|
|
6531
7104
|
onClick: onClick
|
|
@@ -6562,12 +7135,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6562
7135
|
|
|
6563
7136
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6564
7137
|
|
|
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
|
-
|
|
6571
7138
|
var PRELOAD_PLAYERS = [{
|
|
6572
7139
|
Player: YouTube_1.YouTube,
|
|
6573
7140
|
configKey: 'youtube',
|
|
@@ -6588,16 +7155,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6588
7155
|
|
|
6589
7156
|
function renderPreloadPlayers(url, controls, config) {
|
|
6590
7157
|
var players = [];
|
|
6591
|
-
|
|
6592
|
-
var
|
|
6593
|
-
|
|
7158
|
+
var _iteratorNormalCompletion = true;
|
|
7159
|
+
var _didIteratorError = false;
|
|
7160
|
+
var _iteratorError = undefined;
|
|
6594
7161
|
|
|
6595
7162
|
try {
|
|
6596
|
-
for (_iterator.
|
|
7163
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6597
7164
|
var player = _step.value;
|
|
6598
7165
|
|
|
6599
7166
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6600
|
-
players.push(
|
|
7167
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6601
7168
|
key: player.Player.displayName,
|
|
6602
7169
|
activePlayer: player.Player,
|
|
6603
7170
|
url: player.url,
|
|
@@ -6609,9 +7176,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6609
7176
|
}
|
|
6610
7177
|
}
|
|
6611
7178
|
} catch (err) {
|
|
6612
|
-
|
|
7179
|
+
_didIteratorError = true;
|
|
7180
|
+
_iteratorError = err;
|
|
6613
7181
|
} finally {
|
|
6614
|
-
|
|
7182
|
+
try {
|
|
7183
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
7184
|
+
_iterator["return"]();
|
|
7185
|
+
}
|
|
7186
|
+
} finally {
|
|
7187
|
+
if (_didIteratorError) {
|
|
7188
|
+
throw _iteratorError;
|
|
7189
|
+
}
|
|
7190
|
+
}
|
|
6615
7191
|
}
|
|
6616
7192
|
|
|
6617
7193
|
return players;
|
|
@@ -6735,17 +7311,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6735
7311
|
|
|
6736
7312
|
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); }
|
|
6737
7313
|
|
|
6738
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
7314
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6739
7315
|
|
|
6740
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
7316
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6741
7317
|
|
|
6742
|
-
function
|
|
7318
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6743
7319
|
|
|
6744
|
-
function
|
|
6745
|
-
|
|
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; }
|
|
7320
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6749
7321
|
|
|
6750
7322
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6751
7323
|
|
|
@@ -6753,16 +7325,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6753
7325
|
|
|
6754
7326
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6755
7327
|
|
|
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
|
-
|
|
6758
7328
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6759
7329
|
|
|
6760
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
7330
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6765
7331
|
|
|
7332
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7333
|
+
|
|
6766
7334
|
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); }
|
|
6767
7335
|
|
|
6768
7336
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6772,12 +7340,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6772
7340
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6773
7341
|
var customPlayers = [];
|
|
6774
7342
|
|
|
6775
|
-
var ReactPlayer =
|
|
7343
|
+
var ReactPlayer =
|
|
7344
|
+
/*#__PURE__*/
|
|
7345
|
+
function (_Component) {
|
|
6776
7346
|
_inherits(ReactPlayer, _Component);
|
|
6777
7347
|
|
|
6778
|
-
var _super = _createSuper(ReactPlayer);
|
|
6779
|
-
|
|
6780
7348
|
function ReactPlayer() {
|
|
7349
|
+
var _getPrototypeOf2;
|
|
7350
|
+
|
|
6781
7351
|
var _this;
|
|
6782
7352
|
|
|
6783
7353
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6786,7 +7356,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6786
7356
|
args[_key] = arguments[_key];
|
|
6787
7357
|
}
|
|
6788
7358
|
|
|
6789
|
-
_this =
|
|
7359
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6790
7360
|
|
|
6791
7361
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6792
7362
|
|
|
@@ -6897,7 +7467,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6897
7467
|
key: "renderActivePlayer",
|
|
6898
7468
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6899
7469
|
if (!url) return null;
|
|
6900
|
-
return
|
|
7470
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6901
7471
|
key: activePlayer.displayName,
|
|
6902
7472
|
ref: this.activePlayerRef,
|
|
6903
7473
|
config: this.config,
|
|
@@ -6934,14 +7504,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6934
7504
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6935
7505
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6936
7506
|
|
|
6937
|
-
var preview =
|
|
7507
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6938
7508
|
url: url,
|
|
6939
7509
|
light: light,
|
|
6940
7510
|
playIcon: playIcon,
|
|
6941
7511
|
onClick: this.handleClickPreview
|
|
6942
7512
|
});
|
|
6943
7513
|
|
|
6944
|
-
return
|
|
7514
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6945
7515
|
ref: this.wrapperRef,
|
|
6946
7516
|
style: _objectSpread({}, style, {
|
|
6947
7517
|
width: width,
|
|
@@ -7263,8 +7833,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7263
7833
|
var duration = player.getDuration();
|
|
7264
7834
|
var queue = Math.floor(duration / 10);
|
|
7265
7835
|
var segment = Math.floor(current / queue);
|
|
7266
|
-
Beam.report_beam_video('Ready',
|
|
7267
|
-
Segment.report_video_event('Video Ready',
|
|
7836
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7837
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7268
7838
|
//autoplay
|
|
7269
7839
|
|
|
7270
7840
|
//Small pause before starting next video
|
|
@@ -7284,8 +7854,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7854
|
var queue = Math.floor(duration / 10);
|
|
7285
7855
|
var segment = Math.floor(current / queue);
|
|
7286
7856
|
|
|
7287
|
-
Beam.report_beam_video('End',
|
|
7288
|
-
Segment.report_video_event('Video End',
|
|
7857
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7858
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7289
7859
|
setEndReported(true);
|
|
7290
7860
|
clearInterval(intervalID);
|
|
7291
7861
|
}
|
|
@@ -7335,8 +7905,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7905
|
var queue = Math.floor(duration / 10);
|
|
7336
7906
|
var segment = Math.floor(current / queue);
|
|
7337
7907
|
if (!queueProgress.includes(segment)) {
|
|
7338
|
-
Beam.report_beam_video('Segment',
|
|
7339
|
-
Segment.report_video_event('Video Segment',
|
|
7908
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7909
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7340
7910
|
queueProgress.push(segment);
|
|
7341
7911
|
}
|
|
7342
7912
|
};
|
|
@@ -7349,8 +7919,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7919
|
var queue = Math.floor(duration / 10);
|
|
7350
7920
|
var segment = Math.floor(current / queue);
|
|
7351
7921
|
|
|
7352
|
-
Beam.report_beam_video('Play',
|
|
7353
|
-
Segment.report_video_event('Video Play',
|
|
7922
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7923
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7354
7924
|
|
|
7355
7925
|
if (!playReported) {
|
|
7356
7926
|
setPlayReported(true);
|
|
@@ -7368,8 +7938,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7368
7938
|
var queue = Math.floor(duration / 10);
|
|
7369
7939
|
var segment = Math.floor(current / queue);
|
|
7370
7940
|
|
|
7371
|
-
Beam.report_beam_video('Pause',
|
|
7372
|
-
Segment.report_video_event('Video Pause',
|
|
7941
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7942
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7373
7943
|
};
|
|
7374
7944
|
|
|
7375
7945
|
// Youtube Options
|
|
@@ -7487,7 +8057,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7487
8057
|
React__default.createElement(
|
|
7488
8058
|
'div',
|
|
7489
8059
|
{ className: 'vid-text' },
|
|
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()))
|
|
8060
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7491
8061
|
),
|
|
7492
8062
|
React__default.createElement(
|
|
7493
8063
|
'style',
|
|
@@ -7497,14 +8067,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
8067
|
);
|
|
7498
8068
|
};
|
|
7499
8069
|
|
|
7500
|
-
var Poll
|
|
7501
|
-
var node = _ref.node
|
|
7502
|
-
_ref.client
|
|
7503
|
-
_ref.pageview
|
|
7504
|
-
_ref.videoAccountIDs
|
|
7505
|
-
|
|
7506
|
-
_ref.showVotes
|
|
7507
|
-
|
|
8070
|
+
var Poll = function Poll(_ref) {
|
|
8071
|
+
var node = _ref.node,
|
|
8072
|
+
client = _ref.client,
|
|
8073
|
+
pageview = _ref.pageview,
|
|
8074
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
8075
|
+
onVote = _ref.onVote,
|
|
8076
|
+
_ref$showVotes = _ref.showVotes,
|
|
8077
|
+
getSerializers = _ref.getSerializers;
|
|
7508
8078
|
|
|
7509
8079
|
var _useState = useState(null),
|
|
7510
8080
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7638,22 +8208,22 @@ _export(_export.S, 'Object', {
|
|
|
7638
8208
|
}
|
|
7639
8209
|
});
|
|
7640
8210
|
|
|
7641
|
-
var values
|
|
8211
|
+
var values = _core.Object.values;
|
|
7642
8212
|
|
|
7643
|
-
var values = createCommonjsModule(function (module) {
|
|
7644
|
-
module.exports = { "default": values
|
|
8213
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
8214
|
+
module.exports = { "default": values, __esModule: true };
|
|
7645
8215
|
});
|
|
7646
8216
|
|
|
7647
|
-
var _Object$values = unwrapExports(values);
|
|
8217
|
+
var _Object$values = unwrapExports(values$1);
|
|
7648
8218
|
|
|
7649
|
-
var Poll = function Poll(_ref) {
|
|
7650
|
-
var node = _ref.node
|
|
7651
|
-
_ref.client
|
|
7652
|
-
_ref.pageview
|
|
7653
|
-
_ref.videoAccountIDs
|
|
7654
|
-
|
|
7655
|
-
_ref.showVotes
|
|
7656
|
-
|
|
8219
|
+
var Poll$1 = function Poll(_ref) {
|
|
8220
|
+
var node = _ref.node,
|
|
8221
|
+
client = _ref.client,
|
|
8222
|
+
pageview = _ref.pageview,
|
|
8223
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
8224
|
+
onVote = _ref.onVote,
|
|
8225
|
+
_ref$showVotes = _ref.showVotes,
|
|
8226
|
+
getSerializers = _ref.getSerializers;
|
|
7657
8227
|
|
|
7658
8228
|
var _useState = useState(null),
|
|
7659
8229
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7805,7 +8375,7 @@ var Poll = function Poll(_ref) {
|
|
|
7805
8375
|
);
|
|
7806
8376
|
};
|
|
7807
8377
|
|
|
7808
|
-
var numberOfPaginations =
|
|
8378
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7809
8379
|
|
|
7810
8380
|
var Quiz = function Quiz(_ref) {
|
|
7811
8381
|
var quizzes = _ref.quizzes,
|
|
@@ -7924,33 +8494,33 @@ var Quiz = function Quiz(_ref) {
|
|
|
7924
8494
|
|
|
7925
8495
|
var renderPagination = function renderPagination() {
|
|
7926
8496
|
return React__default.createElement(
|
|
7927
|
-
Pagination,
|
|
7928
|
-
{ className: 'p-0 m-0', size:
|
|
7929
|
-
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
8497
|
+
Pagination$1,
|
|
8498
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
8499
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7930
8500
|
return changePage('first');
|
|
7931
8501
|
}, disabled: currentPage === 1 }),
|
|
7932
|
-
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
8502
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7933
8503
|
return changePage('prev');
|
|
7934
8504
|
}, disabled: currentPage === 1 }),
|
|
7935
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8505
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7936
8506
|
return renderNewPages('prev');
|
|
7937
8507
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7938
8508
|
pages.map(function (page) {
|
|
7939
8509
|
return React__default.createElement(
|
|
7940
|
-
Pagination.Item,
|
|
8510
|
+
Pagination$1.Item,
|
|
7941
8511
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7942
8512
|
return changePage(page);
|
|
7943
8513
|
} },
|
|
7944
8514
|
page
|
|
7945
8515
|
);
|
|
7946
8516
|
}),
|
|
7947
|
-
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8517
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7948
8518
|
return renderNewPages('next');
|
|
7949
8519
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7950
|
-
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8520
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7951
8521
|
return changePage('next');
|
|
7952
8522
|
}, disabled: currentPage === pageCount }),
|
|
7953
|
-
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8523
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7954
8524
|
return changePage('last');
|
|
7955
8525
|
}, disabled: currentPage === pageCount })
|
|
7956
8526
|
);
|
|
@@ -8095,20 +8665,19 @@ var Leads = function Leads(_ref) {
|
|
|
8095
8665
|
);
|
|
8096
8666
|
};
|
|
8097
8667
|
|
|
8098
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8668
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8099
8669
|
var slides = _ref.node.slides,
|
|
8100
8670
|
client = _ref.client,
|
|
8101
8671
|
pageview = _ref.pageview,
|
|
8102
8672
|
getSerializers = _ref.getSerializers;
|
|
8103
8673
|
|
|
8104
8674
|
var router = useRouter();
|
|
8105
|
-
var carouselRef = useRef(null);
|
|
8106
8675
|
var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
|
|
8107
8676
|
|
|
8108
8677
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8109
8678
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8110
|
-
carouselIndex = _useState2[0]
|
|
8111
|
-
_useState2[1];
|
|
8679
|
+
carouselIndex = _useState2[0],
|
|
8680
|
+
setCarouselIndex = _useState2[1];
|
|
8112
8681
|
|
|
8113
8682
|
// useEffect(() => {
|
|
8114
8683
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8129,14 +8698,12 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8129
8698
|
var pageNumber = selectedIndex + 1;
|
|
8130
8699
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
8131
8700
|
router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
8132
|
-
|
|
8133
|
-
carouselRef.current.scrollIntoView();
|
|
8134
|
-
}
|
|
8701
|
+
setCarouselIndex(selectedIndex);
|
|
8135
8702
|
};
|
|
8136
8703
|
|
|
8137
8704
|
return React__default.createElement(
|
|
8138
8705
|
'div',
|
|
8139
|
-
{
|
|
8706
|
+
{ className: 'mt-3 mb-4' },
|
|
8140
8707
|
React__default.createElement(
|
|
8141
8708
|
Carousel,
|
|
8142
8709
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
@@ -8149,9 +8716,25 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8149
8716
|
'a',
|
|
8150
8717
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8151
8718
|
React__default.createElement(
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
React__default.createElement(
|
|
8719
|
+
'div',
|
|
8720
|
+
{ className: 'embed-responsive embed-responsive-slide' },
|
|
8721
|
+
React__default.createElement(
|
|
8722
|
+
LazyLoad,
|
|
8723
|
+
null,
|
|
8724
|
+
React__default.createElement(
|
|
8725
|
+
'picture',
|
|
8726
|
+
null,
|
|
8727
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8728
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8729
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8730
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8731
|
+
)
|
|
8732
|
+
),
|
|
8733
|
+
React__default.createElement(
|
|
8734
|
+
'style',
|
|
8735
|
+
{ jsx: 'true' },
|
|
8736
|
+
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8737
|
+
)
|
|
8155
8738
|
)
|
|
8156
8739
|
),
|
|
8157
8740
|
React__default.createElement(
|
|
@@ -8238,7 +8821,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8238
8821
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8239
8822
|
React__default.createElement(
|
|
8240
8823
|
'a',
|
|
8241
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8824
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8242
8825
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8243
8826
|
React__default.createElement(
|
|
8244
8827
|
'div',
|
|
@@ -8246,7 +8829,14 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8246
8829
|
imageBox && React__default.createElement(
|
|
8247
8830
|
LazyLoad,
|
|
8248
8831
|
{ once: true },
|
|
8249
|
-
React__default.createElement(
|
|
8832
|
+
React__default.createElement(
|
|
8833
|
+
'picture',
|
|
8834
|
+
null,
|
|
8835
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8836
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8837
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8838
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8839
|
+
)
|
|
8250
8840
|
),
|
|
8251
8841
|
media.caption && React__default.createElement(
|
|
8252
8842
|
'span',
|
|
@@ -8526,7 +9116,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8526
9116
|
|
|
8527
9117
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8528
9118
|
if (biography) {
|
|
8529
|
-
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9119
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8530
9120
|
}
|
|
8531
9121
|
};
|
|
8532
9122
|
|
|
@@ -8612,7 +9202,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8612
9202
|
//console.log('useLayoutEffect')
|
|
8613
9203
|
if (!firstLoad) {
|
|
8614
9204
|
setUpArrowClicked(false);
|
|
8615
|
-
if (
|
|
9205
|
+
if (main_36) {
|
|
8616
9206
|
grabLoadedAds();
|
|
8617
9207
|
} else {
|
|
8618
9208
|
scrollToArticle();
|
|
@@ -8636,7 +9226,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8636
9226
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8637
9227
|
if (pageview) pageview(path);
|
|
8638
9228
|
|
|
8639
|
-
if (!
|
|
9229
|
+
if (!main_36) {
|
|
8640
9230
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8641
9231
|
if (window.googletag && googletag.pubadsReady) {
|
|
8642
9232
|
lib_3.refresh();
|
|
@@ -8644,7 +9234,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
9234
|
});
|
|
8645
9235
|
}
|
|
8646
9236
|
//Refresh leaderboard ad on mobile
|
|
8647
|
-
if (
|
|
9237
|
+
if (main_36) {
|
|
8648
9238
|
var leaderboardSlotId = '';
|
|
8649
9239
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8650
9240
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8713,7 +9303,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8713
9303
|
React__default.createElement(
|
|
8714
9304
|
'div',
|
|
8715
9305
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8716
|
-
|
|
9306
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8717
9307
|
if (index === 0) {
|
|
8718
9308
|
return React__default.createElement(
|
|
8719
9309
|
'div',
|
|
@@ -8804,7 +9394,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8804
9394
|
React__default.createElement(
|
|
8805
9395
|
'div',
|
|
8806
9396
|
{ className: 'mt-2 mb-2' },
|
|
8807
|
-
React__default.createElement(BlockContent, _extends({
|
|
9397
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8808
9398
|
serializers: getSerializers,
|
|
8809
9399
|
videoAccountIDs: accountIDs,
|
|
8810
9400
|
blocks: article.text,
|
|
@@ -8835,7 +9425,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8835
9425
|
React__default.createElement(
|
|
8836
9426
|
'div',
|
|
8837
9427
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8838
|
-
|
|
9428
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8839
9429
|
if (innerIndex === 0) {
|
|
8840
9430
|
return React__default.createElement(
|
|
8841
9431
|
'div',
|
|
@@ -8922,7 +9512,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8922
9512
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8923
9513
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8924
9514
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8925
|
-
React__default.createElement('img', _extends({
|
|
9515
|
+
React__default.createElement('img', _extends$1({
|
|
8926
9516
|
style: figureImageStyle,
|
|
8927
9517
|
className: 'figure-image',
|
|
8928
9518
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9037,7 +9627,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9037
9627
|
React__default.Fragment,
|
|
9038
9628
|
null,
|
|
9039
9629
|
React__default.createElement(
|
|
9040
|
-
Figure$
|
|
9630
|
+
Figure$1$1,
|
|
9041
9631
|
{ className: '' + class_name, style: figureStyle },
|
|
9042
9632
|
link ? React__default.createElement(
|
|
9043
9633
|
'a',
|
|
@@ -9084,6 +9674,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9084
9674
|
}, [ref]);
|
|
9085
9675
|
}
|
|
9086
9676
|
|
|
9677
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9678
|
+
var imagesCount = _ref.imagesCount,
|
|
9679
|
+
image = _ref.image,
|
|
9680
|
+
client = _ref.client,
|
|
9681
|
+
imgAlt = _ref.imgAlt,
|
|
9682
|
+
link = _ref.link,
|
|
9683
|
+
handleClickFigure = _ref.handleClickFigure;
|
|
9684
|
+
|
|
9685
|
+
return React__default.createElement(
|
|
9686
|
+
'picture',
|
|
9687
|
+
null,
|
|
9688
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9689
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9690
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9691
|
+
React__default.createElement('img', _extends$1({
|
|
9692
|
+
'images-count': imagesCount,
|
|
9693
|
+
className: 'multi-figure-image',
|
|
9694
|
+
src: urlFor({ source: image, client: client }),
|
|
9695
|
+
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9696
|
+
}, !link && {
|
|
9697
|
+
onClick: function onClick() {
|
|
9698
|
+
return handleClickFigure(image, client);
|
|
9699
|
+
}
|
|
9700
|
+
}))
|
|
9701
|
+
);
|
|
9702
|
+
});
|
|
9703
|
+
|
|
9087
9704
|
var MultiFigure = function MultiFigure(props) {
|
|
9088
9705
|
var images = props.node.images,
|
|
9089
9706
|
client = props.client,
|
|
@@ -9103,9 +9720,9 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9103
9720
|
var lightboxContainer = useRef(null);
|
|
9104
9721
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9105
9722
|
|
|
9106
|
-
var FigureCaption = function FigureCaption(
|
|
9107
|
-
var caption =
|
|
9108
|
-
imgcaption =
|
|
9723
|
+
var FigureCaption = function FigureCaption(_ref2) {
|
|
9724
|
+
var caption = _ref2.caption,
|
|
9725
|
+
imgcaption = _ref2.imgcaption;
|
|
9109
9726
|
|
|
9110
9727
|
if (imgcaption && imgcaption.length > 0) {
|
|
9111
9728
|
return React__default.createElement(
|
|
@@ -9118,6 +9735,11 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9118
9735
|
} else return null;
|
|
9119
9736
|
};
|
|
9120
9737
|
|
|
9738
|
+
var handleClickFigure = useCallback(function (image, client) {
|
|
9739
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9740
|
+
setOpenImg(true);
|
|
9741
|
+
}, [client]);
|
|
9742
|
+
|
|
9121
9743
|
if (images && images.length > 0) {
|
|
9122
9744
|
return React__default.createElement(
|
|
9123
9745
|
'div',
|
|
@@ -9131,14 +9753,14 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9131
9753
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9132
9754
|
image.link ? React__default.createElement(
|
|
9133
9755
|
'a',
|
|
9134
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9756
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
9757
|
React__default.createElement(
|
|
9136
9758
|
'div',
|
|
9137
9759
|
{ className: 'multi-figure-image-container' },
|
|
9138
9760
|
React__default.createElement(
|
|
9139
9761
|
LazyLoad,
|
|
9140
9762
|
{ once: true },
|
|
9141
|
-
React__default.createElement(
|
|
9763
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9142
9764
|
),
|
|
9143
9765
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9144
9766
|
)
|
|
@@ -9148,16 +9770,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9148
9770
|
React__default.createElement(
|
|
9149
9771
|
LazyLoad,
|
|
9150
9772
|
{ once: true },
|
|
9151
|
-
React__default.createElement(
|
|
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
|
-
})
|
|
9773
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9161
9774
|
),
|
|
9162
9775
|
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9163
9776
|
)
|
|
@@ -9172,7 +9785,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9172
9785
|
React__default.createElement(
|
|
9173
9786
|
'style',
|
|
9174
9787
|
{ jsx: 'true' },
|
|
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 '
|
|
9788
|
+
'\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 cursor: pointer;\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 '
|
|
9176
9789
|
)
|
|
9177
9790
|
);
|
|
9178
9791
|
}
|
|
@@ -9223,7 +9836,7 @@ exports.__esModule = true;
|
|
|
9223
9836
|
|
|
9224
9837
|
|
|
9225
9838
|
|
|
9226
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9839
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9227
9840
|
|
|
9228
9841
|
|
|
9229
9842
|
|
|
@@ -9239,7 +9852,7 @@ var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorRetu
|
|
|
9239
9852
|
|
|
9240
9853
|
|
|
9241
9854
|
|
|
9242
|
-
var _inherits3 = _interopRequireDefault(inherits);
|
|
9855
|
+
var _inherits3 = _interopRequireDefault(inherits$2);
|
|
9243
9856
|
|
|
9244
9857
|
|
|
9245
9858
|
|
|
@@ -9392,9 +10005,9 @@ var ScriptTag = function (_Component) {
|
|
|
9392
10005
|
|
|
9393
10006
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9394
10007
|
// eslint-disable-next-line no-unused-vars
|
|
9395
|
-
var _props3 = this.props
|
|
9396
|
-
_props3.isHydrating
|
|
9397
|
-
|
|
10008
|
+
var _props3 = this.props,
|
|
10009
|
+
isHydrating = _props3.isHydrating,
|
|
10010
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9398
10011
|
|
|
9399
10012
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9400
10013
|
return _this2.domRef = tag;
|
|
@@ -9467,7 +10080,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9467
10080
|
useEffect(function () {
|
|
9468
10081
|
if (FormID) {
|
|
9469
10082
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
9470
|
-
var anonymousID = analytics.user() && analytics.user().anonymousId();
|
|
10083
|
+
var anonymousID = typeof analytics !== 'undefined' && analytics.user() && analytics.user().anonymousId();
|
|
9471
10084
|
if (anonymousID && needSegmentSupport) {
|
|
9472
10085
|
src = src + '?tfa_1=' + anonymousID;
|
|
9473
10086
|
}
|
|
@@ -9536,7 +10149,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9536
10149
|
return React__default.createElement(
|
|
9537
10150
|
'div',
|
|
9538
10151
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9539
|
-
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10152
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9540
10153
|
);
|
|
9541
10154
|
})
|
|
9542
10155
|
);
|
|
@@ -9664,7 +10277,7 @@ var getSerializers = function getSerializers() {
|
|
|
9664
10277
|
var node = _ref6.node;
|
|
9665
10278
|
var slides = node.slides;
|
|
9666
10279
|
|
|
9667
|
-
return React__default.createElement(Slideshow
|
|
10280
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9668
10281
|
},
|
|
9669
10282
|
sidebar: function sidebar(_ref7) {
|
|
9670
10283
|
var node = _ref7.node;
|
|
@@ -9702,12 +10315,12 @@ var getSerializers = function getSerializers() {
|
|
|
9702
10315
|
poll: function poll(_ref13) {
|
|
9703
10316
|
var node = _ref13.node;
|
|
9704
10317
|
|
|
9705
|
-
return React__default.createElement(Poll
|
|
10318
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9706
10319
|
},
|
|
9707
10320
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9708
10321
|
var node = _ref14.node;
|
|
9709
10322
|
|
|
9710
|
-
return React__default.createElement(Poll, {
|
|
10323
|
+
return React__default.createElement(Poll$1, {
|
|
9711
10324
|
node: node,
|
|
9712
10325
|
client: client,
|
|
9713
10326
|
pageview: pageview,
|
|
@@ -9733,7 +10346,7 @@ var getSerializers = function getSerializers() {
|
|
|
9733
10346
|
slideshows: function slideshows(_ref17) {
|
|
9734
10347
|
var node = _ref17.node;
|
|
9735
10348
|
|
|
9736
|
-
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10349
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9737
10350
|
},
|
|
9738
10351
|
nativeAd: function nativeAd(_ref18) {
|
|
9739
10352
|
var node = _ref18.node;
|