@mjhls/mjh-framework 1.0.864 → 1.0.866-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -30
- package/dist/cjs/AD300x250x600.js +28 -30
- package/dist/cjs/AD728x90.js +31 -33
- package/dist/cjs/ADFloatingFooter.js +30 -32
- package/dist/cjs/ADFooter.js +12 -15
- package/dist/cjs/ADGutter.js +30 -32
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-7c09edba.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -32
- package/dist/cjs/ADSponsoredResources.js +30 -32
- package/dist/cjs/ADWebcast.js +30 -32
- package/dist/cjs/ADWelcome.js +31 -33
- package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-2e7effc7.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -31
- package/dist/cjs/AdSlot.js +33 -35
- package/dist/cjs/AdSlotsProvider.js +910 -20
- package/dist/cjs/AlgoliaSearch.js +14023 -60
- package/dist/cjs/AlphabeticList.js +23 -26
- package/dist/cjs/ArticleCarousel.js +19 -25
- package/dist/cjs/ArticleProgramLandingPage.js +60 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -43
- package/dist/cjs/ArticleSeriesListing.js +60 -62
- package/dist/cjs/Auth.js +1504 -682
- package/dist/cjs/AuthWrapper.js +266 -310
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -29
- package/dist/cjs/CMEDeck.js +82 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -36
- package/dist/cjs/Column3.js +57 -61
- package/dist/cjs/ConferenceArticleCard.js +25 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -99
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-14d2455c.js} +32 -34
- package/dist/cjs/EventsDeck.js +134 -143
- package/dist/cjs/ExternalResources.js +78 -80
- package/dist/cjs/Feature.js +27 -26
- package/dist/cjs/ForbesHero.js +40 -43
- package/dist/cjs/GridContent.js +232 -238
- package/dist/cjs/GridHero.js +42 -45
- package/dist/cjs/GroupDeck.js +57 -60
- package/dist/cjs/HamMagazine.js +130 -137
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +70 -72
- package/dist/cjs/HorizontalHero.js +28 -26
- package/dist/cjs/IssueContentDeck.js +71 -78
- package/dist/cjs/IssueDeck.js +70 -77
- package/dist/cjs/IssueLanding.js +65 -67
- package/dist/cjs/LeftNav.js +37 -40
- package/dist/cjs/MasterDeck.js +70 -72
- package/dist/cjs/MediaSeriesLanding.js +1093 -1186
- package/dist/cjs/NavDvm.js +72 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +136 -143
- package/dist/cjs/NavNative.js +128 -138
- package/dist/cjs/OncliveHero.js +22 -19
- package/dist/cjs/OncliveLargeHero.js +70 -73
- package/dist/cjs/PageFilter.js +12 -15
- package/dist/cjs/PartnerDetailListing.js +3917 -118
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -21
- package/dist/cjs/PubSection.js +41 -43
- package/dist/cjs/PubToc.js +13 -16
- package/dist/cjs/PublicationDeck.js +65 -67
- package/dist/cjs/PublicationLanding.js +129 -135
- package/dist/cjs/QueueDeckExpanded.js +309 -310
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +29 -27
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -22
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +37 -38
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-49b81b0b.js} +35 -36
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-650f6101.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -64
- package/dist/cjs/TaxonomyDescription.js +53 -55
- package/dist/cjs/TemplateNormal.js +72 -74
- package/dist/cjs/ThumbnailCard.js +24 -23
- package/dist/cjs/Ustream.js +28 -31
- package/dist/cjs/VerticalHero.js +19 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -79
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -52
- package/dist/cjs/VideoSeriesListing.js +77 -79
- package/dist/cjs/View.js +281 -284
- package/dist/cjs/YahooHero.js +39 -42
- package/dist/cjs/YoutubeGroup.js +73 -82
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-aa52fa1e.js} +14 -14
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-05795553.js} +9 -10
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/_object-sap-171b9ea5.js +16 -0
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-9bac8737.js} +5 -5
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-df19209d.js} +82 -84
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{_to-object-6de10e57.js → core.get-iterator-method-f3c44602.js} +247 -11
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/define-property-21887c62.js +20 -0
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-77a37684.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/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-eed4f016.js} +13 -13
- package/dist/cjs/faundadb.js +19 -21
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +18 -20
- package/dist/cjs/getRootDocGroup.js +6 -8
- package/dist/cjs/getSerializers.js +44 -45
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +6 -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-32097c80.js → index-59af05c4.js} +1089 -1094
- 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-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-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +164 -171
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-c2065b95.js → inherits-cba9c846.js} +26 -27
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-d207942e.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/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- 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-f6d4eaa8.js} +17 -19
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-bbc68047.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-c9b8a0d0.js} +12 -14
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-5f52cf64.js} +97 -98
- package/dist/cjs/urlFor.js +21 -4
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-9ebe112f.js} +4 -4
- 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-e34bf324.js} +8 -9
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -23
- package/dist/esm/AD300x250x600.js +22 -23
- package/dist/esm/AD728x90.js +25 -26
- package/dist/esm/ADFloatingFooter.js +21 -22
- package/dist/esm/ADFooter.js +4 -6
- package/dist/esm/ADGutter.js +21 -22
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-bfd129d9.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -22
- package/dist/esm/ADSponsoredResources.js +21 -22
- package/dist/esm/ADWebcast.js +21 -22
- package/dist/esm/ADWelcome.js +18 -19
- package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-0489335b.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -8
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +907 -16
- package/dist/esm/AlgoliaSearch.js +13993 -29
- package/dist/esm/AlphabeticList.js +8 -10
- package/dist/esm/ArticleCarousel.js +13 -18
- package/dist/esm/ArticleProgramLandingPage.js +48 -49
- package/dist/esm/ArticleSeriesLandingPage.js +31 -32
- package/dist/esm/ArticleSeriesListing.js +33 -34
- package/dist/esm/Auth.js +1418 -592
- package/dist/esm/AuthWrapper.js +244 -287
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -7
- package/dist/esm/CMEDeck.js +23 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -21
- package/dist/esm/Column3.js +37 -38
- package/dist/esm/ConferenceArticleCard.js +10 -7
- package/dist/esm/DeckContent.js +48 -49
- package/dist/esm/DeckQueue.js +48 -48
- package/dist/esm/{Dfp-be030f2a.js → Dfp-f867d061.js} +13 -14
- package/dist/esm/EventsDeck.js +48 -50
- package/dist/esm/ExternalResources.js +46 -47
- package/dist/esm/Feature.js +7 -4
- package/dist/esm/ForbesHero.js +10 -12
- package/dist/esm/GridContent.js +89 -90
- package/dist/esm/GridHero.js +11 -13
- package/dist/esm/GroupDeck.js +12 -14
- package/dist/esm/HamMagazine.js +28 -30
- package/dist/esm/Hero.js +7 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +45 -46
- package/dist/esm/HorizontalHero.js +8 -5
- package/dist/esm/IssueContentDeck.js +25 -27
- package/dist/esm/IssueDeck.js +35 -37
- package/dist/esm/IssueLanding.js +54 -55
- package/dist/esm/LeftNav.js +20 -21
- package/dist/esm/MasterDeck.js +35 -36
- package/dist/esm/MediaSeriesLanding.js +643 -733
- package/dist/esm/NavDvm.js +14 -16
- package/dist/esm/NavMagazine.js +32 -34
- package/dist/esm/NavNative.js +32 -34
- package/dist/esm/OncliveHero.js +8 -4
- package/dist/esm/OncliveLargeHero.js +11 -13
- package/dist/esm/PageFilter.js +4 -6
- package/dist/esm/PartnerDetailListing.js +3863 -64
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -6
- package/dist/esm/PubSection.js +33 -34
- package/dist/esm/PubToc.js +6 -8
- package/dist/esm/PublicationDeck.js +27 -24
- package/dist/esm/PublicationLanding.js +47 -49
- package/dist/esm/QueueDeckExpanded.js +37 -38
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +10 -7
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -8
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-d555a1d2.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -15
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-d7dec0c2.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -25
- package/dist/esm/TaxonomyDescription.js +44 -45
- package/dist/esm/TemplateNormal.js +48 -49
- package/dist/esm/ThumbnailCard.js +10 -7
- package/dist/esm/Ustream.js +12 -14
- package/dist/esm/VerticalHero.js +6 -3
- package/dist/esm/VideoProgramLandingPage.js +52 -53
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -9
- package/dist/esm/VideoSeriesLandingPage.js +37 -38
- package/dist/esm/VideoSeriesListing.js +34 -35
- package/dist/esm/View.js +109 -108
- package/dist/esm/YahooHero.js +13 -15
- package/dist/esm/YoutubeGroup.js +35 -43
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-130ee549.js} +7 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-7bf8bc4d.js} +30 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{_to-object-b50e61c3.js → core.get-iterator-method-86d4db69.js} +238 -9
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-d7d9b577.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/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +12 -14
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +44 -45
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +6 -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-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-5e84f9cd.js → index-efc23b2b.js} +664 -659
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -126
- package/dist/esm/{inherits-a41fe93f.js → inherits-2409637d.js} +18 -19
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/keys-69989821.js +23 -0
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- 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-67a08c9c.js} +12 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-32282905.js} +7 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-c05a82ba.js} +35 -36
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-f8f967cd.js} +2 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_object-sap-a175b4a9.js +0 -16
- package/dist/cjs/core.get-iterator-method-f474eacc.js +0 -39
- package/dist/cjs/define-property-c88be878.js +0 -20
- package/dist/cjs/es6.string.iterator-c2573ffd.js +0 -210
- 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/core.get-iterator-method-133dfacd.js +0 -36
- package/dist/esm/define-property-fe54dc9f.js +0 -18
- package/dist/esm/es6.string.iterator-bc33758b.js +0 -201
- package/dist/esm/keys-7a3adabf.js +0 -23
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,65 +1,55 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
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 core_getIteratorMethod = require('./core.get-iterator-method-f3c44602.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-c9b8a0d0.js');
|
|
8
|
+
var _extends$1 = require('./extends-eed4f016.js');
|
|
9
|
+
var inherits$1 = require('./inherits-cba9c846.js');
|
|
10
|
+
var _typeof = require('./typeof-5f52cf64.js');
|
|
4
11
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var urlFor = require('./urlFor.js');
|
|
8
|
-
var index = require('./index-0e4427c8.js');
|
|
9
|
-
var Router = require('next/router');
|
|
10
|
-
var index$1 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
11
14
|
var PropTypes = require('prop-types');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
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 slicedToArray = require('./slicedToArray-f6d4eaa8.js');
|
|
22
|
+
var urlFor = require('./urlFor.js');
|
|
23
|
+
var index$2 = require('./index-96b3db50.js');
|
|
24
|
+
var main = require('./main-02daeefe.js');
|
|
25
|
+
var entities = require('./entities-310b46ee.js');
|
|
15
26
|
var Segment = require('./Segment.js');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
27
|
+
var Beam = require('./Beam.js');
|
|
28
|
+
var AdSlot = require('./AdSlot.js');
|
|
29
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
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
|
-
var
|
|
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-c2065b95.js');
|
|
35
|
-
var index_esm = require('./index.esm-00a6aade.js');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
var OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
38
|
-
var Tooltip = require('react-bootstrap/Tooltip');
|
|
39
|
-
var Popover = require('react-bootstrap/Popover');
|
|
40
|
-
|
|
41
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
42
|
-
|
|
43
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
44
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
45
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
46
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
47
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
48
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
49
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
50
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
51
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
52
|
-
var OverlayTrigger__default = /*#__PURE__*/_interopDefaultLegacy(OverlayTrigger);
|
|
53
|
-
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
54
|
-
var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
39
|
+
var _objectToArray = require('./_object-to-array-9bac8737.js');
|
|
40
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
42
|
+
var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
|
|
43
|
+
var Tooltip = _interopDefault(require('react-bootstrap/Tooltip'));
|
|
44
|
+
var Popover = _interopDefault(require('react-bootstrap/Popover'));
|
|
55
45
|
|
|
56
46
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
57
47
|
var pageNumber = selectedIndex + 1;
|
|
58
48
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
59
|
-
Router__default
|
|
49
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
60
50
|
};
|
|
61
51
|
|
|
62
|
-
var Slideshow
|
|
52
|
+
var Slideshow = function Slideshow(_ref) {
|
|
63
53
|
var slides = _ref.slides,
|
|
64
54
|
client = _ref.client,
|
|
65
55
|
pageview = _ref.pageview;
|
|
@@ -86,27 +76,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
86
76
|
if (pageview) pageview(router.asPath);
|
|
87
77
|
}, [router]);
|
|
88
78
|
|
|
89
|
-
return React__default
|
|
79
|
+
return React__default.createElement(
|
|
90
80
|
'div',
|
|
91
81
|
{ className: 'mt-3 mb-3' },
|
|
92
|
-
React__default
|
|
82
|
+
React__default.createElement(
|
|
93
83
|
reactBootstrap.Carousel,
|
|
94
84
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
95
85
|
return onChangeSlide(selectedIndex, router);
|
|
96
86
|
}, interval: null },
|
|
97
87
|
slides && slides.map(function (slide) {
|
|
98
|
-
return React__default
|
|
88
|
+
return React__default.createElement(
|
|
99
89
|
reactBootstrap.Carousel.Item,
|
|
100
90
|
{ key: slide._key },
|
|
101
|
-
React__default
|
|
91
|
+
React__default.createElement(
|
|
102
92
|
'picture',
|
|
103
93
|
null,
|
|
104
|
-
React__default
|
|
105
|
-
React__default
|
|
106
|
-
React__default
|
|
107
|
-
React__default
|
|
94
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
95
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
96
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
97
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
108
98
|
),
|
|
109
|
-
slide.caption && React__default
|
|
99
|
+
slide.caption && React__default.createElement(
|
|
110
100
|
'p',
|
|
111
101
|
{ className: 'p-2' },
|
|
112
102
|
slide.caption
|
|
@@ -117,18 +107,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
117
107
|
);
|
|
118
108
|
};
|
|
119
109
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
110
|
+
var isArray = Array.isArray;
|
|
111
|
+
var keyList = Object.keys;
|
|
112
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
123
113
|
|
|
124
114
|
var fastDeepEqual = function equal(a, b) {
|
|
125
115
|
if (a === b) return true;
|
|
126
116
|
|
|
127
117
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
128
|
-
|
|
118
|
+
var arrA = isArray(a)
|
|
119
|
+
, arrB = isArray(b)
|
|
120
|
+
, i
|
|
121
|
+
, length
|
|
122
|
+
, key;
|
|
129
123
|
|
|
130
|
-
|
|
131
|
-
if (Array.isArray(a)) {
|
|
124
|
+
if (arrA && arrB) {
|
|
132
125
|
length = a.length;
|
|
133
126
|
if (length != b.length) return false;
|
|
134
127
|
for (i = length; i-- !== 0;)
|
|
@@ -136,29 +129,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
136
129
|
return true;
|
|
137
130
|
}
|
|
138
131
|
|
|
132
|
+
if (arrA != arrB) return false;
|
|
139
133
|
|
|
134
|
+
var dateA = a instanceof Date
|
|
135
|
+
, dateB = b instanceof Date;
|
|
136
|
+
if (dateA != dateB) return false;
|
|
137
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
140
138
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
if (
|
|
139
|
+
var regexpA = a instanceof RegExp
|
|
140
|
+
, regexpB = b instanceof RegExp;
|
|
141
|
+
if (regexpA != regexpB) return false;
|
|
142
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
144
143
|
|
|
145
|
-
keys =
|
|
144
|
+
var keys = keyList(a);
|
|
146
145
|
length = keys.length;
|
|
147
|
-
|
|
146
|
+
|
|
147
|
+
if (length !== keyList(b).length)
|
|
148
|
+
return false;
|
|
148
149
|
|
|
149
150
|
for (i = length; i-- !== 0;)
|
|
150
|
-
if (!
|
|
151
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
151
152
|
|
|
152
153
|
for (i = length; i-- !== 0;) {
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
key = keys[i];
|
|
155
155
|
if (!equal(a[key], b[key])) return false;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
return true;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// true if both NaN, false otherwise
|
|
162
161
|
return a!==a && b!==b;
|
|
163
162
|
};
|
|
164
163
|
|
|
@@ -696,14 +695,14 @@ function coerce(val) {
|
|
|
696
695
|
return val;
|
|
697
696
|
}
|
|
698
697
|
});
|
|
699
|
-
debug.coerce;
|
|
700
|
-
debug.disable;
|
|
701
|
-
debug.enable;
|
|
702
|
-
debug.enabled;
|
|
703
|
-
debug.humanize;
|
|
704
|
-
debug.names;
|
|
705
|
-
debug.skips;
|
|
706
|
-
debug.formatters;
|
|
698
|
+
var debug_1 = debug.coerce;
|
|
699
|
+
var debug_2 = debug.disable;
|
|
700
|
+
var debug_3 = debug.enable;
|
|
701
|
+
var debug_4 = debug.enabled;
|
|
702
|
+
var debug_5 = debug.humanize;
|
|
703
|
+
var debug_6 = debug.names;
|
|
704
|
+
var debug_7 = debug.skips;
|
|
705
|
+
var debug_8 = debug.formatters;
|
|
707
706
|
|
|
708
707
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
709
708
|
/**
|
|
@@ -892,13 +891,13 @@ function localstorage() {
|
|
|
892
891
|
} catch (e) {}
|
|
893
892
|
}
|
|
894
893
|
});
|
|
895
|
-
browser.log;
|
|
896
|
-
browser.formatArgs;
|
|
897
|
-
browser.save;
|
|
898
|
-
browser.load;
|
|
899
|
-
browser.useColors;
|
|
900
|
-
browser.storage;
|
|
901
|
-
browser.colors;
|
|
894
|
+
var browser_1 = browser.log;
|
|
895
|
+
var browser_2 = browser.formatArgs;
|
|
896
|
+
var browser_3 = browser.save;
|
|
897
|
+
var browser_4 = browser.load;
|
|
898
|
+
var browser_5 = browser.useColors;
|
|
899
|
+
var browser_6 = browser.storage;
|
|
900
|
+
var browser_7 = browser.colors;
|
|
902
901
|
|
|
903
902
|
// MIT lisence
|
|
904
903
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1173,14 +1172,14 @@ function init (debug) {
|
|
|
1173
1172
|
|
|
1174
1173
|
exports.enable(load());
|
|
1175
1174
|
});
|
|
1176
|
-
node.init;
|
|
1177
|
-
node.log;
|
|
1178
|
-
node.formatArgs;
|
|
1179
|
-
node.save;
|
|
1180
|
-
node.load;
|
|
1181
|
-
node.useColors;
|
|
1182
|
-
node.colors;
|
|
1183
|
-
node.inspectOpts;
|
|
1175
|
+
var node_1 = node.init;
|
|
1176
|
+
var node_2 = node.log;
|
|
1177
|
+
var node_3 = node.formatArgs;
|
|
1178
|
+
var node_4 = node.save;
|
|
1179
|
+
var node_5 = node.load;
|
|
1180
|
+
var node_6 = node.useColors;
|
|
1181
|
+
var node_7 = node.colors;
|
|
1182
|
+
var node_8 = node.inspectOpts;
|
|
1184
1183
|
|
|
1185
1184
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1186
1185
|
/**
|
|
@@ -1581,239 +1580,199 @@ module.exports = exports['default'];
|
|
|
1581
1580
|
|
|
1582
1581
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1583
1582
|
|
|
1584
|
-
function
|
|
1585
|
-
|
|
1586
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1587
|
-
|
|
1588
|
-
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); } }
|
|
1589
|
-
|
|
1590
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1591
|
-
|
|
1592
|
-
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); }
|
|
1583
|
+
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; }; }();
|
|
1593
1584
|
|
|
1594
|
-
function
|
|
1595
|
-
|
|
1596
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1597
|
-
|
|
1598
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1585
|
+
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; };
|
|
1599
1586
|
|
|
1600
|
-
function
|
|
1601
|
-
|
|
1602
|
-
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; } }
|
|
1603
|
-
|
|
1604
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1587
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1605
1588
|
|
|
1606
|
-
function
|
|
1589
|
+
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; }
|
|
1607
1590
|
|
|
1608
|
-
function
|
|
1591
|
+
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; }
|
|
1609
1592
|
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
*
|
|
1613
|
-
*
|
|
1614
|
-
* @param {Object}
|
|
1615
|
-
* @param {Object} props
|
|
1593
|
+
/**
|
|
1594
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1595
|
+
*
|
|
1596
|
+
* @param {Object} prevProps
|
|
1597
|
+
* @param {Object} props
|
|
1616
1598
|
*/
|
|
1617
|
-
|
|
1618
1599
|
function shouldUpdateVideo(prevProps, props) {
|
|
1619
1600
|
// A changing video should always trigger an update
|
|
1620
1601
|
if (prevProps.videoId !== props.videoId) {
|
|
1621
1602
|
return true;
|
|
1622
|
-
}
|
|
1623
|
-
// update.
|
|
1624
|
-
|
|
1603
|
+
}
|
|
1625
1604
|
|
|
1605
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1606
|
+
// update.
|
|
1626
1607
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1627
1608
|
var vars = props.opts.playerVars || {};
|
|
1609
|
+
|
|
1628
1610
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1629
1611
|
}
|
|
1630
|
-
/**
|
|
1631
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1632
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1633
|
-
* player reset is necessary.
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object} opts
|
|
1636
|
-
*/
|
|
1637
|
-
|
|
1638
1612
|
|
|
1613
|
+
/**
|
|
1614
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1615
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
+
* player reset is necessary.
|
|
1617
|
+
*
|
|
1618
|
+
* @param {Object} opts
|
|
1619
|
+
*/
|
|
1639
1620
|
function filterResetOptions(opts) {
|
|
1640
|
-
return
|
|
1641
|
-
playerVars:
|
|
1621
|
+
return _extends({}, opts, {
|
|
1622
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1642
1623
|
autoplay: 0,
|
|
1643
1624
|
start: 0,
|
|
1644
1625
|
end: 0
|
|
1645
|
-
}
|
|
1626
|
+
})
|
|
1646
1627
|
});
|
|
1647
1628
|
}
|
|
1648
|
-
/**
|
|
1649
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1650
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1651
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1652
|
-
* those.
|
|
1653
|
-
*
|
|
1654
|
-
* @param {Object} prevProps
|
|
1655
|
-
* @param {Object} props
|
|
1656
|
-
*/
|
|
1657
|
-
|
|
1658
1629
|
|
|
1630
|
+
/**
|
|
1631
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1632
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1633
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1634
|
+
* those.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {Object} prevProps
|
|
1637
|
+
* @param {Object} props
|
|
1638
|
+
*/
|
|
1659
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1660
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1661
1641
|
}
|
|
1662
|
-
/**
|
|
1663
|
-
* Check whether a props change should result in an id or className update.
|
|
1664
|
-
*
|
|
1665
|
-
* @param {Object} prevProps
|
|
1666
|
-
* @param {Object} props
|
|
1667
|
-
*/
|
|
1668
|
-
|
|
1669
1642
|
|
|
1643
|
+
/**
|
|
1644
|
+
* Check whether a props change should result in an id or className update.
|
|
1645
|
+
*
|
|
1646
|
+
* @param {Object} prevProps
|
|
1647
|
+
* @param {Object} props
|
|
1648
|
+
*/
|
|
1670
1649
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1671
1650
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1672
1651
|
}
|
|
1673
1652
|
|
|
1674
|
-
var YouTube =
|
|
1653
|
+
var YouTube = function (_React$Component) {
|
|
1675
1654
|
_inherits(YouTube, _React$Component);
|
|
1676
1655
|
|
|
1677
|
-
var _super = _createSuper(YouTube);
|
|
1678
|
-
|
|
1679
|
-
/**
|
|
1680
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1681
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1682
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1683
|
-
*/
|
|
1684
1656
|
function YouTube(props) {
|
|
1685
|
-
var _this;
|
|
1686
|
-
|
|
1687
1657
|
_classCallCheck(this, YouTube);
|
|
1688
1658
|
|
|
1689
|
-
_this =
|
|
1659
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1690
1660
|
|
|
1691
|
-
|
|
1661
|
+
_this.onPlayerReady = function (event) {
|
|
1692
1662
|
return _this.props.onReady(event);
|
|
1693
|
-
}
|
|
1663
|
+
};
|
|
1694
1664
|
|
|
1695
|
-
|
|
1665
|
+
_this.onPlayerError = function (event) {
|
|
1696
1666
|
return _this.props.onError(event);
|
|
1697
|
-
}
|
|
1667
|
+
};
|
|
1698
1668
|
|
|
1699
|
-
|
|
1669
|
+
_this.onPlayerStateChange = function (event) {
|
|
1700
1670
|
_this.props.onStateChange(event);
|
|
1701
|
-
|
|
1702
1671
|
switch (event.data) {
|
|
1672
|
+
|
|
1703
1673
|
case YouTube.PlayerState.ENDED:
|
|
1704
1674
|
_this.props.onEnd(event);
|
|
1705
|
-
|
|
1706
1675
|
break;
|
|
1707
1676
|
|
|
1708
1677
|
case YouTube.PlayerState.PLAYING:
|
|
1709
1678
|
_this.props.onPlay(event);
|
|
1710
|
-
|
|
1711
1679
|
break;
|
|
1712
1680
|
|
|
1713
1681
|
case YouTube.PlayerState.PAUSED:
|
|
1714
1682
|
_this.props.onPause(event);
|
|
1715
|
-
|
|
1716
1683
|
break;
|
|
1717
1684
|
}
|
|
1718
|
-
}
|
|
1685
|
+
};
|
|
1719
1686
|
|
|
1720
|
-
|
|
1687
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1721
1688
|
return _this.props.onPlaybackRateChange(event);
|
|
1722
|
-
}
|
|
1689
|
+
};
|
|
1723
1690
|
|
|
1724
|
-
|
|
1691
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1725
1692
|
return _this.props.onPlaybackQualityChange(event);
|
|
1726
|
-
}
|
|
1693
|
+
};
|
|
1727
1694
|
|
|
1728
|
-
|
|
1695
|
+
_this.createPlayer = function () {
|
|
1729
1696
|
// do not attempt to create a player server-side, it won't work
|
|
1730
|
-
if (typeof document === 'undefined') return;
|
|
1731
|
-
|
|
1732
|
-
var playerOpts =
|
|
1697
|
+
if (typeof document === 'undefined') return;
|
|
1698
|
+
// create player
|
|
1699
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1733
1700
|
// preload the `videoId` video if one is already given
|
|
1734
1701
|
videoId: _this.props.videoId
|
|
1735
1702
|
});
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1703
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1704
|
+
// attach event handlers
|
|
1739
1705
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1740
|
-
|
|
1741
1706
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1742
|
-
|
|
1743
1707
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1744
|
-
|
|
1745
1708
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1746
|
-
|
|
1747
1709
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1748
|
-
}
|
|
1710
|
+
};
|
|
1749
1711
|
|
|
1750
|
-
|
|
1712
|
+
_this.resetPlayer = function () {
|
|
1751
1713
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1752
|
-
}
|
|
1714
|
+
};
|
|
1753
1715
|
|
|
1754
|
-
|
|
1716
|
+
_this.updatePlayer = function () {
|
|
1755
1717
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1756
1718
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1757
1719
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1758
1720
|
});
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1762
|
-
return _this.internalPlayer;
|
|
1763
|
-
});
|
|
1721
|
+
};
|
|
1764
1722
|
|
|
1765
|
-
|
|
1723
|
+
_this.updateVideo = function () {
|
|
1766
1724
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1767
1725
|
_this.internalPlayer.stopVideo();
|
|
1768
|
-
|
|
1769
1726
|
return;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1727
|
+
}
|
|
1772
1728
|
|
|
1729
|
+
// set queueing options
|
|
1773
1730
|
var autoplay = false;
|
|
1774
1731
|
var opts = {
|
|
1775
1732
|
videoId: _this.props.videoId
|
|
1776
1733
|
};
|
|
1777
|
-
|
|
1778
1734
|
if ('playerVars' in _this.props.opts) {
|
|
1779
1735
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1780
|
-
|
|
1781
1736
|
if ('start' in _this.props.opts.playerVars) {
|
|
1782
1737
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1783
1738
|
}
|
|
1784
|
-
|
|
1785
1739
|
if ('end' in _this.props.opts.playerVars) {
|
|
1786
1740
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1787
1741
|
}
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1742
|
+
}
|
|
1790
1743
|
|
|
1744
|
+
// if autoplay is enabled loadVideoById
|
|
1791
1745
|
if (autoplay) {
|
|
1792
1746
|
_this.internalPlayer.loadVideoById(opts);
|
|
1793
|
-
|
|
1794
1747
|
return;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1748
|
+
}
|
|
1749
|
+
// default behaviour just cues the video
|
|
1798
1750
|
_this.internalPlayer.cueVideoById(opts);
|
|
1799
|
-
}
|
|
1751
|
+
};
|
|
1800
1752
|
|
|
1801
|
-
|
|
1753
|
+
_this.refContainer = function (container) {
|
|
1802
1754
|
_this.container = container;
|
|
1803
|
-
}
|
|
1755
|
+
};
|
|
1804
1756
|
|
|
1805
1757
|
_this.container = null;
|
|
1806
1758
|
_this.internalPlayer = null;
|
|
1807
1759
|
return _this;
|
|
1808
1760
|
}
|
|
1809
1761
|
|
|
1762
|
+
/**
|
|
1763
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1764
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1765
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1766
|
+
*/
|
|
1767
|
+
|
|
1768
|
+
|
|
1810
1769
|
_createClass(YouTube, [{
|
|
1811
|
-
key:
|
|
1770
|
+
key: 'componentDidMount',
|
|
1812
1771
|
value: function componentDidMount() {
|
|
1813
1772
|
this.createPlayer();
|
|
1814
1773
|
}
|
|
1815
1774
|
}, {
|
|
1816
|
-
key:
|
|
1775
|
+
key: 'componentDidUpdate',
|
|
1817
1776
|
value: function componentDidUpdate(prevProps) {
|
|
1818
1777
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1819
1778
|
this.updatePlayer();
|
|
@@ -1828,70 +1787,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1828
1787
|
}
|
|
1829
1788
|
}
|
|
1830
1789
|
}, {
|
|
1831
|
-
key:
|
|
1790
|
+
key: 'componentWillUnmount',
|
|
1832
1791
|
value: function componentWillUnmount() {
|
|
1833
|
-
/**
|
|
1834
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1835
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1836
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1837
|
-
* this method isn't quick enough to reset the container element.
|
|
1792
|
+
/**
|
|
1793
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1794
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1795
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1796
|
+
* this method isn't quick enough to reset the container element.
|
|
1838
1797
|
*/
|
|
1839
1798
|
this.internalPlayer.destroy();
|
|
1840
1799
|
}
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1803
|
+
*
|
|
1804
|
+
* @param {Object} event
|
|
1805
|
+
* @param {Object} target - player object
|
|
1806
|
+
*/
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1811
|
+
*
|
|
1812
|
+
* @param {Object} event
|
|
1813
|
+
* @param {Integer} data - error type
|
|
1814
|
+
* @param {Object} target - player object
|
|
1815
|
+
*/
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1820
|
+
*
|
|
1821
|
+
* @param {Object} event
|
|
1822
|
+
* @param {Integer} data - status change type
|
|
1823
|
+
* @param {Object} target - actual YT player
|
|
1824
|
+
*/
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1829
|
+
*
|
|
1830
|
+
* @param {Object} event
|
|
1831
|
+
* @param {Float} data - playback rate
|
|
1832
|
+
* @param {Object} target - actual YT player
|
|
1833
|
+
*/
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1838
|
+
*
|
|
1839
|
+
* @param {Object} event
|
|
1840
|
+
* @param {String} data - playback quality
|
|
1841
|
+
* @param {Object} target - actual YT player
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1847
|
+
*/
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1857
|
+
* React should update this automatically but since the Youtube Player API
|
|
1858
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1859
|
+
*/
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1864
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1865
|
+
* Youtube Player API methods to update the video.
|
|
1846
1866
|
*/
|
|
1847
1867
|
|
|
1848
1868
|
}, {
|
|
1849
|
-
key:
|
|
1869
|
+
key: 'render',
|
|
1850
1870
|
value: function render() {
|
|
1851
|
-
return
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
id: this.props.id,
|
|
1855
|
-
|
|
1856
|
-
ref: this.refContainer
|
|
1857
|
-
}));
|
|
1871
|
+
return React__default.createElement(
|
|
1872
|
+
'div',
|
|
1873
|
+
{ className: this.props.containerClassName },
|
|
1874
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1875
|
+
);
|
|
1858
1876
|
}
|
|
1859
1877
|
}]);
|
|
1860
1878
|
|
|
1861
1879
|
return YouTube;
|
|
1862
|
-
}(React__default
|
|
1863
|
-
|
|
1864
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1865
|
-
UNSTARTED: -1,
|
|
1866
|
-
ENDED: 0,
|
|
1867
|
-
PLAYING: 1,
|
|
1868
|
-
PAUSED: 2,
|
|
1869
|
-
BUFFERING: 3,
|
|
1870
|
-
CUED: 5
|
|
1871
|
-
});
|
|
1880
|
+
}(React__default.Component);
|
|
1872
1881
|
|
|
1873
1882
|
YouTube.propTypes = {
|
|
1874
|
-
videoId: PropTypes__default
|
|
1883
|
+
videoId: PropTypes__default.string,
|
|
1884
|
+
|
|
1875
1885
|
// custom ID for player element
|
|
1876
|
-
id: PropTypes__default
|
|
1886
|
+
id: PropTypes__default.string,
|
|
1887
|
+
|
|
1877
1888
|
// custom class name for player element
|
|
1878
|
-
className: PropTypes__default
|
|
1889
|
+
className: PropTypes__default.string,
|
|
1879
1890
|
// custom class name for player container element
|
|
1880
|
-
containerClassName: PropTypes__default
|
|
1891
|
+
containerClassName: PropTypes__default.string,
|
|
1892
|
+
|
|
1881
1893
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1882
|
-
opts: PropTypes__default
|
|
1894
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1895
|
+
|
|
1883
1896
|
// event subscriptions
|
|
1884
|
-
onReady: PropTypes__default
|
|
1885
|
-
onError: PropTypes__default
|
|
1886
|
-
onPlay: PropTypes__default
|
|
1887
|
-
onPause: PropTypes__default
|
|
1888
|
-
onEnd: PropTypes__default
|
|
1889
|
-
onStateChange: PropTypes__default
|
|
1890
|
-
onPlaybackRateChange: PropTypes__default
|
|
1891
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1897
|
+
onReady: PropTypes__default.func,
|
|
1898
|
+
onError: PropTypes__default.func,
|
|
1899
|
+
onPlay: PropTypes__default.func,
|
|
1900
|
+
onPause: PropTypes__default.func,
|
|
1901
|
+
onEnd: PropTypes__default.func,
|
|
1902
|
+
onStateChange: PropTypes__default.func,
|
|
1903
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1904
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1892
1905
|
};
|
|
1893
1906
|
YouTube.defaultProps = {
|
|
1894
|
-
videoId: null,
|
|
1895
1907
|
id: null,
|
|
1896
1908
|
className: null,
|
|
1897
1909
|
opts: {},
|
|
@@ -1905,12 +1917,20 @@ YouTube.defaultProps = {
|
|
|
1905
1917
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1906
1918
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1907
1919
|
};
|
|
1920
|
+
YouTube.PlayerState = {
|
|
1921
|
+
UNSTARTED: -1,
|
|
1922
|
+
ENDED: 0,
|
|
1923
|
+
PLAYING: 1,
|
|
1924
|
+
PAUSED: 2,
|
|
1925
|
+
BUFFERING: 3,
|
|
1926
|
+
CUED: 5
|
|
1927
|
+
};
|
|
1908
1928
|
|
|
1909
1929
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1910
1930
|
var url = _ref.url,
|
|
1911
1931
|
autoplay = _ref.autoplay;
|
|
1912
1932
|
|
|
1913
|
-
var id = index$
|
|
1933
|
+
var id = index$3.getYoutubeId(url);
|
|
1914
1934
|
|
|
1915
1935
|
var _useState = React.useState(false),
|
|
1916
1936
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1943,8 +1963,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1943
1963
|
var duration = player.getDuration();
|
|
1944
1964
|
var queue = Math.floor(duration / 10);
|
|
1945
1965
|
var segment = Math.floor(current / queue);
|
|
1946
|
-
Beam.report_beam_video('Ready', main.
|
|
1947
|
-
Segment.report_video_event('Video Ready', main.
|
|
1966
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
1967
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1948
1968
|
};
|
|
1949
1969
|
|
|
1950
1970
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1954,8 +1974,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1954
1974
|
var segment = Math.floor(current / queue);
|
|
1955
1975
|
|
|
1956
1976
|
if (!queueProgress.includes(segment)) {
|
|
1957
|
-
Beam.report_beam_video('Segment', main.
|
|
1958
|
-
Segment.report_video_event('Video Segment', main.
|
|
1977
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
1978
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1959
1979
|
queueProgress.push(segment);
|
|
1960
1980
|
}
|
|
1961
1981
|
};
|
|
@@ -1968,8 +1988,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1968
1988
|
var queue = Math.floor(duration / 10);
|
|
1969
1989
|
var segment = Math.floor(current / queue);
|
|
1970
1990
|
|
|
1971
|
-
Beam.report_beam_video('Play', main.
|
|
1972
|
-
Segment.report_video_event('Video Play', main.
|
|
1991
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
1992
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1973
1993
|
|
|
1974
1994
|
if (!playReported) {
|
|
1975
1995
|
setPlayReported(true);
|
|
@@ -1988,8 +2008,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1988
2008
|
var queue = Math.floor(duration / 10);
|
|
1989
2009
|
var segment = Math.floor(current / queue);
|
|
1990
2010
|
|
|
1991
|
-
Beam.report_beam_video('End', main.
|
|
1992
|
-
Segment.report_video_event('Video End', main.
|
|
2011
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
2012
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1993
2013
|
setEndReported(true);
|
|
1994
2014
|
clearInterval(intervalID);
|
|
1995
2015
|
}
|
|
@@ -2002,15 +2022,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2002
2022
|
var queue = Math.floor(duration / 10);
|
|
2003
2023
|
var segment = Math.floor(current / queue);
|
|
2004
2024
|
|
|
2005
|
-
Beam.report_beam_video('Pause', main.
|
|
2006
|
-
Segment.report_video_event('Video Pause', main.
|
|
2025
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
2026
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2007
2027
|
};
|
|
2008
2028
|
|
|
2009
|
-
return React__default
|
|
2029
|
+
return React__default.createElement(
|
|
2010
2030
|
'div',
|
|
2011
2031
|
{ id: 'fluid-video-container' },
|
|
2012
|
-
React__default
|
|
2013
|
-
React__default
|
|
2032
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2033
|
+
React__default.createElement(
|
|
2014
2034
|
'style',
|
|
2015
2035
|
{ jsx: 'true' },
|
|
2016
2036
|
'\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 '
|
|
@@ -2023,20 +2043,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2023
2043
|
content = _ref.content,
|
|
2024
2044
|
getSerializers = _ref.getSerializers;
|
|
2025
2045
|
|
|
2026
|
-
return React__default
|
|
2046
|
+
return React__default.createElement(
|
|
2027
2047
|
'article',
|
|
2028
2048
|
{ className: 'sidebar' },
|
|
2029
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2030
2050
|
'div',
|
|
2031
2051
|
null,
|
|
2032
|
-
React__default
|
|
2052
|
+
React__default.createElement(
|
|
2033
2053
|
'h3',
|
|
2034
2054
|
null,
|
|
2035
2055
|
caption
|
|
2036
2056
|
),
|
|
2037
|
-
React__default
|
|
2057
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2038
2058
|
),
|
|
2039
|
-
React__default
|
|
2059
|
+
React__default.createElement(
|
|
2040
2060
|
'style',
|
|
2041
2061
|
{ jsx: 'true' },
|
|
2042
2062
|
'\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 '
|
|
@@ -2047,18 +2067,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2047
2067
|
var TableShow = function TableShow(_ref) {
|
|
2048
2068
|
var rows = _ref.rows;
|
|
2049
2069
|
|
|
2050
|
-
return React__default
|
|
2070
|
+
return React__default.createElement(
|
|
2051
2071
|
reactBootstrap.Table,
|
|
2052
2072
|
{ bordered: true, hover: true, responsive: true },
|
|
2053
|
-
React__default
|
|
2073
|
+
React__default.createElement(
|
|
2054
2074
|
'tbody',
|
|
2055
2075
|
null,
|
|
2056
2076
|
rows && rows.map(function (row) {
|
|
2057
|
-
return React__default
|
|
2077
|
+
return React__default.createElement(
|
|
2058
2078
|
'tr',
|
|
2059
2079
|
{ key: row._key },
|
|
2060
2080
|
row.cells && row.cells.map(function (cell, index) {
|
|
2061
|
-
return cell && React__default
|
|
2081
|
+
return cell && React__default.createElement(
|
|
2062
2082
|
'td',
|
|
2063
2083
|
{ key: index },
|
|
2064
2084
|
cell
|
|
@@ -2070,6 +2090,27 @@ var TableShow = function TableShow(_ref) {
|
|
|
2070
2090
|
);
|
|
2071
2091
|
};
|
|
2072
2092
|
|
|
2093
|
+
var urlForFile = function urlForFile(_ref) {
|
|
2094
|
+
var _ref$asset = _ref.asset,
|
|
2095
|
+
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
2096
|
+
var url = asset.url,
|
|
2097
|
+
originalFilename = asset.originalFilename;
|
|
2098
|
+
|
|
2099
|
+
// Appending file name in URL
|
|
2100
|
+
|
|
2101
|
+
if (url && originalFilename) {
|
|
2102
|
+
var _url$split = url.split('?'),
|
|
2103
|
+
_url$split2 = slicedToArray._slicedToArray(_url$split, 2),
|
|
2104
|
+
path = _url$split2[0],
|
|
2105
|
+
queryString = _url$split2[1];
|
|
2106
|
+
|
|
2107
|
+
originalFilename = encodeURIComponent(originalFilename);
|
|
2108
|
+
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
return url;
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2073
2114
|
var Media = function Media(_ref) {
|
|
2074
2115
|
var node = _ref.node,
|
|
2075
2116
|
client = _ref.client;
|
|
@@ -2156,25 +2197,25 @@ var Media = function Media(_ref) {
|
|
|
2156
2197
|
margin: imageMargin
|
|
2157
2198
|
};
|
|
2158
2199
|
|
|
2159
|
-
return React__default
|
|
2200
|
+
return React__default.createElement(
|
|
2160
2201
|
reactBootstrap.Figure,
|
|
2161
2202
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2162
|
-
React__default
|
|
2203
|
+
React__default.createElement(
|
|
2163
2204
|
'a',
|
|
2164
|
-
{ href: uploadDoc.asset
|
|
2165
|
-
React__default
|
|
2205
|
+
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2206
|
+
React__default.createElement(
|
|
2166
2207
|
index$2.LazyLoad,
|
|
2167
2208
|
{ once: true },
|
|
2168
|
-
React__default
|
|
2209
|
+
React__default.createElement(
|
|
2169
2210
|
'picture',
|
|
2170
2211
|
null,
|
|
2171
|
-
React__default
|
|
2172
|
-
React__default
|
|
2173
|
-
React__default
|
|
2174
|
-
React__default
|
|
2212
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2213
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2214
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2215
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2175
2216
|
)
|
|
2176
2217
|
),
|
|
2177
|
-
caption && React__default
|
|
2218
|
+
caption && React__default.createElement(
|
|
2178
2219
|
reactBootstrap.Figure.Caption,
|
|
2179
2220
|
{ className: 'media-caption' },
|
|
2180
2221
|
caption
|
|
@@ -2182,11 +2223,11 @@ var Media = function Media(_ref) {
|
|
|
2182
2223
|
)
|
|
2183
2224
|
);
|
|
2184
2225
|
} else if (caption && caption !== '') {
|
|
2185
|
-
return React__default
|
|
2226
|
+
return React__default.createElement(
|
|
2186
2227
|
'a',
|
|
2187
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2188
|
-
href: uploadDoc.asset
|
|
2189
|
-
} : { href: uploadDoc.asset
|
|
2228
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2229
|
+
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2230
|
+
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2190
2231
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
2191
2232
|
className: 'media-link' }),
|
|
2192
2233
|
caption
|
|
@@ -2202,10 +2243,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2202
2243
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2203
2244
|
|
|
2204
2245
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2205
|
-
return React__default
|
|
2246
|
+
return React__default.createElement(
|
|
2206
2247
|
'div',
|
|
2207
2248
|
{ className: 'd-block text-center mb-3' },
|
|
2208
|
-
React__default
|
|
2249
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2209
2250
|
);
|
|
2210
2251
|
};
|
|
2211
2252
|
|
|
@@ -2239,8 +2280,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2239
2280
|
var duration = player.duration;
|
|
2240
2281
|
var queue = Math.floor(duration / 10);
|
|
2241
2282
|
var segment = Math.floor(current / queue);
|
|
2242
|
-
Beam.report_beam_video('Ready', main.
|
|
2243
|
-
Segment.report_video_event('Video Ready', main.
|
|
2283
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2284
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2244
2285
|
};
|
|
2245
2286
|
|
|
2246
2287
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2249,8 +2290,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2290
|
var queue = Math.floor(duration / 10);
|
|
2250
2291
|
var segment = Math.floor(current / queue);
|
|
2251
2292
|
if (!queueProgress.includes(segment)) {
|
|
2252
|
-
Beam.report_beam_video('Segment', main.
|
|
2253
|
-
Segment.report_video_event('Video Segment', main.
|
|
2293
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2294
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2254
2295
|
queueProgress.push(segment);
|
|
2255
2296
|
}
|
|
2256
2297
|
};
|
|
@@ -2262,8 +2303,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2303
|
var duration = player.duration;
|
|
2263
2304
|
var queue = Math.floor(duration / 10);
|
|
2264
2305
|
var segment = Math.floor(current / queue);
|
|
2265
|
-
Beam.report_beam_video('Play', main.
|
|
2266
|
-
Segment.report_video_event('Video Play', main.
|
|
2306
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
|
|
2307
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2267
2308
|
|
|
2268
2309
|
if (!playReported) {
|
|
2269
2310
|
event.persist();
|
|
@@ -2283,8 +2324,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2283
2324
|
var queue = Math.floor(duration / 10);
|
|
2284
2325
|
var segment = Math.floor(current / queue);
|
|
2285
2326
|
|
|
2286
|
-
Beam.report_beam_video('End', main.
|
|
2287
|
-
Segment.report_video_event('Video End', main.
|
|
2327
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
|
|
2328
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2288
2329
|
setEndReported(true);
|
|
2289
2330
|
clearInterval(intervalID);
|
|
2290
2331
|
}
|
|
@@ -2296,14 +2337,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2296
2337
|
var duration = player.duration - current;
|
|
2297
2338
|
var queue = Math.floor(duration / 10);
|
|
2298
2339
|
var segment = Math.floor(current / queue);
|
|
2299
|
-
Beam.report_beam_video('Pause', main.
|
|
2300
|
-
Segment.report_video_event('Video Pause', main.
|
|
2340
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2341
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2301
2342
|
};
|
|
2302
2343
|
|
|
2303
|
-
return React__default
|
|
2344
|
+
return React__default.createElement(
|
|
2304
2345
|
'div',
|
|
2305
2346
|
null,
|
|
2306
|
-
vidLoaded && React__default
|
|
2347
|
+
vidLoaded && React__default.createElement(
|
|
2307
2348
|
'video',
|
|
2308
2349
|
{
|
|
2309
2350
|
poster: thumbnail || '',
|
|
@@ -2321,7 +2362,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2321
2362
|
onPlay: function onPlay(e) {
|
|
2322
2363
|
return handleOnPlay(e);
|
|
2323
2364
|
} },
|
|
2324
|
-
React__default
|
|
2365
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2325
2366
|
'Your browser does not support the video tag.'
|
|
2326
2367
|
)
|
|
2327
2368
|
);
|
|
@@ -2358,7 +2399,7 @@ var Video = function Video(_ref) {
|
|
|
2358
2399
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2359
2400
|
//console.log('success:', success.ref)
|
|
2360
2401
|
var player = success.ref;
|
|
2361
|
-
if (_typeof
|
|
2402
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2362
2403
|
player.ima3.settings.debug = true;
|
|
2363
2404
|
if (targeting.content_placement && targeting.document_url) {
|
|
2364
2405
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2386,8 +2427,8 @@ var Video = function Video(_ref) {
|
|
|
2386
2427
|
player.pause();
|
|
2387
2428
|
}
|
|
2388
2429
|
|
|
2389
|
-
Beam.report_beam_video('Ready', main.
|
|
2390
|
-
Segment.report_video_event('Video Ready', main.
|
|
2430
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2431
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2391
2432
|
});
|
|
2392
2433
|
|
|
2393
2434
|
// play
|
|
@@ -2396,8 +2437,8 @@ var Video = function Video(_ref) {
|
|
|
2396
2437
|
var current = player.currentTime();
|
|
2397
2438
|
var queue = Math.floor(duration / 10);
|
|
2398
2439
|
var segment = Math.floor(current / queue);
|
|
2399
|
-
Beam.report_beam_video('Play', main.
|
|
2400
|
-
Segment.report_video_event('Video Play', main.
|
|
2440
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2441
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2401
2442
|
});
|
|
2402
2443
|
|
|
2403
2444
|
// pause
|
|
@@ -2406,8 +2447,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2447
|
var current = player.currentTime();
|
|
2407
2448
|
var queue = Math.floor(duration / 10);
|
|
2408
2449
|
var segment = Math.floor(current / queue);
|
|
2409
|
-
Beam.report_beam_video('Pause', main.
|
|
2410
|
-
Segment.report_video_event('Video Pause', main.
|
|
2450
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2451
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2411
2452
|
});
|
|
2412
2453
|
|
|
2413
2454
|
// end
|
|
@@ -2416,8 +2457,8 @@ var Video = function Video(_ref) {
|
|
|
2416
2457
|
var current = player.currentTime();
|
|
2417
2458
|
var queue = Math.floor(duration / 10);
|
|
2418
2459
|
var segment = Math.floor(current / queue);
|
|
2419
|
-
Beam.report_beam_video('End', main.
|
|
2420
|
-
Segment.report_video_event('Video End', main.
|
|
2460
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2461
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2421
2462
|
autoplayNextVideo(evt);
|
|
2422
2463
|
});
|
|
2423
2464
|
|
|
@@ -2428,8 +2469,8 @@ var Video = function Video(_ref) {
|
|
|
2428
2469
|
var queue = Math.floor(duration / 10);
|
|
2429
2470
|
var segment = Math.floor(current / queue);
|
|
2430
2471
|
if (!queueProgress.includes(segment)) {
|
|
2431
|
-
Beam.report_beam_video('Segment', main.
|
|
2432
|
-
Segment.report_video_event('Video Segment', main.
|
|
2472
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2473
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2433
2474
|
queueProgress.push(segment);
|
|
2434
2475
|
}
|
|
2435
2476
|
});
|
|
@@ -2440,8 +2481,8 @@ var Video = function Video(_ref) {
|
|
|
2440
2481
|
var id = player.ads.ad.id;
|
|
2441
2482
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2442
2483
|
|
|
2443
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2444
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2484
|
+
Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2485
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2445
2486
|
});
|
|
2446
2487
|
|
|
2447
2488
|
// ad ended
|
|
@@ -2449,60 +2490,60 @@ var Video = function Video(_ref) {
|
|
|
2449
2490
|
var duration = player.ads.ad.duration;
|
|
2450
2491
|
var id = player.ads.ad.id;
|
|
2451
2492
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2452
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2453
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2493
|
+
Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2494
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2454
2495
|
});
|
|
2455
2496
|
};
|
|
2456
2497
|
|
|
2457
2498
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2458
2499
|
if (videoID) {
|
|
2459
|
-
return React__default
|
|
2500
|
+
return React__default.createElement(
|
|
2460
2501
|
'div',
|
|
2461
2502
|
null,
|
|
2462
|
-
React__default
|
|
2503
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2463
2504
|
onSuccess: onVideoSuccess,
|
|
2464
2505
|
accountId: accountIDs.brightcove.accountId,
|
|
2465
2506
|
videoId: videoID,
|
|
2466
2507
|
playerId: accountIDs.brightcove.playerId,
|
|
2467
2508
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2468
2509
|
}),
|
|
2469
|
-
React__default
|
|
2510
|
+
React__default.createElement(
|
|
2470
2511
|
'style',
|
|
2471
2512
|
{ jsx: 'true' },
|
|
2472
2513
|
'\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 '
|
|
2473
2514
|
)
|
|
2474
2515
|
);
|
|
2475
2516
|
} else if (playlistID) {
|
|
2476
|
-
return React__default
|
|
2517
|
+
return React__default.createElement(
|
|
2477
2518
|
'div',
|
|
2478
2519
|
null,
|
|
2479
|
-
React__default
|
|
2520
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2480
2521
|
accountId: accountIDs.brightcove.accountId,
|
|
2481
2522
|
playlistId: playlistID,
|
|
2482
2523
|
playerId: accountIDs.brightcove.playerId,
|
|
2483
2524
|
onSuccess: onVideoSuccess,
|
|
2484
2525
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2485
2526
|
}),
|
|
2486
|
-
React__default
|
|
2527
|
+
React__default.createElement(
|
|
2487
2528
|
'style',
|
|
2488
2529
|
{ jsx: 'true' },
|
|
2489
2530
|
'\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 '
|
|
2490
2531
|
)
|
|
2491
2532
|
);
|
|
2492
2533
|
} else if (experienceID) {
|
|
2493
|
-
return React__default
|
|
2534
|
+
return React__default.createElement(
|
|
2494
2535
|
'div',
|
|
2495
2536
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2496
|
-
videoLoaded && React__default
|
|
2537
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2497
2538
|
);
|
|
2498
2539
|
}
|
|
2499
2540
|
return null;
|
|
2500
2541
|
}
|
|
2501
2542
|
if (source === 'mp4') {
|
|
2502
|
-
return React__default
|
|
2543
|
+
return React__default.createElement(
|
|
2503
2544
|
'div',
|
|
2504
2545
|
null,
|
|
2505
|
-
React__default
|
|
2546
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2506
2547
|
);
|
|
2507
2548
|
}
|
|
2508
2549
|
|
|
@@ -2517,7 +2558,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2517
2558
|
});
|
|
2518
2559
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2519
2560
|
|
|
2520
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2561
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2521
2562
|
|
|
2522
2563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2523
2564
|
|
|
@@ -2713,9 +2754,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2713
2754
|
});
|
|
2714
2755
|
|
|
2715
2756
|
_commonjsHelpers.unwrapExports(props);
|
|
2716
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2717
|
-
props.defaultProps;
|
|
2718
|
-
props.propTypes;
|
|
2757
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2758
|
+
var props_2 = props.defaultProps;
|
|
2759
|
+
var props_3 = props.propTypes;
|
|
2719
2760
|
|
|
2720
2761
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2721
2762
|
return isNonNullObject(value)
|
|
@@ -2880,17 +2921,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2880
2921
|
|
|
2881
2922
|
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; }
|
|
2882
2923
|
|
|
2883
|
-
function
|
|
2884
|
-
|
|
2885
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2924
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2886
2925
|
|
|
2887
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2926
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2888
2927
|
|
|
2889
|
-
function
|
|
2890
|
-
|
|
2891
|
-
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; }
|
|
2892
|
-
|
|
2893
|
-
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; }
|
|
2928
|
+
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; }
|
|
2894
2929
|
|
|
2895
2930
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2896
2931
|
|
|
@@ -3020,12 +3055,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3020
3055
|
|
|
3021
3056
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3022
3057
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3023
|
-
|
|
3024
|
-
var
|
|
3025
|
-
|
|
3058
|
+
var _iteratorNormalCompletion = true;
|
|
3059
|
+
var _didIteratorError = false;
|
|
3060
|
+
var _iteratorError = undefined;
|
|
3026
3061
|
|
|
3027
3062
|
try {
|
|
3028
|
-
for (_iterator.
|
|
3063
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3029
3064
|
var p = _step.value;
|
|
3030
3065
|
|
|
3031
3066
|
if (props$1[p]) {
|
|
@@ -3040,9 +3075,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3040
3075
|
}
|
|
3041
3076
|
}
|
|
3042
3077
|
} catch (err) {
|
|
3043
|
-
|
|
3078
|
+
_didIteratorError = true;
|
|
3079
|
+
_iteratorError = err;
|
|
3044
3080
|
} finally {
|
|
3045
|
-
|
|
3081
|
+
try {
|
|
3082
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3083
|
+
_iterator["return"]();
|
|
3084
|
+
}
|
|
3085
|
+
} finally {
|
|
3086
|
+
if (_didIteratorError) {
|
|
3087
|
+
throw _iteratorError;
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3046
3090
|
}
|
|
3047
3091
|
|
|
3048
3092
|
return config;
|
|
@@ -3107,7 +3151,7 @@ function isEqual(a, b) {
|
|
|
3107
3151
|
return true;
|
|
3108
3152
|
}
|
|
3109
3153
|
|
|
3110
|
-
if ((0, React__default
|
|
3154
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3111
3155
|
return true;
|
|
3112
3156
|
}
|
|
3113
3157
|
|
|
@@ -3150,17 +3194,17 @@ function isMediaStream(url) {
|
|
|
3150
3194
|
});
|
|
3151
3195
|
|
|
3152
3196
|
_commonjsHelpers.unwrapExports(utils);
|
|
3153
|
-
utils.parseStartTime;
|
|
3154
|
-
utils.parseEndTime;
|
|
3155
|
-
utils.randomString;
|
|
3156
|
-
utils.queryString;
|
|
3157
|
-
utils.getSDK;
|
|
3158
|
-
utils.getConfig;
|
|
3159
|
-
utils.omit;
|
|
3160
|
-
utils.callPlayer;
|
|
3161
|
-
utils.isObject;
|
|
3162
|
-
utils.isEqual;
|
|
3163
|
-
utils.isMediaStream;
|
|
3197
|
+
var utils_1 = utils.parseStartTime;
|
|
3198
|
+
var utils_2 = utils.parseEndTime;
|
|
3199
|
+
var utils_3 = utils.randomString;
|
|
3200
|
+
var utils_4 = utils.queryString;
|
|
3201
|
+
var utils_5 = utils.getSDK;
|
|
3202
|
+
var utils_6 = utils.getConfig;
|
|
3203
|
+
var utils_7 = utils.omit;
|
|
3204
|
+
var utils_8 = utils.callPlayer;
|
|
3205
|
+
var utils_9 = utils.isObject;
|
|
3206
|
+
var utils_10 = utils.isEqual;
|
|
3207
|
+
var utils_11 = utils.isMediaStream;
|
|
3164
3208
|
|
|
3165
3209
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3166
3210
|
|
|
@@ -3169,7 +3213,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3169
3213
|
});
|
|
3170
3214
|
exports["default"] = void 0;
|
|
3171
3215
|
|
|
3172
|
-
var _react = _interopRequireWildcard(React__default
|
|
3216
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3173
3217
|
|
|
3174
3218
|
|
|
3175
3219
|
|
|
@@ -3189,16 +3233,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3189
3233
|
|
|
3190
3234
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3191
3235
|
|
|
3192
|
-
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); }; }
|
|
3193
|
-
|
|
3194
3236
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3195
3237
|
|
|
3196
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3197
|
-
|
|
3198
|
-
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; } }
|
|
3199
|
-
|
|
3200
3238
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3201
3239
|
|
|
3240
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3241
|
+
|
|
3202
3242
|
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); }
|
|
3203
3243
|
|
|
3204
3244
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3207,12 +3247,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3207
3247
|
|
|
3208
3248
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3209
3249
|
|
|
3210
|
-
var Player =
|
|
3250
|
+
var Player =
|
|
3251
|
+
/*#__PURE__*/
|
|
3252
|
+
function (_Component) {
|
|
3211
3253
|
_inherits(Player, _Component);
|
|
3212
3254
|
|
|
3213
|
-
var _super = _createSuper(Player);
|
|
3214
|
-
|
|
3215
3255
|
function Player() {
|
|
3256
|
+
var _getPrototypeOf2;
|
|
3257
|
+
|
|
3216
3258
|
var _this;
|
|
3217
3259
|
|
|
3218
3260
|
_classCallCheck(this, Player);
|
|
@@ -3221,7 +3263,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3221
3263
|
_args[_key] = arguments[_key];
|
|
3222
3264
|
}
|
|
3223
3265
|
|
|
3224
|
-
_this =
|
|
3266
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3225
3267
|
|
|
3226
3268
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3227
3269
|
|
|
@@ -3546,7 +3588,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3546
3588
|
return null;
|
|
3547
3589
|
}
|
|
3548
3590
|
|
|
3549
|
-
return
|
|
3591
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3550
3592
|
ref: this.ref,
|
|
3551
3593
|
onReady: this.handleReady,
|
|
3552
3594
|
onPlay: this.handlePlay,
|
|
@@ -3579,7 +3621,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3579
3621
|
});
|
|
3580
3622
|
exports["default"] = createSinglePlayer;
|
|
3581
3623
|
|
|
3582
|
-
var _react = _interopRequireWildcard(React__default
|
|
3624
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3583
3625
|
|
|
3584
3626
|
|
|
3585
3627
|
|
|
@@ -3607,16 +3649,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3607
3649
|
|
|
3608
3650
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3609
3651
|
|
|
3610
|
-
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); }; }
|
|
3611
|
-
|
|
3612
3652
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3613
3653
|
|
|
3614
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3615
|
-
|
|
3616
|
-
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; } }
|
|
3617
|
-
|
|
3618
3654
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3619
3655
|
|
|
3656
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3657
|
+
|
|
3620
3658
|
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); }
|
|
3621
3659
|
|
|
3622
3660
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3628,12 +3666,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3628
3666
|
function createSinglePlayer(activePlayer) {
|
|
3629
3667
|
var _class, _temp;
|
|
3630
3668
|
|
|
3631
|
-
return _temp = _class =
|
|
3669
|
+
return _temp = _class =
|
|
3670
|
+
/*#__PURE__*/
|
|
3671
|
+
function (_Component) {
|
|
3632
3672
|
_inherits(SinglePlayer, _Component);
|
|
3633
3673
|
|
|
3634
|
-
var _super = _createSuper(SinglePlayer);
|
|
3635
|
-
|
|
3636
3674
|
function SinglePlayer() {
|
|
3675
|
+
var _getPrototypeOf2;
|
|
3676
|
+
|
|
3637
3677
|
var _this;
|
|
3638
3678
|
|
|
3639
3679
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3642,7 +3682,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3642
3682
|
args[_key] = arguments[_key];
|
|
3643
3683
|
}
|
|
3644
3684
|
|
|
3645
|
-
_this =
|
|
3685
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3646
3686
|
|
|
3647
3687
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3648
3688
|
|
|
@@ -3710,12 +3750,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3710
3750
|
height = _this$props.height,
|
|
3711
3751
|
Wrapper = _this$props.wrapper;
|
|
3712
3752
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3713
|
-
return
|
|
3753
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3714
3754
|
style: _objectSpread({}, style, {
|
|
3715
3755
|
width: width,
|
|
3716
3756
|
height: height
|
|
3717
3757
|
})
|
|
3718
|
-
}, otherProps),
|
|
3758
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3719
3759
|
ref: this.ref,
|
|
3720
3760
|
activePlayer: activePlayer,
|
|
3721
3761
|
config: this.config
|
|
@@ -3737,7 +3777,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3737
3777
|
});
|
|
3738
3778
|
exports["default"] = exports.YouTube = void 0;
|
|
3739
3779
|
|
|
3740
|
-
var _react = _interopRequireWildcard(React__default
|
|
3780
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3741
3781
|
|
|
3742
3782
|
|
|
3743
3783
|
|
|
@@ -3761,31 +3801,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3761
3801
|
|
|
3762
3802
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3763
3803
|
|
|
3764
|
-
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); }; }
|
|
3765
|
-
|
|
3766
3804
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3767
3805
|
|
|
3768
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3769
|
-
|
|
3770
|
-
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; } }
|
|
3771
|
-
|
|
3772
3806
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3773
3807
|
|
|
3808
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3809
|
+
|
|
3774
3810
|
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); }
|
|
3775
3811
|
|
|
3776
3812
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3777
3813
|
|
|
3778
3814
|
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; }
|
|
3779
3815
|
|
|
3780
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3781
|
-
|
|
3782
|
-
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."); }
|
|
3816
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3783
3817
|
|
|
3784
|
-
function
|
|
3818
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3785
3819
|
|
|
3786
|
-
function
|
|
3787
|
-
|
|
3788
|
-
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; }
|
|
3820
|
+
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; }
|
|
3789
3821
|
|
|
3790
3822
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3791
3823
|
|
|
@@ -3810,12 +3842,14 @@ function parsePlaylist(url) {
|
|
|
3810
3842
|
return {};
|
|
3811
3843
|
}
|
|
3812
3844
|
|
|
3813
|
-
var YouTube =
|
|
3845
|
+
var YouTube =
|
|
3846
|
+
/*#__PURE__*/
|
|
3847
|
+
function (_Component) {
|
|
3814
3848
|
_inherits(YouTube, _Component);
|
|
3815
3849
|
|
|
3816
|
-
var _super = _createSuper(YouTube);
|
|
3817
|
-
|
|
3818
3850
|
function YouTube() {
|
|
3851
|
+
var _getPrototypeOf2;
|
|
3852
|
+
|
|
3819
3853
|
var _this;
|
|
3820
3854
|
|
|
3821
3855
|
_classCallCheck(this, YouTube);
|
|
@@ -3824,7 +3858,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3824
3858
|
args[_key] = arguments[_key];
|
|
3825
3859
|
}
|
|
3826
3860
|
|
|
3827
|
-
_this =
|
|
3861
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3828
3862
|
|
|
3829
3863
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3830
3864
|
|
|
@@ -4012,9 +4046,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4012
4046
|
height: '100%',
|
|
4013
4047
|
display: display
|
|
4014
4048
|
};
|
|
4015
|
-
return
|
|
4049
|
+
return _react["default"].createElement("div", {
|
|
4016
4050
|
style: style
|
|
4017
|
-
},
|
|
4051
|
+
}, _react["default"].createElement("div", {
|
|
4018
4052
|
ref: this.ref
|
|
4019
4053
|
}));
|
|
4020
4054
|
}
|
|
@@ -4037,7 +4071,7 @@ exports["default"] = _default;
|
|
|
4037
4071
|
});
|
|
4038
4072
|
|
|
4039
4073
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4040
|
-
YouTube_1.YouTube;
|
|
4074
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4041
4075
|
|
|
4042
4076
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4043
4077
|
|
|
@@ -4046,7 +4080,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4046
4080
|
});
|
|
4047
4081
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4048
4082
|
|
|
4049
|
-
var _react = _interopRequireWildcard(React__default
|
|
4083
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4050
4084
|
|
|
4051
4085
|
|
|
4052
4086
|
|
|
@@ -4070,16 +4104,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4070
4104
|
|
|
4071
4105
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4072
4106
|
|
|
4073
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4074
|
-
|
|
4075
4107
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4076
4108
|
|
|
4077
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4078
|
-
|
|
4079
|
-
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; } }
|
|
4080
|
-
|
|
4081
4109
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4082
4110
|
|
|
4111
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4112
|
+
|
|
4083
4113
|
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); }
|
|
4084
4114
|
|
|
4085
4115
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4088,14 +4118,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4088
4118
|
|
|
4089
4119
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4090
4120
|
var SDK_GLOBAL = 'SC';
|
|
4091
|
-
var MATCH_URL = /(
|
|
4121
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4092
4122
|
|
|
4093
|
-
var SoundCloud =
|
|
4123
|
+
var SoundCloud =
|
|
4124
|
+
/*#__PURE__*/
|
|
4125
|
+
function (_Component) {
|
|
4094
4126
|
_inherits(SoundCloud, _Component);
|
|
4095
4127
|
|
|
4096
|
-
var _super = _createSuper(SoundCloud);
|
|
4097
|
-
|
|
4098
4128
|
function SoundCloud() {
|
|
4129
|
+
var _getPrototypeOf2;
|
|
4130
|
+
|
|
4099
4131
|
var _this;
|
|
4100
4132
|
|
|
4101
4133
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4104,7 +4136,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4104
4136
|
args[_key] = arguments[_key];
|
|
4105
4137
|
}
|
|
4106
4138
|
|
|
4107
|
-
_this =
|
|
4139
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4108
4140
|
|
|
4109
4141
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4110
4142
|
|
|
@@ -4225,7 +4257,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4225
4257
|
height: '100%',
|
|
4226
4258
|
display: display
|
|
4227
4259
|
};
|
|
4228
|
-
return
|
|
4260
|
+
return _react["default"].createElement("iframe", {
|
|
4229
4261
|
ref: this.ref,
|
|
4230
4262
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4231
4263
|
style: style,
|
|
@@ -4254,7 +4286,7 @@ exports["default"] = _default;
|
|
|
4254
4286
|
});
|
|
4255
4287
|
|
|
4256
4288
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4257
|
-
SoundCloud_1.SoundCloud;
|
|
4289
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4258
4290
|
|
|
4259
4291
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4260
4292
|
|
|
@@ -4263,7 +4295,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4263
4295
|
});
|
|
4264
4296
|
exports["default"] = exports.Vimeo = void 0;
|
|
4265
4297
|
|
|
4266
|
-
var _react = _interopRequireWildcard(React__default
|
|
4298
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4267
4299
|
|
|
4268
4300
|
|
|
4269
4301
|
|
|
@@ -4287,16 +4319,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4287
4319
|
|
|
4288
4320
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4289
4321
|
|
|
4290
|
-
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); }; }
|
|
4291
|
-
|
|
4292
4322
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4293
4323
|
|
|
4294
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4295
|
-
|
|
4296
|
-
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; } }
|
|
4297
|
-
|
|
4298
4324
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4299
4325
|
|
|
4326
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4327
|
+
|
|
4300
4328
|
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); }
|
|
4301
4329
|
|
|
4302
4330
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4308,12 +4336,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4308
4336
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4309
4337
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4310
4338
|
|
|
4311
|
-
var Vimeo =
|
|
4339
|
+
var Vimeo =
|
|
4340
|
+
/*#__PURE__*/
|
|
4341
|
+
function (_Component) {
|
|
4312
4342
|
_inherits(Vimeo, _Component);
|
|
4313
4343
|
|
|
4314
|
-
var _super = _createSuper(Vimeo);
|
|
4315
|
-
|
|
4316
4344
|
function Vimeo() {
|
|
4345
|
+
var _getPrototypeOf2;
|
|
4346
|
+
|
|
4317
4347
|
var _this;
|
|
4318
4348
|
|
|
4319
4349
|
_classCallCheck(this, Vimeo);
|
|
@@ -4322,7 +4352,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4322
4352
|
args[_key] = arguments[_key];
|
|
4323
4353
|
}
|
|
4324
4354
|
|
|
4325
|
-
_this =
|
|
4355
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4326
4356
|
|
|
4327
4357
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4328
4358
|
|
|
@@ -4479,7 +4509,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4479
4509
|
overflow: 'hidden',
|
|
4480
4510
|
display: display
|
|
4481
4511
|
};
|
|
4482
|
-
return
|
|
4512
|
+
return _react["default"].createElement("div", {
|
|
4483
4513
|
key: this.props.url,
|
|
4484
4514
|
ref: this.ref,
|
|
4485
4515
|
style: style
|
|
@@ -4510,7 +4540,7 @@ exports["default"] = _default;
|
|
|
4510
4540
|
});
|
|
4511
4541
|
|
|
4512
4542
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4513
|
-
Vimeo_1.Vimeo;
|
|
4543
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4514
4544
|
|
|
4515
4545
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4516
4546
|
|
|
@@ -4519,7 +4549,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4519
4549
|
});
|
|
4520
4550
|
exports["default"] = exports.Facebook = void 0;
|
|
4521
4551
|
|
|
4522
|
-
var _react = _interopRequireWildcard(React__default
|
|
4552
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4523
4553
|
|
|
4524
4554
|
|
|
4525
4555
|
|
|
@@ -4539,16 +4569,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4539
4569
|
|
|
4540
4570
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4541
4571
|
|
|
4542
|
-
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); }; }
|
|
4543
|
-
|
|
4544
4572
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4545
4573
|
|
|
4546
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4547
|
-
|
|
4548
|
-
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; } }
|
|
4549
|
-
|
|
4550
4574
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4551
4575
|
|
|
4576
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4577
|
+
|
|
4552
4578
|
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); }
|
|
4553
4579
|
|
|
4554
4580
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4561,12 +4587,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4561
4587
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4562
4588
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4563
4589
|
|
|
4564
|
-
var Facebook =
|
|
4590
|
+
var Facebook =
|
|
4591
|
+
/*#__PURE__*/
|
|
4592
|
+
function (_Component) {
|
|
4565
4593
|
_inherits(Facebook, _Component);
|
|
4566
4594
|
|
|
4567
|
-
var _super = _createSuper(Facebook);
|
|
4568
|
-
|
|
4569
4595
|
function Facebook() {
|
|
4596
|
+
var _getPrototypeOf2;
|
|
4597
|
+
|
|
4570
4598
|
var _this;
|
|
4571
4599
|
|
|
4572
4600
|
_classCallCheck(this, Facebook);
|
|
@@ -4575,7 +4603,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4575
4603
|
args[_key] = arguments[_key];
|
|
4576
4604
|
}
|
|
4577
4605
|
|
|
4578
|
-
_this =
|
|
4606
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4579
4607
|
|
|
4580
4608
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4581
4609
|
|
|
@@ -4691,7 +4719,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4691
4719
|
width: '100%',
|
|
4692
4720
|
height: '100%'
|
|
4693
4721
|
};
|
|
4694
|
-
return
|
|
4722
|
+
return _react["default"].createElement("div", {
|
|
4695
4723
|
style: style,
|
|
4696
4724
|
id: this.playerID,
|
|
4697
4725
|
className: "fb-video",
|
|
@@ -4722,7 +4750,7 @@ exports["default"] = _default;
|
|
|
4722
4750
|
});
|
|
4723
4751
|
|
|
4724
4752
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4725
|
-
Facebook_1.Facebook;
|
|
4753
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4726
4754
|
|
|
4727
4755
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4728
4756
|
|
|
@@ -4731,7 +4759,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4731
4759
|
});
|
|
4732
4760
|
exports["default"] = exports.Streamable = void 0;
|
|
4733
4761
|
|
|
4734
|
-
var _react = _interopRequireWildcard(React__default
|
|
4762
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4735
4763
|
|
|
4736
4764
|
|
|
4737
4765
|
|
|
@@ -4751,16 +4779,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4751
4779
|
|
|
4752
4780
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4753
4781
|
|
|
4754
|
-
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); }; }
|
|
4755
|
-
|
|
4756
4782
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4757
4783
|
|
|
4758
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4759
|
-
|
|
4760
|
-
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; } }
|
|
4761
|
-
|
|
4762
4784
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4763
4785
|
|
|
4786
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4787
|
+
|
|
4764
4788
|
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); }
|
|
4765
4789
|
|
|
4766
4790
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4771,12 +4795,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4771
4795
|
var SDK_GLOBAL = 'playerjs';
|
|
4772
4796
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4773
4797
|
|
|
4774
|
-
var Streamable =
|
|
4798
|
+
var Streamable =
|
|
4799
|
+
/*#__PURE__*/
|
|
4800
|
+
function (_Component) {
|
|
4775
4801
|
_inherits(Streamable, _Component);
|
|
4776
4802
|
|
|
4777
|
-
var _super = _createSuper(Streamable);
|
|
4778
|
-
|
|
4779
4803
|
function Streamable() {
|
|
4804
|
+
var _getPrototypeOf2;
|
|
4805
|
+
|
|
4780
4806
|
var _this;
|
|
4781
4807
|
|
|
4782
4808
|
_classCallCheck(this, Streamable);
|
|
@@ -4785,7 +4811,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4785
4811
|
args[_key] = arguments[_key];
|
|
4786
4812
|
}
|
|
4787
4813
|
|
|
4788
|
-
_this =
|
|
4814
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4789
4815
|
|
|
4790
4816
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4791
4817
|
|
|
@@ -4905,7 +4931,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4905
4931
|
width: '100%',
|
|
4906
4932
|
height: '100%'
|
|
4907
4933
|
};
|
|
4908
|
-
return
|
|
4934
|
+
return _react["default"].createElement("iframe", {
|
|
4909
4935
|
ref: this.ref,
|
|
4910
4936
|
src: "https://streamable.com/o/".concat(id),
|
|
4911
4937
|
frameBorder: "0",
|
|
@@ -4933,7 +4959,7 @@ exports["default"] = _default;
|
|
|
4933
4959
|
});
|
|
4934
4960
|
|
|
4935
4961
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4936
|
-
Streamable_1.Streamable;
|
|
4962
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4937
4963
|
|
|
4938
4964
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4939
4965
|
|
|
@@ -4942,7 +4968,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4942
4968
|
});
|
|
4943
4969
|
exports["default"] = exports.Wistia = void 0;
|
|
4944
4970
|
|
|
4945
|
-
var _react = _interopRequireWildcard(React__default
|
|
4971
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4946
4972
|
|
|
4947
4973
|
|
|
4948
4974
|
|
|
@@ -4966,16 +4992,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4966
4992
|
|
|
4967
4993
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4968
4994
|
|
|
4969
|
-
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); }; }
|
|
4970
|
-
|
|
4971
4995
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4972
4996
|
|
|
4973
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4974
|
-
|
|
4975
|
-
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; } }
|
|
4976
|
-
|
|
4977
4997
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4978
4998
|
|
|
4999
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5000
|
+
|
|
4979
5001
|
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); }
|
|
4980
5002
|
|
|
4981
5003
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4986,48 +5008,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4986
5008
|
var SDK_GLOBAL = 'Wistia';
|
|
4987
5009
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4988
5010
|
|
|
4989
|
-
var Wistia =
|
|
5011
|
+
var Wistia =
|
|
5012
|
+
/*#__PURE__*/
|
|
5013
|
+
function (_Component) {
|
|
4990
5014
|
_inherits(Wistia, _Component);
|
|
4991
5015
|
|
|
4992
|
-
var _super = _createSuper(Wistia);
|
|
4993
|
-
|
|
4994
5016
|
function Wistia() {
|
|
5017
|
+
var _getPrototypeOf2;
|
|
5018
|
+
|
|
4995
5019
|
var _this;
|
|
4996
5020
|
|
|
4997
5021
|
_classCallCheck(this, Wistia);
|
|
4998
5022
|
|
|
4999
|
-
for (var _len = arguments.length,
|
|
5000
|
-
|
|
5023
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5024
|
+
args[_key] = arguments[_key];
|
|
5001
5025
|
}
|
|
5002
5026
|
|
|
5003
|
-
_this =
|
|
5027
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5004
5028
|
|
|
5005
5029
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5006
5030
|
|
|
5007
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5008
|
-
var _this$props;
|
|
5009
|
-
|
|
5010
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5011
|
-
});
|
|
5012
|
-
|
|
5013
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5014
|
-
var _this$props2;
|
|
5015
|
-
|
|
5016
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5017
|
-
});
|
|
5018
|
-
|
|
5019
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5020
|
-
var _this$props3;
|
|
5021
|
-
|
|
5022
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5023
|
-
});
|
|
5024
|
-
|
|
5025
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5026
|
-
var _this$props4;
|
|
5027
|
-
|
|
5028
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5029
|
-
});
|
|
5030
|
-
|
|
5031
5031
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5032
5032
|
_this.callPlayer('mute');
|
|
5033
5033
|
});
|
|
@@ -5049,13 +5049,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5049
5049
|
value: function load(url) {
|
|
5050
5050
|
var _this2 = this;
|
|
5051
5051
|
|
|
5052
|
-
var _this$
|
|
5053
|
-
playing = _this$
|
|
5054
|
-
muted = _this$
|
|
5055
|
-
controls = _this$
|
|
5056
|
-
_onReady = _this$
|
|
5057
|
-
|
|
5058
|
-
|
|
5052
|
+
var _this$props = this.props,
|
|
5053
|
+
playing = _this$props.playing,
|
|
5054
|
+
muted = _this$props.muted,
|
|
5055
|
+
controls = _this$props.controls,
|
|
5056
|
+
_onReady = _this$props.onReady,
|
|
5057
|
+
onPlay = _this$props.onPlay,
|
|
5058
|
+
onPause = _this$props.onPause,
|
|
5059
|
+
onSeek = _this$props.onSeek,
|
|
5060
|
+
onEnded = _this$props.onEnded,
|
|
5061
|
+
config = _this$props.config,
|
|
5062
|
+
onError = _this$props.onError;
|
|
5059
5063
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5060
5064
|
window._wq = window._wq || [];
|
|
5061
5065
|
|
|
@@ -5072,28 +5076,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5072
5076
|
|
|
5073
5077
|
_this2.unbind();
|
|
5074
5078
|
|
|
5075
|
-
_this2.player.bind('play',
|
|
5079
|
+
_this2.player.bind('play', onPlay);
|
|
5076
5080
|
|
|
5077
|
-
_this2.player.bind('pause',
|
|
5081
|
+
_this2.player.bind('pause', onPause);
|
|
5078
5082
|
|
|
5079
|
-
_this2.player.bind('seek',
|
|
5083
|
+
_this2.player.bind('seek', onSeek);
|
|
5080
5084
|
|
|
5081
|
-
_this2.player.bind('end',
|
|
5085
|
+
_this2.player.bind('end', onEnded);
|
|
5082
5086
|
|
|
5083
5087
|
_onReady();
|
|
5084
5088
|
}
|
|
5085
5089
|
});
|
|
5086
5090
|
}, onError);
|
|
5087
5091
|
}
|
|
5088
|
-
}, {
|
|
5089
|
-
key: "unbind",
|
|
5090
|
-
value: function unbind() {
|
|
5091
|
-
this.player.unbind('play', this.onPlay);
|
|
5092
|
-
this.player.unbind('pause', this.onPause);
|
|
5093
|
-
this.player.unbind('seek', this.onSeek);
|
|
5094
|
-
this.player.unbind('end', this.onEnded);
|
|
5095
|
-
} // Proxy methods to prevent listener leaks
|
|
5096
|
-
|
|
5097
5092
|
}, {
|
|
5098
5093
|
key: "play",
|
|
5099
5094
|
value: function play() {
|
|
@@ -5104,6 +5099,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5104
5099
|
value: function pause() {
|
|
5105
5100
|
this.callPlayer('pause');
|
|
5106
5101
|
}
|
|
5102
|
+
}, {
|
|
5103
|
+
key: "unbind",
|
|
5104
|
+
value: function unbind() {
|
|
5105
|
+
var _this$props2 = this.props,
|
|
5106
|
+
onPlay = _this$props2.onPlay,
|
|
5107
|
+
onPause = _this$props2.onPause,
|
|
5108
|
+
onSeek = _this$props2.onSeek,
|
|
5109
|
+
onEnded = _this$props2.onEnded;
|
|
5110
|
+
this.player.unbind('play', onPlay);
|
|
5111
|
+
this.player.unbind('pause', onPause);
|
|
5112
|
+
this.player.unbind('seek', onSeek);
|
|
5113
|
+
this.player.unbind('end', onEnded);
|
|
5114
|
+
}
|
|
5107
5115
|
}, {
|
|
5108
5116
|
key: "stop",
|
|
5109
5117
|
value: function stop() {
|
|
@@ -5149,7 +5157,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5149
5157
|
width: '100%',
|
|
5150
5158
|
height: '100%'
|
|
5151
5159
|
};
|
|
5152
|
-
return
|
|
5160
|
+
return _react["default"].createElement("div", {
|
|
5153
5161
|
key: id,
|
|
5154
5162
|
className: className,
|
|
5155
5163
|
style: style
|
|
@@ -5176,7 +5184,7 @@ exports["default"] = _default;
|
|
|
5176
5184
|
});
|
|
5177
5185
|
|
|
5178
5186
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5179
|
-
Wistia_1.Wistia;
|
|
5187
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5180
5188
|
|
|
5181
5189
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5182
5190
|
|
|
@@ -5185,7 +5193,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5185
5193
|
});
|
|
5186
5194
|
exports["default"] = exports.Twitch = void 0;
|
|
5187
5195
|
|
|
5188
|
-
var _react = _interopRequireWildcard(React__default
|
|
5196
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5189
5197
|
|
|
5190
5198
|
|
|
5191
5199
|
|
|
@@ -5209,16 +5217,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5209
5217
|
|
|
5210
5218
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5211
5219
|
|
|
5212
|
-
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); }; }
|
|
5213
|
-
|
|
5214
5220
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5215
5221
|
|
|
5216
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5217
|
-
|
|
5218
|
-
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; } }
|
|
5219
|
-
|
|
5220
5222
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5221
5223
|
|
|
5224
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5225
|
+
|
|
5222
5226
|
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); }
|
|
5223
5227
|
|
|
5224
5228
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5231,12 +5235,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5231
5235
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5232
5236
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5233
5237
|
|
|
5234
|
-
var Twitch =
|
|
5238
|
+
var Twitch =
|
|
5239
|
+
/*#__PURE__*/
|
|
5240
|
+
function (_Component) {
|
|
5235
5241
|
_inherits(Twitch, _Component);
|
|
5236
5242
|
|
|
5237
|
-
var _super = _createSuper(Twitch);
|
|
5238
|
-
|
|
5239
5243
|
function Twitch() {
|
|
5244
|
+
var _getPrototypeOf2;
|
|
5245
|
+
|
|
5240
5246
|
var _this;
|
|
5241
5247
|
|
|
5242
5248
|
_classCallCheck(this, Twitch);
|
|
@@ -5245,7 +5251,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5245
5251
|
args[_key] = arguments[_key];
|
|
5246
5252
|
}
|
|
5247
5253
|
|
|
5248
|
-
_this =
|
|
5254
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5249
5255
|
|
|
5250
5256
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5251
5257
|
|
|
@@ -5366,7 +5372,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5366
5372
|
width: '100%',
|
|
5367
5373
|
height: '100%'
|
|
5368
5374
|
};
|
|
5369
|
-
return
|
|
5375
|
+
return _react["default"].createElement("div", {
|
|
5370
5376
|
style: style,
|
|
5371
5377
|
id: this.playerID
|
|
5372
5378
|
});
|
|
@@ -5392,7 +5398,7 @@ exports["default"] = _default;
|
|
|
5392
5398
|
});
|
|
5393
5399
|
|
|
5394
5400
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5395
|
-
Twitch_1.Twitch;
|
|
5401
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5396
5402
|
|
|
5397
5403
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5398
5404
|
|
|
@@ -5401,7 +5407,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5401
5407
|
});
|
|
5402
5408
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5403
5409
|
|
|
5404
|
-
var _react = _interopRequireWildcard(React__default
|
|
5410
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5405
5411
|
|
|
5406
5412
|
|
|
5407
5413
|
|
|
@@ -5419,15 +5425,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5419
5425
|
|
|
5420
5426
|
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; }
|
|
5421
5427
|
|
|
5422
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5428
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5423
5429
|
|
|
5424
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5430
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5425
5431
|
|
|
5426
|
-
function
|
|
5427
|
-
|
|
5428
|
-
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; }
|
|
5429
|
-
|
|
5430
|
-
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; }
|
|
5432
|
+
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; }
|
|
5431
5433
|
|
|
5432
5434
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5433
5435
|
|
|
@@ -5437,16 +5439,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5437
5439
|
|
|
5438
5440
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5439
5441
|
|
|
5440
|
-
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); }; }
|
|
5441
|
-
|
|
5442
5442
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5443
5443
|
|
|
5444
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5445
|
-
|
|
5446
|
-
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; } }
|
|
5447
|
-
|
|
5448
5444
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5449
5445
|
|
|
5446
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5447
|
+
|
|
5450
5448
|
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); }
|
|
5451
5449
|
|
|
5452
5450
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5458,12 +5456,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5458
5456
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5459
5457
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5460
5458
|
|
|
5461
|
-
var DailyMotion =
|
|
5459
|
+
var DailyMotion =
|
|
5460
|
+
/*#__PURE__*/
|
|
5461
|
+
function (_Component) {
|
|
5462
5462
|
_inherits(DailyMotion, _Component);
|
|
5463
5463
|
|
|
5464
|
-
var _super = _createSuper(DailyMotion);
|
|
5465
|
-
|
|
5466
5464
|
function DailyMotion() {
|
|
5465
|
+
var _getPrototypeOf2;
|
|
5466
|
+
|
|
5467
5467
|
var _this;
|
|
5468
5468
|
|
|
5469
5469
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5472,7 +5472,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5472
5472
|
args[_key] = arguments[_key];
|
|
5473
5473
|
}
|
|
5474
5474
|
|
|
5475
|
-
_this =
|
|
5475
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5476
5476
|
|
|
5477
5477
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5478
5478
|
|
|
@@ -5601,9 +5601,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5601
5601
|
height: '100%',
|
|
5602
5602
|
display: display
|
|
5603
5603
|
};
|
|
5604
|
-
return
|
|
5604
|
+
return _react["default"].createElement("div", {
|
|
5605
5605
|
style: style
|
|
5606
|
-
},
|
|
5606
|
+
}, _react["default"].createElement("div", {
|
|
5607
5607
|
ref: this.ref
|
|
5608
5608
|
}));
|
|
5609
5609
|
}
|
|
@@ -5628,7 +5628,7 @@ exports["default"] = _default;
|
|
|
5628
5628
|
});
|
|
5629
5629
|
|
|
5630
5630
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5631
|
-
DailyMotion_1.DailyMotion;
|
|
5631
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5632
5632
|
|
|
5633
5633
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5634
5634
|
|
|
@@ -5637,7 +5637,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5637
5637
|
});
|
|
5638
5638
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5639
5639
|
|
|
5640
|
-
var _react = _interopRequireWildcard(React__default
|
|
5640
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5641
5641
|
|
|
5642
5642
|
|
|
5643
5643
|
|
|
@@ -5661,16 +5661,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5661
5661
|
|
|
5662
5662
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5663
5663
|
|
|
5664
|
-
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); }; }
|
|
5665
|
-
|
|
5666
5664
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5667
5665
|
|
|
5668
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5669
|
-
|
|
5670
|
-
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; } }
|
|
5671
|
-
|
|
5672
5666
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5673
5667
|
|
|
5668
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5669
|
+
|
|
5674
5670
|
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); }
|
|
5675
5671
|
|
|
5676
5672
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5681,12 +5677,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5681
5677
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5682
5678
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5683
5679
|
|
|
5684
|
-
var Mixcloud =
|
|
5680
|
+
var Mixcloud =
|
|
5681
|
+
/*#__PURE__*/
|
|
5682
|
+
function (_Component) {
|
|
5685
5683
|
_inherits(Mixcloud, _Component);
|
|
5686
5684
|
|
|
5687
|
-
var _super = _createSuper(Mixcloud);
|
|
5688
|
-
|
|
5689
5685
|
function Mixcloud() {
|
|
5686
|
+
var _getPrototypeOf2;
|
|
5687
|
+
|
|
5690
5688
|
var _this;
|
|
5691
5689
|
|
|
5692
5690
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5695,7 +5693,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5695
5693
|
args[_key] = arguments[_key];
|
|
5696
5694
|
}
|
|
5697
5695
|
|
|
5698
|
-
_this =
|
|
5696
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5699
5697
|
|
|
5700
5698
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5701
5699
|
|
|
@@ -5798,7 +5796,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5798
5796
|
})); // We have to give the iframe a key here to prevent a
|
|
5799
5797
|
// weird dialog appearing when loading a new track
|
|
5800
5798
|
|
|
5801
|
-
return
|
|
5799
|
+
return _react["default"].createElement("iframe", {
|
|
5802
5800
|
key: id,
|
|
5803
5801
|
ref: this.ref,
|
|
5804
5802
|
style: style,
|
|
@@ -5827,7 +5825,7 @@ exports["default"] = _default;
|
|
|
5827
5825
|
});
|
|
5828
5826
|
|
|
5829
5827
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5830
|
-
Mixcloud_1.Mixcloud;
|
|
5828
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5831
5829
|
|
|
5832
5830
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5833
5831
|
|
|
@@ -5836,7 +5834,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5836
5834
|
});
|
|
5837
5835
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5838
5836
|
|
|
5839
|
-
var _react = _interopRequireWildcard(React__default
|
|
5837
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5840
5838
|
|
|
5841
5839
|
|
|
5842
5840
|
|
|
@@ -5858,33 +5856,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5858
5856
|
|
|
5859
5857
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5860
5858
|
|
|
5861
|
-
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); }; }
|
|
5862
|
-
|
|
5863
5859
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5864
5860
|
|
|
5865
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5866
|
-
|
|
5867
|
-
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; } }
|
|
5868
|
-
|
|
5869
5861
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5870
5862
|
|
|
5863
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5864
|
+
|
|
5871
5865
|
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); }
|
|
5872
5866
|
|
|
5873
5867
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5874
5868
|
|
|
5875
5869
|
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; }
|
|
5876
5870
|
|
|
5877
|
-
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; } } }; }
|
|
5878
|
-
|
|
5879
|
-
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); }
|
|
5880
|
-
|
|
5881
|
-
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; }
|
|
5882
|
-
|
|
5883
5871
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5884
5872
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5885
5873
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5886
5874
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5887
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5875
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5888
5876
|
var HLS_GLOBAL = 'Hls';
|
|
5889
5877
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5890
5878
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5893,11 +5881,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5893
5881
|
|
|
5894
5882
|
function canPlay(url) {
|
|
5895
5883
|
if (url instanceof Array) {
|
|
5896
|
-
var
|
|
5897
|
-
|
|
5884
|
+
var _iteratorNormalCompletion = true;
|
|
5885
|
+
var _didIteratorError = false;
|
|
5886
|
+
var _iteratorError = undefined;
|
|
5898
5887
|
|
|
5899
5888
|
try {
|
|
5900
|
-
for (_iterator.
|
|
5889
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5901
5890
|
var item = _step.value;
|
|
5902
5891
|
|
|
5903
5892
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5909,9 +5898,18 @@ function canPlay(url) {
|
|
|
5909
5898
|
}
|
|
5910
5899
|
}
|
|
5911
5900
|
} catch (err) {
|
|
5912
|
-
|
|
5901
|
+
_didIteratorError = true;
|
|
5902
|
+
_iteratorError = err;
|
|
5913
5903
|
} finally {
|
|
5914
|
-
|
|
5904
|
+
try {
|
|
5905
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5906
|
+
_iterator["return"]();
|
|
5907
|
+
}
|
|
5908
|
+
} finally {
|
|
5909
|
+
if (_didIteratorError) {
|
|
5910
|
+
throw _iteratorError;
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5915
5913
|
}
|
|
5916
5914
|
|
|
5917
5915
|
return false;
|
|
@@ -5935,12 +5933,14 @@ function canEnablePIP(url) {
|
|
|
5935
5933
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5936
5934
|
}
|
|
5937
5935
|
|
|
5938
|
-
var FilePlayer =
|
|
5936
|
+
var FilePlayer =
|
|
5937
|
+
/*#__PURE__*/
|
|
5938
|
+
function (_Component) {
|
|
5939
5939
|
_inherits(FilePlayer, _Component);
|
|
5940
5940
|
|
|
5941
|
-
var _super = _createSuper(FilePlayer);
|
|
5942
|
-
|
|
5943
5941
|
function FilePlayer() {
|
|
5942
|
+
var _getPrototypeOf2;
|
|
5943
|
+
|
|
5944
5944
|
var _this;
|
|
5945
5945
|
|
|
5946
5946
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5949,7 +5949,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5949
5949
|
_args[_key] = arguments[_key];
|
|
5950
5950
|
}
|
|
5951
5951
|
|
|
5952
|
-
_this =
|
|
5952
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5953
5953
|
|
|
5954
5954
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5955
5955
|
var _this$props;
|
|
@@ -6036,19 +6036,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6036
6036
|
|
|
6037
6037
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6038
6038
|
if (typeof source === 'string') {
|
|
6039
|
-
return
|
|
6039
|
+
return _react["default"].createElement("source", {
|
|
6040
6040
|
key: index,
|
|
6041
6041
|
src: source
|
|
6042
6042
|
});
|
|
6043
6043
|
}
|
|
6044
6044
|
|
|
6045
|
-
return
|
|
6045
|
+
return _react["default"].createElement("source", _extends({
|
|
6046
6046
|
key: index
|
|
6047
6047
|
}, source));
|
|
6048
6048
|
});
|
|
6049
6049
|
|
|
6050
6050
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6051
|
-
return
|
|
6051
|
+
return _react["default"].createElement("track", _extends({
|
|
6052
6052
|
key: index
|
|
6053
6053
|
}, track));
|
|
6054
6054
|
});
|
|
@@ -6086,10 +6086,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6086
6086
|
key: "componentWillUnmount",
|
|
6087
6087
|
value: function componentWillUnmount() {
|
|
6088
6088
|
this.removeListeners(this.player);
|
|
6089
|
-
|
|
6090
|
-
if (this.hls) {
|
|
6091
|
-
this.hls.destroy();
|
|
6092
|
-
}
|
|
6093
6089
|
}
|
|
6094
6090
|
}, {
|
|
6095
6091
|
key: "addListeners",
|
|
@@ -6220,6 +6216,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6220
6216
|
value: function stop() {
|
|
6221
6217
|
this.player.removeAttribute('src');
|
|
6222
6218
|
|
|
6219
|
+
if (this.hls) {
|
|
6220
|
+
this.hls.destroy();
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6223
6223
|
if (this.dash) {
|
|
6224
6224
|
this.dash.reset();
|
|
6225
6225
|
}
|
|
@@ -6331,7 +6331,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6331
6331
|
width: width === 'auto' ? width : '100%',
|
|
6332
6332
|
height: height === 'auto' ? height : '100%'
|
|
6333
6333
|
};
|
|
6334
|
-
return
|
|
6334
|
+
return _react["default"].createElement(Element, _extends({
|
|
6335
6335
|
ref: this.ref,
|
|
6336
6336
|
src: this.getSource(url),
|
|
6337
6337
|
style: style,
|
|
@@ -6361,7 +6361,7 @@ exports["default"] = _default;
|
|
|
6361
6361
|
});
|
|
6362
6362
|
|
|
6363
6363
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6364
|
-
FilePlayer_1.FilePlayer;
|
|
6364
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6365
6365
|
|
|
6366
6366
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6367
6367
|
|
|
@@ -6403,7 +6403,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6403
6403
|
});
|
|
6404
6404
|
exports["default"] = void 0;
|
|
6405
6405
|
|
|
6406
|
-
var _react = _interopRequireWildcard(React__default
|
|
6406
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6407
6407
|
|
|
6408
6408
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6409
6409
|
|
|
@@ -6421,16 +6421,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6421
6421
|
|
|
6422
6422
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6423
6423
|
|
|
6424
|
-
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); }; }
|
|
6425
|
-
|
|
6426
6424
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6427
6425
|
|
|
6428
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6429
|
-
|
|
6430
|
-
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; } }
|
|
6431
|
-
|
|
6432
6426
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6433
6427
|
|
|
6428
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6429
|
+
|
|
6434
6430
|
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); }
|
|
6435
6431
|
|
|
6436
6432
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6439,12 +6435,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6439
6435
|
|
|
6440
6436
|
var ICON_SIZE = '64px';
|
|
6441
6437
|
|
|
6442
|
-
var Preview =
|
|
6438
|
+
var Preview =
|
|
6439
|
+
/*#__PURE__*/
|
|
6440
|
+
function (_Component) {
|
|
6443
6441
|
_inherits(Preview, _Component);
|
|
6444
6442
|
|
|
6445
|
-
var _super = _createSuper(Preview);
|
|
6446
|
-
|
|
6447
6443
|
function Preview() {
|
|
6444
|
+
var _getPrototypeOf2;
|
|
6445
|
+
|
|
6448
6446
|
var _this;
|
|
6449
6447
|
|
|
6450
6448
|
_classCallCheck(this, Preview);
|
|
@@ -6453,7 +6451,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6453
6451
|
args[_key] = arguments[_key];
|
|
6454
6452
|
}
|
|
6455
6453
|
|
|
6456
|
-
_this =
|
|
6454
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6457
6455
|
|
|
6458
6456
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6459
6457
|
|
|
@@ -6551,15 +6549,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6551
6549
|
}
|
|
6552
6550
|
};
|
|
6553
6551
|
|
|
6554
|
-
var defaultPlayIcon =
|
|
6552
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6555
6553
|
style: styles.shadow,
|
|
6556
6554
|
className: "react-player__shadow"
|
|
6557
|
-
},
|
|
6555
|
+
}, _react["default"].createElement("div", {
|
|
6558
6556
|
style: styles.playIcon,
|
|
6559
6557
|
className: "react-player__play-icon"
|
|
6560
6558
|
}));
|
|
6561
6559
|
|
|
6562
|
-
return
|
|
6560
|
+
return _react["default"].createElement("div", {
|
|
6563
6561
|
style: styles.preview,
|
|
6564
6562
|
className: "react-player__preview",
|
|
6565
6563
|
onClick: onClick
|
|
@@ -6582,7 +6580,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6582
6580
|
});
|
|
6583
6581
|
exports["default"] = renderPreloadPlayers;
|
|
6584
6582
|
|
|
6585
|
-
var _react = _interopRequireDefault(React__default
|
|
6583
|
+
var _react = _interopRequireDefault(React__default);
|
|
6586
6584
|
|
|
6587
6585
|
var _Player = _interopRequireDefault(Player_1);
|
|
6588
6586
|
|
|
@@ -6596,12 +6594,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6596
6594
|
|
|
6597
6595
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6598
6596
|
|
|
6599
|
-
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; } } }; }
|
|
6600
|
-
|
|
6601
|
-
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); }
|
|
6602
|
-
|
|
6603
|
-
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; }
|
|
6604
|
-
|
|
6605
6597
|
var PRELOAD_PLAYERS = [{
|
|
6606
6598
|
Player: YouTube_1.YouTube,
|
|
6607
6599
|
configKey: 'youtube',
|
|
@@ -6622,16 +6614,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6622
6614
|
|
|
6623
6615
|
function renderPreloadPlayers(url, controls, config) {
|
|
6624
6616
|
var players = [];
|
|
6625
|
-
|
|
6626
|
-
var
|
|
6627
|
-
|
|
6617
|
+
var _iteratorNormalCompletion = true;
|
|
6618
|
+
var _didIteratorError = false;
|
|
6619
|
+
var _iteratorError = undefined;
|
|
6628
6620
|
|
|
6629
6621
|
try {
|
|
6630
|
-
for (_iterator.
|
|
6622
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6631
6623
|
var player = _step.value;
|
|
6632
6624
|
|
|
6633
6625
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6634
|
-
players.push(
|
|
6626
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6635
6627
|
key: player.Player.displayName,
|
|
6636
6628
|
activePlayer: player.Player,
|
|
6637
6629
|
url: player.url,
|
|
@@ -6643,9 +6635,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6643
6635
|
}
|
|
6644
6636
|
}
|
|
6645
6637
|
} catch (err) {
|
|
6646
|
-
|
|
6638
|
+
_didIteratorError = true;
|
|
6639
|
+
_iteratorError = err;
|
|
6647
6640
|
} finally {
|
|
6648
|
-
|
|
6641
|
+
try {
|
|
6642
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6643
|
+
_iterator["return"]();
|
|
6644
|
+
}
|
|
6645
|
+
} finally {
|
|
6646
|
+
if (_didIteratorError) {
|
|
6647
|
+
throw _iteratorError;
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6649
6650
|
}
|
|
6650
6651
|
|
|
6651
6652
|
return players;
|
|
@@ -6721,7 +6722,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6721
6722
|
});
|
|
6722
6723
|
exports["default"] = void 0;
|
|
6723
6724
|
|
|
6724
|
-
var _react = _interopRequireWildcard(React__default
|
|
6725
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6725
6726
|
|
|
6726
6727
|
|
|
6727
6728
|
|
|
@@ -6769,17 +6770,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6769
6770
|
|
|
6770
6771
|
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); }
|
|
6771
6772
|
|
|
6772
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6773
|
-
|
|
6774
|
-
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."); }
|
|
6773
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6775
6774
|
|
|
6776
|
-
function
|
|
6775
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6777
6776
|
|
|
6778
|
-
function _iterableToArray(iter) { if (
|
|
6777
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6779
6778
|
|
|
6780
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6781
|
-
|
|
6782
|
-
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; }
|
|
6779
|
+
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; } }
|
|
6783
6780
|
|
|
6784
6781
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6785
6782
|
|
|
@@ -6787,16 +6784,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6787
6784
|
|
|
6788
6785
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6789
6786
|
|
|
6790
|
-
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); }; }
|
|
6791
|
-
|
|
6792
6787
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6793
6788
|
|
|
6794
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6795
|
-
|
|
6796
|
-
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; } }
|
|
6797
|
-
|
|
6798
6789
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6799
6790
|
|
|
6791
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6792
|
+
|
|
6800
6793
|
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); }
|
|
6801
6794
|
|
|
6802
6795
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6806,12 +6799,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6806
6799
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6807
6800
|
var customPlayers = [];
|
|
6808
6801
|
|
|
6809
|
-
var ReactPlayer =
|
|
6802
|
+
var ReactPlayer =
|
|
6803
|
+
/*#__PURE__*/
|
|
6804
|
+
function (_Component) {
|
|
6810
6805
|
_inherits(ReactPlayer, _Component);
|
|
6811
6806
|
|
|
6812
|
-
var _super = _createSuper(ReactPlayer);
|
|
6813
|
-
|
|
6814
6807
|
function ReactPlayer() {
|
|
6808
|
+
var _getPrototypeOf2;
|
|
6809
|
+
|
|
6815
6810
|
var _this;
|
|
6816
6811
|
|
|
6817
6812
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6820,7 +6815,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6820
6815
|
args[_key] = arguments[_key];
|
|
6821
6816
|
}
|
|
6822
6817
|
|
|
6823
|
-
_this =
|
|
6818
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6824
6819
|
|
|
6825
6820
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6826
6821
|
|
|
@@ -6931,7 +6926,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6931
6926
|
key: "renderActivePlayer",
|
|
6932
6927
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6933
6928
|
if (!url) return null;
|
|
6934
|
-
return
|
|
6929
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6935
6930
|
key: activePlayer.displayName,
|
|
6936
6931
|
ref: this.activePlayerRef,
|
|
6937
6932
|
config: this.config,
|
|
@@ -6968,14 +6963,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6968
6963
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6969
6964
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6970
6965
|
|
|
6971
|
-
var preview =
|
|
6966
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6972
6967
|
url: url,
|
|
6973
6968
|
light: light,
|
|
6974
6969
|
playIcon: playIcon,
|
|
6975
6970
|
onClick: this.handleClickPreview
|
|
6976
6971
|
});
|
|
6977
6972
|
|
|
6978
|
-
return
|
|
6973
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6979
6974
|
ref: this.wrapperRef,
|
|
6980
6975
|
style: _objectSpread({}, style, {
|
|
6981
6976
|
width: width,
|
|
@@ -7035,20 +7030,20 @@ var Audio = function Audio(_ref) {
|
|
|
7035
7030
|
var node = _ref.node;
|
|
7036
7031
|
|
|
7037
7032
|
if (node.uploadAudio) {
|
|
7038
|
-
return React__default
|
|
7033
|
+
return React__default.createElement(
|
|
7039
7034
|
'div',
|
|
7040
7035
|
{ className: 'audio d-block text-center mb-3' },
|
|
7041
|
-
React__default
|
|
7036
|
+
React__default.createElement(
|
|
7042
7037
|
'audio',
|
|
7043
7038
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7044
|
-
React__default
|
|
7045
|
-
React__default
|
|
7039
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7040
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7046
7041
|
'Your browser does not support the audio element.'
|
|
7047
7042
|
),
|
|
7048
|
-
node.caption && React__default
|
|
7043
|
+
node.caption && React__default.createElement(
|
|
7049
7044
|
'p',
|
|
7050
7045
|
{ style: { fontSize: '.9rem' } },
|
|
7051
|
-
React__default
|
|
7046
|
+
React__default.createElement(
|
|
7052
7047
|
'em',
|
|
7053
7048
|
null,
|
|
7054
7049
|
node.caption
|
|
@@ -7058,15 +7053,15 @@ var Audio = function Audio(_ref) {
|
|
|
7058
7053
|
} else if (node.audioFilePth) {
|
|
7059
7054
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7060
7055
|
if (hostname === 'embeds.audioboom.com') {
|
|
7061
|
-
return React__default
|
|
7056
|
+
return React__default.createElement(
|
|
7062
7057
|
'div',
|
|
7063
7058
|
null,
|
|
7064
|
-
React__default
|
|
7059
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7065
7060
|
' ',
|
|
7066
|
-
node.caption && React__default
|
|
7061
|
+
node.caption && React__default.createElement(
|
|
7067
7062
|
'p',
|
|
7068
7063
|
{ style: { fontSize: '.9rem' } },
|
|
7069
|
-
React__default
|
|
7064
|
+
React__default.createElement(
|
|
7070
7065
|
'em',
|
|
7071
7066
|
null,
|
|
7072
7067
|
node.caption
|
|
@@ -7074,14 +7069,14 @@ var Audio = function Audio(_ref) {
|
|
|
7074
7069
|
)
|
|
7075
7070
|
);
|
|
7076
7071
|
}
|
|
7077
|
-
return React__default
|
|
7072
|
+
return React__default.createElement(
|
|
7078
7073
|
'div',
|
|
7079
7074
|
{ className: 'audio' },
|
|
7080
|
-
React__default
|
|
7081
|
-
node.caption && React__default
|
|
7075
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7076
|
+
node.caption && React__default.createElement(
|
|
7082
7077
|
'p',
|
|
7083
7078
|
{ style: { fontSize: '.9rem' } },
|
|
7084
|
-
React__default
|
|
7079
|
+
React__default.createElement(
|
|
7085
7080
|
'em',
|
|
7086
7081
|
null,
|
|
7087
7082
|
node.caption
|
|
@@ -7099,34 +7094,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7099
7094
|
var profileImage = arguments[6];
|
|
7100
7095
|
|
|
7101
7096
|
if (authorName && authorURL) {
|
|
7102
|
-
return React__default
|
|
7097
|
+
return React__default.createElement(
|
|
7103
7098
|
'span',
|
|
7104
7099
|
null,
|
|
7105
|
-
React__default
|
|
7100
|
+
React__default.createElement(
|
|
7106
7101
|
'a',
|
|
7107
7102
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7108
7103
|
authorName
|
|
7109
7104
|
),
|
|
7110
|
-
React__default
|
|
7105
|
+
React__default.createElement(
|
|
7111
7106
|
reactBootstrap.Card,
|
|
7112
7107
|
{ className: 'author-details-card-' + index },
|
|
7113
|
-
React__default
|
|
7108
|
+
React__default.createElement(
|
|
7114
7109
|
reactBootstrap.Row,
|
|
7115
7110
|
null,
|
|
7116
|
-
profileImage && React__default
|
|
7111
|
+
profileImage && React__default.createElement(
|
|
7117
7112
|
reactBootstrap.Col,
|
|
7118
7113
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7119
|
-
React__default
|
|
7114
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7120
7115
|
),
|
|
7121
|
-
React__default
|
|
7116
|
+
React__default.createElement(
|
|
7122
7117
|
reactBootstrap.Col,
|
|
7123
7118
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7124
|
-
React__default
|
|
7119
|
+
React__default.createElement(
|
|
7125
7120
|
'div',
|
|
7126
7121
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7127
7122
|
authorName
|
|
7128
7123
|
),
|
|
7129
|
-
React__default
|
|
7124
|
+
React__default.createElement(
|
|
7130
7125
|
'p',
|
|
7131
7126
|
null,
|
|
7132
7127
|
biography
|
|
@@ -7134,7 +7129,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7134
7129
|
)
|
|
7135
7130
|
)
|
|
7136
7131
|
),
|
|
7137
|
-
React__default
|
|
7132
|
+
React__default.createElement(
|
|
7138
7133
|
'style',
|
|
7139
7134
|
{ jsx: 'true' },
|
|
7140
7135
|
'\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 '
|
|
@@ -7142,7 +7137,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7142
7137
|
length !== index + 1 && ', '
|
|
7143
7138
|
);
|
|
7144
7139
|
} else if (authorName) {
|
|
7145
|
-
return React__default
|
|
7140
|
+
return React__default.createElement(
|
|
7146
7141
|
'span',
|
|
7147
7142
|
{ key: index },
|
|
7148
7143
|
authorName,
|
|
@@ -7244,7 +7239,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7244
7239
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7245
7240
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7246
7241
|
} else {
|
|
7247
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7242
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7248
7243
|
}
|
|
7249
7244
|
}
|
|
7250
7245
|
});
|
|
@@ -7297,14 +7292,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7297
7292
|
var duration = player.getDuration();
|
|
7298
7293
|
var queue = Math.floor(duration / 10);
|
|
7299
7294
|
var segment = Math.floor(current / queue);
|
|
7300
|
-
Beam.report_beam_video('Ready', main.
|
|
7301
|
-
Segment.report_video_event('Video Ready', main.
|
|
7295
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
7296
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7302
7297
|
//autoplay
|
|
7303
7298
|
|
|
7304
7299
|
//Small pause before starting next video
|
|
7305
7300
|
setTimeout(function () {
|
|
7306
7301
|
//Youtube API to start video playing automatically
|
|
7307
|
-
var id = index$
|
|
7302
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7308
7303
|
event.target.loadVideoById(id);
|
|
7309
7304
|
}, 1500);
|
|
7310
7305
|
};
|
|
@@ -7318,8 +7313,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7318
7313
|
var queue = Math.floor(duration / 10);
|
|
7319
7314
|
var segment = Math.floor(current / queue);
|
|
7320
7315
|
|
|
7321
|
-
Beam.report_beam_video('End', main.
|
|
7322
|
-
Segment.report_video_event('Video End', main.
|
|
7316
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
7317
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7323
7318
|
setEndReported(true);
|
|
7324
7319
|
clearInterval(intervalID);
|
|
7325
7320
|
}
|
|
@@ -7369,8 +7364,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7369
7364
|
var queue = Math.floor(duration / 10);
|
|
7370
7365
|
var segment = Math.floor(current / queue);
|
|
7371
7366
|
if (!queueProgress.includes(segment)) {
|
|
7372
|
-
Beam.report_beam_video('Segment', main.
|
|
7373
|
-
Segment.report_video_event('Video Segment', main.
|
|
7367
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
7368
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7374
7369
|
queueProgress.push(segment);
|
|
7375
7370
|
}
|
|
7376
7371
|
};
|
|
@@ -7383,8 +7378,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7383
7378
|
var queue = Math.floor(duration / 10);
|
|
7384
7379
|
var segment = Math.floor(current / queue);
|
|
7385
7380
|
|
|
7386
|
-
Beam.report_beam_video('Play', main.
|
|
7387
|
-
Segment.report_video_event('Video Play', main.
|
|
7381
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
7382
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7388
7383
|
|
|
7389
7384
|
if (!playReported) {
|
|
7390
7385
|
setPlayReported(true);
|
|
@@ -7402,8 +7397,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7402
7397
|
var queue = Math.floor(duration / 10);
|
|
7403
7398
|
var segment = Math.floor(current / queue);
|
|
7404
7399
|
|
|
7405
|
-
Beam.report_beam_video('Pause', main.
|
|
7406
|
-
Segment.report_video_event('Video Pause', main.
|
|
7400
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
7401
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7407
7402
|
};
|
|
7408
7403
|
|
|
7409
7404
|
// Youtube Options
|
|
@@ -7414,44 +7409,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7414
7409
|
}
|
|
7415
7410
|
};
|
|
7416
7411
|
|
|
7417
|
-
return React__default
|
|
7412
|
+
return React__default.createElement(
|
|
7418
7413
|
'div',
|
|
7419
7414
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7420
|
-
React__default
|
|
7415
|
+
React__default.createElement(
|
|
7421
7416
|
'div',
|
|
7422
7417
|
{ className: 'mt-2 mb-5' },
|
|
7423
|
-
series && React__default
|
|
7418
|
+
series && React__default.createElement(
|
|
7424
7419
|
'div',
|
|
7425
7420
|
{ style: { fontSize: '0.9rem' } },
|
|
7426
7421
|
article.title,
|
|
7427
7422
|
' - Episode ',
|
|
7428
7423
|
series
|
|
7429
7424
|
),
|
|
7430
|
-
Videos[series - 1] && React__default
|
|
7425
|
+
Videos[series - 1] && React__default.createElement(
|
|
7431
7426
|
'h1',
|
|
7432
7427
|
{ className: 'mb-3' },
|
|
7433
7428
|
Videos[series - 1].title
|
|
7434
7429
|
),
|
|
7435
|
-
React__default
|
|
7430
|
+
React__default.createElement(
|
|
7436
7431
|
'div',
|
|
7437
7432
|
null,
|
|
7438
7433
|
moment.moment(article.published).format('LL')
|
|
7439
7434
|
),
|
|
7440
|
-
React__default
|
|
7435
|
+
React__default.createElement(
|
|
7441
7436
|
'div',
|
|
7442
7437
|
{ className: 'mb-3' },
|
|
7443
7438
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7444
|
-
return React__default
|
|
7439
|
+
return React__default.createElement(
|
|
7445
7440
|
'span',
|
|
7446
7441
|
{ key: index },
|
|
7447
7442
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7448
7443
|
);
|
|
7449
7444
|
})
|
|
7450
7445
|
),
|
|
7451
|
-
React__default
|
|
7446
|
+
React__default.createElement(
|
|
7452
7447
|
'p',
|
|
7453
7448
|
null,
|
|
7454
|
-
React__default
|
|
7449
|
+
React__default.createElement(SocialShare, {
|
|
7455
7450
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7456
7451
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7457
7452
|
shareVia: meta.shareVia,
|
|
@@ -7466,22 +7461,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7466
7461
|
hideFacebook: meta.hideFBShare
|
|
7467
7462
|
})
|
|
7468
7463
|
),
|
|
7469
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7464
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7470
7465
|
'p',
|
|
7471
7466
|
{ className: 'mb-3' },
|
|
7472
|
-
React__default
|
|
7467
|
+
React__default.createElement(
|
|
7473
7468
|
'em',
|
|
7474
7469
|
null,
|
|
7475
7470
|
Videos[series - 1].intro
|
|
7476
7471
|
)
|
|
7477
7472
|
)
|
|
7478
7473
|
),
|
|
7479
|
-
React__default
|
|
7474
|
+
React__default.createElement(
|
|
7480
7475
|
'div',
|
|
7481
7476
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7482
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7477
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7483
7478
|
className: 'fluid-iframe',
|
|
7484
|
-
videoId: index$
|
|
7479
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7485
7480
|
opts: opts,
|
|
7486
7481
|
onReady: handleOnReady,
|
|
7487
7482
|
onPlay: handleOnPlay,
|
|
@@ -7490,10 +7485,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7490
7485
|
return handleOnEnd(e);
|
|
7491
7486
|
}
|
|
7492
7487
|
}),
|
|
7493
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7494
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7495
|
-
React__default
|
|
7496
|
-
series && React__default
|
|
7488
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7489
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7490
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7491
|
+
series && React__default.createElement(
|
|
7497
7492
|
'div',
|
|
7498
7493
|
{
|
|
7499
7494
|
className: 'vid-series',
|
|
@@ -7503,10 +7498,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7503
7498
|
maxHeight: '100%',
|
|
7504
7499
|
paddingBottom: '0'
|
|
7505
7500
|
} },
|
|
7506
|
-
React__default
|
|
7501
|
+
React__default.createElement(
|
|
7507
7502
|
'p',
|
|
7508
7503
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7509
|
-
React__default
|
|
7504
|
+
React__default.createElement(
|
|
7510
7505
|
'b',
|
|
7511
7506
|
{ style: { fontSize: '1.25em' } },
|
|
7512
7507
|
'Now Playing:'
|
|
@@ -7514,16 +7509,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7509
|
' ',
|
|
7515
7510
|
seriesData[series ? series - 1 : 0].title
|
|
7516
7511
|
),
|
|
7517
|
-
vidUrl && React__default
|
|
7512
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7518
7513
|
)
|
|
7519
7514
|
),
|
|
7520
|
-
React__default
|
|
7521
|
-
React__default
|
|
7515
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7516
|
+
React__default.createElement(
|
|
7522
7517
|
'div',
|
|
7523
7518
|
{ className: 'vid-text' },
|
|
7524
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7519
|
+
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()))
|
|
7525
7520
|
),
|
|
7526
|
-
React__default
|
|
7521
|
+
React__default.createElement(
|
|
7527
7522
|
'style',
|
|
7528
7523
|
{ jsx: 'true' },
|
|
7529
7524
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7531,14 +7526,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7531
7526
|
);
|
|
7532
7527
|
};
|
|
7533
7528
|
|
|
7534
|
-
var Poll
|
|
7535
|
-
var node = _ref.node
|
|
7536
|
-
_ref.client
|
|
7537
|
-
_ref.pageview
|
|
7538
|
-
_ref.videoAccountIDs
|
|
7539
|
-
|
|
7540
|
-
_ref.showVotes
|
|
7541
|
-
|
|
7529
|
+
var Poll = function Poll(_ref) {
|
|
7530
|
+
var node = _ref.node,
|
|
7531
|
+
client = _ref.client,
|
|
7532
|
+
pageview = _ref.pageview,
|
|
7533
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7534
|
+
onVote = _ref.onVote,
|
|
7535
|
+
_ref$showVotes = _ref.showVotes,
|
|
7536
|
+
getSerializers = _ref.getSerializers;
|
|
7542
7537
|
|
|
7543
7538
|
var _useState = React.useState(null),
|
|
7544
7539
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7576,67 +7571,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7576
7571
|
return acc;
|
|
7577
7572
|
}
|
|
7578
7573
|
}, 0);
|
|
7579
|
-
return React__default
|
|
7580
|
-
React__default
|
|
7574
|
+
return React__default.createElement(
|
|
7575
|
+
React__default.Fragment,
|
|
7581
7576
|
null,
|
|
7582
|
-
question && React__default
|
|
7577
|
+
question && React__default.createElement(
|
|
7583
7578
|
'p',
|
|
7584
7579
|
{ className: 'font-weight-bold' },
|
|
7585
7580
|
question
|
|
7586
7581
|
),
|
|
7587
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7582
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7588
7583
|
'form',
|
|
7589
7584
|
{ onSubmit: function onSubmit(e) {
|
|
7590
7585
|
return onSubmitPoll(e);
|
|
7591
7586
|
} },
|
|
7592
7587
|
choices && choices.map(function (choice) {
|
|
7593
|
-
return React__default
|
|
7588
|
+
return React__default.createElement(
|
|
7594
7589
|
'div',
|
|
7595
7590
|
{ key: choice._key },
|
|
7596
|
-
React__default
|
|
7591
|
+
React__default.createElement(
|
|
7597
7592
|
'label',
|
|
7598
7593
|
{ className: 'pl-2' },
|
|
7599
|
-
React__default
|
|
7594
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7600
7595
|
return setSelectedChoice(e.target.value);
|
|
7601
7596
|
} }),
|
|
7602
7597
|
' ' + choice.choiceText
|
|
7603
7598
|
)
|
|
7604
7599
|
);
|
|
7605
7600
|
}),
|
|
7606
|
-
React__default
|
|
7601
|
+
React__default.createElement(
|
|
7607
7602
|
reactBootstrap.Button,
|
|
7608
7603
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7609
7604
|
'Vote'
|
|
7610
7605
|
)
|
|
7611
7606
|
),
|
|
7612
|
-
React__default
|
|
7607
|
+
React__default.createElement(
|
|
7613
7608
|
'div',
|
|
7614
7609
|
{ className: 'progress-container' },
|
|
7615
7610
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7616
7611
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7617
|
-
return React__default
|
|
7612
|
+
return React__default.createElement(
|
|
7618
7613
|
'div',
|
|
7619
7614
|
{ key: choice._key, className: 'mb-3' },
|
|
7620
|
-
React__default
|
|
7615
|
+
React__default.createElement(
|
|
7621
7616
|
'div',
|
|
7622
7617
|
{ className: 'correct-answer' },
|
|
7623
|
-
React__default
|
|
7618
|
+
React__default.createElement(
|
|
7624
7619
|
'div',
|
|
7625
7620
|
null,
|
|
7626
7621
|
choice.choiceText
|
|
7627
7622
|
),
|
|
7628
|
-
choice.choiceAnswer === true && React__default
|
|
7623
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7629
7624
|
'div',
|
|
7630
7625
|
null,
|
|
7631
|
-
React__default
|
|
7626
|
+
React__default.createElement(
|
|
7632
7627
|
'span',
|
|
7633
7628
|
{ style: { color: 'limegreen' } },
|
|
7634
7629
|
'Correct!'
|
|
7635
7630
|
)
|
|
7636
7631
|
)
|
|
7637
7632
|
),
|
|
7638
|
-
React__default
|
|
7639
|
-
React__default
|
|
7633
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7634
|
+
React__default.createElement(
|
|
7640
7635
|
'span',
|
|
7641
7636
|
{ className: 'float-right' },
|
|
7642
7637
|
percentage,
|
|
@@ -7647,14 +7642,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7647
7642
|
);
|
|
7648
7643
|
})
|
|
7649
7644
|
),
|
|
7650
|
-
showAnswer && React__default
|
|
7645
|
+
showAnswer && React__default.createElement(
|
|
7651
7646
|
'h4',
|
|
7652
7647
|
{ className: 'text-center small p-3' },
|
|
7653
7648
|
'Total Votes: ',
|
|
7654
7649
|
choicesTotalCount
|
|
7655
7650
|
),
|
|
7656
|
-
showAnswer && response && React__default
|
|
7657
|
-
React__default
|
|
7651
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7652
|
+
React__default.createElement(
|
|
7658
7653
|
'style',
|
|
7659
7654
|
{ jsx: 'true' },
|
|
7660
7655
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7666,28 +7661,28 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7666
7661
|
|
|
7667
7662
|
var $values = _objectToArray._objectToArray(false);
|
|
7668
7663
|
|
|
7669
|
-
|
|
7664
|
+
core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
7670
7665
|
values: function values(it) {
|
|
7671
7666
|
return $values(it);
|
|
7672
7667
|
}
|
|
7673
7668
|
});
|
|
7674
7669
|
|
|
7675
|
-
var values
|
|
7670
|
+
var values = core_getIteratorMethod._core.Object.values;
|
|
7676
7671
|
|
|
7677
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7678
|
-
module.exports = { "default": values
|
|
7672
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7673
|
+
module.exports = { "default": values, __esModule: true };
|
|
7679
7674
|
});
|
|
7680
7675
|
|
|
7681
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7676
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7682
7677
|
|
|
7683
|
-
var Poll = function Poll(_ref) {
|
|
7684
|
-
var node = _ref.node
|
|
7685
|
-
_ref.client
|
|
7686
|
-
_ref.pageview
|
|
7687
|
-
_ref.videoAccountIDs
|
|
7688
|
-
|
|
7689
|
-
_ref.showVotes
|
|
7690
|
-
|
|
7678
|
+
var Poll$1 = function Poll(_ref) {
|
|
7679
|
+
var node = _ref.node,
|
|
7680
|
+
client = _ref.client,
|
|
7681
|
+
pageview = _ref.pageview,
|
|
7682
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7683
|
+
onVote = _ref.onVote,
|
|
7684
|
+
_ref$showVotes = _ref.showVotes,
|
|
7685
|
+
getSerializers = _ref.getSerializers;
|
|
7691
7686
|
|
|
7692
7687
|
var _useState = React.useState(null),
|
|
7693
7688
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7753,67 +7748,67 @@ var Poll = function Poll(_ref) {
|
|
|
7753
7748
|
return acc;
|
|
7754
7749
|
}
|
|
7755
7750
|
}, 0);
|
|
7756
|
-
return React__default
|
|
7757
|
-
React__default
|
|
7751
|
+
return React__default.createElement(
|
|
7752
|
+
React__default.Fragment,
|
|
7758
7753
|
null,
|
|
7759
|
-
question && React__default
|
|
7754
|
+
question && React__default.createElement(
|
|
7760
7755
|
'p',
|
|
7761
7756
|
{ className: 'font-weight-bold' },
|
|
7762
7757
|
question
|
|
7763
7758
|
),
|
|
7764
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7759
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7765
7760
|
'form',
|
|
7766
7761
|
{ onSubmit: function onSubmit(e) {
|
|
7767
7762
|
return onSubmitPoll(e);
|
|
7768
7763
|
} },
|
|
7769
7764
|
choices && choices.map(function (choice) {
|
|
7770
|
-
return React__default
|
|
7765
|
+
return React__default.createElement(
|
|
7771
7766
|
'div',
|
|
7772
7767
|
{ key: choice._key },
|
|
7773
|
-
React__default
|
|
7768
|
+
React__default.createElement(
|
|
7774
7769
|
'label',
|
|
7775
7770
|
{ className: 'pl-2' },
|
|
7776
|
-
React__default
|
|
7771
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7777
7772
|
return setSelectedChoice(e.target.value);
|
|
7778
7773
|
} }),
|
|
7779
7774
|
' ' + choice.choiceText
|
|
7780
7775
|
)
|
|
7781
7776
|
);
|
|
7782
7777
|
}),
|
|
7783
|
-
React__default
|
|
7778
|
+
React__default.createElement(
|
|
7784
7779
|
reactBootstrap.Button,
|
|
7785
7780
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7786
7781
|
'Vote'
|
|
7787
7782
|
)
|
|
7788
7783
|
),
|
|
7789
|
-
React__default
|
|
7784
|
+
React__default.createElement(
|
|
7790
7785
|
'div',
|
|
7791
7786
|
{ className: 'progress-container' },
|
|
7792
7787
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7793
7788
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7794
|
-
return React__default
|
|
7789
|
+
return React__default.createElement(
|
|
7795
7790
|
'div',
|
|
7796
7791
|
{ key: choice._key, className: 'mb-3' },
|
|
7797
|
-
React__default
|
|
7792
|
+
React__default.createElement(
|
|
7798
7793
|
'div',
|
|
7799
7794
|
{ className: 'correct-answer' },
|
|
7800
|
-
React__default
|
|
7795
|
+
React__default.createElement(
|
|
7801
7796
|
'div',
|
|
7802
7797
|
null,
|
|
7803
7798
|
choice.choiceText
|
|
7804
7799
|
),
|
|
7805
|
-
choice.choiceAnswer === true && React__default
|
|
7800
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7806
7801
|
'div',
|
|
7807
7802
|
null,
|
|
7808
|
-
React__default
|
|
7803
|
+
React__default.createElement(
|
|
7809
7804
|
'span',
|
|
7810
7805
|
{ style: { color: 'limegreen' } },
|
|
7811
7806
|
'Correct!'
|
|
7812
7807
|
)
|
|
7813
7808
|
)
|
|
7814
7809
|
),
|
|
7815
|
-
React__default
|
|
7816
|
-
React__default
|
|
7810
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7811
|
+
React__default.createElement(
|
|
7817
7812
|
'span',
|
|
7818
7813
|
{ className: 'float-right' },
|
|
7819
7814
|
percentage,
|
|
@@ -7824,14 +7819,14 @@ var Poll = function Poll(_ref) {
|
|
|
7824
7819
|
);
|
|
7825
7820
|
})
|
|
7826
7821
|
),
|
|
7827
|
-
showAnswer && React__default
|
|
7822
|
+
showAnswer && React__default.createElement(
|
|
7828
7823
|
'h4',
|
|
7829
7824
|
{ className: 'text-center small p-3' },
|
|
7830
7825
|
'Total Votes: ',
|
|
7831
7826
|
choicesTotalCount
|
|
7832
7827
|
),
|
|
7833
|
-
showAnswer && response && React__default
|
|
7834
|
-
React__default
|
|
7828
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7829
|
+
React__default.createElement(
|
|
7835
7830
|
'style',
|
|
7836
7831
|
{ jsx: 'true' },
|
|
7837
7832
|
'\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 '
|
|
@@ -7839,7 +7834,7 @@ var Poll = function Poll(_ref) {
|
|
|
7839
7834
|
);
|
|
7840
7835
|
};
|
|
7841
7836
|
|
|
7842
|
-
var numberOfPaginations = main.
|
|
7837
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7843
7838
|
|
|
7844
7839
|
var Quiz = function Quiz(_ref) {
|
|
7845
7840
|
var quizzes = _ref.quizzes,
|
|
@@ -7957,34 +7952,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7957
7952
|
};
|
|
7958
7953
|
|
|
7959
7954
|
var renderPagination = function renderPagination() {
|
|
7960
|
-
return React__default
|
|
7961
|
-
|
|
7962
|
-
{ className: 'p-0 m-0', size: main.
|
|
7963
|
-
React__default
|
|
7955
|
+
return React__default.createElement(
|
|
7956
|
+
Pagination,
|
|
7957
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7958
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7964
7959
|
return changePage('first');
|
|
7965
7960
|
}, disabled: currentPage === 1 }),
|
|
7966
|
-
React__default
|
|
7961
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7967
7962
|
return changePage('prev');
|
|
7968
7963
|
}, disabled: currentPage === 1 }),
|
|
7969
|
-
React__default
|
|
7964
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7970
7965
|
return renderNewPages('prev');
|
|
7971
7966
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7972
7967
|
pages.map(function (page) {
|
|
7973
|
-
return React__default
|
|
7974
|
-
|
|
7968
|
+
return React__default.createElement(
|
|
7969
|
+
Pagination.Item,
|
|
7975
7970
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7976
7971
|
return changePage(page);
|
|
7977
7972
|
} },
|
|
7978
7973
|
page
|
|
7979
7974
|
);
|
|
7980
7975
|
}),
|
|
7981
|
-
React__default
|
|
7976
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7982
7977
|
return renderNewPages('next');
|
|
7983
7978
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7984
|
-
React__default
|
|
7979
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7985
7980
|
return changePage('next');
|
|
7986
7981
|
}, disabled: currentPage === pageCount }),
|
|
7987
|
-
React__default
|
|
7982
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7988
7983
|
return changePage('last');
|
|
7989
7984
|
}, disabled: currentPage === pageCount })
|
|
7990
7985
|
);
|
|
@@ -8067,51 +8062,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8067
8062
|
}
|
|
8068
8063
|
};
|
|
8069
8064
|
|
|
8070
|
-
return React__default
|
|
8071
|
-
React__default
|
|
8065
|
+
return React__default.createElement(
|
|
8066
|
+
React__default.Fragment,
|
|
8072
8067
|
null,
|
|
8073
|
-
quizzes[currentPage - 1] && React__default
|
|
8074
|
-
React__default
|
|
8068
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8069
|
+
React__default.Fragment,
|
|
8075
8070
|
null,
|
|
8076
|
-
React__default
|
|
8077
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8071
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8072
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8078
8073
|
'form',
|
|
8079
8074
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8080
8075
|
return e.preventDefault();
|
|
8081
8076
|
} },
|
|
8082
8077
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8083
|
-
return React__default
|
|
8078
|
+
return React__default.createElement(
|
|
8084
8079
|
'div',
|
|
8085
8080
|
{ key: answer._key },
|
|
8086
|
-
React__default
|
|
8081
|
+
React__default.createElement(
|
|
8087
8082
|
'label',
|
|
8088
8083
|
{ className: 'pl-2' },
|
|
8089
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8084
|
+
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 }),
|
|
8090
8085
|
' ' + answer.answerText
|
|
8091
8086
|
)
|
|
8092
8087
|
);
|
|
8093
8088
|
})
|
|
8094
8089
|
)
|
|
8095
8090
|
),
|
|
8096
|
-
!showAnswer && React__default
|
|
8097
|
-
|
|
8091
|
+
!showAnswer && React__default.createElement(
|
|
8092
|
+
Button,
|
|
8098
8093
|
{ onClick: function onClick() {
|
|
8099
8094
|
return checkAnswers();
|
|
8100
8095
|
}, variant: 'info', block: true },
|
|
8101
8096
|
'Please click here for answer'
|
|
8102
8097
|
),
|
|
8103
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8104
|
-
React__default
|
|
8098
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8099
|
+
React__default.Fragment,
|
|
8105
8100
|
null,
|
|
8106
|
-
React__default
|
|
8101
|
+
React__default.createElement(
|
|
8107
8102
|
'h4',
|
|
8108
8103
|
null,
|
|
8109
8104
|
'Answer:'
|
|
8110
8105
|
),
|
|
8111
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8106
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8112
8107
|
),
|
|
8113
|
-
React__default
|
|
8114
|
-
pageCount > 1 && React__default
|
|
8108
|
+
React__default.createElement('br', null),
|
|
8109
|
+
pageCount > 1 && React__default.createElement(
|
|
8115
8110
|
'div',
|
|
8116
8111
|
{ className: 'd-flex justify-content-center' },
|
|
8117
8112
|
renderPagination()
|
|
@@ -8122,19 +8117,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8122
8117
|
var Leads = function Leads(_ref) {
|
|
8123
8118
|
var url = _ref.url;
|
|
8124
8119
|
|
|
8125
|
-
return React__default
|
|
8120
|
+
return React__default.createElement(
|
|
8126
8121
|
'div',
|
|
8127
8122
|
{ className: 'd-block text-center mb-3' },
|
|
8128
|
-
React__default
|
|
8123
|
+
React__default.createElement(
|
|
8129
8124
|
'style',
|
|
8130
8125
|
{ jsx: 'true' },
|
|
8131
8126
|
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8132
8127
|
),
|
|
8133
|
-
url && React__default
|
|
8128
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8134
8129
|
);
|
|
8135
8130
|
};
|
|
8136
8131
|
|
|
8137
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8132
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8138
8133
|
var slides = _ref.node.slides,
|
|
8139
8134
|
client = _ref.client,
|
|
8140
8135
|
pageview = _ref.pageview,
|
|
@@ -8170,53 +8165,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8170
8165
|
setCarouselIndex(selectedIndex);
|
|
8171
8166
|
};
|
|
8172
8167
|
|
|
8173
|
-
return React__default
|
|
8168
|
+
return React__default.createElement(
|
|
8174
8169
|
'div',
|
|
8175
8170
|
{ className: 'mt-3 mb-4' },
|
|
8176
|
-
React__default
|
|
8171
|
+
React__default.createElement(
|
|
8177
8172
|
reactBootstrap.Carousel,
|
|
8178
8173
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8179
8174
|
slides && slides.map(function (slide) {
|
|
8180
8175
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8181
|
-
return React__default
|
|
8176
|
+
return React__default.createElement(
|
|
8182
8177
|
reactBootstrap.Carousel.Item,
|
|
8183
8178
|
{ key: slide._key },
|
|
8184
|
-
React__default
|
|
8179
|
+
React__default.createElement(
|
|
8185
8180
|
'a',
|
|
8186
8181
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8187
|
-
React__default
|
|
8182
|
+
React__default.createElement(
|
|
8188
8183
|
'div',
|
|
8189
8184
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8190
|
-
React__default
|
|
8185
|
+
React__default.createElement(
|
|
8191
8186
|
index$2.LazyLoad,
|
|
8192
8187
|
null,
|
|
8193
|
-
React__default
|
|
8188
|
+
React__default.createElement(
|
|
8194
8189
|
'picture',
|
|
8195
8190
|
null,
|
|
8196
|
-
React__default
|
|
8197
|
-
React__default
|
|
8198
|
-
React__default
|
|
8199
|
-
React__default
|
|
8191
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8192
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8193
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8194
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8200
8195
|
)
|
|
8201
8196
|
)
|
|
8202
8197
|
)
|
|
8203
8198
|
),
|
|
8204
|
-
React__default
|
|
8199
|
+
React__default.createElement(
|
|
8205
8200
|
'div',
|
|
8206
8201
|
{ className: 'p-2' },
|
|
8207
|
-
slide.slideshowImage.caption && React__default
|
|
8202
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8208
8203
|
'h3',
|
|
8209
8204
|
{ style: { padding: '0px' } },
|
|
8210
8205
|
slide.slideshowImage.caption
|
|
8211
8206
|
),
|
|
8212
|
-
slide.description && React__default
|
|
8207
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8213
8208
|
)
|
|
8214
8209
|
);
|
|
8215
8210
|
}
|
|
8216
8211
|
return null;
|
|
8217
8212
|
})
|
|
8218
8213
|
),
|
|
8219
|
-
React__default
|
|
8214
|
+
React__default.createElement(
|
|
8220
8215
|
'style',
|
|
8221
8216
|
{ jsx: 'true' },
|
|
8222
8217
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\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 '
|
|
@@ -8235,10 +8230,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8235
8230
|
sizes = _props$node.sizes,
|
|
8236
8231
|
sizeMapping = _props$node.sizeMapping;
|
|
8237
8232
|
|
|
8238
|
-
return React__default
|
|
8233
|
+
return React__default.createElement(
|
|
8239
8234
|
'div',
|
|
8240
8235
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8241
|
-
React__default
|
|
8236
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8242
8237
|
);
|
|
8243
8238
|
};
|
|
8244
8239
|
|
|
@@ -8249,15 +8244,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8249
8244
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8250
8245
|
|
|
8251
8246
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8252
|
-
return React__default
|
|
8247
|
+
return React__default.createElement(
|
|
8253
8248
|
'section',
|
|
8254
8249
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8255
|
-
Caption && React__default
|
|
8250
|
+
Caption && React__default.createElement(
|
|
8256
8251
|
'h4',
|
|
8257
8252
|
{ className: 'formstack-caption' },
|
|
8258
8253
|
Caption
|
|
8259
8254
|
),
|
|
8260
|
-
React__default
|
|
8255
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8261
8256
|
);
|
|
8262
8257
|
};
|
|
8263
8258
|
|
|
@@ -8273,36 +8268,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8273
8268
|
}
|
|
8274
8269
|
});
|
|
8275
8270
|
if (medias && medias.length > 0) {
|
|
8276
|
-
return React__default
|
|
8271
|
+
return React__default.createElement(
|
|
8277
8272
|
'div',
|
|
8278
8273
|
{ className: 'multi-media-container' },
|
|
8279
|
-
React__default
|
|
8280
|
-
|
|
8274
|
+
React__default.createElement(
|
|
8275
|
+
Row,
|
|
8281
8276
|
{ noGutters: true },
|
|
8282
8277
|
medias.map(function (media) {
|
|
8283
|
-
return React__default
|
|
8284
|
-
|
|
8278
|
+
return React__default.createElement(
|
|
8279
|
+
Col,
|
|
8285
8280
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8286
|
-
React__default
|
|
8281
|
+
React__default.createElement(
|
|
8287
8282
|
'a',
|
|
8288
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset
|
|
8283
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8289
8284
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8290
|
-
React__default
|
|
8285
|
+
React__default.createElement(
|
|
8291
8286
|
'div',
|
|
8292
8287
|
{ className: 'multi-media-image-container' },
|
|
8293
|
-
imageBox && React__default
|
|
8288
|
+
imageBox && React__default.createElement(
|
|
8294
8289
|
index$2.LazyLoad,
|
|
8295
8290
|
{ once: true },
|
|
8296
|
-
React__default
|
|
8291
|
+
React__default.createElement(
|
|
8297
8292
|
'picture',
|
|
8298
8293
|
null,
|
|
8299
|
-
React__default
|
|
8300
|
-
React__default
|
|
8301
|
-
React__default
|
|
8302
|
-
React__default
|
|
8294
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8295
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8296
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8297
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8303
8298
|
)
|
|
8304
8299
|
),
|
|
8305
|
-
media.caption && React__default
|
|
8300
|
+
media.caption && React__default.createElement(
|
|
8306
8301
|
'span',
|
|
8307
8302
|
{ className: 'multi-media-caption' },
|
|
8308
8303
|
media.caption
|
|
@@ -8312,7 +8307,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8312
8307
|
);
|
|
8313
8308
|
})
|
|
8314
8309
|
),
|
|
8315
|
-
React__default
|
|
8310
|
+
React__default.createElement(
|
|
8316
8311
|
'style',
|
|
8317
8312
|
{ jsx: 'true' },
|
|
8318
8313
|
'\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 '
|
|
@@ -8323,12 +8318,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8323
8318
|
};
|
|
8324
8319
|
|
|
8325
8320
|
var InscreenSensor = function (_React$Component) {
|
|
8326
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8321
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8327
8322
|
|
|
8328
8323
|
function InscreenSensor(props) {
|
|
8329
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8324
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8330
8325
|
|
|
8331
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8326
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8332
8327
|
|
|
8333
8328
|
_this.scrollHandler = function () {
|
|
8334
8329
|
var visible = _this.checkInside();
|
|
@@ -8359,12 +8354,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8359
8354
|
}
|
|
8360
8355
|
};
|
|
8361
8356
|
|
|
8362
|
-
_this.wraperRef = React__default
|
|
8357
|
+
_this.wraperRef = React__default.createRef();
|
|
8363
8358
|
_this.visible = false;
|
|
8364
8359
|
return _this;
|
|
8365
8360
|
}
|
|
8366
8361
|
|
|
8367
|
-
inherits._createClass(InscreenSensor, [{
|
|
8362
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8368
8363
|
key: 'componentDidMount',
|
|
8369
8364
|
value: function componentDidMount() {
|
|
8370
8365
|
this.visible = this.checkInside();
|
|
@@ -8387,7 +8382,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8387
8382
|
_props$id = _props.id,
|
|
8388
8383
|
id = _props$id === undefined ? '' : _props$id;
|
|
8389
8384
|
|
|
8390
|
-
return React__default
|
|
8385
|
+
return React__default.createElement(
|
|
8391
8386
|
'div',
|
|
8392
8387
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8393
8388
|
this.props.children
|
|
@@ -8396,7 +8391,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8396
8391
|
}]);
|
|
8397
8392
|
|
|
8398
8393
|
return InscreenSensor;
|
|
8399
|
-
}(React__default
|
|
8394
|
+
}(React__default.Component);
|
|
8400
8395
|
|
|
8401
8396
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8402
8397
|
var nodes = _ref.nodes,
|
|
@@ -8505,33 +8500,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8505
8500
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8506
8501
|
var showReading = show ? 'showReading' : '';
|
|
8507
8502
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8508
|
-
return React__default
|
|
8503
|
+
return React__default.createElement(
|
|
8509
8504
|
'div',
|
|
8510
8505
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8511
|
-
React__default
|
|
8506
|
+
React__default.createElement(
|
|
8512
8507
|
'a',
|
|
8513
8508
|
{ onClick: function onClick(e) {
|
|
8514
8509
|
return articleCardClickHandler(e);
|
|
8515
8510
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8516
|
-
React__default
|
|
8511
|
+
React__default.createElement(
|
|
8517
8512
|
'div',
|
|
8518
8513
|
{ className: 'prevNext-thumbnail' },
|
|
8519
|
-
React__default
|
|
8520
|
-
React__default
|
|
8514
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8515
|
+
React__default.createElement(
|
|
8521
8516
|
'div',
|
|
8522
8517
|
{ className: 'prevNext-reading ' + showReading },
|
|
8523
8518
|
articleLabel
|
|
8524
8519
|
)
|
|
8525
8520
|
),
|
|
8526
|
-
React__default
|
|
8521
|
+
React__default.createElement(
|
|
8527
8522
|
'div',
|
|
8528
8523
|
{ className: 'prevNext-summary' },
|
|
8529
|
-
React__default
|
|
8524
|
+
React__default.createElement(
|
|
8530
8525
|
'div',
|
|
8531
8526
|
{ className: 'prevNext-publishDate' },
|
|
8532
8527
|
moment.moment(article.published).format('LL')
|
|
8533
8528
|
),
|
|
8534
|
-
React__default
|
|
8529
|
+
React__default.createElement(
|
|
8535
8530
|
'h2',
|
|
8536
8531
|
{ className: 'prevNext-title' },
|
|
8537
8532
|
article.title
|
|
@@ -8580,7 +8575,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8580
8575
|
|
|
8581
8576
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8582
8577
|
if (biography) {
|
|
8583
|
-
return React__default
|
|
8578
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8584
8579
|
}
|
|
8585
8580
|
};
|
|
8586
8581
|
|
|
@@ -8666,7 +8661,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8666
8661
|
//console.log('useLayoutEffect')
|
|
8667
8662
|
if (!firstLoad) {
|
|
8668
8663
|
setUpArrowClicked(false);
|
|
8669
|
-
if (main.
|
|
8664
|
+
if (main.main_36) {
|
|
8670
8665
|
grabLoadedAds();
|
|
8671
8666
|
} else {
|
|
8672
8667
|
scrollToArticle();
|
|
@@ -8690,7 +8685,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8690
8685
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8691
8686
|
if (pageview) pageview(path);
|
|
8692
8687
|
|
|
8693
|
-
if (!main.
|
|
8688
|
+
if (!main.main_36) {
|
|
8694
8689
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8695
8690
|
if (window.googletag && googletag.pubadsReady) {
|
|
8696
8691
|
index.lib_3.refresh();
|
|
@@ -8698,7 +8693,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8698
8693
|
});
|
|
8699
8694
|
}
|
|
8700
8695
|
//Refresh leaderboard ad on mobile
|
|
8701
|
-
if (main.
|
|
8696
|
+
if (main.main_36) {
|
|
8702
8697
|
var leaderboardSlotId = '';
|
|
8703
8698
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8704
8699
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8738,38 +8733,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8738
8733
|
setSensorVisible(false);
|
|
8739
8734
|
};
|
|
8740
8735
|
|
|
8741
|
-
return React__default
|
|
8742
|
-
React__default
|
|
8736
|
+
return React__default.createElement(
|
|
8737
|
+
React__default.Fragment,
|
|
8743
8738
|
null,
|
|
8744
|
-
React__default
|
|
8739
|
+
React__default.createElement(
|
|
8745
8740
|
'div',
|
|
8746
8741
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8747
|
-
React__default
|
|
8742
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8748
8743
|
return handleArrowClick();
|
|
8749
8744
|
} })
|
|
8750
8745
|
),
|
|
8751
|
-
React__default
|
|
8752
|
-
React__default
|
|
8746
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8747
|
+
React__default.createElement(
|
|
8753
8748
|
'div',
|
|
8754
8749
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8755
|
-
React__default
|
|
8750
|
+
React__default.createElement(
|
|
8756
8751
|
'h5',
|
|
8757
8752
|
{ className: 'objective-title' },
|
|
8758
8753
|
nodes.seriesTitle
|
|
8759
8754
|
),
|
|
8760
|
-
React__default
|
|
8755
|
+
React__default.createElement(
|
|
8761
8756
|
'div',
|
|
8762
8757
|
{ className: 'prevNextWrapper' },
|
|
8763
8758
|
PrevNextCards(false, -1)
|
|
8764
8759
|
)
|
|
8765
8760
|
),
|
|
8766
|
-
React__default
|
|
8767
|
-
React__default
|
|
8761
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8762
|
+
React__default.createElement(
|
|
8768
8763
|
'div',
|
|
8769
8764
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8770
|
-
main.
|
|
8765
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8771
8766
|
if (index === 0) {
|
|
8772
|
-
return React__default
|
|
8767
|
+
return React__default.createElement(
|
|
8773
8768
|
'div',
|
|
8774
8769
|
{
|
|
8775
8770
|
key: 'addid-1',
|
|
@@ -8789,14 +8784,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8789
8784
|
}
|
|
8790
8785
|
})
|
|
8791
8786
|
),
|
|
8792
|
-
React__default
|
|
8787
|
+
React__default.createElement(
|
|
8793
8788
|
'div',
|
|
8794
8789
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8795
8790
|
Articles.map(function (article, index) {
|
|
8796
|
-
return React__default
|
|
8791
|
+
return React__default.createElement(
|
|
8797
8792
|
'div',
|
|
8798
8793
|
{ key: article.title },
|
|
8799
|
-
React__default
|
|
8794
|
+
React__default.createElement(
|
|
8800
8795
|
InscreenSensor,
|
|
8801
8796
|
{
|
|
8802
8797
|
visible: sensorVisible,
|
|
@@ -8814,84 +8809,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8814
8809
|
}
|
|
8815
8810
|
}
|
|
8816
8811
|
} },
|
|
8817
|
-
React__default
|
|
8818
|
-
|
|
8812
|
+
React__default.createElement(
|
|
8813
|
+
Head,
|
|
8819
8814
|
null,
|
|
8820
|
-
currentTitle !== null && React__default
|
|
8815
|
+
currentTitle !== null && React__default.createElement(
|
|
8821
8816
|
'title',
|
|
8822
8817
|
{ key: 'title' },
|
|
8823
8818
|
currentTitle
|
|
8824
8819
|
),
|
|
8825
|
-
currentSummary !== null && React__default
|
|
8826
|
-
currentURL !== null && React__default
|
|
8827
|
-
currentTitle !== null && React__default
|
|
8828
|
-
currentThumbnail !== null && React__default
|
|
8829
|
-
currentSummary !== null && React__default
|
|
8830
|
-
currentTitle !== null && React__default
|
|
8831
|
-
currentThumbnail !== null && React__default
|
|
8832
|
-
currentSummary !== null && React__default
|
|
8820
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8821
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8822
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8823
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8824
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8825
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8826
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8827
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8833
8828
|
),
|
|
8834
|
-
React__default
|
|
8829
|
+
React__default.createElement(
|
|
8835
8830
|
'article',
|
|
8836
8831
|
{ className: 'article-wrapper' },
|
|
8837
|
-
React__default
|
|
8832
|
+
React__default.createElement(
|
|
8838
8833
|
'div',
|
|
8839
8834
|
{ className: 'article-publishDate' },
|
|
8840
8835
|
moment.moment(article.published).format('LL')
|
|
8841
8836
|
),
|
|
8842
|
-
React__default
|
|
8837
|
+
React__default.createElement(
|
|
8843
8838
|
'div',
|
|
8844
8839
|
{ className: 'author-details-wrapper' },
|
|
8845
8840
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8846
|
-
return React__default
|
|
8841
|
+
return React__default.createElement(
|
|
8847
8842
|
'span',
|
|
8848
8843
|
{ key: index },
|
|
8849
8844
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8850
8845
|
);
|
|
8851
8846
|
})
|
|
8852
8847
|
),
|
|
8853
|
-
React__default
|
|
8848
|
+
React__default.createElement(
|
|
8854
8849
|
'h2',
|
|
8855
8850
|
{ className: 'article-title' },
|
|
8856
8851
|
article.title
|
|
8857
8852
|
),
|
|
8858
|
-
React__default
|
|
8853
|
+
React__default.createElement(
|
|
8859
8854
|
'div',
|
|
8860
8855
|
{ className: 'mt-2 mb-2' },
|
|
8861
|
-
React__default
|
|
8856
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8862
8857
|
serializers: getSerializers,
|
|
8863
8858
|
videoAccountIDs: accountIDs,
|
|
8864
8859
|
blocks: article.text,
|
|
8865
8860
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8866
8861
|
}, client.config())),
|
|
8867
|
-
React__default
|
|
8862
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8868
8863
|
),
|
|
8869
|
-
Articles.length > 1 && React__default
|
|
8870
|
-
React__default
|
|
8864
|
+
Articles.length > 1 && React__default.createElement(
|
|
8865
|
+
React__default.Fragment,
|
|
8871
8866
|
null,
|
|
8872
|
-
React__default
|
|
8867
|
+
React__default.createElement(
|
|
8873
8868
|
'div',
|
|
8874
8869
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8875
|
-
React__default
|
|
8870
|
+
React__default.createElement(
|
|
8876
8871
|
'h5',
|
|
8877
8872
|
{ className: 'objective-title' },
|
|
8878
8873
|
nodes.seriesTitle
|
|
8879
8874
|
),
|
|
8880
|
-
React__default
|
|
8875
|
+
React__default.createElement(
|
|
8881
8876
|
'div',
|
|
8882
8877
|
{ className: 'prevNextWrapper' },
|
|
8883
8878
|
PrevNextCards(true, index)
|
|
8884
8879
|
)
|
|
8885
8880
|
),
|
|
8886
|
-
React__default
|
|
8881
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8887
8882
|
)
|
|
8888
8883
|
),
|
|
8889
|
-
React__default
|
|
8884
|
+
React__default.createElement(
|
|
8890
8885
|
'div',
|
|
8891
8886
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8892
|
-
main.
|
|
8887
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8893
8888
|
if (innerIndex === 0) {
|
|
8894
|
-
return React__default
|
|
8889
|
+
return React__default.createElement(
|
|
8895
8890
|
'div',
|
|
8896
8891
|
{
|
|
8897
8892
|
key: 'addid-' + (index + 2),
|
|
@@ -8914,7 +8909,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8914
8909
|
)
|
|
8915
8910
|
);
|
|
8916
8911
|
}),
|
|
8917
|
-
React__default
|
|
8912
|
+
React__default.createElement(
|
|
8918
8913
|
'style',
|
|
8919
8914
|
{ jsx: 'true' },
|
|
8920
8915
|
'\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 '
|
|
@@ -8944,11 +8939,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8944
8939
|
};
|
|
8945
8940
|
}, [handleClickOutside]);
|
|
8946
8941
|
|
|
8947
|
-
return React__default
|
|
8942
|
+
return React__default.createElement(
|
|
8948
8943
|
'div',
|
|
8949
8944
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8950
|
-
React__default
|
|
8951
|
-
React__default
|
|
8945
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8946
|
+
React__default.createElement(
|
|
8952
8947
|
'style',
|
|
8953
8948
|
{ jsx: 'true' },
|
|
8954
8949
|
'\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 '
|
|
@@ -8962,7 +8957,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8962
8957
|
}
|
|
8963
8958
|
};
|
|
8964
8959
|
|
|
8965
|
-
var FigureImage
|
|
8960
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8966
8961
|
var node = _ref2.node,
|
|
8967
8962
|
client = _ref2.client,
|
|
8968
8963
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8970,13 +8965,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
|
8970
8965
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8971
8966
|
|
|
8972
8967
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8973
|
-
return React__default
|
|
8968
|
+
return React__default.createElement(
|
|
8974
8969
|
'picture',
|
|
8975
8970
|
null,
|
|
8976
|
-
React__default
|
|
8977
|
-
React__default
|
|
8978
|
-
React__default
|
|
8979
|
-
React__default
|
|
8971
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8972
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8973
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8974
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8980
8975
|
style: figureImageStyle,
|
|
8981
8976
|
className: 'figure-image',
|
|
8982
8977
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9027,30 +9022,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9027
9022
|
|
|
9028
9023
|
var renderTooltip = function renderTooltip(props) {
|
|
9029
9024
|
if (infoBox[0].title) {
|
|
9030
|
-
return React__default
|
|
9031
|
-
|
|
9025
|
+
return React__default.createElement(
|
|
9026
|
+
Popover,
|
|
9032
9027
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9033
|
-
React__default
|
|
9034
|
-
|
|
9028
|
+
React__default.createElement(
|
|
9029
|
+
Popover.Title,
|
|
9035
9030
|
{ as: 'h3' },
|
|
9036
9031
|
infoBox[0].title
|
|
9037
9032
|
),
|
|
9038
|
-
React__default
|
|
9039
|
-
|
|
9033
|
+
React__default.createElement(
|
|
9034
|
+
Popover.Content,
|
|
9040
9035
|
null,
|
|
9041
|
-
React__default
|
|
9036
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9042
9037
|
)
|
|
9043
9038
|
);
|
|
9044
9039
|
} else {
|
|
9045
|
-
return React__default
|
|
9046
|
-
|
|
9047
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9048
|
-
React__default
|
|
9040
|
+
return React__default.createElement(
|
|
9041
|
+
Tooltip,
|
|
9042
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9043
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9049
9044
|
);
|
|
9050
9045
|
}
|
|
9051
9046
|
};
|
|
9052
9047
|
|
|
9053
|
-
var FigureImageWOverLay = React__default
|
|
9048
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9054
9049
|
var node = _ref3.node,
|
|
9055
9050
|
client = _ref3.client,
|
|
9056
9051
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9058,32 +9053,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9058
9053
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9059
9054
|
|
|
9060
9055
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9061
|
-
var triggerAction = main.
|
|
9062
|
-
var placementLocation = main.
|
|
9063
|
-
return React__default
|
|
9056
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9057
|
+
var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9058
|
+
return React__default.createElement(
|
|
9064
9059
|
'picture',
|
|
9065
9060
|
null,
|
|
9066
|
-
React__default
|
|
9067
|
-
React__default
|
|
9068
|
-
React__default
|
|
9069
|
-
main.
|
|
9061
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9062
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9063
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9064
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9070
9065
|
style: figureImageStyle,
|
|
9071
9066
|
className: 'figure-image',
|
|
9072
9067
|
src: urlFor({ source: node, client: client }),
|
|
9073
9068
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9074
|
-
}, !link && !main.
|
|
9069
|
+
}, !link && !main.main_35 && {
|
|
9075
9070
|
onClick: function onClick() {
|
|
9076
9071
|
return handleClickFigure(node, client);
|
|
9077
9072
|
}
|
|
9078
|
-
})) : React__default
|
|
9079
|
-
|
|
9073
|
+
})) : React__default.createElement(
|
|
9074
|
+
OverlayTrigger,
|
|
9080
9075
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9081
|
-
React__default
|
|
9076
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9082
9077
|
style: figureImageStyle,
|
|
9083
9078
|
className: 'figure-image',
|
|
9084
9079
|
src: urlFor({ source: node, client: client }),
|
|
9085
9080
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9086
|
-
}, !link && !main.
|
|
9081
|
+
}, !link && !main.main_35 && {
|
|
9087
9082
|
onClick: function onClick() {
|
|
9088
9083
|
return handleClickFigure(node, client);
|
|
9089
9084
|
}
|
|
@@ -9132,13 +9127,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9132
9127
|
|
|
9133
9128
|
var FigureCaption = React.useCallback(function () {
|
|
9134
9129
|
if (imgcaption && imgcaption.length > 0) {
|
|
9135
|
-
return React__default
|
|
9130
|
+
return React__default.createElement(
|
|
9136
9131
|
'div',
|
|
9137
9132
|
{ className: 'figure-caption' },
|
|
9138
|
-
React__default
|
|
9133
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9139
9134
|
);
|
|
9140
9135
|
} else if (caption) {
|
|
9141
|
-
return React__default
|
|
9136
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9142
9137
|
} else return null;
|
|
9143
9138
|
}, [caption, imgcaption]);
|
|
9144
9139
|
|
|
@@ -9155,24 +9150,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9155
9150
|
setShowLightbox(true);
|
|
9156
9151
|
}, [node, client]);
|
|
9157
9152
|
|
|
9158
|
-
return React__default
|
|
9159
|
-
React__default
|
|
9153
|
+
return React__default.createElement(
|
|
9154
|
+
React__default.Fragment,
|
|
9160
9155
|
null,
|
|
9161
|
-
infoBox.length >= 1 ? React__default
|
|
9162
|
-
|
|
9156
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9157
|
+
Figure$1,
|
|
9163
9158
|
{ className: '' + class_name, style: figureStyle },
|
|
9164
|
-
link ? React__default
|
|
9159
|
+
link ? React__default.createElement(
|
|
9165
9160
|
'a',
|
|
9166
9161
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9167
|
-
React__default
|
|
9168
|
-
React__default
|
|
9169
|
-
) : React__default
|
|
9170
|
-
React__default
|
|
9162
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9163
|
+
React__default.createElement(FigureCaption, null)
|
|
9164
|
+
) : React__default.createElement(
|
|
9165
|
+
React__default.Fragment,
|
|
9171
9166
|
null,
|
|
9172
|
-
React__default
|
|
9173
|
-
React__default
|
|
9167
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9168
|
+
React__default.createElement(FigureCaption, null)
|
|
9174
9169
|
),
|
|
9175
|
-
React__default
|
|
9170
|
+
React__default.createElement(LightBox, {
|
|
9176
9171
|
showLightbox: showLightbox,
|
|
9177
9172
|
lightboxImgSrc: lightboxImgSrc,
|
|
9178
9173
|
closeLightbox: function closeLightbox() {
|
|
@@ -9180,21 +9175,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9180
9175
|
setShowLightbox(false);
|
|
9181
9176
|
}
|
|
9182
9177
|
})
|
|
9183
|
-
) : React__default
|
|
9184
|
-
|
|
9178
|
+
) : React__default.createElement(
|
|
9179
|
+
Figure$1,
|
|
9185
9180
|
{ className: '' + class_name, style: figureStyle },
|
|
9186
|
-
link ? React__default
|
|
9181
|
+
link ? React__default.createElement(
|
|
9187
9182
|
'a',
|
|
9188
9183
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9189
|
-
React__default
|
|
9190
|
-
React__default
|
|
9191
|
-
) : React__default
|
|
9192
|
-
React__default
|
|
9184
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9185
|
+
React__default.createElement(FigureCaption, null)
|
|
9186
|
+
) : React__default.createElement(
|
|
9187
|
+
React__default.Fragment,
|
|
9193
9188
|
null,
|
|
9194
|
-
React__default
|
|
9195
|
-
React__default
|
|
9189
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9190
|
+
React__default.createElement(FigureCaption, null)
|
|
9196
9191
|
),
|
|
9197
|
-
React__default
|
|
9192
|
+
React__default.createElement(LightBox, {
|
|
9198
9193
|
showLightbox: showLightbox,
|
|
9199
9194
|
lightboxImgSrc: lightboxImgSrc,
|
|
9200
9195
|
closeLightbox: function closeLightbox() {
|
|
@@ -9203,7 +9198,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9203
9198
|
}
|
|
9204
9199
|
})
|
|
9205
9200
|
),
|
|
9206
|
-
React__default
|
|
9201
|
+
React__default.createElement(
|
|
9207
9202
|
'style',
|
|
9208
9203
|
{ jsx: 'true' },
|
|
9209
9204
|
'\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 '
|
|
@@ -9211,7 +9206,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9211
9206
|
);
|
|
9212
9207
|
};
|
|
9213
9208
|
|
|
9214
|
-
var Figure = React__default
|
|
9209
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9215
9210
|
|
|
9216
9211
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9217
9212
|
React.useEffect(function () {
|
|
@@ -9228,7 +9223,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9228
9223
|
}, [ref]);
|
|
9229
9224
|
}
|
|
9230
9225
|
|
|
9231
|
-
var FigureImage = React__default
|
|
9226
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9232
9227
|
var imagesCount = _ref.imagesCount,
|
|
9233
9228
|
image = _ref.image,
|
|
9234
9229
|
client = _ref.client,
|
|
@@ -9236,13 +9231,13 @@ var FigureImage = React__default['default'].memo(function (_ref) {
|
|
|
9236
9231
|
link = _ref.link,
|
|
9237
9232
|
handleClickFigure = _ref.handleClickFigure;
|
|
9238
9233
|
|
|
9239
|
-
return React__default
|
|
9234
|
+
return React__default.createElement(
|
|
9240
9235
|
'picture',
|
|
9241
9236
|
null,
|
|
9242
|
-
React__default
|
|
9243
|
-
React__default
|
|
9244
|
-
React__default
|
|
9245
|
-
React__default
|
|
9237
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9238
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9239
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9240
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9246
9241
|
'images-count': imagesCount,
|
|
9247
9242
|
className: 'multi-figure-image',
|
|
9248
9243
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9279,13 +9274,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9279
9274
|
imgcaption = _ref2.imgcaption;
|
|
9280
9275
|
|
|
9281
9276
|
if (imgcaption && imgcaption.length > 0) {
|
|
9282
|
-
return React__default
|
|
9277
|
+
return React__default.createElement(
|
|
9283
9278
|
'div',
|
|
9284
9279
|
{ className: 'multi-figure-caption' },
|
|
9285
|
-
React__default
|
|
9280
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9286
9281
|
);
|
|
9287
9282
|
} else if (caption) {
|
|
9288
|
-
return React__default
|
|
9283
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9289
9284
|
} else return null;
|
|
9290
9285
|
};
|
|
9291
9286
|
|
|
@@ -9294,7 +9289,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9294
9289
|
setOpenImg(true);
|
|
9295
9290
|
}, [client]);
|
|
9296
9291
|
|
|
9297
|
-
var FigureImageWOverLay = React__default
|
|
9292
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9298
9293
|
var imagesCount = _ref3.imagesCount,
|
|
9299
9294
|
image = _ref3.image,
|
|
9300
9295
|
client = _ref3.client,
|
|
@@ -9302,32 +9297,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9302
9297
|
link = _ref3.link,
|
|
9303
9298
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9304
9299
|
|
|
9305
|
-
var triggerAction = main.
|
|
9306
|
-
var placementLocation = main.
|
|
9307
|
-
return React__default
|
|
9300
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9301
|
+
var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9302
|
+
return React__default.createElement(
|
|
9308
9303
|
'picture',
|
|
9309
9304
|
null,
|
|
9310
|
-
React__default
|
|
9311
|
-
React__default
|
|
9312
|
-
React__default
|
|
9313
|
-
main.
|
|
9305
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9306
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9307
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9308
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9314
9309
|
'images-count': imagesCount,
|
|
9315
9310
|
className: 'multi-figure-image',
|
|
9316
9311
|
src: urlFor({ source: image, client: client }),
|
|
9317
9312
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9318
|
-
}, !link && !main.
|
|
9313
|
+
}, !link && !main.main_35 && {
|
|
9319
9314
|
onClick: function onClick() {
|
|
9320
9315
|
return handleClickFigure(image, client);
|
|
9321
9316
|
}
|
|
9322
|
-
})) : React__default
|
|
9323
|
-
|
|
9317
|
+
})) : React__default.createElement(
|
|
9318
|
+
OverlayTrigger,
|
|
9324
9319
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9325
|
-
React__default
|
|
9320
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9326
9321
|
'images-count': imagesCount,
|
|
9327
9322
|
className: 'multi-figure-image',
|
|
9328
9323
|
src: urlFor({ source: image, client: client }),
|
|
9329
9324
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9330
|
-
}, !link && !main.
|
|
9325
|
+
}, !link && !main.main_35 && {
|
|
9331
9326
|
onClick: function onClick() {
|
|
9332
9327
|
return handleClickFigure(image, client);
|
|
9333
9328
|
}
|
|
@@ -9338,102 +9333,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9338
9333
|
|
|
9339
9334
|
var renderTooltip = function renderTooltip(image) {
|
|
9340
9335
|
if (image.infoBox[0].title) {
|
|
9341
|
-
return React__default
|
|
9342
|
-
|
|
9336
|
+
return React__default.createElement(
|
|
9337
|
+
Popover,
|
|
9343
9338
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9344
|
-
React__default
|
|
9345
|
-
|
|
9339
|
+
React__default.createElement(
|
|
9340
|
+
Popover.Title,
|
|
9346
9341
|
{ as: 'h3' },
|
|
9347
9342
|
image.infoBox[0].title
|
|
9348
9343
|
),
|
|
9349
|
-
React__default
|
|
9350
|
-
|
|
9344
|
+
React__default.createElement(
|
|
9345
|
+
Popover.Content,
|
|
9351
9346
|
null,
|
|
9352
|
-
React__default
|
|
9347
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9353
9348
|
)
|
|
9354
9349
|
);
|
|
9355
9350
|
} else {
|
|
9356
|
-
return React__default
|
|
9357
|
-
|
|
9358
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9359
|
-
React__default
|
|
9351
|
+
return React__default.createElement(
|
|
9352
|
+
Tooltip,
|
|
9353
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9354
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9360
9355
|
);
|
|
9361
9356
|
}
|
|
9362
9357
|
};
|
|
9363
9358
|
|
|
9364
9359
|
if (images && images.length > 0) {
|
|
9365
|
-
return React__default
|
|
9360
|
+
return React__default.createElement(
|
|
9366
9361
|
'div',
|
|
9367
9362
|
{ className: 'multi-figure-container' },
|
|
9368
|
-
React__default
|
|
9369
|
-
|
|
9363
|
+
React__default.createElement(
|
|
9364
|
+
Row,
|
|
9370
9365
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9371
9366
|
images.map(function (image, index) {
|
|
9372
9367
|
if (image.infoBox) {
|
|
9373
|
-
return React__default
|
|
9374
|
-
|
|
9368
|
+
return React__default.createElement(
|
|
9369
|
+
Col,
|
|
9375
9370
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9376
|
-
image.link ? React__default
|
|
9371
|
+
image.link ? React__default.createElement(
|
|
9377
9372
|
'a',
|
|
9378
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9379
|
-
React__default
|
|
9373
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9374
|
+
React__default.createElement(
|
|
9380
9375
|
'div',
|
|
9381
9376
|
{ className: 'multi-figure-image-container' },
|
|
9382
|
-
React__default
|
|
9377
|
+
React__default.createElement(
|
|
9383
9378
|
index$2.LazyLoad,
|
|
9384
9379
|
{ once: true },
|
|
9385
|
-
React__default
|
|
9380
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9386
9381
|
),
|
|
9387
|
-
React__default
|
|
9382
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9388
9383
|
)
|
|
9389
|
-
) : React__default
|
|
9384
|
+
) : React__default.createElement(
|
|
9390
9385
|
'div',
|
|
9391
9386
|
{ className: 'multi-figure-image-container' },
|
|
9392
|
-
React__default
|
|
9387
|
+
React__default.createElement(
|
|
9393
9388
|
index$2.LazyLoad,
|
|
9394
9389
|
{ once: true },
|
|
9395
|
-
React__default
|
|
9390
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9396
9391
|
),
|
|
9397
|
-
React__default
|
|
9392
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9398
9393
|
)
|
|
9399
9394
|
);
|
|
9400
9395
|
} else {
|
|
9401
|
-
return React__default
|
|
9402
|
-
|
|
9396
|
+
return React__default.createElement(
|
|
9397
|
+
Col,
|
|
9403
9398
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9404
|
-
image.link ? React__default
|
|
9399
|
+
image.link ? React__default.createElement(
|
|
9405
9400
|
'a',
|
|
9406
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9407
|
-
React__default
|
|
9401
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9402
|
+
React__default.createElement(
|
|
9408
9403
|
'div',
|
|
9409
9404
|
{ className: 'multi-figure-image-container' },
|
|
9410
|
-
React__default
|
|
9405
|
+
React__default.createElement(
|
|
9411
9406
|
index$2.LazyLoad,
|
|
9412
9407
|
{ once: true },
|
|
9413
|
-
React__default
|
|
9408
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9414
9409
|
),
|
|
9415
|
-
React__default
|
|
9410
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9416
9411
|
)
|
|
9417
|
-
) : React__default
|
|
9412
|
+
) : React__default.createElement(
|
|
9418
9413
|
'div',
|
|
9419
9414
|
{ className: 'multi-figure-image-container' },
|
|
9420
|
-
React__default
|
|
9415
|
+
React__default.createElement(
|
|
9421
9416
|
index$2.LazyLoad,
|
|
9422
9417
|
{ once: true },
|
|
9423
|
-
React__default
|
|
9418
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9424
9419
|
),
|
|
9425
|
-
React__default
|
|
9420
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9426
9421
|
)
|
|
9427
9422
|
);
|
|
9428
9423
|
}
|
|
9429
9424
|
})
|
|
9430
9425
|
),
|
|
9431
|
-
React__default
|
|
9426
|
+
React__default.createElement(
|
|
9432
9427
|
'div',
|
|
9433
9428
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9434
|
-
React__default
|
|
9429
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9435
9430
|
),
|
|
9436
|
-
React__default
|
|
9431
|
+
React__default.createElement(
|
|
9437
9432
|
'style',
|
|
9438
9433
|
{ jsx: 'true' },
|
|
9439
9434
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9482,23 +9477,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9482
9477
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9483
9478
|
}, []);
|
|
9484
9479
|
|
|
9485
|
-
return React__default
|
|
9486
|
-
React__default
|
|
9480
|
+
return React__default.createElement(
|
|
9481
|
+
React__default.Fragment,
|
|
9487
9482
|
null,
|
|
9488
|
-
React__default
|
|
9489
|
-
|
|
9483
|
+
React__default.createElement(
|
|
9484
|
+
Head,
|
|
9490
9485
|
null,
|
|
9491
|
-
React__default
|
|
9486
|
+
React__default.createElement('script', {
|
|
9492
9487
|
dangerouslySetInnerHTML: {
|
|
9493
9488
|
__html: 'history.scrollRestoration = "manual"'
|
|
9494
9489
|
}
|
|
9495
9490
|
})
|
|
9496
9491
|
),
|
|
9497
|
-
React__default
|
|
9492
|
+
React__default.createElement(
|
|
9498
9493
|
'div',
|
|
9499
9494
|
{ id: elementId },
|
|
9500
|
-
React__default
|
|
9501
|
-
React__default
|
|
9495
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9496
|
+
React__default.createElement(
|
|
9502
9497
|
'style',
|
|
9503
9498
|
{ jsx: 'true' },
|
|
9504
9499
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -9532,7 +9527,7 @@ exports.__esModule = true;
|
|
|
9532
9527
|
|
|
9533
9528
|
|
|
9534
9529
|
|
|
9535
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9530
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9536
9531
|
|
|
9537
9532
|
|
|
9538
9533
|
|
|
@@ -9540,23 +9535,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9540
9535
|
|
|
9541
9536
|
|
|
9542
9537
|
|
|
9543
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9538
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9544
9539
|
|
|
9545
9540
|
|
|
9546
9541
|
|
|
9547
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9542
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9548
9543
|
|
|
9549
9544
|
|
|
9550
9545
|
|
|
9551
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9546
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9552
9547
|
|
|
9553
9548
|
|
|
9554
9549
|
|
|
9555
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9550
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9556
9551
|
|
|
9557
9552
|
|
|
9558
9553
|
|
|
9559
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9554
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9560
9555
|
|
|
9561
9556
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9562
9557
|
var noop = function noop() {};
|
|
@@ -9701,9 +9696,9 @@ var ScriptTag = function (_Component) {
|
|
|
9701
9696
|
|
|
9702
9697
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9703
9698
|
// eslint-disable-next-line no-unused-vars
|
|
9704
|
-
var _props3 = this.props
|
|
9705
|
-
_props3.isHydrating
|
|
9706
|
-
|
|
9699
|
+
var _props3 = this.props,
|
|
9700
|
+
isHydrating = _props3.isHydrating,
|
|
9701
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9707
9702
|
|
|
9708
9703
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9709
9704
|
return _this2.domRef = tag;
|
|
@@ -9711,7 +9706,7 @@ var ScriptTag = function (_Component) {
|
|
|
9711
9706
|
};
|
|
9712
9707
|
|
|
9713
9708
|
return ScriptTag;
|
|
9714
|
-
}(React__default
|
|
9709
|
+
}(React__default.Component);
|
|
9715
9710
|
|
|
9716
9711
|
ScriptTag.propTypes = {
|
|
9717
9712
|
/**
|
|
@@ -9790,11 +9785,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9790
9785
|
}, []);
|
|
9791
9786
|
|
|
9792
9787
|
if (iframeSrc) {
|
|
9793
|
-
return React__default
|
|
9788
|
+
return React__default.createElement(
|
|
9794
9789
|
'section',
|
|
9795
9790
|
{ className: 'form-assembly' },
|
|
9796
|
-
React__default
|
|
9797
|
-
React__default
|
|
9791
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9792
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9798
9793
|
);
|
|
9799
9794
|
}
|
|
9800
9795
|
|
|
@@ -9831,27 +9826,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9831
9826
|
return window.removeEventListener('resize', handleResize);
|
|
9832
9827
|
};
|
|
9833
9828
|
}, []);
|
|
9834
|
-
return React__default
|
|
9829
|
+
return React__default.createElement(
|
|
9835
9830
|
'div',
|
|
9836
9831
|
{ className: 'blockTableHolder', ref: holder },
|
|
9837
|
-
React__default
|
|
9832
|
+
React__default.createElement(
|
|
9838
9833
|
'div',
|
|
9839
9834
|
{ className: 'blockTable' },
|
|
9840
9835
|
rows && rows.map(function (row) {
|
|
9841
|
-
return React__default
|
|
9836
|
+
return React__default.createElement(
|
|
9842
9837
|
'div',
|
|
9843
9838
|
{ className: 'blockTableRow' },
|
|
9844
9839
|
row.cells && row.cells.map(function (cell) {
|
|
9845
|
-
return React__default
|
|
9840
|
+
return React__default.createElement(
|
|
9846
9841
|
'div',
|
|
9847
9842
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9848
|
-
React__default
|
|
9843
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9849
9844
|
);
|
|
9850
9845
|
})
|
|
9851
9846
|
);
|
|
9852
9847
|
})
|
|
9853
9848
|
),
|
|
9854
|
-
React__default
|
|
9849
|
+
React__default.createElement(
|
|
9855
9850
|
'style',
|
|
9856
9851
|
{ jsx: true },
|
|
9857
9852
|
'\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 '
|
|
@@ -9930,12 +9925,12 @@ var getSerializers = function getSerializers() {
|
|
|
9930
9925
|
var node = _ref.node;
|
|
9931
9926
|
var url = node.url;
|
|
9932
9927
|
|
|
9933
|
-
return React__default
|
|
9928
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9934
9929
|
},
|
|
9935
9930
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9936
9931
|
var node = _ref2.node;
|
|
9937
9932
|
|
|
9938
|
-
return React__default
|
|
9933
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9939
9934
|
nodes: node,
|
|
9940
9935
|
article: article,
|
|
9941
9936
|
meta: meta,
|
|
@@ -9949,7 +9944,7 @@ var getSerializers = function getSerializers() {
|
|
|
9949
9944
|
articleSeries: function articleSeries(_ref3) {
|
|
9950
9945
|
var node = _ref3.node;
|
|
9951
9946
|
|
|
9952
|
-
return React__default
|
|
9947
|
+
return React__default.createElement(ArticleSeries, {
|
|
9953
9948
|
nodes: node,
|
|
9954
9949
|
accountIDs: videoAccountIDs || {},
|
|
9955
9950
|
pageview: pageview,
|
|
@@ -9962,103 +9957,103 @@ var getSerializers = function getSerializers() {
|
|
|
9962
9957
|
figure: function figure(_ref4) {
|
|
9963
9958
|
var node = _ref4.node;
|
|
9964
9959
|
|
|
9965
|
-
return React__default
|
|
9960
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9966
9961
|
},
|
|
9967
9962
|
multifigure: function multifigure(_ref5) {
|
|
9968
9963
|
var node = _ref5.node;
|
|
9969
9964
|
|
|
9970
|
-
return React__default
|
|
9965
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9971
9966
|
},
|
|
9972
9967
|
slideshow: function slideshow(_ref6) {
|
|
9973
9968
|
var node = _ref6.node;
|
|
9974
9969
|
var slides = node.slides;
|
|
9975
9970
|
|
|
9976
|
-
return React__default
|
|
9971
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9977
9972
|
},
|
|
9978
9973
|
sidebar: function sidebar(_ref7) {
|
|
9979
9974
|
var node = _ref7.node;
|
|
9980
9975
|
var caption = node.caption,
|
|
9981
9976
|
content = node.content;
|
|
9982
9977
|
|
|
9983
|
-
return React__default
|
|
9978
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
9984
9979
|
},
|
|
9985
9980
|
datatable: function datatable(_ref8) {
|
|
9986
9981
|
var node = _ref8.node;
|
|
9987
9982
|
var table = node.table;
|
|
9988
9983
|
|
|
9989
|
-
return React__default
|
|
9984
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9990
9985
|
},
|
|
9991
9986
|
media: function media(_ref9) {
|
|
9992
9987
|
var node = _ref9.node;
|
|
9993
9988
|
|
|
9994
|
-
return React__default
|
|
9989
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9995
9990
|
},
|
|
9996
9991
|
iframe: function iframe(_ref10) {
|
|
9997
9992
|
var node = _ref10.node;
|
|
9998
9993
|
|
|
9999
|
-
return React__default
|
|
9994
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10000
9995
|
},
|
|
10001
9996
|
video: function video(_ref11) {
|
|
10002
9997
|
var node = _ref11.node;
|
|
10003
9998
|
|
|
10004
|
-
return React__default
|
|
9999
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10005
10000
|
},
|
|
10006
10001
|
audio: function audio(_ref12) {
|
|
10007
10002
|
var node = _ref12.node;
|
|
10008
10003
|
|
|
10009
|
-
return React__default
|
|
10004
|
+
return React__default.createElement(Audio, { node: node });
|
|
10010
10005
|
},
|
|
10011
10006
|
poll: function poll(_ref13) {
|
|
10012
10007
|
var node = _ref13.node;
|
|
10013
10008
|
|
|
10014
|
-
return React__default
|
|
10009
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10015
10010
|
},
|
|
10016
10011
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10017
10012
|
var node = _ref14.node;
|
|
10018
10013
|
|
|
10019
|
-
return React__default
|
|
10014
|
+
return React__default.createElement(Poll$1, {
|
|
10020
10015
|
node: node,
|
|
10021
10016
|
client: client,
|
|
10022
10017
|
pageview: pageview,
|
|
10023
10018
|
videoAccountIDs: videoAccountIDs,
|
|
10024
10019
|
showVotes: showVotes,
|
|
10025
10020
|
onVote: onVote,
|
|
10026
|
-
getSerializers: getSerializers(props)
|
|
10021
|
+
getSerializers: getSerializers.apply(undefined, props)
|
|
10027
10022
|
});
|
|
10028
10023
|
},
|
|
10029
10024
|
quiz: function quiz(_ref15) {
|
|
10030
10025
|
var node = _ref15.node;
|
|
10031
10026
|
var quizzes = node.quizzes;
|
|
10032
10027
|
|
|
10033
|
-
return React__default
|
|
10028
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10034
10029
|
},
|
|
10035
10030
|
leads: function leads(_ref16) {
|
|
10036
10031
|
var node = _ref16.node;
|
|
10037
10032
|
var leadID = node.leadID;
|
|
10038
10033
|
|
|
10039
10034
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10040
|
-
return React__default
|
|
10035
|
+
return React__default.createElement(Leads, { url: url });
|
|
10041
10036
|
},
|
|
10042
10037
|
slideshows: function slideshows(_ref17) {
|
|
10043
10038
|
var node = _ref17.node;
|
|
10044
10039
|
|
|
10045
|
-
return React__default
|
|
10040
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10046
10041
|
},
|
|
10047
10042
|
nativeAd: function nativeAd(_ref18) {
|
|
10048
10043
|
var node = _ref18.node;
|
|
10049
10044
|
|
|
10050
|
-
return React__default
|
|
10045
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10051
10046
|
},
|
|
10052
10047
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10053
10048
|
var node = _ref19.node;
|
|
10054
10049
|
|
|
10055
|
-
return React__default
|
|
10050
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10056
10051
|
},
|
|
10057
10052
|
hrtag: function hrtag() {
|
|
10058
|
-
return React__default
|
|
10053
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10059
10054
|
},
|
|
10060
10055
|
brtag: function brtag() {
|
|
10061
|
-
return React__default
|
|
10056
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10062
10057
|
},
|
|
10063
10058
|
formstack: function formstack(_ref20) {
|
|
10064
10059
|
var node = _ref20.node;
|
|
@@ -10066,29 +10061,29 @@ var getSerializers = function getSerializers() {
|
|
|
10066
10061
|
Caption = node.Caption,
|
|
10067
10062
|
needSegmentSupport = node.needSegmentSupport;
|
|
10068
10063
|
|
|
10069
|
-
return React__default
|
|
10064
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10070
10065
|
},
|
|
10071
10066
|
formassembly: FormAssembly,
|
|
10072
10067
|
multimedia: function multimedia(_ref21) {
|
|
10073
10068
|
var node = _ref21.node;
|
|
10074
10069
|
|
|
10075
|
-
return React__default
|
|
10070
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10076
10071
|
},
|
|
10077
10072
|
blockTable: function blockTable(_ref22) {
|
|
10078
10073
|
var node = _ref22.node;
|
|
10079
|
-
return React__default
|
|
10074
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10080
10075
|
}
|
|
10081
10076
|
},
|
|
10082
10077
|
marks: {
|
|
10083
10078
|
superscript: function superscript(props) {
|
|
10084
|
-
return React__default
|
|
10079
|
+
return React__default.createElement(
|
|
10085
10080
|
'sup',
|
|
10086
10081
|
null,
|
|
10087
10082
|
props.children
|
|
10088
10083
|
);
|
|
10089
10084
|
},
|
|
10090
10085
|
subscript: function subscript(props) {
|
|
10091
|
-
return React__default
|
|
10086
|
+
return React__default.createElement(
|
|
10092
10087
|
'sub',
|
|
10093
10088
|
null,
|
|
10094
10089
|
props.children
|
|
@@ -10105,7 +10100,7 @@ var getSerializers = function getSerializers() {
|
|
|
10105
10100
|
if (href && href.charAt(0) === '#') {
|
|
10106
10101
|
var elementId = href.slice(1);
|
|
10107
10102
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10108
|
-
return React__default
|
|
10103
|
+
return React__default.createElement(
|
|
10109
10104
|
'a',
|
|
10110
10105
|
{ onClick: function onClick() {
|
|
10111
10106
|
return ScrollToElement(elementId);
|
|
@@ -10115,15 +10110,15 @@ var getSerializers = function getSerializers() {
|
|
|
10115
10110
|
}
|
|
10116
10111
|
|
|
10117
10112
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10118
|
-
return href ? React__default
|
|
10113
|
+
return href ? React__default.createElement(
|
|
10119
10114
|
'a',
|
|
10120
|
-
_extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10115
|
+
_extends$1._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10121
10116
|
children
|
|
10122
10117
|
) : children;
|
|
10123
10118
|
},
|
|
10124
10119
|
alignleft: function alignleft(_ref23) {
|
|
10125
10120
|
var children = _ref23.children;
|
|
10126
|
-
return React__default
|
|
10121
|
+
return React__default.createElement(
|
|
10127
10122
|
'div',
|
|
10128
10123
|
{ style: { textAlign: 'left' } },
|
|
10129
10124
|
children
|
|
@@ -10131,7 +10126,7 @@ var getSerializers = function getSerializers() {
|
|
|
10131
10126
|
},
|
|
10132
10127
|
alignright: function alignright(_ref24) {
|
|
10133
10128
|
var children = _ref24.children;
|
|
10134
|
-
return React__default
|
|
10129
|
+
return React__default.createElement(
|
|
10135
10130
|
'div',
|
|
10136
10131
|
{ style: { textAlign: 'right' } },
|
|
10137
10132
|
children
|
|
@@ -10139,7 +10134,7 @@ var getSerializers = function getSerializers() {
|
|
|
10139
10134
|
},
|
|
10140
10135
|
aligncenter: function aligncenter(_ref25) {
|
|
10141
10136
|
var children = _ref25.children;
|
|
10142
|
-
return React__default
|
|
10137
|
+
return React__default.createElement(
|
|
10143
10138
|
'div',
|
|
10144
10139
|
{ style: { textAlign: 'center' } },
|
|
10145
10140
|
children
|
|
@@ -10147,7 +10142,7 @@ var getSerializers = function getSerializers() {
|
|
|
10147
10142
|
},
|
|
10148
10143
|
alignjustify: function alignjustify(_ref26) {
|
|
10149
10144
|
var children = _ref26.children;
|
|
10150
|
-
return React__default
|
|
10145
|
+
return React__default.createElement(
|
|
10151
10146
|
'div',
|
|
10152
10147
|
{ style: { textAlign: 'justify' } },
|
|
10153
10148
|
children
|
|
@@ -10157,7 +10152,7 @@ var getSerializers = function getSerializers() {
|
|
|
10157
10152
|
var children = props.children,
|
|
10158
10153
|
color = props.mark.color;
|
|
10159
10154
|
|
|
10160
|
-
return React__default
|
|
10155
|
+
return React__default.createElement(
|
|
10161
10156
|
'span',
|
|
10162
10157
|
{ style: { color: color ? color.hex : null } },
|
|
10163
10158
|
children
|