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