@mjhls/mjh-framework 1.0.803 → 1.0.804-beta.3
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 +44 -32
- package/dist/cjs/ADFooter.js +28 -20
- package/dist/cjs/ADGutter.js +32 -32
- package/dist/cjs/{ADInfeed-d9976673.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-0610e1bb.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 +131 -139
- 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-9d158713.js → extends-60837c34.js} +7 -7
- 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-fbbe92ba.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-a766f892.js → index-b53c1261.js} +984 -1007
- 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-3ff1b657.js → inherits-513d81cd.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +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 +36 -23
- package/dist/esm/ADFooter.js +20 -11
- package/dist/esm/ADGutter.js +23 -22
- package/dist/esm/{ADInfeed-33e556f5.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-1270c526.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 +35 -35
- 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-f076879e.js → extends-eb69e8ac.js} +7 -7
- 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-0958ad0e.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-f354da27.js → index-6271cfc8.js} +612 -628
- 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-f71787cf.js → inherits-fb9b6e8f.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{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,64 +1,57 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-60837c34.js');
|
|
9
|
+
var inherits$1 = require('./inherits-513d81cd.js');
|
|
10
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
3
11
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var index = require('./index-efca863c.js');
|
|
7
|
-
var index$1 = require('./index-0e4427c8.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var index$2 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
10
14
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var index$1 = require('./index-be0c82be.js');
|
|
22
|
+
var index$2 = require('./index-96b3db50.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
24
|
+
var entities = require('./entities-310b46ee.js');
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
26
|
+
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
14
27
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var index$3 = require('./index-
|
|
19
|
-
var _typeof$1 = require('./typeof-88a668c5.js');
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
28
|
+
var Beam = require('./Beam.js');
|
|
29
|
+
var AdSlot = require('./AdSlot.js');
|
|
30
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
31
|
+
var index$3 = require('./index-187c967e.js');
|
|
21
32
|
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var
|
|
33
|
+
var reactBootstrap = require('react-bootstrap');
|
|
34
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
35
|
+
var util = require('./util-f2c1b65b.js');
|
|
36
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
37
|
+
var Head = _interopDefault(require('next/head'));
|
|
23
38
|
var SocialShare = require('./SocialShare.js');
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
var AdSlot = require('./AdSlot.js');
|
|
31
|
-
var Row = require('react-bootstrap/Row');
|
|
32
|
-
var Col = require('react-bootstrap/Col');
|
|
33
|
-
var Head = require('next/head');
|
|
34
|
-
var inherits = require('./inherits-3ff1b657.js');
|
|
35
|
-
var index_esm = require('./index.esm-00a6aade.js');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
|
|
38
|
-
|
|
39
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
40
|
-
|
|
41
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
42
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
43
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
44
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
45
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
46
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
47
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
48
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
49
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
50
|
-
|
|
51
|
-
var urlFor$4 = function urlFor(source, builder) {
|
|
39
|
+
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
40
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
42
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
43
|
+
|
|
44
|
+
var urlFor = function urlFor(source, builder) {
|
|
52
45
|
return builder.image(source).auto('format');
|
|
53
46
|
};
|
|
54
47
|
|
|
55
48
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
56
49
|
var pageNumber = selectedIndex + 1;
|
|
57
50
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
58
|
-
Router__default
|
|
51
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
59
52
|
};
|
|
60
53
|
|
|
61
|
-
var Slideshow
|
|
54
|
+
var Slideshow = function Slideshow(_ref) {
|
|
62
55
|
var slides = _ref.slides,
|
|
63
56
|
client = _ref.client,
|
|
64
57
|
pageview = _ref.pageview;
|
|
@@ -70,7 +63,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
70
63
|
carouselIndex = _useState2[0],
|
|
71
64
|
setCarouselIndex = _useState2[1];
|
|
72
65
|
|
|
73
|
-
var builder = index.imageUrlBuilder(client);
|
|
66
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
74
67
|
|
|
75
68
|
React.useEffect(function () {
|
|
76
69
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -83,24 +76,24 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
83
76
|
}, [router]);
|
|
84
77
|
|
|
85
78
|
React.useEffect(function () {
|
|
86
|
-
index
|
|
79
|
+
index.lib_3.refresh();
|
|
87
80
|
if (pageview) pageview(router.asPath);
|
|
88
81
|
}, [router]);
|
|
89
82
|
|
|
90
|
-
return React__default
|
|
83
|
+
return React__default.createElement(
|
|
91
84
|
'div',
|
|
92
85
|
{ className: 'mt-3 mb-3' },
|
|
93
|
-
React__default
|
|
86
|
+
React__default.createElement(
|
|
94
87
|
reactBootstrap.Carousel,
|
|
95
88
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
96
89
|
return onChangeSlide(selectedIndex, router);
|
|
97
90
|
}, interval: null },
|
|
98
91
|
slides && slides.map(function (slide) {
|
|
99
|
-
return React__default
|
|
92
|
+
return React__default.createElement(
|
|
100
93
|
reactBootstrap.Carousel.Item,
|
|
101
94
|
{ key: slide._key },
|
|
102
|
-
React__default
|
|
103
|
-
slide.caption && React__default
|
|
95
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
96
|
+
slide.caption && React__default.createElement(
|
|
104
97
|
'p',
|
|
105
98
|
{ className: 'p-2' },
|
|
106
99
|
slide.caption
|
|
@@ -111,18 +104,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
111
104
|
);
|
|
112
105
|
};
|
|
113
106
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
107
|
+
var isArray = Array.isArray;
|
|
108
|
+
var keyList = Object.keys;
|
|
109
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
117
110
|
|
|
118
111
|
var fastDeepEqual = function equal(a, b) {
|
|
119
112
|
if (a === b) return true;
|
|
120
113
|
|
|
121
114
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
122
|
-
|
|
115
|
+
var arrA = isArray(a)
|
|
116
|
+
, arrB = isArray(b)
|
|
117
|
+
, i
|
|
118
|
+
, length
|
|
119
|
+
, key;
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
if (Array.isArray(a)) {
|
|
121
|
+
if (arrA && arrB) {
|
|
126
122
|
length = a.length;
|
|
127
123
|
if (length != b.length) return false;
|
|
128
124
|
for (i = length; i-- !== 0;)
|
|
@@ -130,29 +126,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
130
126
|
return true;
|
|
131
127
|
}
|
|
132
128
|
|
|
129
|
+
if (arrA != arrB) return false;
|
|
133
130
|
|
|
131
|
+
var dateA = a instanceof Date
|
|
132
|
+
, dateB = b instanceof Date;
|
|
133
|
+
if (dateA != dateB) return false;
|
|
134
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
134
135
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
if (
|
|
136
|
+
var regexpA = a instanceof RegExp
|
|
137
|
+
, regexpB = b instanceof RegExp;
|
|
138
|
+
if (regexpA != regexpB) return false;
|
|
139
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
138
140
|
|
|
139
|
-
keys =
|
|
141
|
+
var keys = keyList(a);
|
|
140
142
|
length = keys.length;
|
|
141
|
-
|
|
143
|
+
|
|
144
|
+
if (length !== keyList(b).length)
|
|
145
|
+
return false;
|
|
142
146
|
|
|
143
147
|
for (i = length; i-- !== 0;)
|
|
144
|
-
if (!
|
|
148
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
145
149
|
|
|
146
150
|
for (i = length; i-- !== 0;) {
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
key = keys[i];
|
|
149
152
|
if (!equal(a[key], b[key])) return false;
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
return true;
|
|
153
156
|
}
|
|
154
157
|
|
|
155
|
-
// true if both NaN, false otherwise
|
|
156
158
|
return a!==a && b!==b;
|
|
157
159
|
};
|
|
158
160
|
|
|
@@ -690,14 +692,14 @@ function coerce(val) {
|
|
|
690
692
|
return val;
|
|
691
693
|
}
|
|
692
694
|
});
|
|
693
|
-
debug.coerce;
|
|
694
|
-
debug.disable;
|
|
695
|
-
debug.enable;
|
|
696
|
-
debug.enabled;
|
|
697
|
-
debug.humanize;
|
|
698
|
-
debug.names;
|
|
699
|
-
debug.skips;
|
|
700
|
-
debug.formatters;
|
|
695
|
+
var debug_1 = debug.coerce;
|
|
696
|
+
var debug_2 = debug.disable;
|
|
697
|
+
var debug_3 = debug.enable;
|
|
698
|
+
var debug_4 = debug.enabled;
|
|
699
|
+
var debug_5 = debug.humanize;
|
|
700
|
+
var debug_6 = debug.names;
|
|
701
|
+
var debug_7 = debug.skips;
|
|
702
|
+
var debug_8 = debug.formatters;
|
|
701
703
|
|
|
702
704
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
703
705
|
/**
|
|
@@ -886,13 +888,13 @@ function localstorage() {
|
|
|
886
888
|
} catch (e) {}
|
|
887
889
|
}
|
|
888
890
|
});
|
|
889
|
-
browser.log;
|
|
890
|
-
browser.formatArgs;
|
|
891
|
-
browser.save;
|
|
892
|
-
browser.load;
|
|
893
|
-
browser.useColors;
|
|
894
|
-
browser.storage;
|
|
895
|
-
browser.colors;
|
|
891
|
+
var browser_1 = browser.log;
|
|
892
|
+
var browser_2 = browser.formatArgs;
|
|
893
|
+
var browser_3 = browser.save;
|
|
894
|
+
var browser_4 = browser.load;
|
|
895
|
+
var browser_5 = browser.useColors;
|
|
896
|
+
var browser_6 = browser.storage;
|
|
897
|
+
var browser_7 = browser.colors;
|
|
896
898
|
|
|
897
899
|
// MIT lisence
|
|
898
900
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1167,14 +1169,14 @@ function init (debug) {
|
|
|
1167
1169
|
|
|
1168
1170
|
exports.enable(load());
|
|
1169
1171
|
});
|
|
1170
|
-
node.init;
|
|
1171
|
-
node.log;
|
|
1172
|
-
node.formatArgs;
|
|
1173
|
-
node.save;
|
|
1174
|
-
node.load;
|
|
1175
|
-
node.useColors;
|
|
1176
|
-
node.colors;
|
|
1177
|
-
node.inspectOpts;
|
|
1172
|
+
var node_1 = node.init;
|
|
1173
|
+
var node_2 = node.log;
|
|
1174
|
+
var node_3 = node.formatArgs;
|
|
1175
|
+
var node_4 = node.save;
|
|
1176
|
+
var node_5 = node.load;
|
|
1177
|
+
var node_6 = node.useColors;
|
|
1178
|
+
var node_7 = node.colors;
|
|
1179
|
+
var node_8 = node.inspectOpts;
|
|
1178
1180
|
|
|
1179
1181
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1180
1182
|
/**
|
|
@@ -1575,239 +1577,199 @@ module.exports = exports['default'];
|
|
|
1575
1577
|
|
|
1576
1578
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1577
1579
|
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1580
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
|
-
|
|
1582
|
-
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); } }
|
|
1583
|
-
|
|
1584
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1585
|
-
|
|
1586
|
-
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); }
|
|
1587
|
-
|
|
1588
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1580
|
+
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; }; }();
|
|
1589
1581
|
|
|
1590
|
-
function
|
|
1582
|
+
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; };
|
|
1591
1583
|
|
|
1592
|
-
function
|
|
1593
|
-
|
|
1594
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1595
|
-
|
|
1596
|
-
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; } }
|
|
1597
|
-
|
|
1598
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1584
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1599
1585
|
|
|
1600
|
-
function
|
|
1586
|
+
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; }
|
|
1601
1587
|
|
|
1602
|
-
function
|
|
1588
|
+
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; }
|
|
1603
1589
|
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object}
|
|
1609
|
-
* @param {Object} props
|
|
1590
|
+
/**
|
|
1591
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1592
|
+
*
|
|
1593
|
+
* @param {Object} prevProps
|
|
1594
|
+
* @param {Object} props
|
|
1610
1595
|
*/
|
|
1611
|
-
|
|
1612
1596
|
function shouldUpdateVideo(prevProps, props) {
|
|
1613
1597
|
// A changing video should always trigger an update
|
|
1614
1598
|
if (prevProps.videoId !== props.videoId) {
|
|
1615
1599
|
return true;
|
|
1616
|
-
}
|
|
1617
|
-
// update.
|
|
1618
|
-
|
|
1600
|
+
}
|
|
1619
1601
|
|
|
1602
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
// update.
|
|
1620
1604
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1621
1605
|
var vars = props.opts.playerVars || {};
|
|
1606
|
+
|
|
1622
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1623
1608
|
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1626
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1627
|
-
* player reset is necessary.
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object} opts
|
|
1630
|
-
*/
|
|
1631
|
-
|
|
1632
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1616
|
+
*/
|
|
1633
1617
|
function filterResetOptions(opts) {
|
|
1634
|
-
return
|
|
1635
|
-
playerVars:
|
|
1618
|
+
return _extends({}, opts, {
|
|
1619
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1636
1620
|
autoplay: 0,
|
|
1637
1621
|
start: 0,
|
|
1638
1622
|
end: 0
|
|
1639
|
-
}
|
|
1623
|
+
})
|
|
1640
1624
|
});
|
|
1641
1625
|
}
|
|
1642
|
-
/**
|
|
1643
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1644
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1645
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1646
|
-
* those.
|
|
1647
|
-
*
|
|
1648
|
-
* @param {Object} prevProps
|
|
1649
|
-
* @param {Object} props
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
1626
|
|
|
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
|
+
*/
|
|
1653
1636
|
function shouldResetPlayer(prevProps, props) {
|
|
1654
1637
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1655
1638
|
}
|
|
1656
|
-
/**
|
|
1657
|
-
* Check whether a props change should result in an id or className update.
|
|
1658
|
-
*
|
|
1659
|
-
* @param {Object} prevProps
|
|
1660
|
-
* @param {Object} props
|
|
1661
|
-
*/
|
|
1662
|
-
|
|
1663
1639
|
|
|
1640
|
+
/**
|
|
1641
|
+
* Check whether a props change should result in an id or className update.
|
|
1642
|
+
*
|
|
1643
|
+
* @param {Object} prevProps
|
|
1644
|
+
* @param {Object} props
|
|
1645
|
+
*/
|
|
1664
1646
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1665
1647
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1666
1648
|
}
|
|
1667
1649
|
|
|
1668
|
-
var YouTube =
|
|
1650
|
+
var YouTube = function (_React$Component) {
|
|
1669
1651
|
_inherits(YouTube, _React$Component);
|
|
1670
1652
|
|
|
1671
|
-
var _super = _createSuper(YouTube);
|
|
1672
|
-
|
|
1673
|
-
/**
|
|
1674
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1675
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1676
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1677
|
-
*/
|
|
1678
1653
|
function YouTube(props) {
|
|
1679
|
-
var _this;
|
|
1680
|
-
|
|
1681
1654
|
_classCallCheck(this, YouTube);
|
|
1682
1655
|
|
|
1683
|
-
_this =
|
|
1656
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1684
1657
|
|
|
1685
|
-
|
|
1658
|
+
_this.onPlayerReady = function (event) {
|
|
1686
1659
|
return _this.props.onReady(event);
|
|
1687
|
-
}
|
|
1660
|
+
};
|
|
1688
1661
|
|
|
1689
|
-
|
|
1662
|
+
_this.onPlayerError = function (event) {
|
|
1690
1663
|
return _this.props.onError(event);
|
|
1691
|
-
}
|
|
1664
|
+
};
|
|
1692
1665
|
|
|
1693
|
-
|
|
1666
|
+
_this.onPlayerStateChange = function (event) {
|
|
1694
1667
|
_this.props.onStateChange(event);
|
|
1695
|
-
|
|
1696
1668
|
switch (event.data) {
|
|
1669
|
+
|
|
1697
1670
|
case YouTube.PlayerState.ENDED:
|
|
1698
1671
|
_this.props.onEnd(event);
|
|
1699
|
-
|
|
1700
1672
|
break;
|
|
1701
1673
|
|
|
1702
1674
|
case YouTube.PlayerState.PLAYING:
|
|
1703
1675
|
_this.props.onPlay(event);
|
|
1704
|
-
|
|
1705
1676
|
break;
|
|
1706
1677
|
|
|
1707
1678
|
case YouTube.PlayerState.PAUSED:
|
|
1708
1679
|
_this.props.onPause(event);
|
|
1709
|
-
|
|
1710
1680
|
break;
|
|
1711
1681
|
}
|
|
1712
|
-
}
|
|
1682
|
+
};
|
|
1713
1683
|
|
|
1714
|
-
|
|
1684
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1715
1685
|
return _this.props.onPlaybackRateChange(event);
|
|
1716
|
-
}
|
|
1686
|
+
};
|
|
1717
1687
|
|
|
1718
|
-
|
|
1688
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1719
1689
|
return _this.props.onPlaybackQualityChange(event);
|
|
1720
|
-
}
|
|
1690
|
+
};
|
|
1721
1691
|
|
|
1722
|
-
|
|
1692
|
+
_this.createPlayer = function () {
|
|
1723
1693
|
// do not attempt to create a player server-side, it won't work
|
|
1724
|
-
if (typeof document === 'undefined') return;
|
|
1725
|
-
|
|
1726
|
-
var playerOpts =
|
|
1694
|
+
if (typeof document === 'undefined') return;
|
|
1695
|
+
// create player
|
|
1696
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1727
1697
|
// preload the `videoId` video if one is already given
|
|
1728
1698
|
videoId: _this.props.videoId
|
|
1729
1699
|
});
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1700
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1701
|
+
// attach event handlers
|
|
1733
1702
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1734
|
-
|
|
1735
1703
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1736
|
-
|
|
1737
1704
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1738
|
-
|
|
1739
1705
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1740
|
-
|
|
1741
1706
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1742
|
-
}
|
|
1707
|
+
};
|
|
1743
1708
|
|
|
1744
|
-
|
|
1709
|
+
_this.resetPlayer = function () {
|
|
1745
1710
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1746
|
-
}
|
|
1711
|
+
};
|
|
1747
1712
|
|
|
1748
|
-
|
|
1713
|
+
_this.updatePlayer = function () {
|
|
1749
1714
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1750
1715
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1751
1716
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1752
1717
|
});
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1756
|
-
return _this.internalPlayer;
|
|
1757
|
-
});
|
|
1718
|
+
};
|
|
1758
1719
|
|
|
1759
|
-
|
|
1720
|
+
_this.updateVideo = function () {
|
|
1760
1721
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1761
1722
|
_this.internalPlayer.stopVideo();
|
|
1762
|
-
|
|
1763
1723
|
return;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1724
|
+
}
|
|
1766
1725
|
|
|
1726
|
+
// set queueing options
|
|
1767
1727
|
var autoplay = false;
|
|
1768
1728
|
var opts = {
|
|
1769
1729
|
videoId: _this.props.videoId
|
|
1770
1730
|
};
|
|
1771
|
-
|
|
1772
1731
|
if ('playerVars' in _this.props.opts) {
|
|
1773
1732
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1774
|
-
|
|
1775
1733
|
if ('start' in _this.props.opts.playerVars) {
|
|
1776
1734
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1777
1735
|
}
|
|
1778
|
-
|
|
1779
1736
|
if ('end' in _this.props.opts.playerVars) {
|
|
1780
1737
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1781
1738
|
}
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1739
|
+
}
|
|
1784
1740
|
|
|
1741
|
+
// if autoplay is enabled loadVideoById
|
|
1785
1742
|
if (autoplay) {
|
|
1786
1743
|
_this.internalPlayer.loadVideoById(opts);
|
|
1787
|
-
|
|
1788
1744
|
return;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1745
|
+
}
|
|
1746
|
+
// default behaviour just cues the video
|
|
1792
1747
|
_this.internalPlayer.cueVideoById(opts);
|
|
1793
|
-
}
|
|
1748
|
+
};
|
|
1794
1749
|
|
|
1795
|
-
|
|
1750
|
+
_this.refContainer = function (container) {
|
|
1796
1751
|
_this.container = container;
|
|
1797
|
-
}
|
|
1752
|
+
};
|
|
1798
1753
|
|
|
1799
1754
|
_this.container = null;
|
|
1800
1755
|
_this.internalPlayer = null;
|
|
1801
1756
|
return _this;
|
|
1802
1757
|
}
|
|
1803
1758
|
|
|
1759
|
+
/**
|
|
1760
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1761
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1762
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1763
|
+
*/
|
|
1764
|
+
|
|
1765
|
+
|
|
1804
1766
|
_createClass(YouTube, [{
|
|
1805
|
-
key:
|
|
1767
|
+
key: 'componentDidMount',
|
|
1806
1768
|
value: function componentDidMount() {
|
|
1807
1769
|
this.createPlayer();
|
|
1808
1770
|
}
|
|
1809
1771
|
}, {
|
|
1810
|
-
key:
|
|
1772
|
+
key: 'componentDidUpdate',
|
|
1811
1773
|
value: function componentDidUpdate(prevProps) {
|
|
1812
1774
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1813
1775
|
this.updatePlayer();
|
|
@@ -1822,70 +1784,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1822
1784
|
}
|
|
1823
1785
|
}
|
|
1824
1786
|
}, {
|
|
1825
|
-
key:
|
|
1787
|
+
key: 'componentWillUnmount',
|
|
1826
1788
|
value: function componentWillUnmount() {
|
|
1827
|
-
/**
|
|
1828
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1829
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1830
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1831
|
-
* this method isn't quick enough to reset the container element.
|
|
1789
|
+
/**
|
|
1790
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1791
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1792
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1793
|
+
* this method isn't quick enough to reset the container element.
|
|
1832
1794
|
*/
|
|
1833
1795
|
this.internalPlayer.destroy();
|
|
1834
1796
|
}
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1800
|
+
*
|
|
1801
|
+
* @param {Object} event
|
|
1802
|
+
* @param {Object} target - player object
|
|
1803
|
+
*/
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1808
|
+
*
|
|
1809
|
+
* @param {Object} event
|
|
1810
|
+
* @param {Integer} data - error type
|
|
1811
|
+
* @param {Object} target - player object
|
|
1812
|
+
*/
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1817
|
+
*
|
|
1818
|
+
* @param {Object} event
|
|
1819
|
+
* @param {Integer} data - status change type
|
|
1820
|
+
* @param {Object} target - actual YT player
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {Float} data - playback rate
|
|
1829
|
+
* @param {Object} target - actual YT player
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1835
|
+
*
|
|
1836
|
+
* @param {Object} event
|
|
1837
|
+
* @param {String} data - playback quality
|
|
1838
|
+
* @param {Object} target - actual YT player
|
|
1839
|
+
*/
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1844
|
+
*/
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1854
|
+
* React should update this automatically but since the Youtube Player API
|
|
1855
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1856
|
+
*/
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1861
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1862
|
+
* Youtube Player API methods to update the video.
|
|
1840
1863
|
*/
|
|
1841
1864
|
|
|
1842
1865
|
}, {
|
|
1843
|
-
key:
|
|
1866
|
+
key: 'render',
|
|
1844
1867
|
value: function render() {
|
|
1845
|
-
return
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
id: this.props.id,
|
|
1849
|
-
|
|
1850
|
-
ref: this.refContainer
|
|
1851
|
-
}));
|
|
1868
|
+
return React__default.createElement(
|
|
1869
|
+
'div',
|
|
1870
|
+
{ className: this.props.containerClassName },
|
|
1871
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1872
|
+
);
|
|
1852
1873
|
}
|
|
1853
1874
|
}]);
|
|
1854
1875
|
|
|
1855
1876
|
return YouTube;
|
|
1856
|
-
}(React__default
|
|
1857
|
-
|
|
1858
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1859
|
-
UNSTARTED: -1,
|
|
1860
|
-
ENDED: 0,
|
|
1861
|
-
PLAYING: 1,
|
|
1862
|
-
PAUSED: 2,
|
|
1863
|
-
BUFFERING: 3,
|
|
1864
|
-
CUED: 5
|
|
1865
|
-
});
|
|
1877
|
+
}(React__default.Component);
|
|
1866
1878
|
|
|
1867
1879
|
YouTube.propTypes = {
|
|
1868
|
-
videoId: PropTypes__default
|
|
1880
|
+
videoId: PropTypes__default.string,
|
|
1881
|
+
|
|
1869
1882
|
// custom ID for player element
|
|
1870
|
-
id: PropTypes__default
|
|
1883
|
+
id: PropTypes__default.string,
|
|
1884
|
+
|
|
1871
1885
|
// custom class name for player element
|
|
1872
|
-
className: PropTypes__default
|
|
1886
|
+
className: PropTypes__default.string,
|
|
1873
1887
|
// custom class name for player container element
|
|
1874
|
-
containerClassName: PropTypes__default
|
|
1888
|
+
containerClassName: PropTypes__default.string,
|
|
1889
|
+
|
|
1875
1890
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1876
|
-
opts: PropTypes__default
|
|
1891
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1892
|
+
|
|
1877
1893
|
// event subscriptions
|
|
1878
|
-
onReady: PropTypes__default
|
|
1879
|
-
onError: PropTypes__default
|
|
1880
|
-
onPlay: PropTypes__default
|
|
1881
|
-
onPause: PropTypes__default
|
|
1882
|
-
onEnd: PropTypes__default
|
|
1883
|
-
onStateChange: PropTypes__default
|
|
1884
|
-
onPlaybackRateChange: PropTypes__default
|
|
1885
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1894
|
+
onReady: PropTypes__default.func,
|
|
1895
|
+
onError: PropTypes__default.func,
|
|
1896
|
+
onPlay: PropTypes__default.func,
|
|
1897
|
+
onPause: PropTypes__default.func,
|
|
1898
|
+
onEnd: PropTypes__default.func,
|
|
1899
|
+
onStateChange: PropTypes__default.func,
|
|
1900
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1901
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1886
1902
|
};
|
|
1887
1903
|
YouTube.defaultProps = {
|
|
1888
|
-
videoId: null,
|
|
1889
1904
|
id: null,
|
|
1890
1905
|
className: null,
|
|
1891
1906
|
opts: {},
|
|
@@ -1899,12 +1914,20 @@ YouTube.defaultProps = {
|
|
|
1899
1914
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1900
1915
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1901
1916
|
};
|
|
1917
|
+
YouTube.PlayerState = {
|
|
1918
|
+
UNSTARTED: -1,
|
|
1919
|
+
ENDED: 0,
|
|
1920
|
+
PLAYING: 1,
|
|
1921
|
+
PAUSED: 2,
|
|
1922
|
+
BUFFERING: 3,
|
|
1923
|
+
CUED: 5
|
|
1924
|
+
};
|
|
1902
1925
|
|
|
1903
1926
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1904
1927
|
var url = _ref.url,
|
|
1905
1928
|
autoplay = _ref.autoplay;
|
|
1906
1929
|
|
|
1907
|
-
var id = index$
|
|
1930
|
+
var id = index$3.getYoutubeId(url);
|
|
1908
1931
|
|
|
1909
1932
|
var _useState = React.useState(false),
|
|
1910
1933
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1937,8 +1960,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1960
|
var duration = player.getDuration();
|
|
1938
1961
|
var queue = Math.floor(duration / 10);
|
|
1939
1962
|
var segment = Math.floor(current / queue);
|
|
1940
|
-
Beam.report_beam_video('Ready', main.
|
|
1941
|
-
Segment.report_video_event('Video Ready', main.
|
|
1963
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
1964
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1942
1965
|
};
|
|
1943
1966
|
|
|
1944
1967
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1948,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1948
1971
|
var segment = Math.floor(current / queue);
|
|
1949
1972
|
|
|
1950
1973
|
if (!queueProgress.includes(segment)) {
|
|
1951
|
-
Beam.report_beam_video('Segment', main.
|
|
1952
|
-
Segment.report_video_event('Video Segment', main.
|
|
1974
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
1975
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1953
1976
|
queueProgress.push(segment);
|
|
1954
1977
|
}
|
|
1955
1978
|
};
|
|
@@ -1962,8 +1985,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1962
1985
|
var queue = Math.floor(duration / 10);
|
|
1963
1986
|
var segment = Math.floor(current / queue);
|
|
1964
1987
|
|
|
1965
|
-
Beam.report_beam_video('Play', main.
|
|
1966
|
-
Segment.report_video_event('Video Play', main.
|
|
1988
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
1989
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1967
1990
|
|
|
1968
1991
|
if (!playReported) {
|
|
1969
1992
|
setPlayReported(true);
|
|
@@ -1982,8 +2005,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1982
2005
|
var queue = Math.floor(duration / 10);
|
|
1983
2006
|
var segment = Math.floor(current / queue);
|
|
1984
2007
|
|
|
1985
|
-
Beam.report_beam_video('End', main.
|
|
1986
|
-
Segment.report_video_event('Video End', main.
|
|
2008
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
2009
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1987
2010
|
setEndReported(true);
|
|
1988
2011
|
clearInterval(intervalID);
|
|
1989
2012
|
}
|
|
@@ -1996,15 +2019,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1996
2019
|
var queue = Math.floor(duration / 10);
|
|
1997
2020
|
var segment = Math.floor(current / queue);
|
|
1998
2021
|
|
|
1999
|
-
Beam.report_beam_video('Pause', main.
|
|
2000
|
-
Segment.report_video_event('Video Pause', main.
|
|
2022
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
2023
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2001
2024
|
};
|
|
2002
2025
|
|
|
2003
|
-
return React__default
|
|
2026
|
+
return React__default.createElement(
|
|
2004
2027
|
'div',
|
|
2005
2028
|
{ id: 'fluid-video-container' },
|
|
2006
|
-
React__default
|
|
2007
|
-
React__default
|
|
2029
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2030
|
+
React__default.createElement(
|
|
2008
2031
|
'style',
|
|
2009
2032
|
{ jsx: 'true' },
|
|
2010
2033
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2017,20 +2040,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2017
2040
|
content = _ref.content,
|
|
2018
2041
|
getSerializers = _ref.getSerializers;
|
|
2019
2042
|
|
|
2020
|
-
return React__default
|
|
2043
|
+
return React__default.createElement(
|
|
2021
2044
|
'article',
|
|
2022
2045
|
{ className: 'sidebar' },
|
|
2023
|
-
React__default
|
|
2046
|
+
React__default.createElement(
|
|
2024
2047
|
'div',
|
|
2025
2048
|
null,
|
|
2026
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2027
2050
|
'h3',
|
|
2028
2051
|
null,
|
|
2029
2052
|
caption
|
|
2030
2053
|
),
|
|
2031
|
-
React__default
|
|
2054
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2032
2055
|
),
|
|
2033
|
-
React__default
|
|
2056
|
+
React__default.createElement(
|
|
2034
2057
|
'style',
|
|
2035
2058
|
{ jsx: 'true' },
|
|
2036
2059
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2041,18 +2064,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2041
2064
|
var TableShow = function TableShow(_ref) {
|
|
2042
2065
|
var rows = _ref.rows;
|
|
2043
2066
|
|
|
2044
|
-
return React__default
|
|
2067
|
+
return React__default.createElement(
|
|
2045
2068
|
reactBootstrap.Table,
|
|
2046
2069
|
{ bordered: true, hover: true, responsive: true },
|
|
2047
|
-
React__default
|
|
2070
|
+
React__default.createElement(
|
|
2048
2071
|
'tbody',
|
|
2049
2072
|
null,
|
|
2050
2073
|
rows && rows.map(function (row) {
|
|
2051
|
-
return React__default
|
|
2074
|
+
return React__default.createElement(
|
|
2052
2075
|
'tr',
|
|
2053
2076
|
{ key: row._key },
|
|
2054
2077
|
row.cells && row.cells.map(function (cell, index) {
|
|
2055
|
-
return cell && React__default
|
|
2078
|
+
return cell && React__default.createElement(
|
|
2056
2079
|
'td',
|
|
2057
2080
|
{ key: index },
|
|
2058
2081
|
cell
|
|
@@ -2080,7 +2103,7 @@ var Media = function Media(_ref) {
|
|
|
2080
2103
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2081
2104
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2082
2105
|
|
|
2083
|
-
var builder = index.imageUrlBuilder(client);
|
|
2106
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2084
2107
|
|
|
2085
2108
|
var urlFor = function urlFor(source) {
|
|
2086
2109
|
return builder.image(source).auto('format');
|
|
@@ -2155,18 +2178,18 @@ var Media = function Media(_ref) {
|
|
|
2155
2178
|
margin: imageMargin
|
|
2156
2179
|
};
|
|
2157
2180
|
|
|
2158
|
-
return React__default
|
|
2181
|
+
return React__default.createElement(
|
|
2159
2182
|
reactBootstrap.Figure,
|
|
2160
2183
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2161
|
-
React__default
|
|
2184
|
+
React__default.createElement(
|
|
2162
2185
|
'a',
|
|
2163
2186
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2164
|
-
React__default
|
|
2165
|
-
index$
|
|
2187
|
+
React__default.createElement(
|
|
2188
|
+
index$2.LazyLoad,
|
|
2166
2189
|
{ once: true },
|
|
2167
|
-
React__default
|
|
2190
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2168
2191
|
),
|
|
2169
|
-
caption && React__default
|
|
2192
|
+
caption && React__default.createElement(
|
|
2170
2193
|
reactBootstrap.Figure.Caption,
|
|
2171
2194
|
{ className: 'media-caption' },
|
|
2172
2195
|
caption
|
|
@@ -2174,9 +2197,9 @@ var Media = function Media(_ref) {
|
|
|
2174
2197
|
)
|
|
2175
2198
|
);
|
|
2176
2199
|
} else if (caption && caption !== '') {
|
|
2177
|
-
return React__default
|
|
2200
|
+
return React__default.createElement(
|
|
2178
2201
|
'a',
|
|
2179
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2202
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2180
2203
|
href: uploadDoc.asset.url + '?dl='
|
|
2181
2204
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2182
2205
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2194,10 +2217,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2194
2217
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2195
2218
|
|
|
2196
2219
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2197
|
-
return React__default
|
|
2220
|
+
return React__default.createElement(
|
|
2198
2221
|
'div',
|
|
2199
2222
|
{ className: 'd-block text-center mb-3' },
|
|
2200
|
-
React__default
|
|
2223
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2201
2224
|
);
|
|
2202
2225
|
};
|
|
2203
2226
|
|
|
@@ -2231,8 +2254,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2231
2254
|
var duration = player.duration;
|
|
2232
2255
|
var queue = Math.floor(duration / 10);
|
|
2233
2256
|
var segment = Math.floor(current / queue);
|
|
2234
|
-
Beam.report_beam_video('Ready', main.
|
|
2235
|
-
Segment.report_video_event('Video Ready', main.
|
|
2257
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2258
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2236
2259
|
};
|
|
2237
2260
|
|
|
2238
2261
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2241,8 +2264,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2241
2264
|
var queue = Math.floor(duration / 10);
|
|
2242
2265
|
var segment = Math.floor(current / queue);
|
|
2243
2266
|
if (!queueProgress.includes(segment)) {
|
|
2244
|
-
Beam.report_beam_video('Segment', main.
|
|
2245
|
-
Segment.report_video_event('Video Segment', main.
|
|
2267
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2268
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2246
2269
|
queueProgress.push(segment);
|
|
2247
2270
|
}
|
|
2248
2271
|
};
|
|
@@ -2254,8 +2277,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2254
2277
|
var duration = player.duration;
|
|
2255
2278
|
var queue = Math.floor(duration / 10);
|
|
2256
2279
|
var segment = Math.floor(current / queue);
|
|
2257
|
-
Beam.report_beam_video('Play', main.
|
|
2258
|
-
Segment.report_video_event('Video Play', main.
|
|
2280
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
|
|
2281
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2259
2282
|
|
|
2260
2283
|
if (!playReported) {
|
|
2261
2284
|
event.persist();
|
|
@@ -2275,8 +2298,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2275
2298
|
var queue = Math.floor(duration / 10);
|
|
2276
2299
|
var segment = Math.floor(current / queue);
|
|
2277
2300
|
|
|
2278
|
-
Beam.report_beam_video('End', main.
|
|
2279
|
-
Segment.report_video_event('Video End', main.
|
|
2301
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
|
|
2302
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2280
2303
|
setEndReported(true);
|
|
2281
2304
|
clearInterval(intervalID);
|
|
2282
2305
|
}
|
|
@@ -2288,14 +2311,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2288
2311
|
var duration = player.duration - current;
|
|
2289
2312
|
var queue = Math.floor(duration / 10);
|
|
2290
2313
|
var segment = Math.floor(current / queue);
|
|
2291
|
-
Beam.report_beam_video('Pause', main.
|
|
2292
|
-
Segment.report_video_event('Video Pause', main.
|
|
2314
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2315
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2293
2316
|
};
|
|
2294
2317
|
|
|
2295
|
-
return React__default
|
|
2318
|
+
return React__default.createElement(
|
|
2296
2319
|
'div',
|
|
2297
2320
|
null,
|
|
2298
|
-
vidLoaded && React__default
|
|
2321
|
+
vidLoaded && React__default.createElement(
|
|
2299
2322
|
'video',
|
|
2300
2323
|
{
|
|
2301
2324
|
poster: thumbnail || '',
|
|
@@ -2313,7 +2336,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2313
2336
|
onPlay: function onPlay(e) {
|
|
2314
2337
|
return handleOnPlay(e);
|
|
2315
2338
|
} },
|
|
2316
|
-
React__default
|
|
2339
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2317
2340
|
'Your browser does not support the video tag.'
|
|
2318
2341
|
)
|
|
2319
2342
|
);
|
|
@@ -2378,8 +2401,8 @@ var Video = function Video(_ref) {
|
|
|
2378
2401
|
player.pause();
|
|
2379
2402
|
}
|
|
2380
2403
|
|
|
2381
|
-
Beam.report_beam_video('Ready', main.
|
|
2382
|
-
Segment.report_video_event('Video Ready', main.
|
|
2404
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2405
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2383
2406
|
});
|
|
2384
2407
|
|
|
2385
2408
|
// play
|
|
@@ -2388,8 +2411,8 @@ var Video = function Video(_ref) {
|
|
|
2388
2411
|
var current = player.currentTime();
|
|
2389
2412
|
var queue = Math.floor(duration / 10);
|
|
2390
2413
|
var segment = Math.floor(current / queue);
|
|
2391
|
-
Beam.report_beam_video('Play', main.
|
|
2392
|
-
Segment.report_video_event('Video Play', main.
|
|
2414
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2393
2416
|
});
|
|
2394
2417
|
|
|
2395
2418
|
// pause
|
|
@@ -2398,8 +2421,8 @@ var Video = function Video(_ref) {
|
|
|
2398
2421
|
var current = player.currentTime();
|
|
2399
2422
|
var queue = Math.floor(duration / 10);
|
|
2400
2423
|
var segment = Math.floor(current / queue);
|
|
2401
|
-
Beam.report_beam_video('Pause', main.
|
|
2402
|
-
Segment.report_video_event('Video Pause', main.
|
|
2424
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2425
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2403
2426
|
});
|
|
2404
2427
|
|
|
2405
2428
|
// end
|
|
@@ -2408,8 +2431,8 @@ var Video = function Video(_ref) {
|
|
|
2408
2431
|
var current = player.currentTime();
|
|
2409
2432
|
var queue = Math.floor(duration / 10);
|
|
2410
2433
|
var segment = Math.floor(current / queue);
|
|
2411
|
-
Beam.report_beam_video('End', main.
|
|
2412
|
-
Segment.report_video_event('Video End', main.
|
|
2434
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2435
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2413
2436
|
autoplayNextVideo(evt);
|
|
2414
2437
|
});
|
|
2415
2438
|
|
|
@@ -2420,8 +2443,8 @@ var Video = function Video(_ref) {
|
|
|
2420
2443
|
var queue = Math.floor(duration / 10);
|
|
2421
2444
|
var segment = Math.floor(current / queue);
|
|
2422
2445
|
if (!queueProgress.includes(segment)) {
|
|
2423
|
-
Beam.report_beam_video('Segment', main.
|
|
2424
|
-
Segment.report_video_event('Video Segment', main.
|
|
2446
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2447
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2425
2448
|
queueProgress.push(segment);
|
|
2426
2449
|
}
|
|
2427
2450
|
});
|
|
@@ -2432,8 +2455,8 @@ var Video = function Video(_ref) {
|
|
|
2432
2455
|
var id = player.ads.ad.id;
|
|
2433
2456
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2434
2457
|
|
|
2435
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2436
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2458
|
+
Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2459
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2437
2460
|
});
|
|
2438
2461
|
|
|
2439
2462
|
// ad ended
|
|
@@ -2441,60 +2464,60 @@ var Video = function Video(_ref) {
|
|
|
2441
2464
|
var duration = player.ads.ad.duration;
|
|
2442
2465
|
var id = player.ads.ad.id;
|
|
2443
2466
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2444
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2445
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2467
|
+
Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2468
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2446
2469
|
});
|
|
2447
2470
|
};
|
|
2448
2471
|
|
|
2449
2472
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2450
2473
|
if (videoID) {
|
|
2451
|
-
return React__default
|
|
2474
|
+
return React__default.createElement(
|
|
2452
2475
|
'div',
|
|
2453
2476
|
null,
|
|
2454
|
-
React__default
|
|
2477
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2455
2478
|
onSuccess: onVideoSuccess,
|
|
2456
2479
|
accountId: accountIDs.brightcove.accountId,
|
|
2457
2480
|
videoId: videoID,
|
|
2458
2481
|
playerId: accountIDs.brightcove.playerId,
|
|
2459
2482
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2460
2483
|
}),
|
|
2461
|
-
React__default
|
|
2484
|
+
React__default.createElement(
|
|
2462
2485
|
'style',
|
|
2463
2486
|
{ jsx: 'true' },
|
|
2464
2487
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2465
2488
|
)
|
|
2466
2489
|
);
|
|
2467
2490
|
} else if (playlistID) {
|
|
2468
|
-
return React__default
|
|
2491
|
+
return React__default.createElement(
|
|
2469
2492
|
'div',
|
|
2470
2493
|
null,
|
|
2471
|
-
React__default
|
|
2494
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2472
2495
|
accountId: accountIDs.brightcove.accountId,
|
|
2473
2496
|
playlistId: playlistID,
|
|
2474
2497
|
playerId: accountIDs.brightcove.playerId,
|
|
2475
2498
|
onSuccess: onVideoSuccess,
|
|
2476
2499
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2477
2500
|
}),
|
|
2478
|
-
React__default
|
|
2501
|
+
React__default.createElement(
|
|
2479
2502
|
'style',
|
|
2480
2503
|
{ jsx: 'true' },
|
|
2481
2504
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2482
2505
|
)
|
|
2483
2506
|
);
|
|
2484
2507
|
} else if (experienceID) {
|
|
2485
|
-
return React__default
|
|
2508
|
+
return React__default.createElement(
|
|
2486
2509
|
'div',
|
|
2487
2510
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2488
|
-
videoLoaded && React__default
|
|
2511
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2489
2512
|
);
|
|
2490
2513
|
}
|
|
2491
2514
|
return null;
|
|
2492
2515
|
}
|
|
2493
2516
|
if (source === 'mp4') {
|
|
2494
|
-
return React__default
|
|
2517
|
+
return React__default.createElement(
|
|
2495
2518
|
'div',
|
|
2496
2519
|
null,
|
|
2497
|
-
React__default
|
|
2520
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2498
2521
|
);
|
|
2499
2522
|
}
|
|
2500
2523
|
|
|
@@ -2509,7 +2532,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2509
2532
|
});
|
|
2510
2533
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2511
2534
|
|
|
2512
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2535
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2513
2536
|
|
|
2514
2537
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2515
2538
|
|
|
@@ -2705,9 +2728,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2705
2728
|
});
|
|
2706
2729
|
|
|
2707
2730
|
_commonjsHelpers.unwrapExports(props);
|
|
2708
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2709
|
-
props.defaultProps;
|
|
2710
|
-
props.propTypes;
|
|
2731
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2732
|
+
var props_2 = props.defaultProps;
|
|
2733
|
+
var props_3 = props.propTypes;
|
|
2711
2734
|
|
|
2712
2735
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2713
2736
|
return isNonNullObject(value)
|
|
@@ -2872,17 +2895,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2872
2895
|
|
|
2873
2896
|
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; }
|
|
2874
2897
|
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2877
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2878
|
-
|
|
2879
|
-
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."); }
|
|
2898
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2880
2899
|
|
|
2881
|
-
function
|
|
2900
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2882
2901
|
|
|
2883
|
-
function
|
|
2884
|
-
|
|
2885
|
-
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; }
|
|
2902
|
+
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; }
|
|
2886
2903
|
|
|
2887
2904
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2888
2905
|
|
|
@@ -3012,12 +3029,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3012
3029
|
|
|
3013
3030
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3014
3031
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3015
|
-
|
|
3016
|
-
var
|
|
3017
|
-
|
|
3032
|
+
var _iteratorNormalCompletion = true;
|
|
3033
|
+
var _didIteratorError = false;
|
|
3034
|
+
var _iteratorError = undefined;
|
|
3018
3035
|
|
|
3019
3036
|
try {
|
|
3020
|
-
for (_iterator.
|
|
3037
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3021
3038
|
var p = _step.value;
|
|
3022
3039
|
|
|
3023
3040
|
if (props$1[p]) {
|
|
@@ -3032,9 +3049,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3032
3049
|
}
|
|
3033
3050
|
}
|
|
3034
3051
|
} catch (err) {
|
|
3035
|
-
|
|
3052
|
+
_didIteratorError = true;
|
|
3053
|
+
_iteratorError = err;
|
|
3036
3054
|
} finally {
|
|
3037
|
-
|
|
3055
|
+
try {
|
|
3056
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3057
|
+
_iterator["return"]();
|
|
3058
|
+
}
|
|
3059
|
+
} finally {
|
|
3060
|
+
if (_didIteratorError) {
|
|
3061
|
+
throw _iteratorError;
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3038
3064
|
}
|
|
3039
3065
|
|
|
3040
3066
|
return config;
|
|
@@ -3099,7 +3125,7 @@ function isEqual(a, b) {
|
|
|
3099
3125
|
return true;
|
|
3100
3126
|
}
|
|
3101
3127
|
|
|
3102
|
-
if ((0, React__default
|
|
3128
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3103
3129
|
return true;
|
|
3104
3130
|
}
|
|
3105
3131
|
|
|
@@ -3142,17 +3168,17 @@ function isMediaStream(url) {
|
|
|
3142
3168
|
});
|
|
3143
3169
|
|
|
3144
3170
|
_commonjsHelpers.unwrapExports(utils);
|
|
3145
|
-
utils.parseStartTime;
|
|
3146
|
-
utils.parseEndTime;
|
|
3147
|
-
utils.randomString;
|
|
3148
|
-
utils.queryString;
|
|
3149
|
-
utils.getSDK;
|
|
3150
|
-
utils.getConfig;
|
|
3151
|
-
utils.omit;
|
|
3152
|
-
utils.callPlayer;
|
|
3153
|
-
utils.isObject;
|
|
3154
|
-
utils.isEqual;
|
|
3155
|
-
utils.isMediaStream;
|
|
3171
|
+
var utils_1 = utils.parseStartTime;
|
|
3172
|
+
var utils_2 = utils.parseEndTime;
|
|
3173
|
+
var utils_3 = utils.randomString;
|
|
3174
|
+
var utils_4 = utils.queryString;
|
|
3175
|
+
var utils_5 = utils.getSDK;
|
|
3176
|
+
var utils_6 = utils.getConfig;
|
|
3177
|
+
var utils_7 = utils.omit;
|
|
3178
|
+
var utils_8 = utils.callPlayer;
|
|
3179
|
+
var utils_9 = utils.isObject;
|
|
3180
|
+
var utils_10 = utils.isEqual;
|
|
3181
|
+
var utils_11 = utils.isMediaStream;
|
|
3156
3182
|
|
|
3157
3183
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3158
3184
|
|
|
@@ -3161,7 +3187,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3161
3187
|
});
|
|
3162
3188
|
exports["default"] = void 0;
|
|
3163
3189
|
|
|
3164
|
-
var _react = _interopRequireWildcard(React__default
|
|
3190
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3165
3191
|
|
|
3166
3192
|
|
|
3167
3193
|
|
|
@@ -3181,16 +3207,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3181
3207
|
|
|
3182
3208
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3183
3209
|
|
|
3184
|
-
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); }; }
|
|
3185
|
-
|
|
3186
3210
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3187
3211
|
|
|
3188
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3189
|
-
|
|
3190
|
-
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; } }
|
|
3191
|
-
|
|
3192
3212
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3193
3213
|
|
|
3214
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3215
|
+
|
|
3194
3216
|
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); }
|
|
3195
3217
|
|
|
3196
3218
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3199,12 +3221,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3199
3221
|
|
|
3200
3222
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3201
3223
|
|
|
3202
|
-
var Player =
|
|
3224
|
+
var Player =
|
|
3225
|
+
/*#__PURE__*/
|
|
3226
|
+
function (_Component) {
|
|
3203
3227
|
_inherits(Player, _Component);
|
|
3204
3228
|
|
|
3205
|
-
var _super = _createSuper(Player);
|
|
3206
|
-
|
|
3207
3229
|
function Player() {
|
|
3230
|
+
var _getPrototypeOf2;
|
|
3231
|
+
|
|
3208
3232
|
var _this;
|
|
3209
3233
|
|
|
3210
3234
|
_classCallCheck(this, Player);
|
|
@@ -3213,7 +3237,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3213
3237
|
_args[_key] = arguments[_key];
|
|
3214
3238
|
}
|
|
3215
3239
|
|
|
3216
|
-
_this =
|
|
3240
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3217
3241
|
|
|
3218
3242
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3219
3243
|
|
|
@@ -3538,7 +3562,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3538
3562
|
return null;
|
|
3539
3563
|
}
|
|
3540
3564
|
|
|
3541
|
-
return
|
|
3565
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3542
3566
|
ref: this.ref,
|
|
3543
3567
|
onReady: this.handleReady,
|
|
3544
3568
|
onPlay: this.handlePlay,
|
|
@@ -3571,7 +3595,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3571
3595
|
});
|
|
3572
3596
|
exports["default"] = createSinglePlayer;
|
|
3573
3597
|
|
|
3574
|
-
var _react = _interopRequireWildcard(React__default
|
|
3598
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3575
3599
|
|
|
3576
3600
|
|
|
3577
3601
|
|
|
@@ -3599,16 +3623,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3599
3623
|
|
|
3600
3624
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3601
3625
|
|
|
3602
|
-
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); }; }
|
|
3603
|
-
|
|
3604
3626
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3605
3627
|
|
|
3606
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3607
|
-
|
|
3608
|
-
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; } }
|
|
3609
|
-
|
|
3610
3628
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3611
3629
|
|
|
3630
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3631
|
+
|
|
3612
3632
|
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); }
|
|
3613
3633
|
|
|
3614
3634
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3620,12 +3640,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3620
3640
|
function createSinglePlayer(activePlayer) {
|
|
3621
3641
|
var _class, _temp;
|
|
3622
3642
|
|
|
3623
|
-
return _temp = _class =
|
|
3643
|
+
return _temp = _class =
|
|
3644
|
+
/*#__PURE__*/
|
|
3645
|
+
function (_Component) {
|
|
3624
3646
|
_inherits(SinglePlayer, _Component);
|
|
3625
3647
|
|
|
3626
|
-
var _super = _createSuper(SinglePlayer);
|
|
3627
|
-
|
|
3628
3648
|
function SinglePlayer() {
|
|
3649
|
+
var _getPrototypeOf2;
|
|
3650
|
+
|
|
3629
3651
|
var _this;
|
|
3630
3652
|
|
|
3631
3653
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3634,7 +3656,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3634
3656
|
args[_key] = arguments[_key];
|
|
3635
3657
|
}
|
|
3636
3658
|
|
|
3637
|
-
_this =
|
|
3659
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3638
3660
|
|
|
3639
3661
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3640
3662
|
|
|
@@ -3702,12 +3724,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3702
3724
|
height = _this$props.height,
|
|
3703
3725
|
Wrapper = _this$props.wrapper;
|
|
3704
3726
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3705
|
-
return
|
|
3727
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3706
3728
|
style: _objectSpread({}, style, {
|
|
3707
3729
|
width: width,
|
|
3708
3730
|
height: height
|
|
3709
3731
|
})
|
|
3710
|
-
}, otherProps),
|
|
3732
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3711
3733
|
ref: this.ref,
|
|
3712
3734
|
activePlayer: activePlayer,
|
|
3713
3735
|
config: this.config
|
|
@@ -3729,7 +3751,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3729
3751
|
});
|
|
3730
3752
|
exports["default"] = exports.YouTube = void 0;
|
|
3731
3753
|
|
|
3732
|
-
var _react = _interopRequireWildcard(React__default
|
|
3754
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3733
3755
|
|
|
3734
3756
|
|
|
3735
3757
|
|
|
@@ -3753,31 +3775,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3753
3775
|
|
|
3754
3776
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3755
3777
|
|
|
3756
|
-
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); }; }
|
|
3757
|
-
|
|
3758
3778
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3759
3779
|
|
|
3760
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3761
|
-
|
|
3762
|
-
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; } }
|
|
3763
|
-
|
|
3764
3780
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3765
3781
|
|
|
3782
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3783
|
+
|
|
3766
3784
|
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); }
|
|
3767
3785
|
|
|
3768
3786
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3769
3787
|
|
|
3770
3788
|
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; }
|
|
3771
3789
|
|
|
3772
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3773
|
-
|
|
3774
|
-
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."); }
|
|
3775
|
-
|
|
3776
|
-
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); }
|
|
3790
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3777
3791
|
|
|
3778
|
-
function
|
|
3792
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3779
3793
|
|
|
3780
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3794
|
+
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; }
|
|
3781
3795
|
|
|
3782
3796
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3783
3797
|
|
|
@@ -3802,12 +3816,14 @@ function parsePlaylist(url) {
|
|
|
3802
3816
|
return {};
|
|
3803
3817
|
}
|
|
3804
3818
|
|
|
3805
|
-
var YouTube =
|
|
3819
|
+
var YouTube =
|
|
3820
|
+
/*#__PURE__*/
|
|
3821
|
+
function (_Component) {
|
|
3806
3822
|
_inherits(YouTube, _Component);
|
|
3807
3823
|
|
|
3808
|
-
var _super = _createSuper(YouTube);
|
|
3809
|
-
|
|
3810
3824
|
function YouTube() {
|
|
3825
|
+
var _getPrototypeOf2;
|
|
3826
|
+
|
|
3811
3827
|
var _this;
|
|
3812
3828
|
|
|
3813
3829
|
_classCallCheck(this, YouTube);
|
|
@@ -3816,7 +3832,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3816
3832
|
args[_key] = arguments[_key];
|
|
3817
3833
|
}
|
|
3818
3834
|
|
|
3819
|
-
_this =
|
|
3835
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3820
3836
|
|
|
3821
3837
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3822
3838
|
|
|
@@ -4004,9 +4020,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4004
4020
|
height: '100%',
|
|
4005
4021
|
display: display
|
|
4006
4022
|
};
|
|
4007
|
-
return
|
|
4023
|
+
return _react["default"].createElement("div", {
|
|
4008
4024
|
style: style
|
|
4009
|
-
},
|
|
4025
|
+
}, _react["default"].createElement("div", {
|
|
4010
4026
|
ref: this.ref
|
|
4011
4027
|
}));
|
|
4012
4028
|
}
|
|
@@ -4029,7 +4045,7 @@ exports["default"] = _default;
|
|
|
4029
4045
|
});
|
|
4030
4046
|
|
|
4031
4047
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4032
|
-
YouTube_1.YouTube;
|
|
4048
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4033
4049
|
|
|
4034
4050
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4035
4051
|
|
|
@@ -4038,7 +4054,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4038
4054
|
});
|
|
4039
4055
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4040
4056
|
|
|
4041
|
-
var _react = _interopRequireWildcard(React__default
|
|
4057
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4042
4058
|
|
|
4043
4059
|
|
|
4044
4060
|
|
|
@@ -4062,16 +4078,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4062
4078
|
|
|
4063
4079
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4064
4080
|
|
|
4065
|
-
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); }; }
|
|
4066
|
-
|
|
4067
4081
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4068
4082
|
|
|
4069
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4070
|
-
|
|
4071
|
-
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; } }
|
|
4072
|
-
|
|
4073
4083
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4074
4084
|
|
|
4085
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4086
|
+
|
|
4075
4087
|
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); }
|
|
4076
4088
|
|
|
4077
4089
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4080,14 +4092,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4080
4092
|
|
|
4081
4093
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4082
4094
|
var SDK_GLOBAL = 'SC';
|
|
4083
|
-
var MATCH_URL = /(
|
|
4095
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4084
4096
|
|
|
4085
|
-
var SoundCloud =
|
|
4097
|
+
var SoundCloud =
|
|
4098
|
+
/*#__PURE__*/
|
|
4099
|
+
function (_Component) {
|
|
4086
4100
|
_inherits(SoundCloud, _Component);
|
|
4087
4101
|
|
|
4088
|
-
var _super = _createSuper(SoundCloud);
|
|
4089
|
-
|
|
4090
4102
|
function SoundCloud() {
|
|
4103
|
+
var _getPrototypeOf2;
|
|
4104
|
+
|
|
4091
4105
|
var _this;
|
|
4092
4106
|
|
|
4093
4107
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4096,7 +4110,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4096
4110
|
args[_key] = arguments[_key];
|
|
4097
4111
|
}
|
|
4098
4112
|
|
|
4099
|
-
_this =
|
|
4113
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4100
4114
|
|
|
4101
4115
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4102
4116
|
|
|
@@ -4217,7 +4231,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4217
4231
|
height: '100%',
|
|
4218
4232
|
display: display
|
|
4219
4233
|
};
|
|
4220
|
-
return
|
|
4234
|
+
return _react["default"].createElement("iframe", {
|
|
4221
4235
|
ref: this.ref,
|
|
4222
4236
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4223
4237
|
style: style,
|
|
@@ -4246,7 +4260,7 @@ exports["default"] = _default;
|
|
|
4246
4260
|
});
|
|
4247
4261
|
|
|
4248
4262
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4249
|
-
SoundCloud_1.SoundCloud;
|
|
4263
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4250
4264
|
|
|
4251
4265
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4252
4266
|
|
|
@@ -4255,7 +4269,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4255
4269
|
});
|
|
4256
4270
|
exports["default"] = exports.Vimeo = void 0;
|
|
4257
4271
|
|
|
4258
|
-
var _react = _interopRequireWildcard(React__default
|
|
4272
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4259
4273
|
|
|
4260
4274
|
|
|
4261
4275
|
|
|
@@ -4279,16 +4293,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4279
4293
|
|
|
4280
4294
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4281
4295
|
|
|
4282
|
-
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); }; }
|
|
4283
|
-
|
|
4284
4296
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4285
4297
|
|
|
4286
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4287
|
-
|
|
4288
|
-
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; } }
|
|
4289
|
-
|
|
4290
4298
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4291
4299
|
|
|
4300
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4301
|
+
|
|
4292
4302
|
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); }
|
|
4293
4303
|
|
|
4294
4304
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4300,12 +4310,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4300
4310
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4301
4311
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4302
4312
|
|
|
4303
|
-
var Vimeo =
|
|
4313
|
+
var Vimeo =
|
|
4314
|
+
/*#__PURE__*/
|
|
4315
|
+
function (_Component) {
|
|
4304
4316
|
_inherits(Vimeo, _Component);
|
|
4305
4317
|
|
|
4306
|
-
var _super = _createSuper(Vimeo);
|
|
4307
|
-
|
|
4308
4318
|
function Vimeo() {
|
|
4319
|
+
var _getPrototypeOf2;
|
|
4320
|
+
|
|
4309
4321
|
var _this;
|
|
4310
4322
|
|
|
4311
4323
|
_classCallCheck(this, Vimeo);
|
|
@@ -4314,7 +4326,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4314
4326
|
args[_key] = arguments[_key];
|
|
4315
4327
|
}
|
|
4316
4328
|
|
|
4317
|
-
_this =
|
|
4329
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4318
4330
|
|
|
4319
4331
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4320
4332
|
|
|
@@ -4471,7 +4483,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4471
4483
|
overflow: 'hidden',
|
|
4472
4484
|
display: display
|
|
4473
4485
|
};
|
|
4474
|
-
return
|
|
4486
|
+
return _react["default"].createElement("div", {
|
|
4475
4487
|
key: this.props.url,
|
|
4476
4488
|
ref: this.ref,
|
|
4477
4489
|
style: style
|
|
@@ -4502,7 +4514,7 @@ exports["default"] = _default;
|
|
|
4502
4514
|
});
|
|
4503
4515
|
|
|
4504
4516
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4505
|
-
Vimeo_1.Vimeo;
|
|
4517
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4506
4518
|
|
|
4507
4519
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4508
4520
|
|
|
@@ -4511,7 +4523,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4511
4523
|
});
|
|
4512
4524
|
exports["default"] = exports.Facebook = void 0;
|
|
4513
4525
|
|
|
4514
|
-
var _react = _interopRequireWildcard(React__default
|
|
4526
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4515
4527
|
|
|
4516
4528
|
|
|
4517
4529
|
|
|
@@ -4531,16 +4543,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4531
4543
|
|
|
4532
4544
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4533
4545
|
|
|
4534
|
-
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); }; }
|
|
4535
|
-
|
|
4536
4546
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4537
4547
|
|
|
4538
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4539
|
-
|
|
4540
|
-
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; } }
|
|
4541
|
-
|
|
4542
4548
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4543
4549
|
|
|
4550
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4551
|
+
|
|
4544
4552
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4545
4553
|
|
|
4546
4554
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4553,12 +4561,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4553
4561
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4554
4562
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4555
4563
|
|
|
4556
|
-
var Facebook =
|
|
4564
|
+
var Facebook =
|
|
4565
|
+
/*#__PURE__*/
|
|
4566
|
+
function (_Component) {
|
|
4557
4567
|
_inherits(Facebook, _Component);
|
|
4558
4568
|
|
|
4559
|
-
var _super = _createSuper(Facebook);
|
|
4560
|
-
|
|
4561
4569
|
function Facebook() {
|
|
4570
|
+
var _getPrototypeOf2;
|
|
4571
|
+
|
|
4562
4572
|
var _this;
|
|
4563
4573
|
|
|
4564
4574
|
_classCallCheck(this, Facebook);
|
|
@@ -4567,7 +4577,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4567
4577
|
args[_key] = arguments[_key];
|
|
4568
4578
|
}
|
|
4569
4579
|
|
|
4570
|
-
_this =
|
|
4580
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4571
4581
|
|
|
4572
4582
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4573
4583
|
|
|
@@ -4683,7 +4693,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4683
4693
|
width: '100%',
|
|
4684
4694
|
height: '100%'
|
|
4685
4695
|
};
|
|
4686
|
-
return
|
|
4696
|
+
return _react["default"].createElement("div", {
|
|
4687
4697
|
style: style,
|
|
4688
4698
|
id: this.playerID,
|
|
4689
4699
|
className: "fb-video",
|
|
@@ -4714,7 +4724,7 @@ exports["default"] = _default;
|
|
|
4714
4724
|
});
|
|
4715
4725
|
|
|
4716
4726
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4717
|
-
Facebook_1.Facebook;
|
|
4727
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4718
4728
|
|
|
4719
4729
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4720
4730
|
|
|
@@ -4723,7 +4733,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4723
4733
|
});
|
|
4724
4734
|
exports["default"] = exports.Streamable = void 0;
|
|
4725
4735
|
|
|
4726
|
-
var _react = _interopRequireWildcard(React__default
|
|
4736
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4727
4737
|
|
|
4728
4738
|
|
|
4729
4739
|
|
|
@@ -4743,16 +4753,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4743
4753
|
|
|
4744
4754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4745
4755
|
|
|
4746
|
-
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); }; }
|
|
4747
|
-
|
|
4748
4756
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4749
4757
|
|
|
4750
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4751
|
-
|
|
4752
|
-
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; } }
|
|
4753
|
-
|
|
4754
4758
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4755
4759
|
|
|
4760
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4761
|
+
|
|
4756
4762
|
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); }
|
|
4757
4763
|
|
|
4758
4764
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4763,12 +4769,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4763
4769
|
var SDK_GLOBAL = 'playerjs';
|
|
4764
4770
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4765
4771
|
|
|
4766
|
-
var Streamable =
|
|
4772
|
+
var Streamable =
|
|
4773
|
+
/*#__PURE__*/
|
|
4774
|
+
function (_Component) {
|
|
4767
4775
|
_inherits(Streamable, _Component);
|
|
4768
4776
|
|
|
4769
|
-
var _super = _createSuper(Streamable);
|
|
4770
|
-
|
|
4771
4777
|
function Streamable() {
|
|
4778
|
+
var _getPrototypeOf2;
|
|
4779
|
+
|
|
4772
4780
|
var _this;
|
|
4773
4781
|
|
|
4774
4782
|
_classCallCheck(this, Streamable);
|
|
@@ -4777,7 +4785,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4777
4785
|
args[_key] = arguments[_key];
|
|
4778
4786
|
}
|
|
4779
4787
|
|
|
4780
|
-
_this =
|
|
4788
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4781
4789
|
|
|
4782
4790
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4783
4791
|
|
|
@@ -4897,7 +4905,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4897
4905
|
width: '100%',
|
|
4898
4906
|
height: '100%'
|
|
4899
4907
|
};
|
|
4900
|
-
return
|
|
4908
|
+
return _react["default"].createElement("iframe", {
|
|
4901
4909
|
ref: this.ref,
|
|
4902
4910
|
src: "https://streamable.com/o/".concat(id),
|
|
4903
4911
|
frameBorder: "0",
|
|
@@ -4925,7 +4933,7 @@ exports["default"] = _default;
|
|
|
4925
4933
|
});
|
|
4926
4934
|
|
|
4927
4935
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4928
|
-
Streamable_1.Streamable;
|
|
4936
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4929
4937
|
|
|
4930
4938
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4931
4939
|
|
|
@@ -4934,7 +4942,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4934
4942
|
});
|
|
4935
4943
|
exports["default"] = exports.Wistia = void 0;
|
|
4936
4944
|
|
|
4937
|
-
var _react = _interopRequireWildcard(React__default
|
|
4945
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4938
4946
|
|
|
4939
4947
|
|
|
4940
4948
|
|
|
@@ -4958,16 +4966,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4958
4966
|
|
|
4959
4967
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4960
4968
|
|
|
4961
|
-
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); }; }
|
|
4962
|
-
|
|
4963
4969
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4964
4970
|
|
|
4965
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4966
|
-
|
|
4967
|
-
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; } }
|
|
4968
|
-
|
|
4969
4971
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4970
4972
|
|
|
4973
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4974
|
+
|
|
4971
4975
|
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); }
|
|
4972
4976
|
|
|
4973
4977
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4978,48 +4982,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4978
4982
|
var SDK_GLOBAL = 'Wistia';
|
|
4979
4983
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4980
4984
|
|
|
4981
|
-
var Wistia =
|
|
4985
|
+
var Wistia =
|
|
4986
|
+
/*#__PURE__*/
|
|
4987
|
+
function (_Component) {
|
|
4982
4988
|
_inherits(Wistia, _Component);
|
|
4983
4989
|
|
|
4984
|
-
var _super = _createSuper(Wistia);
|
|
4985
|
-
|
|
4986
4990
|
function Wistia() {
|
|
4991
|
+
var _getPrototypeOf2;
|
|
4992
|
+
|
|
4987
4993
|
var _this;
|
|
4988
4994
|
|
|
4989
4995
|
_classCallCheck(this, Wistia);
|
|
4990
4996
|
|
|
4991
|
-
for (var _len = arguments.length,
|
|
4992
|
-
|
|
4997
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4998
|
+
args[_key] = arguments[_key];
|
|
4993
4999
|
}
|
|
4994
5000
|
|
|
4995
|
-
_this =
|
|
5001
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4996
5002
|
|
|
4997
5003
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4998
5004
|
|
|
4999
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5000
|
-
var _this$props;
|
|
5001
|
-
|
|
5002
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5003
|
-
});
|
|
5004
|
-
|
|
5005
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5006
|
-
var _this$props2;
|
|
5007
|
-
|
|
5008
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5009
|
-
});
|
|
5010
|
-
|
|
5011
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5012
|
-
var _this$props3;
|
|
5013
|
-
|
|
5014
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5015
|
-
});
|
|
5016
|
-
|
|
5017
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5018
|
-
var _this$props4;
|
|
5019
|
-
|
|
5020
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5021
|
-
});
|
|
5022
|
-
|
|
5023
5005
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5024
5006
|
_this.callPlayer('mute');
|
|
5025
5007
|
});
|
|
@@ -5041,13 +5023,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5041
5023
|
value: function load(url) {
|
|
5042
5024
|
var _this2 = this;
|
|
5043
5025
|
|
|
5044
|
-
var _this$
|
|
5045
|
-
playing = _this$
|
|
5046
|
-
muted = _this$
|
|
5047
|
-
controls = _this$
|
|
5048
|
-
_onReady = _this$
|
|
5049
|
-
|
|
5050
|
-
|
|
5026
|
+
var _this$props = this.props,
|
|
5027
|
+
playing = _this$props.playing,
|
|
5028
|
+
muted = _this$props.muted,
|
|
5029
|
+
controls = _this$props.controls,
|
|
5030
|
+
_onReady = _this$props.onReady,
|
|
5031
|
+
onPlay = _this$props.onPlay,
|
|
5032
|
+
onPause = _this$props.onPause,
|
|
5033
|
+
onSeek = _this$props.onSeek,
|
|
5034
|
+
onEnded = _this$props.onEnded,
|
|
5035
|
+
config = _this$props.config,
|
|
5036
|
+
onError = _this$props.onError;
|
|
5051
5037
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5052
5038
|
window._wq = window._wq || [];
|
|
5053
5039
|
|
|
@@ -5064,28 +5050,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5064
5050
|
|
|
5065
5051
|
_this2.unbind();
|
|
5066
5052
|
|
|
5067
|
-
_this2.player.bind('play',
|
|
5053
|
+
_this2.player.bind('play', onPlay);
|
|
5068
5054
|
|
|
5069
|
-
_this2.player.bind('pause',
|
|
5055
|
+
_this2.player.bind('pause', onPause);
|
|
5070
5056
|
|
|
5071
|
-
_this2.player.bind('seek',
|
|
5057
|
+
_this2.player.bind('seek', onSeek);
|
|
5072
5058
|
|
|
5073
|
-
_this2.player.bind('end',
|
|
5059
|
+
_this2.player.bind('end', onEnded);
|
|
5074
5060
|
|
|
5075
5061
|
_onReady();
|
|
5076
5062
|
}
|
|
5077
5063
|
});
|
|
5078
5064
|
}, onError);
|
|
5079
5065
|
}
|
|
5080
|
-
}, {
|
|
5081
|
-
key: "unbind",
|
|
5082
|
-
value: function unbind() {
|
|
5083
|
-
this.player.unbind('play', this.onPlay);
|
|
5084
|
-
this.player.unbind('pause', this.onPause);
|
|
5085
|
-
this.player.unbind('seek', this.onSeek);
|
|
5086
|
-
this.player.unbind('end', this.onEnded);
|
|
5087
|
-
} // Proxy methods to prevent listener leaks
|
|
5088
|
-
|
|
5089
5066
|
}, {
|
|
5090
5067
|
key: "play",
|
|
5091
5068
|
value: function play() {
|
|
@@ -5096,6 +5073,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5096
5073
|
value: function pause() {
|
|
5097
5074
|
this.callPlayer('pause');
|
|
5098
5075
|
}
|
|
5076
|
+
}, {
|
|
5077
|
+
key: "unbind",
|
|
5078
|
+
value: function unbind() {
|
|
5079
|
+
var _this$props2 = this.props,
|
|
5080
|
+
onPlay = _this$props2.onPlay,
|
|
5081
|
+
onPause = _this$props2.onPause,
|
|
5082
|
+
onSeek = _this$props2.onSeek,
|
|
5083
|
+
onEnded = _this$props2.onEnded;
|
|
5084
|
+
this.player.unbind('play', onPlay);
|
|
5085
|
+
this.player.unbind('pause', onPause);
|
|
5086
|
+
this.player.unbind('seek', onSeek);
|
|
5087
|
+
this.player.unbind('end', onEnded);
|
|
5088
|
+
}
|
|
5099
5089
|
}, {
|
|
5100
5090
|
key: "stop",
|
|
5101
5091
|
value: function stop() {
|
|
@@ -5141,7 +5131,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5141
5131
|
width: '100%',
|
|
5142
5132
|
height: '100%'
|
|
5143
5133
|
};
|
|
5144
|
-
return
|
|
5134
|
+
return _react["default"].createElement("div", {
|
|
5145
5135
|
key: id,
|
|
5146
5136
|
className: className,
|
|
5147
5137
|
style: style
|
|
@@ -5168,7 +5158,7 @@ exports["default"] = _default;
|
|
|
5168
5158
|
});
|
|
5169
5159
|
|
|
5170
5160
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5171
|
-
Wistia_1.Wistia;
|
|
5161
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5172
5162
|
|
|
5173
5163
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5174
5164
|
|
|
@@ -5177,7 +5167,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5177
5167
|
});
|
|
5178
5168
|
exports["default"] = exports.Twitch = void 0;
|
|
5179
5169
|
|
|
5180
|
-
var _react = _interopRequireWildcard(React__default
|
|
5170
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5181
5171
|
|
|
5182
5172
|
|
|
5183
5173
|
|
|
@@ -5201,16 +5191,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5201
5191
|
|
|
5202
5192
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5203
5193
|
|
|
5204
|
-
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); }; }
|
|
5205
|
-
|
|
5206
5194
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5207
5195
|
|
|
5208
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5209
|
-
|
|
5210
|
-
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; } }
|
|
5211
|
-
|
|
5212
5196
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5213
5197
|
|
|
5198
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5199
|
+
|
|
5214
5200
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5215
5201
|
|
|
5216
5202
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5223,12 +5209,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5223
5209
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5224
5210
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5225
5211
|
|
|
5226
|
-
var Twitch =
|
|
5212
|
+
var Twitch =
|
|
5213
|
+
/*#__PURE__*/
|
|
5214
|
+
function (_Component) {
|
|
5227
5215
|
_inherits(Twitch, _Component);
|
|
5228
5216
|
|
|
5229
|
-
var _super = _createSuper(Twitch);
|
|
5230
|
-
|
|
5231
5217
|
function Twitch() {
|
|
5218
|
+
var _getPrototypeOf2;
|
|
5219
|
+
|
|
5232
5220
|
var _this;
|
|
5233
5221
|
|
|
5234
5222
|
_classCallCheck(this, Twitch);
|
|
@@ -5237,7 +5225,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5237
5225
|
args[_key] = arguments[_key];
|
|
5238
5226
|
}
|
|
5239
5227
|
|
|
5240
|
-
_this =
|
|
5228
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5241
5229
|
|
|
5242
5230
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5243
5231
|
|
|
@@ -5358,7 +5346,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5358
5346
|
width: '100%',
|
|
5359
5347
|
height: '100%'
|
|
5360
5348
|
};
|
|
5361
|
-
return
|
|
5349
|
+
return _react["default"].createElement("div", {
|
|
5362
5350
|
style: style,
|
|
5363
5351
|
id: this.playerID
|
|
5364
5352
|
});
|
|
@@ -5384,7 +5372,7 @@ exports["default"] = _default;
|
|
|
5384
5372
|
});
|
|
5385
5373
|
|
|
5386
5374
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5387
|
-
Twitch_1.Twitch;
|
|
5375
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5388
5376
|
|
|
5389
5377
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5390
5378
|
|
|
@@ -5393,7 +5381,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5393
5381
|
});
|
|
5394
5382
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5395
5383
|
|
|
5396
|
-
var _react = _interopRequireWildcard(React__default
|
|
5384
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5397
5385
|
|
|
5398
5386
|
|
|
5399
5387
|
|
|
@@ -5411,15 +5399,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5411
5399
|
|
|
5412
5400
|
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; }
|
|
5413
5401
|
|
|
5414
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5415
|
-
|
|
5416
|
-
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."); }
|
|
5417
|
-
|
|
5418
|
-
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); }
|
|
5402
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5419
5403
|
|
|
5420
|
-
function
|
|
5404
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5421
5405
|
|
|
5422
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5406
|
+
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; }
|
|
5423
5407
|
|
|
5424
5408
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5425
5409
|
|
|
@@ -5429,16 +5413,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5429
5413
|
|
|
5430
5414
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5431
5415
|
|
|
5432
|
-
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); }; }
|
|
5433
|
-
|
|
5434
5416
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5435
5417
|
|
|
5436
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5437
|
-
|
|
5438
|
-
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; } }
|
|
5439
|
-
|
|
5440
5418
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5441
5419
|
|
|
5420
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5421
|
+
|
|
5442
5422
|
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); }
|
|
5443
5423
|
|
|
5444
5424
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5450,12 +5430,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5450
5430
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5451
5431
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5452
5432
|
|
|
5453
|
-
var DailyMotion =
|
|
5433
|
+
var DailyMotion =
|
|
5434
|
+
/*#__PURE__*/
|
|
5435
|
+
function (_Component) {
|
|
5454
5436
|
_inherits(DailyMotion, _Component);
|
|
5455
5437
|
|
|
5456
|
-
var _super = _createSuper(DailyMotion);
|
|
5457
|
-
|
|
5458
5438
|
function DailyMotion() {
|
|
5439
|
+
var _getPrototypeOf2;
|
|
5440
|
+
|
|
5459
5441
|
var _this;
|
|
5460
5442
|
|
|
5461
5443
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5464,7 +5446,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5464
5446
|
args[_key] = arguments[_key];
|
|
5465
5447
|
}
|
|
5466
5448
|
|
|
5467
|
-
_this =
|
|
5449
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5468
5450
|
|
|
5469
5451
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5470
5452
|
|
|
@@ -5593,9 +5575,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5593
5575
|
height: '100%',
|
|
5594
5576
|
display: display
|
|
5595
5577
|
};
|
|
5596
|
-
return
|
|
5578
|
+
return _react["default"].createElement("div", {
|
|
5597
5579
|
style: style
|
|
5598
|
-
},
|
|
5580
|
+
}, _react["default"].createElement("div", {
|
|
5599
5581
|
ref: this.ref
|
|
5600
5582
|
}));
|
|
5601
5583
|
}
|
|
@@ -5620,7 +5602,7 @@ exports["default"] = _default;
|
|
|
5620
5602
|
});
|
|
5621
5603
|
|
|
5622
5604
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5623
|
-
DailyMotion_1.DailyMotion;
|
|
5605
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5624
5606
|
|
|
5625
5607
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5626
5608
|
|
|
@@ -5629,7 +5611,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5629
5611
|
});
|
|
5630
5612
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5631
5613
|
|
|
5632
|
-
var _react = _interopRequireWildcard(React__default
|
|
5614
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5633
5615
|
|
|
5634
5616
|
|
|
5635
5617
|
|
|
@@ -5653,16 +5635,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5653
5635
|
|
|
5654
5636
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5655
5637
|
|
|
5656
|
-
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); }; }
|
|
5657
|
-
|
|
5658
5638
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5659
5639
|
|
|
5660
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5661
|
-
|
|
5662
|
-
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; } }
|
|
5663
|
-
|
|
5664
5640
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5665
5641
|
|
|
5642
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5643
|
+
|
|
5666
5644
|
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); }
|
|
5667
5645
|
|
|
5668
5646
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5673,12 +5651,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5673
5651
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5674
5652
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5675
5653
|
|
|
5676
|
-
var Mixcloud =
|
|
5654
|
+
var Mixcloud =
|
|
5655
|
+
/*#__PURE__*/
|
|
5656
|
+
function (_Component) {
|
|
5677
5657
|
_inherits(Mixcloud, _Component);
|
|
5678
5658
|
|
|
5679
|
-
var _super = _createSuper(Mixcloud);
|
|
5680
|
-
|
|
5681
5659
|
function Mixcloud() {
|
|
5660
|
+
var _getPrototypeOf2;
|
|
5661
|
+
|
|
5682
5662
|
var _this;
|
|
5683
5663
|
|
|
5684
5664
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5687,7 +5667,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5687
5667
|
args[_key] = arguments[_key];
|
|
5688
5668
|
}
|
|
5689
5669
|
|
|
5690
|
-
_this =
|
|
5670
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5691
5671
|
|
|
5692
5672
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5693
5673
|
|
|
@@ -5790,7 +5770,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5790
5770
|
})); // We have to give the iframe a key here to prevent a
|
|
5791
5771
|
// weird dialog appearing when loading a new track
|
|
5792
5772
|
|
|
5793
|
-
return
|
|
5773
|
+
return _react["default"].createElement("iframe", {
|
|
5794
5774
|
key: id,
|
|
5795
5775
|
ref: this.ref,
|
|
5796
5776
|
style: style,
|
|
@@ -5819,7 +5799,7 @@ exports["default"] = _default;
|
|
|
5819
5799
|
});
|
|
5820
5800
|
|
|
5821
5801
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5822
|
-
Mixcloud_1.Mixcloud;
|
|
5802
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5823
5803
|
|
|
5824
5804
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5825
5805
|
|
|
@@ -5828,7 +5808,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5828
5808
|
});
|
|
5829
5809
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5830
5810
|
|
|
5831
|
-
var _react = _interopRequireWildcard(React__default
|
|
5811
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5832
5812
|
|
|
5833
5813
|
|
|
5834
5814
|
|
|
@@ -5850,33 +5830,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5850
5830
|
|
|
5851
5831
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5852
5832
|
|
|
5853
|
-
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); }; }
|
|
5854
|
-
|
|
5855
5833
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5856
5834
|
|
|
5857
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5858
|
-
|
|
5859
|
-
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; } }
|
|
5860
|
-
|
|
5861
5835
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5862
5836
|
|
|
5837
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5838
|
+
|
|
5863
5839
|
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); }
|
|
5864
5840
|
|
|
5865
5841
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5866
5842
|
|
|
5867
5843
|
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; }
|
|
5868
5844
|
|
|
5869
|
-
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; } } }; }
|
|
5870
|
-
|
|
5871
|
-
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); }
|
|
5872
|
-
|
|
5873
|
-
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; }
|
|
5874
|
-
|
|
5875
5845
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5876
5846
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5877
5847
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5878
5848
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5879
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5849
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5880
5850
|
var HLS_GLOBAL = 'Hls';
|
|
5881
5851
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5882
5852
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5885,11 +5855,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5885
5855
|
|
|
5886
5856
|
function canPlay(url) {
|
|
5887
5857
|
if (url instanceof Array) {
|
|
5888
|
-
var
|
|
5889
|
-
|
|
5858
|
+
var _iteratorNormalCompletion = true;
|
|
5859
|
+
var _didIteratorError = false;
|
|
5860
|
+
var _iteratorError = undefined;
|
|
5890
5861
|
|
|
5891
5862
|
try {
|
|
5892
|
-
for (_iterator.
|
|
5863
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5893
5864
|
var item = _step.value;
|
|
5894
5865
|
|
|
5895
5866
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5901,9 +5872,18 @@ function canPlay(url) {
|
|
|
5901
5872
|
}
|
|
5902
5873
|
}
|
|
5903
5874
|
} catch (err) {
|
|
5904
|
-
|
|
5875
|
+
_didIteratorError = true;
|
|
5876
|
+
_iteratorError = err;
|
|
5905
5877
|
} finally {
|
|
5906
|
-
|
|
5878
|
+
try {
|
|
5879
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5880
|
+
_iterator["return"]();
|
|
5881
|
+
}
|
|
5882
|
+
} finally {
|
|
5883
|
+
if (_didIteratorError) {
|
|
5884
|
+
throw _iteratorError;
|
|
5885
|
+
}
|
|
5886
|
+
}
|
|
5907
5887
|
}
|
|
5908
5888
|
|
|
5909
5889
|
return false;
|
|
@@ -5927,12 +5907,14 @@ function canEnablePIP(url) {
|
|
|
5927
5907
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5928
5908
|
}
|
|
5929
5909
|
|
|
5930
|
-
var FilePlayer =
|
|
5910
|
+
var FilePlayer =
|
|
5911
|
+
/*#__PURE__*/
|
|
5912
|
+
function (_Component) {
|
|
5931
5913
|
_inherits(FilePlayer, _Component);
|
|
5932
5914
|
|
|
5933
|
-
var _super = _createSuper(FilePlayer);
|
|
5934
|
-
|
|
5935
5915
|
function FilePlayer() {
|
|
5916
|
+
var _getPrototypeOf2;
|
|
5917
|
+
|
|
5936
5918
|
var _this;
|
|
5937
5919
|
|
|
5938
5920
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5941,7 +5923,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5941
5923
|
_args[_key] = arguments[_key];
|
|
5942
5924
|
}
|
|
5943
5925
|
|
|
5944
|
-
_this =
|
|
5926
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5945
5927
|
|
|
5946
5928
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5947
5929
|
var _this$props;
|
|
@@ -6028,19 +6010,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6028
6010
|
|
|
6029
6011
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6030
6012
|
if (typeof source === 'string') {
|
|
6031
|
-
return
|
|
6013
|
+
return _react["default"].createElement("source", {
|
|
6032
6014
|
key: index,
|
|
6033
6015
|
src: source
|
|
6034
6016
|
});
|
|
6035
6017
|
}
|
|
6036
6018
|
|
|
6037
|
-
return
|
|
6019
|
+
return _react["default"].createElement("source", _extends({
|
|
6038
6020
|
key: index
|
|
6039
6021
|
}, source));
|
|
6040
6022
|
});
|
|
6041
6023
|
|
|
6042
6024
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6043
|
-
return
|
|
6025
|
+
return _react["default"].createElement("track", _extends({
|
|
6044
6026
|
key: index
|
|
6045
6027
|
}, track));
|
|
6046
6028
|
});
|
|
@@ -6078,10 +6060,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6078
6060
|
key: "componentWillUnmount",
|
|
6079
6061
|
value: function componentWillUnmount() {
|
|
6080
6062
|
this.removeListeners(this.player);
|
|
6081
|
-
|
|
6082
|
-
if (this.hls) {
|
|
6083
|
-
this.hls.destroy();
|
|
6084
|
-
}
|
|
6085
6063
|
}
|
|
6086
6064
|
}, {
|
|
6087
6065
|
key: "addListeners",
|
|
@@ -6212,6 +6190,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6212
6190
|
value: function stop() {
|
|
6213
6191
|
this.player.removeAttribute('src');
|
|
6214
6192
|
|
|
6193
|
+
if (this.hls) {
|
|
6194
|
+
this.hls.destroy();
|
|
6195
|
+
}
|
|
6196
|
+
|
|
6215
6197
|
if (this.dash) {
|
|
6216
6198
|
this.dash.reset();
|
|
6217
6199
|
}
|
|
@@ -6323,7 +6305,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6323
6305
|
width: width === 'auto' ? width : '100%',
|
|
6324
6306
|
height: height === 'auto' ? height : '100%'
|
|
6325
6307
|
};
|
|
6326
|
-
return
|
|
6308
|
+
return _react["default"].createElement(Element, _extends({
|
|
6327
6309
|
ref: this.ref,
|
|
6328
6310
|
src: this.getSource(url),
|
|
6329
6311
|
style: style,
|
|
@@ -6353,7 +6335,7 @@ exports["default"] = _default;
|
|
|
6353
6335
|
});
|
|
6354
6336
|
|
|
6355
6337
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6356
|
-
FilePlayer_1.FilePlayer;
|
|
6338
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6357
6339
|
|
|
6358
6340
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6359
6341
|
|
|
@@ -6395,7 +6377,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6395
6377
|
});
|
|
6396
6378
|
exports["default"] = void 0;
|
|
6397
6379
|
|
|
6398
|
-
var _react = _interopRequireWildcard(React__default
|
|
6380
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6399
6381
|
|
|
6400
6382
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6401
6383
|
|
|
@@ -6413,16 +6395,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6413
6395
|
|
|
6414
6396
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6415
6397
|
|
|
6416
|
-
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); }; }
|
|
6417
|
-
|
|
6418
6398
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6419
6399
|
|
|
6420
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6421
|
-
|
|
6422
|
-
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; } }
|
|
6423
|
-
|
|
6424
6400
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6425
6401
|
|
|
6402
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6403
|
+
|
|
6426
6404
|
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); }
|
|
6427
6405
|
|
|
6428
6406
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6431,12 +6409,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6431
6409
|
|
|
6432
6410
|
var ICON_SIZE = '64px';
|
|
6433
6411
|
|
|
6434
|
-
var Preview =
|
|
6412
|
+
var Preview =
|
|
6413
|
+
/*#__PURE__*/
|
|
6414
|
+
function (_Component) {
|
|
6435
6415
|
_inherits(Preview, _Component);
|
|
6436
6416
|
|
|
6437
|
-
var _super = _createSuper(Preview);
|
|
6438
|
-
|
|
6439
6417
|
function Preview() {
|
|
6418
|
+
var _getPrototypeOf2;
|
|
6419
|
+
|
|
6440
6420
|
var _this;
|
|
6441
6421
|
|
|
6442
6422
|
_classCallCheck(this, Preview);
|
|
@@ -6445,7 +6425,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6445
6425
|
args[_key] = arguments[_key];
|
|
6446
6426
|
}
|
|
6447
6427
|
|
|
6448
|
-
_this =
|
|
6428
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6449
6429
|
|
|
6450
6430
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6451
6431
|
|
|
@@ -6543,15 +6523,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6543
6523
|
}
|
|
6544
6524
|
};
|
|
6545
6525
|
|
|
6546
|
-
var defaultPlayIcon =
|
|
6526
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6547
6527
|
style: styles.shadow,
|
|
6548
6528
|
className: "react-player__shadow"
|
|
6549
|
-
},
|
|
6529
|
+
}, _react["default"].createElement("div", {
|
|
6550
6530
|
style: styles.playIcon,
|
|
6551
6531
|
className: "react-player__play-icon"
|
|
6552
6532
|
}));
|
|
6553
6533
|
|
|
6554
|
-
return
|
|
6534
|
+
return _react["default"].createElement("div", {
|
|
6555
6535
|
style: styles.preview,
|
|
6556
6536
|
className: "react-player__preview",
|
|
6557
6537
|
onClick: onClick
|
|
@@ -6574,7 +6554,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6574
6554
|
});
|
|
6575
6555
|
exports["default"] = renderPreloadPlayers;
|
|
6576
6556
|
|
|
6577
|
-
var _react = _interopRequireDefault(React__default
|
|
6557
|
+
var _react = _interopRequireDefault(React__default);
|
|
6578
6558
|
|
|
6579
6559
|
var _Player = _interopRequireDefault(Player_1);
|
|
6580
6560
|
|
|
@@ -6588,12 +6568,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6588
6568
|
|
|
6589
6569
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6590
6570
|
|
|
6591
|
-
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; } } }; }
|
|
6592
|
-
|
|
6593
|
-
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); }
|
|
6594
|
-
|
|
6595
|
-
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; }
|
|
6596
|
-
|
|
6597
6571
|
var PRELOAD_PLAYERS = [{
|
|
6598
6572
|
Player: YouTube_1.YouTube,
|
|
6599
6573
|
configKey: 'youtube',
|
|
@@ -6614,16 +6588,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6614
6588
|
|
|
6615
6589
|
function renderPreloadPlayers(url, controls, config) {
|
|
6616
6590
|
var players = [];
|
|
6617
|
-
|
|
6618
|
-
var
|
|
6619
|
-
|
|
6591
|
+
var _iteratorNormalCompletion = true;
|
|
6592
|
+
var _didIteratorError = false;
|
|
6593
|
+
var _iteratorError = undefined;
|
|
6620
6594
|
|
|
6621
6595
|
try {
|
|
6622
|
-
for (_iterator.
|
|
6596
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6623
6597
|
var player = _step.value;
|
|
6624
6598
|
|
|
6625
6599
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6626
|
-
players.push(
|
|
6600
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6627
6601
|
key: player.Player.displayName,
|
|
6628
6602
|
activePlayer: player.Player,
|
|
6629
6603
|
url: player.url,
|
|
@@ -6635,9 +6609,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6635
6609
|
}
|
|
6636
6610
|
}
|
|
6637
6611
|
} catch (err) {
|
|
6638
|
-
|
|
6612
|
+
_didIteratorError = true;
|
|
6613
|
+
_iteratorError = err;
|
|
6639
6614
|
} finally {
|
|
6640
|
-
|
|
6615
|
+
try {
|
|
6616
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6617
|
+
_iterator["return"]();
|
|
6618
|
+
}
|
|
6619
|
+
} finally {
|
|
6620
|
+
if (_didIteratorError) {
|
|
6621
|
+
throw _iteratorError;
|
|
6622
|
+
}
|
|
6623
|
+
}
|
|
6641
6624
|
}
|
|
6642
6625
|
|
|
6643
6626
|
return players;
|
|
@@ -6713,7 +6696,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6713
6696
|
});
|
|
6714
6697
|
exports["default"] = void 0;
|
|
6715
6698
|
|
|
6716
|
-
var _react = _interopRequireWildcard(React__default
|
|
6699
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6717
6700
|
|
|
6718
6701
|
|
|
6719
6702
|
|
|
@@ -6761,17 +6744,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6761
6744
|
|
|
6762
6745
|
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); }
|
|
6763
6746
|
|
|
6764
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6765
|
-
|
|
6766
|
-
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."); }
|
|
6747
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6767
6748
|
|
|
6768
|
-
function
|
|
6749
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6769
6750
|
|
|
6770
|
-
function _iterableToArray(iter) { if (
|
|
6751
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6771
6752
|
|
|
6772
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6773
|
-
|
|
6774
|
-
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; }
|
|
6753
|
+
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; } }
|
|
6775
6754
|
|
|
6776
6755
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6777
6756
|
|
|
@@ -6779,16 +6758,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6779
6758
|
|
|
6780
6759
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6781
6760
|
|
|
6782
|
-
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); }; }
|
|
6783
|
-
|
|
6784
6761
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6785
6762
|
|
|
6786
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6787
|
-
|
|
6788
|
-
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; } }
|
|
6789
|
-
|
|
6790
6763
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6791
6764
|
|
|
6765
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6766
|
+
|
|
6792
6767
|
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); }
|
|
6793
6768
|
|
|
6794
6769
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6798,12 +6773,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6798
6773
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6799
6774
|
var customPlayers = [];
|
|
6800
6775
|
|
|
6801
|
-
var ReactPlayer =
|
|
6776
|
+
var ReactPlayer =
|
|
6777
|
+
/*#__PURE__*/
|
|
6778
|
+
function (_Component) {
|
|
6802
6779
|
_inherits(ReactPlayer, _Component);
|
|
6803
6780
|
|
|
6804
|
-
var _super = _createSuper(ReactPlayer);
|
|
6805
|
-
|
|
6806
6781
|
function ReactPlayer() {
|
|
6782
|
+
var _getPrototypeOf2;
|
|
6783
|
+
|
|
6807
6784
|
var _this;
|
|
6808
6785
|
|
|
6809
6786
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6812,7 +6789,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6812
6789
|
args[_key] = arguments[_key];
|
|
6813
6790
|
}
|
|
6814
6791
|
|
|
6815
|
-
_this =
|
|
6792
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6816
6793
|
|
|
6817
6794
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6818
6795
|
|
|
@@ -6923,7 +6900,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6923
6900
|
key: "renderActivePlayer",
|
|
6924
6901
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6925
6902
|
if (!url) return null;
|
|
6926
|
-
return
|
|
6903
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6927
6904
|
key: activePlayer.displayName,
|
|
6928
6905
|
ref: this.activePlayerRef,
|
|
6929
6906
|
config: this.config,
|
|
@@ -6960,14 +6937,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6960
6937
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6961
6938
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6962
6939
|
|
|
6963
|
-
var preview =
|
|
6940
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6964
6941
|
url: url,
|
|
6965
6942
|
light: light,
|
|
6966
6943
|
playIcon: playIcon,
|
|
6967
6944
|
onClick: this.handleClickPreview
|
|
6968
6945
|
});
|
|
6969
6946
|
|
|
6970
|
-
return
|
|
6947
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6971
6948
|
ref: this.wrapperRef,
|
|
6972
6949
|
style: _objectSpread({}, style, {
|
|
6973
6950
|
width: width,
|
|
@@ -7027,20 +7004,20 @@ var Audio = function Audio(_ref) {
|
|
|
7027
7004
|
var node = _ref.node;
|
|
7028
7005
|
|
|
7029
7006
|
if (node.uploadAudio) {
|
|
7030
|
-
return React__default
|
|
7007
|
+
return React__default.createElement(
|
|
7031
7008
|
'div',
|
|
7032
7009
|
{ className: 'audio d-block text-center mb-3' },
|
|
7033
|
-
React__default
|
|
7010
|
+
React__default.createElement(
|
|
7034
7011
|
'audio',
|
|
7035
7012
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7036
|
-
React__default
|
|
7037
|
-
React__default
|
|
7013
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7014
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7038
7015
|
'Your browser does not support the audio element.'
|
|
7039
7016
|
),
|
|
7040
|
-
node.caption && React__default
|
|
7017
|
+
node.caption && React__default.createElement(
|
|
7041
7018
|
'p',
|
|
7042
7019
|
{ style: { fontSize: '.9rem' } },
|
|
7043
|
-
React__default
|
|
7020
|
+
React__default.createElement(
|
|
7044
7021
|
'em',
|
|
7045
7022
|
null,
|
|
7046
7023
|
node.caption
|
|
@@ -7050,15 +7027,15 @@ var Audio = function Audio(_ref) {
|
|
|
7050
7027
|
} else if (node.audioFilePth) {
|
|
7051
7028
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7052
7029
|
if (hostname === 'embeds.audioboom.com') {
|
|
7053
|
-
return React__default
|
|
7030
|
+
return React__default.createElement(
|
|
7054
7031
|
'div',
|
|
7055
7032
|
null,
|
|
7056
|
-
React__default
|
|
7033
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7057
7034
|
' ',
|
|
7058
|
-
node.caption && React__default
|
|
7035
|
+
node.caption && React__default.createElement(
|
|
7059
7036
|
'p',
|
|
7060
7037
|
{ style: { fontSize: '.9rem' } },
|
|
7061
|
-
React__default
|
|
7038
|
+
React__default.createElement(
|
|
7062
7039
|
'em',
|
|
7063
7040
|
null,
|
|
7064
7041
|
node.caption
|
|
@@ -7066,14 +7043,14 @@ var Audio = function Audio(_ref) {
|
|
|
7066
7043
|
)
|
|
7067
7044
|
);
|
|
7068
7045
|
}
|
|
7069
|
-
return React__default
|
|
7046
|
+
return React__default.createElement(
|
|
7070
7047
|
'div',
|
|
7071
7048
|
{ className: 'audio' },
|
|
7072
|
-
React__default
|
|
7073
|
-
node.caption && React__default
|
|
7049
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7050
|
+
node.caption && React__default.createElement(
|
|
7074
7051
|
'p',
|
|
7075
7052
|
{ style: { fontSize: '.9rem' } },
|
|
7076
|
-
React__default
|
|
7053
|
+
React__default.createElement(
|
|
7077
7054
|
'em',
|
|
7078
7055
|
null,
|
|
7079
7056
|
node.caption
|
|
@@ -7091,34 +7068,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7091
7068
|
var profileImage = arguments[6];
|
|
7092
7069
|
|
|
7093
7070
|
if (authorName && authorURL) {
|
|
7094
|
-
return React__default
|
|
7071
|
+
return React__default.createElement(
|
|
7095
7072
|
'span',
|
|
7096
7073
|
null,
|
|
7097
|
-
React__default
|
|
7074
|
+
React__default.createElement(
|
|
7098
7075
|
'a',
|
|
7099
7076
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7100
7077
|
authorName
|
|
7101
7078
|
),
|
|
7102
|
-
React__default
|
|
7079
|
+
React__default.createElement(
|
|
7103
7080
|
reactBootstrap.Card,
|
|
7104
7081
|
{ className: 'author-details-card-' + index },
|
|
7105
|
-
React__default
|
|
7082
|
+
React__default.createElement(
|
|
7106
7083
|
reactBootstrap.Row,
|
|
7107
7084
|
null,
|
|
7108
|
-
profileImage && React__default
|
|
7085
|
+
profileImage && React__default.createElement(
|
|
7109
7086
|
reactBootstrap.Col,
|
|
7110
7087
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7111
|
-
React__default
|
|
7088
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7112
7089
|
),
|
|
7113
|
-
React__default
|
|
7090
|
+
React__default.createElement(
|
|
7114
7091
|
reactBootstrap.Col,
|
|
7115
7092
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7116
|
-
React__default
|
|
7093
|
+
React__default.createElement(
|
|
7117
7094
|
'div',
|
|
7118
7095
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7119
7096
|
authorName
|
|
7120
7097
|
),
|
|
7121
|
-
React__default
|
|
7098
|
+
React__default.createElement(
|
|
7122
7099
|
'p',
|
|
7123
7100
|
null,
|
|
7124
7101
|
biography
|
|
@@ -7126,7 +7103,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7126
7103
|
)
|
|
7127
7104
|
)
|
|
7128
7105
|
),
|
|
7129
|
-
React__default
|
|
7106
|
+
React__default.createElement(
|
|
7130
7107
|
'style',
|
|
7131
7108
|
{ jsx: 'true' },
|
|
7132
7109
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7134,7 +7111,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7134
7111
|
length !== index + 1 && ' , '
|
|
7135
7112
|
);
|
|
7136
7113
|
} else if (authorName) {
|
|
7137
|
-
return React__default
|
|
7114
|
+
return React__default.createElement(
|
|
7138
7115
|
'span',
|
|
7139
7116
|
{ key: index },
|
|
7140
7117
|
authorName,
|
|
@@ -7166,7 +7143,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7166
7143
|
}
|
|
7167
7144
|
});
|
|
7168
7145
|
|
|
7169
|
-
var builder = index.imageUrlBuilder(client);
|
|
7146
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7170
7147
|
function urlFor(source) {
|
|
7171
7148
|
return builder.image(source);
|
|
7172
7149
|
}
|
|
@@ -7241,7 +7218,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7241
7218
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7242
7219
|
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
|
|
7243
7220
|
} else {
|
|
7244
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7221
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7245
7222
|
}
|
|
7246
7223
|
}
|
|
7247
7224
|
});
|
|
@@ -7294,14 +7271,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7294
7271
|
var duration = player.getDuration();
|
|
7295
7272
|
var queue = Math.floor(duration / 10);
|
|
7296
7273
|
var segment = Math.floor(current / queue);
|
|
7297
|
-
Beam.report_beam_video('Ready', main.
|
|
7298
|
-
Segment.report_video_event('Video Ready', main.
|
|
7274
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
7275
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7299
7276
|
//autoplay
|
|
7300
7277
|
|
|
7301
7278
|
//Small pause before starting next video
|
|
7302
7279
|
setTimeout(function () {
|
|
7303
7280
|
//Youtube API to start video playing automatically
|
|
7304
|
-
var id = index$
|
|
7281
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7305
7282
|
event.target.loadVideoById(id);
|
|
7306
7283
|
}, 1500);
|
|
7307
7284
|
};
|
|
@@ -7315,8 +7292,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7315
7292
|
var queue = Math.floor(duration / 10);
|
|
7316
7293
|
var segment = Math.floor(current / queue);
|
|
7317
7294
|
|
|
7318
|
-
Beam.report_beam_video('End', main.
|
|
7319
|
-
Segment.report_video_event('Video End', main.
|
|
7295
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
7296
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7320
7297
|
setEndReported(true);
|
|
7321
7298
|
clearInterval(intervalID);
|
|
7322
7299
|
}
|
|
@@ -7366,8 +7343,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7343
|
var queue = Math.floor(duration / 10);
|
|
7367
7344
|
var segment = Math.floor(current / queue);
|
|
7368
7345
|
if (!queueProgress.includes(segment)) {
|
|
7369
|
-
Beam.report_beam_video('Segment', main.
|
|
7370
|
-
Segment.report_video_event('Video Segment', main.
|
|
7346
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
7347
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7371
7348
|
queueProgress.push(segment);
|
|
7372
7349
|
}
|
|
7373
7350
|
};
|
|
@@ -7380,8 +7357,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7380
7357
|
var queue = Math.floor(duration / 10);
|
|
7381
7358
|
var segment = Math.floor(current / queue);
|
|
7382
7359
|
|
|
7383
|
-
Beam.report_beam_video('Play', main.
|
|
7384
|
-
Segment.report_video_event('Video Play', main.
|
|
7360
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
7361
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7385
7362
|
|
|
7386
7363
|
if (!playReported) {
|
|
7387
7364
|
setPlayReported(true);
|
|
@@ -7399,8 +7376,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7399
7376
|
var queue = Math.floor(duration / 10);
|
|
7400
7377
|
var segment = Math.floor(current / queue);
|
|
7401
7378
|
|
|
7402
|
-
Beam.report_beam_video('Pause', main.
|
|
7403
|
-
Segment.report_video_event('Video Pause', main.
|
|
7379
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
7380
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7404
7381
|
};
|
|
7405
7382
|
|
|
7406
7383
|
// Youtube Options
|
|
@@ -7411,44 +7388,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7411
7388
|
}
|
|
7412
7389
|
};
|
|
7413
7390
|
|
|
7414
|
-
return React__default
|
|
7391
|
+
return React__default.createElement(
|
|
7415
7392
|
'div',
|
|
7416
7393
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7417
|
-
React__default
|
|
7394
|
+
React__default.createElement(
|
|
7418
7395
|
'div',
|
|
7419
7396
|
{ className: 'mt-2 mb-5' },
|
|
7420
|
-
series && React__default
|
|
7397
|
+
series && React__default.createElement(
|
|
7421
7398
|
'div',
|
|
7422
7399
|
{ style: { fontSize: '0.9rem' } },
|
|
7423
7400
|
article.title,
|
|
7424
7401
|
' - Episode ',
|
|
7425
7402
|
series
|
|
7426
7403
|
),
|
|
7427
|
-
Videos[series - 1] && React__default
|
|
7404
|
+
Videos[series - 1] && React__default.createElement(
|
|
7428
7405
|
'h1',
|
|
7429
7406
|
{ className: 'mb-3' },
|
|
7430
7407
|
Videos[series - 1].title
|
|
7431
7408
|
),
|
|
7432
|
-
React__default
|
|
7409
|
+
React__default.createElement(
|
|
7433
7410
|
'div',
|
|
7434
7411
|
null,
|
|
7435
7412
|
moment.moment(article.published).format('LL')
|
|
7436
7413
|
),
|
|
7437
|
-
React__default
|
|
7414
|
+
React__default.createElement(
|
|
7438
7415
|
'div',
|
|
7439
7416
|
{ className: 'mb-3' },
|
|
7440
7417
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7441
|
-
return React__default
|
|
7418
|
+
return React__default.createElement(
|
|
7442
7419
|
'span',
|
|
7443
7420
|
{ key: index },
|
|
7444
7421
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7445
7422
|
);
|
|
7446
7423
|
})
|
|
7447
7424
|
),
|
|
7448
|
-
React__default
|
|
7425
|
+
React__default.createElement(
|
|
7449
7426
|
'p',
|
|
7450
7427
|
null,
|
|
7451
|
-
React__default
|
|
7428
|
+
React__default.createElement(SocialShare, {
|
|
7452
7429
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7453
7430
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7454
7431
|
shareVia: meta.shareVia,
|
|
@@ -7463,22 +7440,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7463
7440
|
hideFacebook: meta.hideFBShare
|
|
7464
7441
|
})
|
|
7465
7442
|
),
|
|
7466
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7443
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7467
7444
|
'p',
|
|
7468
7445
|
{ className: 'mb-3' },
|
|
7469
|
-
React__default
|
|
7446
|
+
React__default.createElement(
|
|
7470
7447
|
'em',
|
|
7471
7448
|
null,
|
|
7472
7449
|
Videos[series - 1].intro
|
|
7473
7450
|
)
|
|
7474
7451
|
)
|
|
7475
7452
|
),
|
|
7476
|
-
React__default
|
|
7453
|
+
React__default.createElement(
|
|
7477
7454
|
'div',
|
|
7478
7455
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7479
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7456
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7480
7457
|
className: 'fluid-iframe',
|
|
7481
|
-
videoId: index$
|
|
7458
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7482
7459
|
opts: opts,
|
|
7483
7460
|
onReady: handleOnReady,
|
|
7484
7461
|
onPlay: handleOnPlay,
|
|
@@ -7487,10 +7464,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7487
7464
|
return handleOnEnd(e);
|
|
7488
7465
|
}
|
|
7489
7466
|
}),
|
|
7490
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7491
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7492
|
-
React__default
|
|
7493
|
-
series && React__default
|
|
7467
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7468
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7469
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7470
|
+
series && React__default.createElement(
|
|
7494
7471
|
'div',
|
|
7495
7472
|
{
|
|
7496
7473
|
className: 'vid-series',
|
|
@@ -7500,10 +7477,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7500
7477
|
maxHeight: '100%',
|
|
7501
7478
|
paddingBottom: '0'
|
|
7502
7479
|
} },
|
|
7503
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7504
7481
|
'p',
|
|
7505
7482
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7506
|
-
React__default
|
|
7483
|
+
React__default.createElement(
|
|
7507
7484
|
'b',
|
|
7508
7485
|
{ style: { fontSize: '1.25em' } },
|
|
7509
7486
|
'Now Playing:'
|
|
@@ -7511,16 +7488,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7511
7488
|
' ',
|
|
7512
7489
|
seriesData[series ? series - 1 : 0].title
|
|
7513
7490
|
),
|
|
7514
|
-
vidUrl && React__default
|
|
7491
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7515
7492
|
)
|
|
7516
7493
|
),
|
|
7517
|
-
React__default
|
|
7518
|
-
React__default
|
|
7494
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7495
|
+
React__default.createElement(
|
|
7519
7496
|
'div',
|
|
7520
7497
|
{ className: 'vid-text' },
|
|
7521
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7498
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7522
7499
|
),
|
|
7523
|
-
React__default
|
|
7500
|
+
React__default.createElement(
|
|
7524
7501
|
'style',
|
|
7525
7502
|
{ jsx: 'true' },
|
|
7526
7503
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7528,14 +7505,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7528
7505
|
);
|
|
7529
7506
|
};
|
|
7530
7507
|
|
|
7531
|
-
var Poll
|
|
7532
|
-
var node = _ref.node
|
|
7533
|
-
_ref.client
|
|
7534
|
-
_ref.pageview
|
|
7535
|
-
_ref.videoAccountIDs
|
|
7536
|
-
|
|
7537
|
-
_ref.showVotes
|
|
7538
|
-
|
|
7508
|
+
var Poll = function Poll(_ref) {
|
|
7509
|
+
var node = _ref.node,
|
|
7510
|
+
client = _ref.client,
|
|
7511
|
+
pageview = _ref.pageview,
|
|
7512
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7513
|
+
onVote = _ref.onVote,
|
|
7514
|
+
_ref$showVotes = _ref.showVotes,
|
|
7515
|
+
getSerializers = _ref.getSerializers;
|
|
7539
7516
|
|
|
7540
7517
|
var _useState = React.useState(null),
|
|
7541
7518
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7573,67 +7550,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7573
7550
|
return acc;
|
|
7574
7551
|
}
|
|
7575
7552
|
}, 0);
|
|
7576
|
-
return React__default
|
|
7577
|
-
React__default
|
|
7553
|
+
return React__default.createElement(
|
|
7554
|
+
React__default.Fragment,
|
|
7578
7555
|
null,
|
|
7579
|
-
question && React__default
|
|
7556
|
+
question && React__default.createElement(
|
|
7580
7557
|
'p',
|
|
7581
7558
|
{ className: 'font-weight-bold' },
|
|
7582
7559
|
question
|
|
7583
7560
|
),
|
|
7584
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7561
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7585
7562
|
'form',
|
|
7586
7563
|
{ onSubmit: function onSubmit(e) {
|
|
7587
7564
|
return onSubmitPoll(e);
|
|
7588
7565
|
} },
|
|
7589
7566
|
choices && choices.map(function (choice) {
|
|
7590
|
-
return React__default
|
|
7567
|
+
return React__default.createElement(
|
|
7591
7568
|
'div',
|
|
7592
7569
|
{ key: choice._key },
|
|
7593
|
-
React__default
|
|
7570
|
+
React__default.createElement(
|
|
7594
7571
|
'label',
|
|
7595
7572
|
{ className: 'pl-2' },
|
|
7596
|
-
React__default
|
|
7573
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7597
7574
|
return setSelectedChoice(e.target.value);
|
|
7598
7575
|
} }),
|
|
7599
7576
|
' ' + choice.choiceText
|
|
7600
7577
|
)
|
|
7601
7578
|
);
|
|
7602
7579
|
}),
|
|
7603
|
-
React__default
|
|
7580
|
+
React__default.createElement(
|
|
7604
7581
|
reactBootstrap.Button,
|
|
7605
7582
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7606
7583
|
'Vote'
|
|
7607
7584
|
)
|
|
7608
7585
|
),
|
|
7609
|
-
React__default
|
|
7586
|
+
React__default.createElement(
|
|
7610
7587
|
'div',
|
|
7611
7588
|
{ className: 'progress-container' },
|
|
7612
7589
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7613
7590
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7614
|
-
return React__default
|
|
7591
|
+
return React__default.createElement(
|
|
7615
7592
|
'div',
|
|
7616
7593
|
{ key: choice._key, className: 'mb-3' },
|
|
7617
|
-
React__default
|
|
7594
|
+
React__default.createElement(
|
|
7618
7595
|
'div',
|
|
7619
7596
|
{ className: 'correct-answer' },
|
|
7620
|
-
React__default
|
|
7597
|
+
React__default.createElement(
|
|
7621
7598
|
'div',
|
|
7622
7599
|
null,
|
|
7623
7600
|
choice.choiceText
|
|
7624
7601
|
),
|
|
7625
|
-
choice.choiceAnswer === true && React__default
|
|
7602
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7626
7603
|
'div',
|
|
7627
7604
|
null,
|
|
7628
|
-
React__default
|
|
7605
|
+
React__default.createElement(
|
|
7629
7606
|
'span',
|
|
7630
7607
|
{ style: { color: 'limegreen' } },
|
|
7631
7608
|
'Correct!'
|
|
7632
7609
|
)
|
|
7633
7610
|
)
|
|
7634
7611
|
),
|
|
7635
|
-
React__default
|
|
7636
|
-
React__default
|
|
7612
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7613
|
+
React__default.createElement(
|
|
7637
7614
|
'span',
|
|
7638
7615
|
{ className: 'float-right' },
|
|
7639
7616
|
percentage,
|
|
@@ -7644,14 +7621,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7644
7621
|
);
|
|
7645
7622
|
})
|
|
7646
7623
|
),
|
|
7647
|
-
showAnswer && React__default
|
|
7624
|
+
showAnswer && React__default.createElement(
|
|
7648
7625
|
'h4',
|
|
7649
7626
|
{ className: 'text-center small p-3' },
|
|
7650
7627
|
'Total Votes: ',
|
|
7651
7628
|
choicesTotalCount
|
|
7652
7629
|
),
|
|
7653
|
-
showAnswer && response && React__default
|
|
7654
|
-
React__default
|
|
7630
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7631
|
+
React__default.createElement(
|
|
7655
7632
|
'style',
|
|
7656
7633
|
{ jsx: 'true' },
|
|
7657
7634
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7669,22 +7646,22 @@ _toObject._export(_toObject._export.S, 'Object', {
|
|
|
7669
7646
|
}
|
|
7670
7647
|
});
|
|
7671
7648
|
|
|
7672
|
-
var values
|
|
7649
|
+
var values = _toObject._core.Object.values;
|
|
7673
7650
|
|
|
7674
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7675
|
-
module.exports = { "default": values
|
|
7651
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7652
|
+
module.exports = { "default": values, __esModule: true };
|
|
7676
7653
|
});
|
|
7677
7654
|
|
|
7678
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7655
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7679
7656
|
|
|
7680
|
-
var Poll = function Poll(_ref) {
|
|
7681
|
-
var node = _ref.node
|
|
7682
|
-
_ref.client
|
|
7683
|
-
_ref.pageview
|
|
7684
|
-
_ref.videoAccountIDs
|
|
7685
|
-
|
|
7686
|
-
_ref.showVotes
|
|
7687
|
-
|
|
7657
|
+
var Poll$1 = function Poll(_ref) {
|
|
7658
|
+
var node = _ref.node,
|
|
7659
|
+
client = _ref.client,
|
|
7660
|
+
pageview = _ref.pageview,
|
|
7661
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7662
|
+
onVote = _ref.onVote,
|
|
7663
|
+
_ref$showVotes = _ref.showVotes,
|
|
7664
|
+
getSerializers = _ref.getSerializers;
|
|
7688
7665
|
|
|
7689
7666
|
var _useState = React.useState(null),
|
|
7690
7667
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7750,67 +7727,67 @@ var Poll = function Poll(_ref) {
|
|
|
7750
7727
|
return acc;
|
|
7751
7728
|
}
|
|
7752
7729
|
}, 0);
|
|
7753
|
-
return React__default
|
|
7754
|
-
React__default
|
|
7730
|
+
return React__default.createElement(
|
|
7731
|
+
React__default.Fragment,
|
|
7755
7732
|
null,
|
|
7756
|
-
question && React__default
|
|
7733
|
+
question && React__default.createElement(
|
|
7757
7734
|
'p',
|
|
7758
7735
|
{ className: 'font-weight-bold' },
|
|
7759
7736
|
question
|
|
7760
7737
|
),
|
|
7761
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7738
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7762
7739
|
'form',
|
|
7763
7740
|
{ onSubmit: function onSubmit(e) {
|
|
7764
7741
|
return onSubmitPoll(e);
|
|
7765
7742
|
} },
|
|
7766
7743
|
choices && choices.map(function (choice) {
|
|
7767
|
-
return React__default
|
|
7744
|
+
return React__default.createElement(
|
|
7768
7745
|
'div',
|
|
7769
7746
|
{ key: choice._key },
|
|
7770
|
-
React__default
|
|
7747
|
+
React__default.createElement(
|
|
7771
7748
|
'label',
|
|
7772
7749
|
{ className: 'pl-2' },
|
|
7773
|
-
React__default
|
|
7750
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7774
7751
|
return setSelectedChoice(e.target.value);
|
|
7775
7752
|
} }),
|
|
7776
7753
|
' ' + choice.choiceText
|
|
7777
7754
|
)
|
|
7778
7755
|
);
|
|
7779
7756
|
}),
|
|
7780
|
-
React__default
|
|
7757
|
+
React__default.createElement(
|
|
7781
7758
|
reactBootstrap.Button,
|
|
7782
7759
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7783
7760
|
'Vote'
|
|
7784
7761
|
)
|
|
7785
7762
|
),
|
|
7786
|
-
React__default
|
|
7763
|
+
React__default.createElement(
|
|
7787
7764
|
'div',
|
|
7788
7765
|
{ className: 'progress-container' },
|
|
7789
7766
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7790
7767
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7791
|
-
return React__default
|
|
7768
|
+
return React__default.createElement(
|
|
7792
7769
|
'div',
|
|
7793
7770
|
{ key: choice._key, className: 'mb-3' },
|
|
7794
|
-
React__default
|
|
7771
|
+
React__default.createElement(
|
|
7795
7772
|
'div',
|
|
7796
7773
|
{ className: 'correct-answer' },
|
|
7797
|
-
React__default
|
|
7774
|
+
React__default.createElement(
|
|
7798
7775
|
'div',
|
|
7799
7776
|
null,
|
|
7800
7777
|
choice.choiceText
|
|
7801
7778
|
),
|
|
7802
|
-
choice.choiceAnswer === true && React__default
|
|
7779
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7803
7780
|
'div',
|
|
7804
7781
|
null,
|
|
7805
|
-
React__default
|
|
7782
|
+
React__default.createElement(
|
|
7806
7783
|
'span',
|
|
7807
7784
|
{ style: { color: 'limegreen' } },
|
|
7808
7785
|
'Correct!'
|
|
7809
7786
|
)
|
|
7810
7787
|
)
|
|
7811
7788
|
),
|
|
7812
|
-
React__default
|
|
7813
|
-
React__default
|
|
7789
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7790
|
+
React__default.createElement(
|
|
7814
7791
|
'span',
|
|
7815
7792
|
{ className: 'float-right' },
|
|
7816
7793
|
percentage,
|
|
@@ -7821,14 +7798,14 @@ var Poll = function Poll(_ref) {
|
|
|
7821
7798
|
);
|
|
7822
7799
|
})
|
|
7823
7800
|
),
|
|
7824
|
-
showAnswer && React__default
|
|
7801
|
+
showAnswer && React__default.createElement(
|
|
7825
7802
|
'h4',
|
|
7826
7803
|
{ className: 'text-center small p-3' },
|
|
7827
7804
|
'Total Votes: ',
|
|
7828
7805
|
choicesTotalCount
|
|
7829
7806
|
),
|
|
7830
|
-
showAnswer && response && React__default
|
|
7831
|
-
React__default
|
|
7807
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7808
|
+
React__default.createElement(
|
|
7832
7809
|
'style',
|
|
7833
7810
|
{ jsx: 'true' },
|
|
7834
7811
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7836,7 +7813,7 @@ var Poll = function Poll(_ref) {
|
|
|
7836
7813
|
);
|
|
7837
7814
|
};
|
|
7838
7815
|
|
|
7839
|
-
var numberOfPaginations = main.
|
|
7816
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7840
7817
|
|
|
7841
7818
|
var Quiz = function Quiz(_ref) {
|
|
7842
7819
|
var quizzes = _ref.quizzes,
|
|
@@ -7900,7 +7877,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7900
7877
|
setEndIndex(numberOfPaginations - 1);
|
|
7901
7878
|
newPath = window.location.pathname;
|
|
7902
7879
|
window.history.pushState(null, null, newPath);
|
|
7903
|
-
index
|
|
7880
|
+
index.lib_3.refresh();
|
|
7904
7881
|
if (pageview) pageview(newPath);
|
|
7905
7882
|
break;
|
|
7906
7883
|
case 'last':
|
|
@@ -7909,7 +7886,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7909
7886
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7910
7887
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7911
7888
|
window.history.pushState(null, null, newPath);
|
|
7912
|
-
index
|
|
7889
|
+
index.lib_3.refresh();
|
|
7913
7890
|
if (pageview) pageview(newPath);
|
|
7914
7891
|
break;
|
|
7915
7892
|
case 'next':
|
|
@@ -7920,7 +7897,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7920
7897
|
}
|
|
7921
7898
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7922
7899
|
window.history.pushState(null, null, newPath);
|
|
7923
|
-
index
|
|
7900
|
+
index.lib_3.refresh();
|
|
7924
7901
|
if (pageview) pageview(newPath);
|
|
7925
7902
|
break;
|
|
7926
7903
|
case 'prev':
|
|
@@ -7931,14 +7908,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7931
7908
|
}
|
|
7932
7909
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7933
7910
|
window.history.pushState(null, null, newPath);
|
|
7934
|
-
index
|
|
7911
|
+
index.lib_3.refresh();
|
|
7935
7912
|
if (pageview) pageview(newPath);
|
|
7936
7913
|
break;
|
|
7937
7914
|
default:
|
|
7938
7915
|
setCurrentPage(control);
|
|
7939
7916
|
newPath = window.location.pathname + '?page=' + control;
|
|
7940
7917
|
window.history.pushState(null, null, newPath);
|
|
7941
|
-
index
|
|
7918
|
+
index.lib_3.refresh();
|
|
7942
7919
|
if (pageview) pageview(newPath);
|
|
7943
7920
|
}
|
|
7944
7921
|
};
|
|
@@ -7954,34 +7931,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7954
7931
|
};
|
|
7955
7932
|
|
|
7956
7933
|
var renderPagination = function renderPagination() {
|
|
7957
|
-
return React__default
|
|
7958
|
-
|
|
7959
|
-
{ className: 'p-0 m-0', size: main.
|
|
7960
|
-
React__default
|
|
7934
|
+
return React__default.createElement(
|
|
7935
|
+
Pagination,
|
|
7936
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7937
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7961
7938
|
return changePage('first');
|
|
7962
7939
|
}, disabled: currentPage === 1 }),
|
|
7963
|
-
React__default
|
|
7940
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7964
7941
|
return changePage('prev');
|
|
7965
7942
|
}, disabled: currentPage === 1 }),
|
|
7966
|
-
React__default
|
|
7943
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7967
7944
|
return renderNewPages('prev');
|
|
7968
7945
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7969
7946
|
pages.map(function (page) {
|
|
7970
|
-
return React__default
|
|
7971
|
-
|
|
7947
|
+
return React__default.createElement(
|
|
7948
|
+
Pagination.Item,
|
|
7972
7949
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7973
7950
|
return changePage(page);
|
|
7974
7951
|
} },
|
|
7975
7952
|
page
|
|
7976
7953
|
);
|
|
7977
7954
|
}),
|
|
7978
|
-
React__default
|
|
7955
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7979
7956
|
return renderNewPages('next');
|
|
7980
7957
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7981
|
-
React__default
|
|
7958
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7982
7959
|
return changePage('next');
|
|
7983
7960
|
}, disabled: currentPage === pageCount }),
|
|
7984
|
-
React__default
|
|
7961
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7985
7962
|
return changePage('last');
|
|
7986
7963
|
}, disabled: currentPage === pageCount })
|
|
7987
7964
|
);
|
|
@@ -8064,51 +8041,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8064
8041
|
}
|
|
8065
8042
|
};
|
|
8066
8043
|
|
|
8067
|
-
return React__default
|
|
8068
|
-
React__default
|
|
8044
|
+
return React__default.createElement(
|
|
8045
|
+
React__default.Fragment,
|
|
8069
8046
|
null,
|
|
8070
|
-
quizzes[currentPage - 1] && React__default
|
|
8071
|
-
React__default
|
|
8047
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8048
|
+
React__default.Fragment,
|
|
8072
8049
|
null,
|
|
8073
|
-
React__default
|
|
8074
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8050
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8051
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8075
8052
|
'form',
|
|
8076
8053
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8077
8054
|
return e.preventDefault();
|
|
8078
8055
|
} },
|
|
8079
8056
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8080
|
-
return React__default
|
|
8057
|
+
return React__default.createElement(
|
|
8081
8058
|
'div',
|
|
8082
8059
|
{ key: answer._key },
|
|
8083
|
-
React__default
|
|
8060
|
+
React__default.createElement(
|
|
8084
8061
|
'label',
|
|
8085
8062
|
{ className: 'pl-2' },
|
|
8086
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8063
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8087
8064
|
' ' + answer.answerText
|
|
8088
8065
|
)
|
|
8089
8066
|
);
|
|
8090
8067
|
})
|
|
8091
8068
|
)
|
|
8092
8069
|
),
|
|
8093
|
-
!showAnswer && React__default
|
|
8094
|
-
|
|
8070
|
+
!showAnswer && React__default.createElement(
|
|
8071
|
+
Button,
|
|
8095
8072
|
{ onClick: function onClick() {
|
|
8096
8073
|
return checkAnswers();
|
|
8097
8074
|
}, variant: 'info', block: true },
|
|
8098
8075
|
'Please click here for answer'
|
|
8099
8076
|
),
|
|
8100
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8101
|
-
React__default
|
|
8077
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8078
|
+
React__default.Fragment,
|
|
8102
8079
|
null,
|
|
8103
|
-
React__default
|
|
8080
|
+
React__default.createElement(
|
|
8104
8081
|
'h4',
|
|
8105
8082
|
null,
|
|
8106
8083
|
'Answer:'
|
|
8107
8084
|
),
|
|
8108
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8085
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8109
8086
|
),
|
|
8110
|
-
React__default
|
|
8111
|
-
pageCount > 1 && React__default
|
|
8087
|
+
React__default.createElement('br', null),
|
|
8088
|
+
pageCount > 1 && React__default.createElement(
|
|
8112
8089
|
'div',
|
|
8113
8090
|
{ className: 'd-flex justify-content-center' },
|
|
8114
8091
|
renderPagination()
|
|
@@ -8119,19 +8096,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8119
8096
|
var Leads = function Leads(_ref) {
|
|
8120
8097
|
var url = _ref.url;
|
|
8121
8098
|
|
|
8122
|
-
return React__default
|
|
8099
|
+
return React__default.createElement(
|
|
8123
8100
|
'div',
|
|
8124
8101
|
{ className: 'd-block text-center mb-3' },
|
|
8125
|
-
url && React__default
|
|
8102
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8126
8103
|
);
|
|
8127
8104
|
};
|
|
8128
8105
|
|
|
8129
|
-
var urlFor$
|
|
8130
|
-
var builder = index.imageUrlBuilder(client);
|
|
8106
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8107
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8131
8108
|
return builder.image(source).auto('format');
|
|
8132
8109
|
};
|
|
8133
8110
|
|
|
8134
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8111
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8135
8112
|
var slides = _ref.node.slides,
|
|
8136
8113
|
client = _ref.client,
|
|
8137
8114
|
pageview = _ref.pageview,
|
|
@@ -8143,8 +8120,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8143
8120
|
|
|
8144
8121
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8145
8122
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8146
|
-
carouselIndex = _useState2[0]
|
|
8147
|
-
_useState2[1];
|
|
8123
|
+
carouselIndex = _useState2[0],
|
|
8124
|
+
setCarouselIndex = _useState2[1];
|
|
8148
8125
|
|
|
8149
8126
|
// useEffect(() => {
|
|
8150
8127
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8157,7 +8134,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8157
8134
|
// }, [router])
|
|
8158
8135
|
|
|
8159
8136
|
React.useEffect(function () {
|
|
8160
|
-
index
|
|
8137
|
+
index.lib_3.refresh();
|
|
8161
8138
|
if (pageview) pageview(router.asPath);
|
|
8162
8139
|
}, [router]);
|
|
8163
8140
|
|
|
@@ -8170,42 +8147,42 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8170
8147
|
}
|
|
8171
8148
|
};
|
|
8172
8149
|
|
|
8173
|
-
return React__default
|
|
8150
|
+
return React__default.createElement(
|
|
8174
8151
|
'div',
|
|
8175
8152
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8176
|
-
React__default
|
|
8153
|
+
React__default.createElement(
|
|
8177
8154
|
reactBootstrap.Carousel,
|
|
8178
8155
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8179
8156
|
slides && slides.map(function (slide) {
|
|
8180
8157
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8181
|
-
return React__default
|
|
8158
|
+
return React__default.createElement(
|
|
8182
8159
|
reactBootstrap.Carousel.Item,
|
|
8183
8160
|
{ key: slide._key },
|
|
8184
|
-
React__default
|
|
8161
|
+
React__default.createElement(
|
|
8185
8162
|
'a',
|
|
8186
8163
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8187
|
-
React__default
|
|
8188
|
-
index$
|
|
8164
|
+
React__default.createElement(
|
|
8165
|
+
index$2.LazyLoad,
|
|
8189
8166
|
null,
|
|
8190
|
-
React__default
|
|
8167
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8191
8168
|
)
|
|
8192
8169
|
),
|
|
8193
|
-
React__default
|
|
8170
|
+
React__default.createElement(
|
|
8194
8171
|
'div',
|
|
8195
8172
|
{ className: 'p-2' },
|
|
8196
|
-
slide.slideshowImage.caption && React__default
|
|
8173
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8197
8174
|
'h3',
|
|
8198
8175
|
{ style: { padding: '0px' } },
|
|
8199
8176
|
slide.slideshowImage.caption
|
|
8200
8177
|
),
|
|
8201
|
-
slide.description && React__default
|
|
8178
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8202
8179
|
)
|
|
8203
8180
|
);
|
|
8204
8181
|
}
|
|
8205
8182
|
return null;
|
|
8206
8183
|
})
|
|
8207
8184
|
),
|
|
8208
|
-
React__default
|
|
8185
|
+
React__default.createElement(
|
|
8209
8186
|
'style',
|
|
8210
8187
|
{ jsx: 'true' },
|
|
8211
8188
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8224,10 +8201,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8224
8201
|
sizes = _props$node.sizes,
|
|
8225
8202
|
sizeMapping = _props$node.sizeMapping;
|
|
8226
8203
|
|
|
8227
|
-
return React__default
|
|
8204
|
+
return React__default.createElement(
|
|
8228
8205
|
'div',
|
|
8229
8206
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8230
|
-
React__default
|
|
8207
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8231
8208
|
);
|
|
8232
8209
|
};
|
|
8233
8210
|
|
|
@@ -8238,20 +8215,20 @@ var Formstack = function Formstack(_ref) {
|
|
|
8238
8215
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8239
8216
|
|
|
8240
8217
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8241
|
-
return React__default
|
|
8218
|
+
return React__default.createElement(
|
|
8242
8219
|
'section',
|
|
8243
8220
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8244
|
-
Caption && React__default
|
|
8221
|
+
Caption && React__default.createElement(
|
|
8245
8222
|
'h4',
|
|
8246
8223
|
{ className: 'formstack-caption' },
|
|
8247
8224
|
Caption
|
|
8248
8225
|
),
|
|
8249
|
-
React__default
|
|
8226
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8250
8227
|
);
|
|
8251
8228
|
};
|
|
8252
8229
|
|
|
8253
8230
|
var urlFor$2 = function urlFor(source, client) {
|
|
8254
|
-
var builder = index.imageUrlBuilder(client);
|
|
8231
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8255
8232
|
return builder.image(source).auto('format');
|
|
8256
8233
|
};
|
|
8257
8234
|
var MultiMedia = function MultiMedia(props) {
|
|
@@ -8266,29 +8243,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8266
8243
|
}
|
|
8267
8244
|
});
|
|
8268
8245
|
if (medias && medias.length > 0) {
|
|
8269
|
-
return React__default
|
|
8246
|
+
return React__default.createElement(
|
|
8270
8247
|
'div',
|
|
8271
8248
|
{ className: 'multi-media-container' },
|
|
8272
|
-
React__default
|
|
8273
|
-
|
|
8249
|
+
React__default.createElement(
|
|
8250
|
+
Row,
|
|
8274
8251
|
{ noGutters: true },
|
|
8275
8252
|
medias.map(function (media) {
|
|
8276
|
-
return React__default
|
|
8277
|
-
|
|
8253
|
+
return React__default.createElement(
|
|
8254
|
+
Col,
|
|
8278
8255
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8279
|
-
React__default
|
|
8256
|
+
React__default.createElement(
|
|
8280
8257
|
'a',
|
|
8281
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8258
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8282
8259
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8283
|
-
React__default
|
|
8260
|
+
React__default.createElement(
|
|
8284
8261
|
'div',
|
|
8285
8262
|
{ className: 'multi-media-image-container' },
|
|
8286
|
-
imageBox && React__default
|
|
8287
|
-
index$
|
|
8263
|
+
imageBox && React__default.createElement(
|
|
8264
|
+
index$2.LazyLoad,
|
|
8288
8265
|
{ once: true },
|
|
8289
|
-
React__default
|
|
8266
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8290
8267
|
),
|
|
8291
|
-
media.caption && React__default
|
|
8268
|
+
media.caption && React__default.createElement(
|
|
8292
8269
|
'span',
|
|
8293
8270
|
{ className: 'multi-media-caption' },
|
|
8294
8271
|
media.caption
|
|
@@ -8298,7 +8275,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8298
8275
|
);
|
|
8299
8276
|
})
|
|
8300
8277
|
),
|
|
8301
|
-
React__default
|
|
8278
|
+
React__default.createElement(
|
|
8302
8279
|
'style',
|
|
8303
8280
|
{ jsx: 'true' },
|
|
8304
8281
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -8309,12 +8286,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8309
8286
|
};
|
|
8310
8287
|
|
|
8311
8288
|
var InscreenSensor = function (_React$Component) {
|
|
8312
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8289
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8313
8290
|
|
|
8314
8291
|
function InscreenSensor(props) {
|
|
8315
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8292
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8316
8293
|
|
|
8317
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8294
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8318
8295
|
|
|
8319
8296
|
_this.scrollHandler = function () {
|
|
8320
8297
|
var visible = _this.checkInside();
|
|
@@ -8345,12 +8322,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8345
8322
|
}
|
|
8346
8323
|
};
|
|
8347
8324
|
|
|
8348
|
-
_this.wraperRef = React__default
|
|
8325
|
+
_this.wraperRef = React__default.createRef();
|
|
8349
8326
|
_this.visible = false;
|
|
8350
8327
|
return _this;
|
|
8351
8328
|
}
|
|
8352
8329
|
|
|
8353
|
-
inherits._createClass(InscreenSensor, [{
|
|
8330
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8354
8331
|
key: 'componentDidMount',
|
|
8355
8332
|
value: function componentDidMount() {
|
|
8356
8333
|
this.visible = this.checkInside();
|
|
@@ -8373,7 +8350,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8373
8350
|
_props$id = _props.id,
|
|
8374
8351
|
id = _props$id === undefined ? '' : _props$id;
|
|
8375
8352
|
|
|
8376
|
-
return React__default
|
|
8353
|
+
return React__default.createElement(
|
|
8377
8354
|
'div',
|
|
8378
8355
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8379
8356
|
this.props.children
|
|
@@ -8382,7 +8359,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8382
8359
|
}]);
|
|
8383
8360
|
|
|
8384
8361
|
return InscreenSensor;
|
|
8385
|
-
}(React__default
|
|
8362
|
+
}(React__default.Component);
|
|
8386
8363
|
|
|
8387
8364
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8388
8365
|
var nodes = _ref.nodes,
|
|
@@ -8400,7 +8377,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8400
8377
|
var today = moment.moment().utc().format();
|
|
8401
8378
|
|
|
8402
8379
|
var authorPrefix = 'authors';
|
|
8403
|
-
var builder = index.imageUrlBuilder(client);
|
|
8380
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8404
8381
|
function urlFor(source) {
|
|
8405
8382
|
return builder.image(source);
|
|
8406
8383
|
}
|
|
@@ -8495,33 +8472,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8495
8472
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8496
8473
|
var showReading = show ? 'showReading' : '';
|
|
8497
8474
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8498
|
-
return React__default
|
|
8475
|
+
return React__default.createElement(
|
|
8499
8476
|
'div',
|
|
8500
8477
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8501
|
-
React__default
|
|
8478
|
+
React__default.createElement(
|
|
8502
8479
|
'a',
|
|
8503
8480
|
{ onClick: function onClick(e) {
|
|
8504
8481
|
return articleCardClickHandler(e);
|
|
8505
8482
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8506
|
-
React__default
|
|
8483
|
+
React__default.createElement(
|
|
8507
8484
|
'div',
|
|
8508
8485
|
{ className: 'prevNext-thumbnail' },
|
|
8509
|
-
React__default
|
|
8510
|
-
React__default
|
|
8486
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8487
|
+
React__default.createElement(
|
|
8511
8488
|
'div',
|
|
8512
8489
|
{ className: 'prevNext-reading ' + showReading },
|
|
8513
8490
|
articleLabel
|
|
8514
8491
|
)
|
|
8515
8492
|
),
|
|
8516
|
-
React__default
|
|
8493
|
+
React__default.createElement(
|
|
8517
8494
|
'div',
|
|
8518
8495
|
{ className: 'prevNext-summary' },
|
|
8519
|
-
React__default
|
|
8496
|
+
React__default.createElement(
|
|
8520
8497
|
'div',
|
|
8521
8498
|
{ className: 'prevNext-publishDate' },
|
|
8522
8499
|
moment.moment(article.published).format('LL')
|
|
8523
8500
|
),
|
|
8524
|
-
React__default
|
|
8501
|
+
React__default.createElement(
|
|
8525
8502
|
'h2',
|
|
8526
8503
|
{ className: 'prevNext-title' },
|
|
8527
8504
|
article.title
|
|
@@ -8570,7 +8547,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8570
8547
|
|
|
8571
8548
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8572
8549
|
if (biography) {
|
|
8573
|
-
return React__default
|
|
8550
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8574
8551
|
}
|
|
8575
8552
|
};
|
|
8576
8553
|
|
|
@@ -8656,7 +8633,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8656
8633
|
//console.log('useLayoutEffect')
|
|
8657
8634
|
if (!firstLoad) {
|
|
8658
8635
|
setUpArrowClicked(false);
|
|
8659
|
-
if (main.
|
|
8636
|
+
if (main.main_36) {
|
|
8660
8637
|
grabLoadedAds();
|
|
8661
8638
|
} else {
|
|
8662
8639
|
scrollToArticle();
|
|
@@ -8665,7 +8642,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8665
8642
|
});
|
|
8666
8643
|
|
|
8667
8644
|
var grabLoadedAds = function grabLoadedAds() {
|
|
8668
|
-
index
|
|
8645
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8669
8646
|
var checkIfReady = window.setInterval(function () {
|
|
8670
8647
|
if (window.googletag && googletag.pubadsReady) {
|
|
8671
8648
|
clearInterval(checkIfReady);
|
|
@@ -8680,19 +8657,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8680
8657
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8681
8658
|
if (pageview) pageview(path);
|
|
8682
8659
|
|
|
8683
|
-
if (!main.
|
|
8684
|
-
index
|
|
8660
|
+
if (!main.main_36) {
|
|
8661
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8685
8662
|
if (window.googletag && googletag.pubadsReady) {
|
|
8686
|
-
index
|
|
8663
|
+
index.lib_3.refresh();
|
|
8687
8664
|
}
|
|
8688
8665
|
});
|
|
8689
8666
|
}
|
|
8690
8667
|
//Refresh leaderboard ad on mobile
|
|
8691
|
-
if (main.
|
|
8668
|
+
if (main.main_36) {
|
|
8692
8669
|
var leaderboardSlotId = '';
|
|
8693
|
-
index
|
|
8670
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8694
8671
|
if (window.googletag && googletag.pubadsReady) {
|
|
8695
|
-
index
|
|
8672
|
+
index.lib_3.refresh(leaderboardSlotId);
|
|
8696
8673
|
}
|
|
8697
8674
|
});
|
|
8698
8675
|
}
|
|
@@ -8728,38 +8705,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8728
8705
|
setSensorVisible(false);
|
|
8729
8706
|
};
|
|
8730
8707
|
|
|
8731
|
-
return React__default
|
|
8732
|
-
React__default
|
|
8708
|
+
return React__default.createElement(
|
|
8709
|
+
React__default.Fragment,
|
|
8733
8710
|
null,
|
|
8734
|
-
React__default
|
|
8711
|
+
React__default.createElement(
|
|
8735
8712
|
'div',
|
|
8736
8713
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8737
|
-
React__default
|
|
8714
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8738
8715
|
return handleArrowClick();
|
|
8739
8716
|
} })
|
|
8740
8717
|
),
|
|
8741
|
-
React__default
|
|
8742
|
-
React__default
|
|
8718
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8719
|
+
React__default.createElement(
|
|
8743
8720
|
'div',
|
|
8744
8721
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8745
|
-
React__default
|
|
8722
|
+
React__default.createElement(
|
|
8746
8723
|
'h5',
|
|
8747
8724
|
{ className: 'objective-title' },
|
|
8748
8725
|
nodes.seriesTitle
|
|
8749
8726
|
),
|
|
8750
|
-
React__default
|
|
8727
|
+
React__default.createElement(
|
|
8751
8728
|
'div',
|
|
8752
8729
|
{ className: 'prevNextWrapper' },
|
|
8753
8730
|
PrevNextCards(false, -1)
|
|
8754
8731
|
)
|
|
8755
8732
|
),
|
|
8756
|
-
React__default
|
|
8757
|
-
React__default
|
|
8733
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8734
|
+
React__default.createElement(
|
|
8758
8735
|
'div',
|
|
8759
8736
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8760
|
-
main.
|
|
8737
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8761
8738
|
if (index === 0) {
|
|
8762
|
-
return React__default
|
|
8739
|
+
return React__default.createElement(
|
|
8763
8740
|
'div',
|
|
8764
8741
|
{
|
|
8765
8742
|
key: 'addid-1',
|
|
@@ -8779,14 +8756,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8779
8756
|
}
|
|
8780
8757
|
})
|
|
8781
8758
|
),
|
|
8782
|
-
React__default
|
|
8759
|
+
React__default.createElement(
|
|
8783
8760
|
'div',
|
|
8784
8761
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8785
8762
|
Articles.map(function (article, index) {
|
|
8786
|
-
return React__default
|
|
8763
|
+
return React__default.createElement(
|
|
8787
8764
|
'div',
|
|
8788
8765
|
{ key: article.title },
|
|
8789
|
-
React__default
|
|
8766
|
+
React__default.createElement(
|
|
8790
8767
|
InscreenSensor,
|
|
8791
8768
|
{
|
|
8792
8769
|
visible: sensorVisible,
|
|
@@ -8804,84 +8781,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8804
8781
|
}
|
|
8805
8782
|
}
|
|
8806
8783
|
} },
|
|
8807
|
-
React__default
|
|
8808
|
-
|
|
8784
|
+
React__default.createElement(
|
|
8785
|
+
Head,
|
|
8809
8786
|
null,
|
|
8810
|
-
currentTitle !== null && React__default
|
|
8787
|
+
currentTitle !== null && React__default.createElement(
|
|
8811
8788
|
'title',
|
|
8812
8789
|
{ key: 'title' },
|
|
8813
8790
|
currentTitle
|
|
8814
8791
|
),
|
|
8815
|
-
currentSummary !== null && React__default
|
|
8816
|
-
currentURL !== null && React__default
|
|
8817
|
-
currentTitle !== null && React__default
|
|
8818
|
-
currentThumbnail !== null && React__default
|
|
8819
|
-
currentSummary !== null && React__default
|
|
8820
|
-
currentTitle !== null && React__default
|
|
8821
|
-
currentThumbnail !== null && React__default
|
|
8822
|
-
currentSummary !== null && React__default
|
|
8792
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8793
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8794
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8795
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8796
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8797
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8798
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8799
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8823
8800
|
),
|
|
8824
|
-
React__default
|
|
8801
|
+
React__default.createElement(
|
|
8825
8802
|
'article',
|
|
8826
8803
|
{ className: 'article-wrapper' },
|
|
8827
|
-
React__default
|
|
8804
|
+
React__default.createElement(
|
|
8828
8805
|
'div',
|
|
8829
8806
|
{ className: 'article-publishDate' },
|
|
8830
8807
|
moment.moment(article.published).format('LL')
|
|
8831
8808
|
),
|
|
8832
|
-
React__default
|
|
8809
|
+
React__default.createElement(
|
|
8833
8810
|
'div',
|
|
8834
8811
|
{ className: 'author-details-wrapper' },
|
|
8835
8812
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8836
|
-
return React__default
|
|
8813
|
+
return React__default.createElement(
|
|
8837
8814
|
'span',
|
|
8838
8815
|
{ key: index },
|
|
8839
8816
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8840
8817
|
);
|
|
8841
8818
|
})
|
|
8842
8819
|
),
|
|
8843
|
-
React__default
|
|
8820
|
+
React__default.createElement(
|
|
8844
8821
|
'h2',
|
|
8845
8822
|
{ className: 'article-title' },
|
|
8846
8823
|
article.title
|
|
8847
8824
|
),
|
|
8848
|
-
React__default
|
|
8825
|
+
React__default.createElement(
|
|
8849
8826
|
'div',
|
|
8850
8827
|
{ className: 'mt-2 mb-2' },
|
|
8851
|
-
React__default
|
|
8828
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8852
8829
|
serializers: getSerializers,
|
|
8853
8830
|
videoAccountIDs: accountIDs,
|
|
8854
8831
|
blocks: article.text,
|
|
8855
8832
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8856
8833
|
}, client.config())),
|
|
8857
|
-
React__default
|
|
8834
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8858
8835
|
),
|
|
8859
|
-
Articles.length > 1 && React__default
|
|
8860
|
-
React__default
|
|
8836
|
+
Articles.length > 1 && React__default.createElement(
|
|
8837
|
+
React__default.Fragment,
|
|
8861
8838
|
null,
|
|
8862
|
-
React__default
|
|
8839
|
+
React__default.createElement(
|
|
8863
8840
|
'div',
|
|
8864
8841
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8865
|
-
React__default
|
|
8842
|
+
React__default.createElement(
|
|
8866
8843
|
'h5',
|
|
8867
8844
|
{ className: 'objective-title' },
|
|
8868
8845
|
nodes.seriesTitle
|
|
8869
8846
|
),
|
|
8870
|
-
React__default
|
|
8847
|
+
React__default.createElement(
|
|
8871
8848
|
'div',
|
|
8872
8849
|
{ className: 'prevNextWrapper' },
|
|
8873
8850
|
PrevNextCards(true, index)
|
|
8874
8851
|
)
|
|
8875
8852
|
),
|
|
8876
|
-
React__default
|
|
8853
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8877
8854
|
)
|
|
8878
8855
|
),
|
|
8879
|
-
React__default
|
|
8856
|
+
React__default.createElement(
|
|
8880
8857
|
'div',
|
|
8881
8858
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8882
|
-
main.
|
|
8859
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8883
8860
|
if (innerIndex === 0) {
|
|
8884
|
-
return React__default
|
|
8861
|
+
return React__default.createElement(
|
|
8885
8862
|
'div',
|
|
8886
8863
|
{
|
|
8887
8864
|
key: 'addid-' + (index + 2),
|
|
@@ -8904,7 +8881,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8904
8881
|
)
|
|
8905
8882
|
);
|
|
8906
8883
|
}),
|
|
8907
|
-
React__default
|
|
8884
|
+
React__default.createElement(
|
|
8908
8885
|
'style',
|
|
8909
8886
|
{ jsx: 'true' },
|
|
8910
8887
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8934,11 +8911,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8934
8911
|
};
|
|
8935
8912
|
}, [handleClickOutside]);
|
|
8936
8913
|
|
|
8937
|
-
return React__default
|
|
8914
|
+
return React__default.createElement(
|
|
8938
8915
|
'div',
|
|
8939
8916
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8940
|
-
React__default
|
|
8941
|
-
React__default
|
|
8917
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8918
|
+
React__default.createElement(
|
|
8942
8919
|
'style',
|
|
8943
8920
|
{ jsx: 'true' },
|
|
8944
8921
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8946,13 +8923,13 @@ var LightBox = function LightBox(_ref) {
|
|
|
8946
8923
|
);
|
|
8947
8924
|
};
|
|
8948
8925
|
|
|
8949
|
-
var urlFor$
|
|
8950
|
-
var builder = index.imageUrlBuilder(client);
|
|
8926
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8927
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8951
8928
|
return builder.image(source).auto('format');
|
|
8952
8929
|
};
|
|
8953
8930
|
|
|
8954
8931
|
var generateSrcSet = function generateSrcSet(source, client, width) {
|
|
8955
|
-
var builder = index.imageUrlBuilder(client);
|
|
8932
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8956
8933
|
return builder.image(source).width(width).fit('max').auto('format').url();
|
|
8957
8934
|
};
|
|
8958
8935
|
|
|
@@ -8962,7 +8939,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8962
8939
|
}
|
|
8963
8940
|
};
|
|
8964
8941
|
|
|
8965
|
-
var FigureImage = React__default
|
|
8942
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8966
8943
|
var node = _ref2.node,
|
|
8967
8944
|
client = _ref2.client,
|
|
8968
8945
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8970,16 +8947,16 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8970
8947
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8971
8948
|
|
|
8972
8949
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8973
|
-
return React__default
|
|
8950
|
+
return React__default.createElement(
|
|
8974
8951
|
'picture',
|
|
8975
8952
|
null,
|
|
8976
|
-
React__default
|
|
8977
|
-
React__default
|
|
8978
|
-
React__default
|
|
8979
|
-
React__default
|
|
8953
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8954
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8955
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8956
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8980
8957
|
style: figureImageStyle,
|
|
8981
8958
|
className: 'figure-image',
|
|
8982
|
-
src: urlFor$
|
|
8959
|
+
src: urlFor$3(node, client).url(),
|
|
8983
8960
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8984
8961
|
}, !link && {
|
|
8985
8962
|
onClick: function onClick() {
|
|
@@ -9064,13 +9041,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9064
9041
|
|
|
9065
9042
|
var FigureCaption = React.useCallback(function () {
|
|
9066
9043
|
if (imgcaption && imgcaption.length > 0) {
|
|
9067
|
-
return React__default
|
|
9044
|
+
return React__default.createElement(
|
|
9068
9045
|
'div',
|
|
9069
9046
|
{ className: 'figure-caption' },
|
|
9070
|
-
React__default
|
|
9047
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9071
9048
|
);
|
|
9072
9049
|
} else if (caption) {
|
|
9073
|
-
return React__default
|
|
9050
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9074
9051
|
} else return null;
|
|
9075
9052
|
}, [caption, imgcaption]);
|
|
9076
9053
|
|
|
@@ -9083,28 +9060,28 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9083
9060
|
};
|
|
9084
9061
|
|
|
9085
9062
|
var handleClickFigure = React.useCallback(function (node, client) {
|
|
9086
|
-
setLightboxImgSrc(urlFor$
|
|
9063
|
+
setLightboxImgSrc(urlFor$3(node, client).url());
|
|
9087
9064
|
setShowLightbox(true);
|
|
9088
9065
|
}, [node, client]);
|
|
9089
9066
|
|
|
9090
|
-
return React__default
|
|
9091
|
-
React__default
|
|
9067
|
+
return React__default.createElement(
|
|
9068
|
+
React__default.Fragment,
|
|
9092
9069
|
null,
|
|
9093
|
-
React__default
|
|
9094
|
-
|
|
9070
|
+
React__default.createElement(
|
|
9071
|
+
Figure$1,
|
|
9095
9072
|
{ className: '' + class_name, style: figureStyle },
|
|
9096
|
-
link ? React__default
|
|
9073
|
+
link ? React__default.createElement(
|
|
9097
9074
|
'a',
|
|
9098
9075
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9099
|
-
React__default
|
|
9100
|
-
React__default
|
|
9101
|
-
) : React__default
|
|
9102
|
-
React__default
|
|
9076
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9077
|
+
React__default.createElement(FigureCaption, null)
|
|
9078
|
+
) : React__default.createElement(
|
|
9079
|
+
React__default.Fragment,
|
|
9103
9080
|
null,
|
|
9104
|
-
React__default
|
|
9105
|
-
React__default
|
|
9081
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9082
|
+
React__default.createElement(FigureCaption, null)
|
|
9106
9083
|
),
|
|
9107
|
-
React__default
|
|
9084
|
+
React__default.createElement(LightBox, {
|
|
9108
9085
|
showLightbox: showLightbox,
|
|
9109
9086
|
lightboxImgSrc: lightboxImgSrc,
|
|
9110
9087
|
closeLightbox: function closeLightbox() {
|
|
@@ -9113,7 +9090,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9113
9090
|
}
|
|
9114
9091
|
})
|
|
9115
9092
|
),
|
|
9116
|
-
React__default
|
|
9093
|
+
React__default.createElement(
|
|
9117
9094
|
'style',
|
|
9118
9095
|
{ jsx: 'true' },
|
|
9119
9096
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -9121,10 +9098,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9121
9098
|
);
|
|
9122
9099
|
};
|
|
9123
9100
|
|
|
9124
|
-
var Figure = React__default
|
|
9101
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9125
9102
|
|
|
9126
|
-
var urlFor = function urlFor(source, client) {
|
|
9127
|
-
var builder = index.imageUrlBuilder(client);
|
|
9103
|
+
var urlFor$4 = function urlFor(source, client) {
|
|
9104
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
9128
9105
|
return builder.image(source).auto('format');
|
|
9129
9106
|
};
|
|
9130
9107
|
|
|
@@ -9167,68 +9144,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9167
9144
|
imgcaption = _ref.imgcaption;
|
|
9168
9145
|
|
|
9169
9146
|
if (imgcaption && imgcaption.length > 0) {
|
|
9170
|
-
return React__default
|
|
9147
|
+
return React__default.createElement(
|
|
9171
9148
|
'div',
|
|
9172
9149
|
{ className: 'multi-figure-caption' },
|
|
9173
|
-
React__default
|
|
9150
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9174
9151
|
);
|
|
9175
9152
|
} else if (caption) {
|
|
9176
|
-
return React__default
|
|
9153
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9177
9154
|
} else return null;
|
|
9178
9155
|
};
|
|
9179
9156
|
|
|
9180
9157
|
if (images && images.length > 0) {
|
|
9181
|
-
return React__default
|
|
9158
|
+
return React__default.createElement(
|
|
9182
9159
|
'div',
|
|
9183
9160
|
{ className: 'multi-figure-container' },
|
|
9184
|
-
React__default
|
|
9185
|
-
|
|
9161
|
+
React__default.createElement(
|
|
9162
|
+
Row,
|
|
9186
9163
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9187
9164
|
images.map(function (image, index) {
|
|
9188
|
-
return React__default
|
|
9189
|
-
|
|
9165
|
+
return React__default.createElement(
|
|
9166
|
+
Col,
|
|
9190
9167
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9191
|
-
image.link ? React__default
|
|
9168
|
+
image.link ? React__default.createElement(
|
|
9192
9169
|
'a',
|
|
9193
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9194
|
-
React__default
|
|
9170
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9171
|
+
React__default.createElement(
|
|
9195
9172
|
'div',
|
|
9196
9173
|
{ className: 'multi-figure-image-container' },
|
|
9197
|
-
React__default
|
|
9198
|
-
index$
|
|
9174
|
+
React__default.createElement(
|
|
9175
|
+
index$2.LazyLoad,
|
|
9199
9176
|
{ once: true },
|
|
9200
|
-
React__default
|
|
9177
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9201
9178
|
),
|
|
9202
|
-
React__default
|
|
9179
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9203
9180
|
)
|
|
9204
|
-
) : React__default
|
|
9181
|
+
) : React__default.createElement(
|
|
9205
9182
|
'div',
|
|
9206
9183
|
{ className: 'multi-figure-image-container' },
|
|
9207
|
-
React__default
|
|
9208
|
-
index$
|
|
9184
|
+
React__default.createElement(
|
|
9185
|
+
index$2.LazyLoad,
|
|
9209
9186
|
{ once: true },
|
|
9210
|
-
React__default
|
|
9187
|
+
React__default.createElement('img', {
|
|
9211
9188
|
'images-count': images.length,
|
|
9212
9189
|
className: 'multi-figure-image',
|
|
9213
|
-
src: urlFor(image.asset, client).url(),
|
|
9190
|
+
src: urlFor$4(image.asset, client).url(),
|
|
9214
9191
|
alt: image.alt,
|
|
9215
9192
|
onClick: function onClick() {
|
|
9216
|
-
setOpenImgSrc(urlFor(image, client).url());
|
|
9193
|
+
setOpenImgSrc(urlFor$4(image, client).url());
|
|
9217
9194
|
setOpenImg(true);
|
|
9218
9195
|
}
|
|
9219
9196
|
})
|
|
9220
9197
|
),
|
|
9221
|
-
React__default
|
|
9198
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9222
9199
|
)
|
|
9223
9200
|
);
|
|
9224
9201
|
})
|
|
9225
9202
|
),
|
|
9226
|
-
React__default
|
|
9203
|
+
React__default.createElement(
|
|
9227
9204
|
'div',
|
|
9228
9205
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9229
|
-
React__default
|
|
9206
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9230
9207
|
),
|
|
9231
|
-
React__default
|
|
9208
|
+
React__default.createElement(
|
|
9232
9209
|
'style',
|
|
9233
9210
|
{ jsx: 'true' },
|
|
9234
9211
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9250,10 +9227,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9250
9227
|
|
|
9251
9228
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9252
9229
|
|
|
9253
|
-
return React__default
|
|
9230
|
+
return React__default.createElement(
|
|
9254
9231
|
'div',
|
|
9255
9232
|
{ id: elementId },
|
|
9256
|
-
React__default
|
|
9233
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9257
9234
|
);
|
|
9258
9235
|
};
|
|
9259
9236
|
|
|
@@ -9322,7 +9299,7 @@ asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.ma
|
|
|
9322
9299
|
}, 1000);
|
|
9323
9300
|
}, [htmlSnippet]);
|
|
9324
9301
|
|
|
9325
|
-
return htmlSnippet && React__default
|
|
9302
|
+
return htmlSnippet && React__default.createElement('div', { className: 'form-assembly', ref: formAssemblyRef, dangerouslySetInnerHTML: { __html: htmlSnippet } });
|
|
9326
9303
|
};
|
|
9327
9304
|
|
|
9328
9305
|
var BlockTable = function BlockTable(props) {
|
|
@@ -9355,27 +9332,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9355
9332
|
return window.removeEventListener('resize', handleResize);
|
|
9356
9333
|
};
|
|
9357
9334
|
}, []);
|
|
9358
|
-
return React__default
|
|
9335
|
+
return React__default.createElement(
|
|
9359
9336
|
'div',
|
|
9360
9337
|
{ className: 'blockTableHolder', ref: holder },
|
|
9361
|
-
React__default
|
|
9338
|
+
React__default.createElement(
|
|
9362
9339
|
'div',
|
|
9363
9340
|
{ className: 'blockTable' },
|
|
9364
9341
|
rows && rows.map(function (row) {
|
|
9365
|
-
return React__default
|
|
9342
|
+
return React__default.createElement(
|
|
9366
9343
|
'div',
|
|
9367
9344
|
{ className: 'blockTableRow' },
|
|
9368
9345
|
row.cells && row.cells.map(function (cell) {
|
|
9369
|
-
return React__default
|
|
9346
|
+
return React__default.createElement(
|
|
9370
9347
|
'div',
|
|
9371
9348
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9372
|
-
React__default
|
|
9349
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9373
9350
|
);
|
|
9374
9351
|
})
|
|
9375
9352
|
);
|
|
9376
9353
|
})
|
|
9377
9354
|
),
|
|
9378
|
-
React__default
|
|
9355
|
+
React__default.createElement(
|
|
9379
9356
|
'style',
|
|
9380
9357
|
{ jsx: true },
|
|
9381
9358
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9454,12 +9431,12 @@ var getSerializers = function getSerializers() {
|
|
|
9454
9431
|
var node = _ref.node;
|
|
9455
9432
|
var url = node.url;
|
|
9456
9433
|
|
|
9457
|
-
return React__default
|
|
9434
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9458
9435
|
},
|
|
9459
9436
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9460
9437
|
var node = _ref2.node;
|
|
9461
9438
|
|
|
9462
|
-
return React__default
|
|
9439
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9463
9440
|
nodes: node,
|
|
9464
9441
|
article: article,
|
|
9465
9442
|
meta: meta,
|
|
@@ -9473,7 +9450,7 @@ var getSerializers = function getSerializers() {
|
|
|
9473
9450
|
articleSeries: function articleSeries(_ref3) {
|
|
9474
9451
|
var node = _ref3.node;
|
|
9475
9452
|
|
|
9476
|
-
return React__default
|
|
9453
|
+
return React__default.createElement(ArticleSeries, {
|
|
9477
9454
|
nodes: node,
|
|
9478
9455
|
accountIDs: videoAccountIDs || {},
|
|
9479
9456
|
pageview: pageview,
|
|
@@ -9486,61 +9463,61 @@ var getSerializers = function getSerializers() {
|
|
|
9486
9463
|
figure: function figure(_ref4) {
|
|
9487
9464
|
var node = _ref4.node;
|
|
9488
9465
|
|
|
9489
|
-
return React__default
|
|
9466
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9490
9467
|
},
|
|
9491
9468
|
multifigure: function multifigure(_ref5) {
|
|
9492
9469
|
var node = _ref5.node;
|
|
9493
9470
|
|
|
9494
|
-
return React__default
|
|
9471
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9495
9472
|
},
|
|
9496
9473
|
slideshow: function slideshow(_ref6) {
|
|
9497
9474
|
var node = _ref6.node;
|
|
9498
9475
|
var slides = node.slides;
|
|
9499
9476
|
|
|
9500
|
-
return React__default
|
|
9477
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9501
9478
|
},
|
|
9502
9479
|
sidebar: function sidebar(_ref7) {
|
|
9503
9480
|
var node = _ref7.node;
|
|
9504
9481
|
var caption = node.caption,
|
|
9505
9482
|
content = node.content;
|
|
9506
9483
|
|
|
9507
|
-
return React__default
|
|
9484
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9508
9485
|
},
|
|
9509
9486
|
datatable: function datatable(_ref8) {
|
|
9510
9487
|
var node = _ref8.node;
|
|
9511
9488
|
var table = node.table;
|
|
9512
9489
|
|
|
9513
|
-
return React__default
|
|
9490
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9514
9491
|
},
|
|
9515
9492
|
media: function media(_ref9) {
|
|
9516
9493
|
var node = _ref9.node;
|
|
9517
9494
|
|
|
9518
|
-
return React__default
|
|
9495
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9519
9496
|
},
|
|
9520
9497
|
iframe: function iframe(_ref10) {
|
|
9521
9498
|
var node = _ref10.node;
|
|
9522
9499
|
|
|
9523
|
-
return React__default
|
|
9500
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9524
9501
|
},
|
|
9525
9502
|
video: function video(_ref11) {
|
|
9526
9503
|
var node = _ref11.node;
|
|
9527
9504
|
|
|
9528
|
-
return React__default
|
|
9505
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9529
9506
|
},
|
|
9530
9507
|
audio: function audio(_ref12) {
|
|
9531
9508
|
var node = _ref12.node;
|
|
9532
9509
|
|
|
9533
|
-
return React__default
|
|
9510
|
+
return React__default.createElement(Audio, { node: node });
|
|
9534
9511
|
},
|
|
9535
9512
|
poll: function poll(_ref13) {
|
|
9536
9513
|
var node = _ref13.node;
|
|
9537
9514
|
|
|
9538
|
-
return React__default
|
|
9515
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9539
9516
|
},
|
|
9540
9517
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9541
9518
|
var node = _ref14.node;
|
|
9542
9519
|
|
|
9543
|
-
return React__default
|
|
9520
|
+
return React__default.createElement(Poll$1, {
|
|
9544
9521
|
node: node,
|
|
9545
9522
|
client: client,
|
|
9546
9523
|
pageview: pageview,
|
|
@@ -9554,35 +9531,35 @@ var getSerializers = function getSerializers() {
|
|
|
9554
9531
|
var node = _ref15.node;
|
|
9555
9532
|
var quizzes = node.quizzes;
|
|
9556
9533
|
|
|
9557
|
-
return React__default
|
|
9534
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9558
9535
|
},
|
|
9559
9536
|
leads: function leads(_ref16) {
|
|
9560
9537
|
var node = _ref16.node;
|
|
9561
9538
|
var leadID = node.leadID;
|
|
9562
9539
|
|
|
9563
9540
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9564
|
-
return React__default
|
|
9541
|
+
return React__default.createElement(Leads, { url: url });
|
|
9565
9542
|
},
|
|
9566
9543
|
slideshows: function slideshows(_ref17) {
|
|
9567
9544
|
var node = _ref17.node;
|
|
9568
9545
|
|
|
9569
|
-
return React__default
|
|
9546
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9570
9547
|
},
|
|
9571
9548
|
nativeAd: function nativeAd(_ref18) {
|
|
9572
9549
|
var node = _ref18.node;
|
|
9573
9550
|
|
|
9574
|
-
return React__default
|
|
9551
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9575
9552
|
},
|
|
9576
9553
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9577
9554
|
var node = _ref19.node;
|
|
9578
9555
|
|
|
9579
|
-
return React__default
|
|
9556
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9580
9557
|
},
|
|
9581
9558
|
hrtag: function hrtag() {
|
|
9582
|
-
return React__default
|
|
9559
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9583
9560
|
},
|
|
9584
9561
|
brtag: function brtag() {
|
|
9585
|
-
return React__default
|
|
9562
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9586
9563
|
},
|
|
9587
9564
|
formstack: function formstack(_ref20) {
|
|
9588
9565
|
var node = _ref20.node;
|
|
@@ -9590,29 +9567,29 @@ var getSerializers = function getSerializers() {
|
|
|
9590
9567
|
Caption = node.Caption,
|
|
9591
9568
|
needSegmentSupport = node.needSegmentSupport;
|
|
9592
9569
|
|
|
9593
|
-
return React__default
|
|
9570
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9594
9571
|
},
|
|
9595
9572
|
formassembly: FormAssembly,
|
|
9596
9573
|
multimedia: function multimedia(_ref21) {
|
|
9597
9574
|
var node = _ref21.node;
|
|
9598
9575
|
|
|
9599
|
-
return React__default
|
|
9576
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9600
9577
|
},
|
|
9601
9578
|
blockTable: function blockTable(_ref22) {
|
|
9602
9579
|
var node = _ref22.node;
|
|
9603
|
-
return React__default
|
|
9580
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9604
9581
|
}
|
|
9605
9582
|
},
|
|
9606
9583
|
marks: {
|
|
9607
9584
|
superscript: function superscript(props) {
|
|
9608
|
-
return React__default
|
|
9585
|
+
return React__default.createElement(
|
|
9609
9586
|
'sup',
|
|
9610
9587
|
null,
|
|
9611
9588
|
props.children
|
|
9612
9589
|
);
|
|
9613
9590
|
},
|
|
9614
9591
|
subscript: function subscript(props) {
|
|
9615
|
-
return React__default
|
|
9592
|
+
return React__default.createElement(
|
|
9616
9593
|
'sub',
|
|
9617
9594
|
null,
|
|
9618
9595
|
props.children
|
|
@@ -9628,7 +9605,7 @@ var getSerializers = function getSerializers() {
|
|
|
9628
9605
|
if (href && href.charAt(0) === '#') {
|
|
9629
9606
|
var elementId = href.slice(1);
|
|
9630
9607
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9631
|
-
return React__default
|
|
9608
|
+
return React__default.createElement(
|
|
9632
9609
|
'a',
|
|
9633
9610
|
{ onClick: function onClick() {
|
|
9634
9611
|
return ScrollToElement(elementId);
|
|
@@ -9638,7 +9615,7 @@ var getSerializers = function getSerializers() {
|
|
|
9638
9615
|
}
|
|
9639
9616
|
|
|
9640
9617
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9641
|
-
return React__default
|
|
9618
|
+
return React__default.createElement(
|
|
9642
9619
|
'a',
|
|
9643
9620
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9644
9621
|
children
|
|
@@ -9646,7 +9623,7 @@ var getSerializers = function getSerializers() {
|
|
|
9646
9623
|
},
|
|
9647
9624
|
alignleft: function alignleft(_ref23) {
|
|
9648
9625
|
var children = _ref23.children;
|
|
9649
|
-
return React__default
|
|
9626
|
+
return React__default.createElement(
|
|
9650
9627
|
'div',
|
|
9651
9628
|
{ style: { textAlign: 'left' } },
|
|
9652
9629
|
children
|
|
@@ -9654,7 +9631,7 @@ var getSerializers = function getSerializers() {
|
|
|
9654
9631
|
},
|
|
9655
9632
|
alignright: function alignright(_ref24) {
|
|
9656
9633
|
var children = _ref24.children;
|
|
9657
|
-
return React__default
|
|
9634
|
+
return React__default.createElement(
|
|
9658
9635
|
'div',
|
|
9659
9636
|
{ style: { textAlign: 'right' } },
|
|
9660
9637
|
children
|
|
@@ -9662,7 +9639,7 @@ var getSerializers = function getSerializers() {
|
|
|
9662
9639
|
},
|
|
9663
9640
|
aligncenter: function aligncenter(_ref25) {
|
|
9664
9641
|
var children = _ref25.children;
|
|
9665
|
-
return React__default
|
|
9642
|
+
return React__default.createElement(
|
|
9666
9643
|
'div',
|
|
9667
9644
|
{ style: { textAlign: 'center' } },
|
|
9668
9645
|
children
|
|
@@ -9670,7 +9647,7 @@ var getSerializers = function getSerializers() {
|
|
|
9670
9647
|
},
|
|
9671
9648
|
alignjustify: function alignjustify(_ref26) {
|
|
9672
9649
|
var children = _ref26.children;
|
|
9673
|
-
return React__default
|
|
9650
|
+
return React__default.createElement(
|
|
9674
9651
|
'div',
|
|
9675
9652
|
{ style: { textAlign: 'justify' } },
|
|
9676
9653
|
children
|
|
@@ -9680,7 +9657,7 @@ var getSerializers = function getSerializers() {
|
|
|
9680
9657
|
var children = props.children,
|
|
9681
9658
|
color = props.mark.color;
|
|
9682
9659
|
|
|
9683
|
-
return React__default
|
|
9660
|
+
return React__default.createElement(
|
|
9684
9661
|
'span',
|
|
9685
9662
|
{ style: { color: color ? color.hex : null } },
|
|
9686
9663
|
children
|