@mjhls/mjh-framework 1.0.879 → 1.0.880-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 -28
- package/dist/cjs/AD300x250x600.js +28 -28
- package/dist/cjs/AD728x90.js +31 -31
- package/dist/cjs/ADFloatingFooter.js +30 -30
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -30
- package/dist/cjs/{ADInfeed-51a39495.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -30
- package/dist/cjs/ADSponsoredResources.js +30 -30
- package/dist/cjs/ADWebcast.js +30 -30
- package/dist/cjs/ADWelcome.js +31 -31
- package/dist/cjs/{ADlgInfeed-12db4509.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -31
- package/dist/cjs/AdSlotsProvider.js +910 -18
- package/dist/cjs/AlgoliaSearch.js +14023 -61
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -21
- package/dist/cjs/ArticleProgramLandingPage.js +59 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -44
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +266 -308
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-9c6b07ad.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +82 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -59
- package/dist/cjs/ConferenceArticleCard.js +26 -28
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +93 -97
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-94f8ccdf.js → Dfp-14d2455c.js} +32 -32
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +28 -31
- package/dist/cjs/ForbesHero.js +41 -43
- package/dist/cjs/GridContent.js +232 -237
- package/dist/cjs/GridHero.js +43 -45
- package/dist/cjs/GroupDeck.js +58 -60
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +14 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +70 -71
- package/dist/cjs/HorizontalHero.js +29 -31
- package/dist/cjs/IssueContentDeck.js +71 -77
- package/dist/cjs/IssueDeck.js +70 -76
- package/dist/cjs/IssueLanding.js +63 -65
- package/dist/cjs/LeftNav.js +37 -38
- package/dist/cjs/MasterDeck.js +228 -355
- package/dist/cjs/MediaSeriesLanding.js +1093 -1185
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +136 -141
- package/dist/cjs/NavNative.js +128 -136
- package/dist/cjs/OncliveHero.js +23 -24
- package/dist/cjs/OncliveLargeHero.js +73 -75
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/Pagination-9cb60fba.js +61 -0
- package/dist/cjs/PartnerDetailListing.js +3918 -119
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +39 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -71
- package/dist/cjs/PublicationLanding.js +106 -110
- package/dist/cjs/QueueDeckExpanded.js +1002 -1173
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +29 -31
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-f9128638.js → SeriesSlider-ec146338.js} +36 -37
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -35
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -67
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -72
- package/dist/cjs/ThumbnailCard.js +23 -26
- package/dist/cjs/Ustream.js +28 -29
- package/dist/cjs/VerticalHero.js +20 -22
- package/dist/cjs/VideoProgramLandingPage.js +73 -77
- package/dist/cjs/VideoSeriesCard.js +31 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +49 -52
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +272 -275
- package/dist/cjs/YahooHero.js +40 -42
- package/dist/cjs/YoutubeGroup.js +62 -64
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.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-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +18 -18
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-aafe16dd.js → index-17c6af5a.js} +1067 -1093
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
- package/dist/cjs/index-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 -169
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- 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-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/{index-efca863c.js → urlFor-3a61226f.js} +88 -37
- package/dist/cjs/urlFor.js +5 -59
- package/dist/cjs/{ustream-api-3819e4aa.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-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -21
- package/dist/esm/AD300x250x600.js +22 -21
- package/dist/esm/AD728x90.js +25 -24
- package/dist/esm/ADFloatingFooter.js +21 -20
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -20
- package/dist/esm/{ADInfeed-bba8b026.js → ADInfeed-0c13c803.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -20
- package/dist/esm/ADSponsoredResources.js +21 -20
- package/dist/esm/ADWebcast.js +21 -20
- package/dist/esm/ADWelcome.js +18 -17
- package/dist/esm/{ADlgInfeed-a45afa1d.js → ADlgInfeed-e4e2031a.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -19
- package/dist/esm/AdSlotsProvider.js +907 -14
- package/dist/esm/AlgoliaSearch.js +13992 -29
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -14
- package/dist/esm/ArticleProgramLandingPage.js +47 -47
- package/dist/esm/ArticleSeriesLandingPage.js +29 -33
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +1418 -590
- package/dist/esm/AuthWrapper.js +244 -285
- package/dist/esm/{AuthorComponent-defe68b6.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-f4515898.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +23 -22
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -36
- package/dist/esm/ConferenceArticleCard.js +10 -11
- package/dist/esm/DeckContent.js +47 -47
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-4b99f79d.js → Dfp-f867d061.js} +13 -12
- package/dist/esm/EventsDeck.js +50 -50
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -8
- package/dist/esm/ForbesHero.js +9 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +10 -11
- package/dist/esm/GroupDeck.js +11 -12
- package/dist/esm/HamMagazine.js +28 -28
- package/dist/esm/Hero.js +6 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +45 -45
- package/dist/esm/HorizontalHero.js +8 -9
- package/dist/esm/IssueContentDeck.js +24 -25
- package/dist/esm/IssueDeck.js +34 -35
- package/dist/esm/IssueLanding.js +52 -53
- package/dist/esm/LeftNav.js +20 -19
- package/dist/esm/MasterDeck.js +210 -336
- package/dist/esm/MediaSeriesLanding.js +643 -732
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +32 -32
- package/dist/esm/NavNative.js +32 -32
- package/dist/esm/OncliveHero.js +8 -8
- package/dist/esm/OncliveLargeHero.js +10 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/Pagination-256b60e5.js +56 -0
- package/dist/esm/PartnerDetailListing.js +3861 -62
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +31 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +26 -27
- package/dist/esm/PublicationLanding.js +47 -47
- package/dist/esm/QueueDeckExpanded.js +945 -1116
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +9 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-98b7a870.js → SeriesSlider-d6561e33.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-9458fac6.js → SocialSearchComponent-b5be0e6c.js} +12 -12
- package/dist/esm/TaxonomyCard.js +26 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -47
- package/dist/esm/ThumbnailCard.js +9 -10
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +6 -7
- package/dist/esm/VideoProgramLandingPage.js +51 -51
- package/dist/esm/VideoSeriesCard.js +12 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -38
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +91 -90
- package/dist/esm/YahooHero.js +12 -13
- package/dist/esm/YoutubeGroup.js +16 -17
- package/dist/esm/{_is-array-893ab020.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-f089461c.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-169d6272.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-50a6b9a3.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-b4dfe691.js → asyncToGenerator-64812e90.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-e903ff31.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-99e66838.js → define-property-6d26cb48.js} +6 -6
- package/dist/esm/{defineProperty-8fa0bc8d.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-dc6a71fd.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-3792eba9.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- 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-e57e375a.js → index-a35a5c39.js} +617 -633
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-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 -124
- package/dist/esm/{inherits-8a801a18.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-425c8ab0.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-c0612122.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-ca2c8b8d.js → slicedToArray-67a08c9c.js} +12 -12
- 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-7b1c0e23.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-83d9eb10.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/{index-0dbff1d1.js → urlFor-23b2244b.js} +88 -37
- package/dist/esm/urlFor.js +4 -62
- package/dist/esm/{ustream-api-41166338.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-fdf034f5.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +2 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-c21932b3.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
|
-
require('
|
|
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-3a61226f.js');
|
|
23
|
+
var index$1 = 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
|
-
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
27
|
+
require('./Beam.js');
|
|
28
|
+
var AdSlot = require('./AdSlot.js');
|
|
29
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
30
|
+
var BlockContent = require('./BlockContent-9c6b07ad.js');
|
|
31
|
+
var index$2 = 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-de66ea16.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$1 = _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.urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
95
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
96
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
97
|
+
React__default.createElement('img', { src: urlFor.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
|
|
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; }; }();
|
|
1585
1584
|
|
|
1586
|
-
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); }
|
|
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; };
|
|
1593
1586
|
|
|
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); }
|
|
1599
|
-
|
|
1600
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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$2.getYoutubeId(url);
|
|
1914
1934
|
|
|
1915
1935
|
var _useState = React.useState(false),
|
|
1916
1936
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1944,7 +1964,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1944
1964
|
var queue = Math.floor(duration / 10);
|
|
1945
1965
|
var segment = Math.floor(current / queue);
|
|
1946
1966
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1947
|
-
Segment.report_video_event('Video Ready', main.
|
|
1967
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1948
1968
|
};
|
|
1949
1969
|
|
|
1950
1970
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1955,7 +1975,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1955
1975
|
|
|
1956
1976
|
if (!queueProgress.includes(segment)) {
|
|
1957
1977
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1958
|
-
Segment.report_video_event('Video Segment', main.
|
|
1978
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1959
1979
|
queueProgress.push(segment);
|
|
1960
1980
|
}
|
|
1961
1981
|
};
|
|
@@ -1969,7 +1989,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1969
1989
|
var segment = Math.floor(current / queue);
|
|
1970
1990
|
|
|
1971
1991
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1972
|
-
Segment.report_video_event('Video Play', main.
|
|
1992
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1973
1993
|
|
|
1974
1994
|
if (!playReported) {
|
|
1975
1995
|
setPlayReported(true);
|
|
@@ -1989,7 +2009,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1989
2009
|
var segment = Math.floor(current / queue);
|
|
1990
2010
|
|
|
1991
2011
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1992
|
-
Segment.report_video_event('Video End', main.
|
|
2012
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1993
2013
|
setEndReported(true);
|
|
1994
2014
|
clearInterval(intervalID);
|
|
1995
2015
|
}
|
|
@@ -2003,14 +2023,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2003
2023
|
var segment = Math.floor(current / queue);
|
|
2004
2024
|
|
|
2005
2025
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
2006
|
-
Segment.report_video_event('Video Pause', main.
|
|
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
|
|
@@ -2177,25 +2197,25 @@ var Media = function Media(_ref) {
|
|
|
2177
2197
|
margin: imageMargin
|
|
2178
2198
|
};
|
|
2179
2199
|
|
|
2180
|
-
return React__default
|
|
2200
|
+
return React__default.createElement(
|
|
2181
2201
|
reactBootstrap.Figure,
|
|
2182
2202
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2183
|
-
React__default
|
|
2203
|
+
React__default.createElement(
|
|
2184
2204
|
'a',
|
|
2185
2205
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2186
|
-
React__default
|
|
2187
|
-
index$
|
|
2206
|
+
React__default.createElement(
|
|
2207
|
+
index$1.LazyLoad,
|
|
2188
2208
|
{ once: true },
|
|
2189
|
-
React__default
|
|
2209
|
+
React__default.createElement(
|
|
2190
2210
|
'picture',
|
|
2191
2211
|
null,
|
|
2192
|
-
React__default
|
|
2193
|
-
React__default
|
|
2194
|
-
React__default
|
|
2195
|
-
React__default
|
|
2212
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor.urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2213
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2214
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.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.urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2196
2216
|
)
|
|
2197
2217
|
),
|
|
2198
|
-
caption && React__default
|
|
2218
|
+
caption && React__default.createElement(
|
|
2199
2219
|
reactBootstrap.Figure.Caption,
|
|
2200
2220
|
{ className: 'media-caption' },
|
|
2201
2221
|
caption
|
|
@@ -2203,9 +2223,9 @@ var Media = function Media(_ref) {
|
|
|
2203
2223
|
)
|
|
2204
2224
|
);
|
|
2205
2225
|
} else if (caption && caption !== '') {
|
|
2206
|
-
return React__default
|
|
2226
|
+
return React__default.createElement(
|
|
2207
2227
|
'a',
|
|
2208
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2228
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2209
2229
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2210
2230
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2211
2231
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2223,10 +2243,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2223
2243
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2224
2244
|
|
|
2225
2245
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2226
|
-
return React__default
|
|
2246
|
+
return React__default.createElement(
|
|
2227
2247
|
'div',
|
|
2228
2248
|
{ className: 'd-block text-center mb-3' },
|
|
2229
|
-
React__default
|
|
2249
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2230
2250
|
);
|
|
2231
2251
|
};
|
|
2232
2252
|
|
|
@@ -2261,7 +2281,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2261
2281
|
var queue = Math.floor(duration / 10);
|
|
2262
2282
|
var segment = Math.floor(current / queue);
|
|
2263
2283
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2264
|
-
Segment.report_video_event('Video Ready', main.
|
|
2284
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2265
2285
|
};
|
|
2266
2286
|
|
|
2267
2287
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2271,7 +2291,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2271
2291
|
var segment = Math.floor(current / queue);
|
|
2272
2292
|
if (!queueProgress.includes(segment)) {
|
|
2273
2293
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2274
|
-
Segment.report_video_event('Video Segment', main.
|
|
2294
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2275
2295
|
queueProgress.push(segment);
|
|
2276
2296
|
}
|
|
2277
2297
|
};
|
|
@@ -2284,7 +2304,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2284
2304
|
var queue = Math.floor(duration / 10);
|
|
2285
2305
|
var segment = Math.floor(current / queue);
|
|
2286
2306
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2287
|
-
Segment.report_video_event('Video Play', main.
|
|
2307
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2288
2308
|
|
|
2289
2309
|
if (!playReported) {
|
|
2290
2310
|
event.persist();
|
|
@@ -2305,7 +2325,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2305
2325
|
var segment = Math.floor(current / queue);
|
|
2306
2326
|
|
|
2307
2327
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2308
|
-
Segment.report_video_event('Video End', main.
|
|
2328
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2309
2329
|
setEndReported(true);
|
|
2310
2330
|
clearInterval(intervalID);
|
|
2311
2331
|
}
|
|
@@ -2318,13 +2338,13 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2318
2338
|
var queue = Math.floor(duration / 10);
|
|
2319
2339
|
var segment = Math.floor(current / queue);
|
|
2320
2340
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2321
|
-
Segment.report_video_event('Video Pause', main.
|
|
2341
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2322
2342
|
};
|
|
2323
2343
|
|
|
2324
|
-
return React__default
|
|
2344
|
+
return React__default.createElement(
|
|
2325
2345
|
'div',
|
|
2326
2346
|
null,
|
|
2327
|
-
vidLoaded && React__default
|
|
2347
|
+
vidLoaded && React__default.createElement(
|
|
2328
2348
|
'video',
|
|
2329
2349
|
{
|
|
2330
2350
|
poster: thumbnail || '',
|
|
@@ -2342,7 +2362,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2342
2362
|
onPlay: function onPlay(e) {
|
|
2343
2363
|
return handleOnPlay(e);
|
|
2344
2364
|
} },
|
|
2345
|
-
React__default
|
|
2365
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2346
2366
|
'Your browser does not support the video tag.'
|
|
2347
2367
|
)
|
|
2348
2368
|
);
|
|
@@ -2379,7 +2399,7 @@ var Video = function Video(_ref) {
|
|
|
2379
2399
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2380
2400
|
//console.log('success:', success.ref)
|
|
2381
2401
|
var player = success.ref;
|
|
2382
|
-
if (_typeof
|
|
2402
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2383
2403
|
player.ima3.settings.debug = true;
|
|
2384
2404
|
if (targeting.content_placement && targeting.document_url) {
|
|
2385
2405
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2408,7 +2428,7 @@ var Video = function Video(_ref) {
|
|
|
2408
2428
|
}
|
|
2409
2429
|
|
|
2410
2430
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2411
|
-
Segment.report_video_event('Video Ready', main.
|
|
2431
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2412
2432
|
});
|
|
2413
2433
|
|
|
2414
2434
|
// play
|
|
@@ -2418,7 +2438,7 @@ var Video = function Video(_ref) {
|
|
|
2418
2438
|
var queue = Math.floor(duration / 10);
|
|
2419
2439
|
var segment = Math.floor(current / queue);
|
|
2420
2440
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2421
|
-
Segment.report_video_event('Video Play', main.
|
|
2441
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2422
2442
|
});
|
|
2423
2443
|
|
|
2424
2444
|
// pause
|
|
@@ -2428,7 +2448,7 @@ var Video = function Video(_ref) {
|
|
|
2428
2448
|
var queue = Math.floor(duration / 10);
|
|
2429
2449
|
var segment = Math.floor(current / queue);
|
|
2430
2450
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2431
|
-
Segment.report_video_event('Video Pause', main.
|
|
2451
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2432
2452
|
});
|
|
2433
2453
|
|
|
2434
2454
|
// end
|
|
@@ -2438,7 +2458,7 @@ var Video = function Video(_ref) {
|
|
|
2438
2458
|
var queue = Math.floor(duration / 10);
|
|
2439
2459
|
var segment = Math.floor(current / queue);
|
|
2440
2460
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2441
|
-
Segment.report_video_event('Video End', main.
|
|
2461
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2442
2462
|
autoplayNextVideo(evt);
|
|
2443
2463
|
});
|
|
2444
2464
|
|
|
@@ -2450,7 +2470,7 @@ var Video = function Video(_ref) {
|
|
|
2450
2470
|
var segment = Math.floor(current / queue);
|
|
2451
2471
|
if (!queueProgress.includes(segment)) {
|
|
2452
2472
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2453
|
-
Segment.report_video_event('Video Segment', main.
|
|
2473
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2454
2474
|
queueProgress.push(segment);
|
|
2455
2475
|
}
|
|
2456
2476
|
});
|
|
@@ -2458,72 +2478,72 @@ var Video = function Video(_ref) {
|
|
|
2458
2478
|
// ad impression
|
|
2459
2479
|
player.on('ads-ad-started', function (evt) {
|
|
2460
2480
|
var duration = player.ads.ad.duration;
|
|
2461
|
-
player.ads.ad.id;
|
|
2481
|
+
var id = player.ads.ad.id;
|
|
2462
2482
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2463
2483
|
|
|
2464
2484
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2465
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2485
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2466
2486
|
});
|
|
2467
2487
|
|
|
2468
2488
|
// ad ended
|
|
2469
2489
|
player.on('ads-ad-ended', function (evt) {
|
|
2470
2490
|
var duration = player.ads.ad.duration;
|
|
2471
|
-
player.ads.ad.id;
|
|
2491
|
+
var id = player.ads.ad.id;
|
|
2472
2492
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2473
2493
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2474
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2494
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2475
2495
|
});
|
|
2476
2496
|
};
|
|
2477
2497
|
|
|
2478
2498
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2479
2499
|
if (videoID) {
|
|
2480
|
-
return React__default
|
|
2500
|
+
return React__default.createElement(
|
|
2481
2501
|
'div',
|
|
2482
2502
|
null,
|
|
2483
|
-
React__default
|
|
2503
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2484
2504
|
onSuccess: onVideoSuccess,
|
|
2485
2505
|
accountId: accountIDs.brightcove.accountId,
|
|
2486
2506
|
videoId: videoID,
|
|
2487
2507
|
playerId: accountIDs.brightcove.playerId,
|
|
2488
2508
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2489
2509
|
}),
|
|
2490
|
-
React__default
|
|
2510
|
+
React__default.createElement(
|
|
2491
2511
|
'style',
|
|
2492
2512
|
{ jsx: 'true' },
|
|
2493
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 '
|
|
2494
2514
|
)
|
|
2495
2515
|
);
|
|
2496
2516
|
} else if (playlistID) {
|
|
2497
|
-
return React__default
|
|
2517
|
+
return React__default.createElement(
|
|
2498
2518
|
'div',
|
|
2499
2519
|
null,
|
|
2500
|
-
React__default
|
|
2520
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2501
2521
|
accountId: accountIDs.brightcove.accountId,
|
|
2502
2522
|
playlistId: playlistID,
|
|
2503
2523
|
playerId: accountIDs.brightcove.playerId,
|
|
2504
2524
|
onSuccess: onVideoSuccess,
|
|
2505
2525
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2506
2526
|
}),
|
|
2507
|
-
React__default
|
|
2527
|
+
React__default.createElement(
|
|
2508
2528
|
'style',
|
|
2509
2529
|
{ jsx: 'true' },
|
|
2510
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 '
|
|
2511
2531
|
)
|
|
2512
2532
|
);
|
|
2513
2533
|
} else if (experienceID) {
|
|
2514
|
-
return React__default
|
|
2534
|
+
return React__default.createElement(
|
|
2515
2535
|
'div',
|
|
2516
2536
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2517
|
-
videoLoaded && React__default
|
|
2537
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2518
2538
|
);
|
|
2519
2539
|
}
|
|
2520
2540
|
return null;
|
|
2521
2541
|
}
|
|
2522
2542
|
if (source === 'mp4') {
|
|
2523
|
-
return React__default
|
|
2543
|
+
return React__default.createElement(
|
|
2524
2544
|
'div',
|
|
2525
2545
|
null,
|
|
2526
|
-
React__default
|
|
2546
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2527
2547
|
);
|
|
2528
2548
|
}
|
|
2529
2549
|
|
|
@@ -2538,7 +2558,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2538
2558
|
});
|
|
2539
2559
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2540
2560
|
|
|
2541
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2561
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2542
2562
|
|
|
2543
2563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2544
2564
|
|
|
@@ -2734,9 +2754,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2734
2754
|
});
|
|
2735
2755
|
|
|
2736
2756
|
_commonjsHelpers.unwrapExports(props);
|
|
2737
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2738
|
-
props.defaultProps;
|
|
2739
|
-
props.propTypes;
|
|
2757
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2758
|
+
var props_2 = props.defaultProps;
|
|
2759
|
+
var props_3 = props.propTypes;
|
|
2740
2760
|
|
|
2741
2761
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2742
2762
|
return isNonNullObject(value)
|
|
@@ -2901,17 +2921,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2901
2921
|
|
|
2902
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; }
|
|
2903
2923
|
|
|
2904
|
-
function
|
|
2924
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2905
2925
|
|
|
2906
|
-
function
|
|
2926
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2907
2927
|
|
|
2908
|
-
function
|
|
2909
|
-
|
|
2910
|
-
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); }
|
|
2911
|
-
|
|
2912
|
-
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; }
|
|
2913
|
-
|
|
2914
|
-
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; }
|
|
2915
2929
|
|
|
2916
2930
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2917
2931
|
|
|
@@ -3041,12 +3055,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3041
3055
|
|
|
3042
3056
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3043
3057
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3044
|
-
|
|
3045
|
-
var
|
|
3046
|
-
|
|
3058
|
+
var _iteratorNormalCompletion = true;
|
|
3059
|
+
var _didIteratorError = false;
|
|
3060
|
+
var _iteratorError = undefined;
|
|
3047
3061
|
|
|
3048
3062
|
try {
|
|
3049
|
-
for (_iterator.
|
|
3063
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3050
3064
|
var p = _step.value;
|
|
3051
3065
|
|
|
3052
3066
|
if (props$1[p]) {
|
|
@@ -3061,9 +3075,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3061
3075
|
}
|
|
3062
3076
|
}
|
|
3063
3077
|
} catch (err) {
|
|
3064
|
-
|
|
3078
|
+
_didIteratorError = true;
|
|
3079
|
+
_iteratorError = err;
|
|
3065
3080
|
} finally {
|
|
3066
|
-
|
|
3081
|
+
try {
|
|
3082
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3083
|
+
_iterator["return"]();
|
|
3084
|
+
}
|
|
3085
|
+
} finally {
|
|
3086
|
+
if (_didIteratorError) {
|
|
3087
|
+
throw _iteratorError;
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3067
3090
|
}
|
|
3068
3091
|
|
|
3069
3092
|
return config;
|
|
@@ -3128,7 +3151,7 @@ function isEqual(a, b) {
|
|
|
3128
3151
|
return true;
|
|
3129
3152
|
}
|
|
3130
3153
|
|
|
3131
|
-
if ((0, React__default
|
|
3154
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3132
3155
|
return true;
|
|
3133
3156
|
}
|
|
3134
3157
|
|
|
@@ -3171,17 +3194,17 @@ function isMediaStream(url) {
|
|
|
3171
3194
|
});
|
|
3172
3195
|
|
|
3173
3196
|
_commonjsHelpers.unwrapExports(utils);
|
|
3174
|
-
utils.parseStartTime;
|
|
3175
|
-
utils.parseEndTime;
|
|
3176
|
-
utils.randomString;
|
|
3177
|
-
utils.queryString;
|
|
3178
|
-
utils.getSDK;
|
|
3179
|
-
utils.getConfig;
|
|
3180
|
-
utils.omit;
|
|
3181
|
-
utils.callPlayer;
|
|
3182
|
-
utils.isObject;
|
|
3183
|
-
utils.isEqual;
|
|
3184
|
-
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;
|
|
3185
3208
|
|
|
3186
3209
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3187
3210
|
|
|
@@ -3190,7 +3213,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3190
3213
|
});
|
|
3191
3214
|
exports["default"] = void 0;
|
|
3192
3215
|
|
|
3193
|
-
var _react = _interopRequireWildcard(React__default
|
|
3216
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3194
3217
|
|
|
3195
3218
|
|
|
3196
3219
|
|
|
@@ -3210,16 +3233,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3210
3233
|
|
|
3211
3234
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3212
3235
|
|
|
3213
|
-
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); }; }
|
|
3214
|
-
|
|
3215
3236
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3216
3237
|
|
|
3217
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3218
|
-
|
|
3219
|
-
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; } }
|
|
3220
|
-
|
|
3221
3238
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3222
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
|
+
|
|
3223
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); }
|
|
3224
3243
|
|
|
3225
3244
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3228,12 +3247,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3228
3247
|
|
|
3229
3248
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3230
3249
|
|
|
3231
|
-
var Player =
|
|
3250
|
+
var Player =
|
|
3251
|
+
/*#__PURE__*/
|
|
3252
|
+
function (_Component) {
|
|
3232
3253
|
_inherits(Player, _Component);
|
|
3233
3254
|
|
|
3234
|
-
var _super = _createSuper(Player);
|
|
3235
|
-
|
|
3236
3255
|
function Player() {
|
|
3256
|
+
var _getPrototypeOf2;
|
|
3257
|
+
|
|
3237
3258
|
var _this;
|
|
3238
3259
|
|
|
3239
3260
|
_classCallCheck(this, Player);
|
|
@@ -3242,7 +3263,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3242
3263
|
_args[_key] = arguments[_key];
|
|
3243
3264
|
}
|
|
3244
3265
|
|
|
3245
|
-
_this =
|
|
3266
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3246
3267
|
|
|
3247
3268
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3248
3269
|
|
|
@@ -3567,7 +3588,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3567
3588
|
return null;
|
|
3568
3589
|
}
|
|
3569
3590
|
|
|
3570
|
-
return
|
|
3591
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3571
3592
|
ref: this.ref,
|
|
3572
3593
|
onReady: this.handleReady,
|
|
3573
3594
|
onPlay: this.handlePlay,
|
|
@@ -3600,7 +3621,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3600
3621
|
});
|
|
3601
3622
|
exports["default"] = createSinglePlayer;
|
|
3602
3623
|
|
|
3603
|
-
var _react = _interopRequireWildcard(React__default
|
|
3624
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3604
3625
|
|
|
3605
3626
|
|
|
3606
3627
|
|
|
@@ -3628,16 +3649,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3628
3649
|
|
|
3629
3650
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3630
3651
|
|
|
3631
|
-
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); }; }
|
|
3632
|
-
|
|
3633
3652
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3634
3653
|
|
|
3635
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3636
|
-
|
|
3637
|
-
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; } }
|
|
3638
|
-
|
|
3639
3654
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3640
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
|
+
|
|
3641
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); }
|
|
3642
3659
|
|
|
3643
3660
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3649,12 +3666,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3649
3666
|
function createSinglePlayer(activePlayer) {
|
|
3650
3667
|
var _class, _temp;
|
|
3651
3668
|
|
|
3652
|
-
return _temp = _class =
|
|
3669
|
+
return _temp = _class =
|
|
3670
|
+
/*#__PURE__*/
|
|
3671
|
+
function (_Component) {
|
|
3653
3672
|
_inherits(SinglePlayer, _Component);
|
|
3654
3673
|
|
|
3655
|
-
var _super = _createSuper(SinglePlayer);
|
|
3656
|
-
|
|
3657
3674
|
function SinglePlayer() {
|
|
3675
|
+
var _getPrototypeOf2;
|
|
3676
|
+
|
|
3658
3677
|
var _this;
|
|
3659
3678
|
|
|
3660
3679
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3663,7 +3682,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3663
3682
|
args[_key] = arguments[_key];
|
|
3664
3683
|
}
|
|
3665
3684
|
|
|
3666
|
-
_this =
|
|
3685
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3667
3686
|
|
|
3668
3687
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3669
3688
|
|
|
@@ -3731,12 +3750,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3731
3750
|
height = _this$props.height,
|
|
3732
3751
|
Wrapper = _this$props.wrapper;
|
|
3733
3752
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3734
|
-
return
|
|
3753
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3735
3754
|
style: _objectSpread({}, style, {
|
|
3736
3755
|
width: width,
|
|
3737
3756
|
height: height
|
|
3738
3757
|
})
|
|
3739
|
-
}, otherProps),
|
|
3758
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3740
3759
|
ref: this.ref,
|
|
3741
3760
|
activePlayer: activePlayer,
|
|
3742
3761
|
config: this.config
|
|
@@ -3758,7 +3777,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3758
3777
|
});
|
|
3759
3778
|
exports["default"] = exports.YouTube = void 0;
|
|
3760
3779
|
|
|
3761
|
-
var _react = _interopRequireWildcard(React__default
|
|
3780
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3762
3781
|
|
|
3763
3782
|
|
|
3764
3783
|
|
|
@@ -3782,31 +3801,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3782
3801
|
|
|
3783
3802
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3784
3803
|
|
|
3785
|
-
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); }; }
|
|
3786
|
-
|
|
3787
3804
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3788
3805
|
|
|
3789
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3790
|
-
|
|
3791
|
-
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; } }
|
|
3792
|
-
|
|
3793
3806
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3794
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
|
+
|
|
3795
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); }
|
|
3796
3811
|
|
|
3797
3812
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3798
3813
|
|
|
3799
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; }
|
|
3800
3815
|
|
|
3801
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3816
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3802
3817
|
|
|
3803
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3818
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3804
3819
|
|
|
3805
|
-
function
|
|
3806
|
-
|
|
3807
|
-
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; }
|
|
3808
|
-
|
|
3809
|
-
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; }
|
|
3810
3821
|
|
|
3811
3822
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3812
3823
|
|
|
@@ -3831,12 +3842,14 @@ function parsePlaylist(url) {
|
|
|
3831
3842
|
return {};
|
|
3832
3843
|
}
|
|
3833
3844
|
|
|
3834
|
-
var YouTube =
|
|
3845
|
+
var YouTube =
|
|
3846
|
+
/*#__PURE__*/
|
|
3847
|
+
function (_Component) {
|
|
3835
3848
|
_inherits(YouTube, _Component);
|
|
3836
3849
|
|
|
3837
|
-
var _super = _createSuper(YouTube);
|
|
3838
|
-
|
|
3839
3850
|
function YouTube() {
|
|
3851
|
+
var _getPrototypeOf2;
|
|
3852
|
+
|
|
3840
3853
|
var _this;
|
|
3841
3854
|
|
|
3842
3855
|
_classCallCheck(this, YouTube);
|
|
@@ -3845,7 +3858,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3845
3858
|
args[_key] = arguments[_key];
|
|
3846
3859
|
}
|
|
3847
3860
|
|
|
3848
|
-
_this =
|
|
3861
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3849
3862
|
|
|
3850
3863
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3851
3864
|
|
|
@@ -4033,9 +4046,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4033
4046
|
height: '100%',
|
|
4034
4047
|
display: display
|
|
4035
4048
|
};
|
|
4036
|
-
return
|
|
4049
|
+
return _react["default"].createElement("div", {
|
|
4037
4050
|
style: style
|
|
4038
|
-
},
|
|
4051
|
+
}, _react["default"].createElement("div", {
|
|
4039
4052
|
ref: this.ref
|
|
4040
4053
|
}));
|
|
4041
4054
|
}
|
|
@@ -4058,7 +4071,7 @@ exports["default"] = _default;
|
|
|
4058
4071
|
});
|
|
4059
4072
|
|
|
4060
4073
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4061
|
-
YouTube_1.YouTube;
|
|
4074
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4062
4075
|
|
|
4063
4076
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4064
4077
|
|
|
@@ -4067,7 +4080,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4067
4080
|
});
|
|
4068
4081
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4069
4082
|
|
|
4070
|
-
var _react = _interopRequireWildcard(React__default
|
|
4083
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4071
4084
|
|
|
4072
4085
|
|
|
4073
4086
|
|
|
@@ -4091,16 +4104,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4091
4104
|
|
|
4092
4105
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4093
4106
|
|
|
4094
|
-
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); }; }
|
|
4095
|
-
|
|
4096
4107
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4097
4108
|
|
|
4098
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4099
|
-
|
|
4100
|
-
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; } }
|
|
4101
|
-
|
|
4102
4109
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4103
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
|
+
|
|
4104
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); }
|
|
4105
4114
|
|
|
4106
4115
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4109,14 +4118,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4109
4118
|
|
|
4110
4119
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4111
4120
|
var SDK_GLOBAL = 'SC';
|
|
4112
|
-
var MATCH_URL = /(
|
|
4121
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4113
4122
|
|
|
4114
|
-
var SoundCloud =
|
|
4123
|
+
var SoundCloud =
|
|
4124
|
+
/*#__PURE__*/
|
|
4125
|
+
function (_Component) {
|
|
4115
4126
|
_inherits(SoundCloud, _Component);
|
|
4116
4127
|
|
|
4117
|
-
var _super = _createSuper(SoundCloud);
|
|
4118
|
-
|
|
4119
4128
|
function SoundCloud() {
|
|
4129
|
+
var _getPrototypeOf2;
|
|
4130
|
+
|
|
4120
4131
|
var _this;
|
|
4121
4132
|
|
|
4122
4133
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4125,7 +4136,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4125
4136
|
args[_key] = arguments[_key];
|
|
4126
4137
|
}
|
|
4127
4138
|
|
|
4128
|
-
_this =
|
|
4139
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4129
4140
|
|
|
4130
4141
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4131
4142
|
|
|
@@ -4246,7 +4257,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4246
4257
|
height: '100%',
|
|
4247
4258
|
display: display
|
|
4248
4259
|
};
|
|
4249
|
-
return
|
|
4260
|
+
return _react["default"].createElement("iframe", {
|
|
4250
4261
|
ref: this.ref,
|
|
4251
4262
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4252
4263
|
style: style,
|
|
@@ -4275,7 +4286,7 @@ exports["default"] = _default;
|
|
|
4275
4286
|
});
|
|
4276
4287
|
|
|
4277
4288
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4278
|
-
SoundCloud_1.SoundCloud;
|
|
4289
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4279
4290
|
|
|
4280
4291
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4281
4292
|
|
|
@@ -4284,7 +4295,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4284
4295
|
});
|
|
4285
4296
|
exports["default"] = exports.Vimeo = void 0;
|
|
4286
4297
|
|
|
4287
|
-
var _react = _interopRequireWildcard(React__default
|
|
4298
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4288
4299
|
|
|
4289
4300
|
|
|
4290
4301
|
|
|
@@ -4308,16 +4319,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4308
4319
|
|
|
4309
4320
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4310
4321
|
|
|
4311
|
-
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); }; }
|
|
4312
|
-
|
|
4313
4322
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4314
4323
|
|
|
4315
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4316
|
-
|
|
4317
|
-
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; } }
|
|
4318
|
-
|
|
4319
4324
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4320
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
|
+
|
|
4321
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); }
|
|
4322
4329
|
|
|
4323
4330
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4329,12 +4336,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4329
4336
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4330
4337
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4331
4338
|
|
|
4332
|
-
var Vimeo =
|
|
4339
|
+
var Vimeo =
|
|
4340
|
+
/*#__PURE__*/
|
|
4341
|
+
function (_Component) {
|
|
4333
4342
|
_inherits(Vimeo, _Component);
|
|
4334
4343
|
|
|
4335
|
-
var _super = _createSuper(Vimeo);
|
|
4336
|
-
|
|
4337
4344
|
function Vimeo() {
|
|
4345
|
+
var _getPrototypeOf2;
|
|
4346
|
+
|
|
4338
4347
|
var _this;
|
|
4339
4348
|
|
|
4340
4349
|
_classCallCheck(this, Vimeo);
|
|
@@ -4343,7 +4352,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4343
4352
|
args[_key] = arguments[_key];
|
|
4344
4353
|
}
|
|
4345
4354
|
|
|
4346
|
-
_this =
|
|
4355
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4347
4356
|
|
|
4348
4357
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4349
4358
|
|
|
@@ -4500,7 +4509,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4500
4509
|
overflow: 'hidden',
|
|
4501
4510
|
display: display
|
|
4502
4511
|
};
|
|
4503
|
-
return
|
|
4512
|
+
return _react["default"].createElement("div", {
|
|
4504
4513
|
key: this.props.url,
|
|
4505
4514
|
ref: this.ref,
|
|
4506
4515
|
style: style
|
|
@@ -4531,7 +4540,7 @@ exports["default"] = _default;
|
|
|
4531
4540
|
});
|
|
4532
4541
|
|
|
4533
4542
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4534
|
-
Vimeo_1.Vimeo;
|
|
4543
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4535
4544
|
|
|
4536
4545
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4537
4546
|
|
|
@@ -4540,7 +4549,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4540
4549
|
});
|
|
4541
4550
|
exports["default"] = exports.Facebook = void 0;
|
|
4542
4551
|
|
|
4543
|
-
var _react = _interopRequireWildcard(React__default
|
|
4552
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4544
4553
|
|
|
4545
4554
|
|
|
4546
4555
|
|
|
@@ -4560,16 +4569,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4560
4569
|
|
|
4561
4570
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4562
4571
|
|
|
4563
|
-
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); }; }
|
|
4564
|
-
|
|
4565
4572
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4566
4573
|
|
|
4567
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4568
|
-
|
|
4569
|
-
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; } }
|
|
4570
|
-
|
|
4571
4574
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4572
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
|
+
|
|
4573
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); }
|
|
4574
4579
|
|
|
4575
4580
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4582,12 +4587,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4582
4587
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4583
4588
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4584
4589
|
|
|
4585
|
-
var Facebook =
|
|
4590
|
+
var Facebook =
|
|
4591
|
+
/*#__PURE__*/
|
|
4592
|
+
function (_Component) {
|
|
4586
4593
|
_inherits(Facebook, _Component);
|
|
4587
4594
|
|
|
4588
|
-
var _super = _createSuper(Facebook);
|
|
4589
|
-
|
|
4590
4595
|
function Facebook() {
|
|
4596
|
+
var _getPrototypeOf2;
|
|
4597
|
+
|
|
4591
4598
|
var _this;
|
|
4592
4599
|
|
|
4593
4600
|
_classCallCheck(this, Facebook);
|
|
@@ -4596,7 +4603,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4596
4603
|
args[_key] = arguments[_key];
|
|
4597
4604
|
}
|
|
4598
4605
|
|
|
4599
|
-
_this =
|
|
4606
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4600
4607
|
|
|
4601
4608
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4602
4609
|
|
|
@@ -4712,7 +4719,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4712
4719
|
width: '100%',
|
|
4713
4720
|
height: '100%'
|
|
4714
4721
|
};
|
|
4715
|
-
return
|
|
4722
|
+
return _react["default"].createElement("div", {
|
|
4716
4723
|
style: style,
|
|
4717
4724
|
id: this.playerID,
|
|
4718
4725
|
className: "fb-video",
|
|
@@ -4743,7 +4750,7 @@ exports["default"] = _default;
|
|
|
4743
4750
|
});
|
|
4744
4751
|
|
|
4745
4752
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4746
|
-
Facebook_1.Facebook;
|
|
4753
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4747
4754
|
|
|
4748
4755
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4749
4756
|
|
|
@@ -4752,7 +4759,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4752
4759
|
});
|
|
4753
4760
|
exports["default"] = exports.Streamable = void 0;
|
|
4754
4761
|
|
|
4755
|
-
var _react = _interopRequireWildcard(React__default
|
|
4762
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4756
4763
|
|
|
4757
4764
|
|
|
4758
4765
|
|
|
@@ -4772,16 +4779,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4772
4779
|
|
|
4773
4780
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4774
4781
|
|
|
4775
|
-
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); }; }
|
|
4776
|
-
|
|
4777
4782
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4778
4783
|
|
|
4779
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4780
|
-
|
|
4781
|
-
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; } }
|
|
4782
|
-
|
|
4783
4784
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4784
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
|
+
|
|
4785
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); }
|
|
4786
4789
|
|
|
4787
4790
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4792,12 +4795,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4792
4795
|
var SDK_GLOBAL = 'playerjs';
|
|
4793
4796
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4794
4797
|
|
|
4795
|
-
var Streamable =
|
|
4798
|
+
var Streamable =
|
|
4799
|
+
/*#__PURE__*/
|
|
4800
|
+
function (_Component) {
|
|
4796
4801
|
_inherits(Streamable, _Component);
|
|
4797
4802
|
|
|
4798
|
-
var _super = _createSuper(Streamable);
|
|
4799
|
-
|
|
4800
4803
|
function Streamable() {
|
|
4804
|
+
var _getPrototypeOf2;
|
|
4805
|
+
|
|
4801
4806
|
var _this;
|
|
4802
4807
|
|
|
4803
4808
|
_classCallCheck(this, Streamable);
|
|
@@ -4806,7 +4811,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4806
4811
|
args[_key] = arguments[_key];
|
|
4807
4812
|
}
|
|
4808
4813
|
|
|
4809
|
-
_this =
|
|
4814
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4810
4815
|
|
|
4811
4816
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4812
4817
|
|
|
@@ -4926,7 +4931,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4926
4931
|
width: '100%',
|
|
4927
4932
|
height: '100%'
|
|
4928
4933
|
};
|
|
4929
|
-
return
|
|
4934
|
+
return _react["default"].createElement("iframe", {
|
|
4930
4935
|
ref: this.ref,
|
|
4931
4936
|
src: "https://streamable.com/o/".concat(id),
|
|
4932
4937
|
frameBorder: "0",
|
|
@@ -4954,7 +4959,7 @@ exports["default"] = _default;
|
|
|
4954
4959
|
});
|
|
4955
4960
|
|
|
4956
4961
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4957
|
-
Streamable_1.Streamable;
|
|
4962
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4958
4963
|
|
|
4959
4964
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4960
4965
|
|
|
@@ -4963,7 +4968,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4963
4968
|
});
|
|
4964
4969
|
exports["default"] = exports.Wistia = void 0;
|
|
4965
4970
|
|
|
4966
|
-
var _react = _interopRequireWildcard(React__default
|
|
4971
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4967
4972
|
|
|
4968
4973
|
|
|
4969
4974
|
|
|
@@ -4987,16 +4992,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4987
4992
|
|
|
4988
4993
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4989
4994
|
|
|
4990
|
-
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); }; }
|
|
4991
|
-
|
|
4992
4995
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4993
4996
|
|
|
4994
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4995
|
-
|
|
4996
|
-
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; } }
|
|
4997
|
-
|
|
4998
4997
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4999
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
|
+
|
|
5000
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); }
|
|
5001
5002
|
|
|
5002
5003
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5007,48 +5008,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5007
5008
|
var SDK_GLOBAL = 'Wistia';
|
|
5008
5009
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5009
5010
|
|
|
5010
|
-
var Wistia =
|
|
5011
|
+
var Wistia =
|
|
5012
|
+
/*#__PURE__*/
|
|
5013
|
+
function (_Component) {
|
|
5011
5014
|
_inherits(Wistia, _Component);
|
|
5012
5015
|
|
|
5013
|
-
var _super = _createSuper(Wistia);
|
|
5014
|
-
|
|
5015
5016
|
function Wistia() {
|
|
5017
|
+
var _getPrototypeOf2;
|
|
5018
|
+
|
|
5016
5019
|
var _this;
|
|
5017
5020
|
|
|
5018
5021
|
_classCallCheck(this, Wistia);
|
|
5019
5022
|
|
|
5020
|
-
for (var _len = arguments.length,
|
|
5021
|
-
|
|
5023
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5024
|
+
args[_key] = arguments[_key];
|
|
5022
5025
|
}
|
|
5023
5026
|
|
|
5024
|
-
_this =
|
|
5027
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5025
5028
|
|
|
5026
5029
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5027
5030
|
|
|
5028
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5029
|
-
var _this$props;
|
|
5030
|
-
|
|
5031
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5032
|
-
});
|
|
5033
|
-
|
|
5034
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5035
|
-
var _this$props2;
|
|
5036
|
-
|
|
5037
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5038
|
-
});
|
|
5039
|
-
|
|
5040
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5041
|
-
var _this$props3;
|
|
5042
|
-
|
|
5043
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5044
|
-
});
|
|
5045
|
-
|
|
5046
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5047
|
-
var _this$props4;
|
|
5048
|
-
|
|
5049
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5050
|
-
});
|
|
5051
|
-
|
|
5052
5031
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5053
5032
|
_this.callPlayer('mute');
|
|
5054
5033
|
});
|
|
@@ -5070,13 +5049,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5070
5049
|
value: function load(url) {
|
|
5071
5050
|
var _this2 = this;
|
|
5072
5051
|
|
|
5073
|
-
var _this$
|
|
5074
|
-
playing = _this$
|
|
5075
|
-
muted = _this$
|
|
5076
|
-
controls = _this$
|
|
5077
|
-
_onReady = _this$
|
|
5078
|
-
|
|
5079
|
-
|
|
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;
|
|
5080
5063
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5081
5064
|
window._wq = window._wq || [];
|
|
5082
5065
|
|
|
@@ -5093,28 +5076,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5093
5076
|
|
|
5094
5077
|
_this2.unbind();
|
|
5095
5078
|
|
|
5096
|
-
_this2.player.bind('play',
|
|
5079
|
+
_this2.player.bind('play', onPlay);
|
|
5097
5080
|
|
|
5098
|
-
_this2.player.bind('pause',
|
|
5081
|
+
_this2.player.bind('pause', onPause);
|
|
5099
5082
|
|
|
5100
|
-
_this2.player.bind('seek',
|
|
5083
|
+
_this2.player.bind('seek', onSeek);
|
|
5101
5084
|
|
|
5102
|
-
_this2.player.bind('end',
|
|
5085
|
+
_this2.player.bind('end', onEnded);
|
|
5103
5086
|
|
|
5104
5087
|
_onReady();
|
|
5105
5088
|
}
|
|
5106
5089
|
});
|
|
5107
5090
|
}, onError);
|
|
5108
5091
|
}
|
|
5109
|
-
}, {
|
|
5110
|
-
key: "unbind",
|
|
5111
|
-
value: function unbind() {
|
|
5112
|
-
this.player.unbind('play', this.onPlay);
|
|
5113
|
-
this.player.unbind('pause', this.onPause);
|
|
5114
|
-
this.player.unbind('seek', this.onSeek);
|
|
5115
|
-
this.player.unbind('end', this.onEnded);
|
|
5116
|
-
} // Proxy methods to prevent listener leaks
|
|
5117
|
-
|
|
5118
5092
|
}, {
|
|
5119
5093
|
key: "play",
|
|
5120
5094
|
value: function play() {
|
|
@@ -5125,6 +5099,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5125
5099
|
value: function pause() {
|
|
5126
5100
|
this.callPlayer('pause');
|
|
5127
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
|
+
}
|
|
5128
5115
|
}, {
|
|
5129
5116
|
key: "stop",
|
|
5130
5117
|
value: function stop() {
|
|
@@ -5170,7 +5157,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5170
5157
|
width: '100%',
|
|
5171
5158
|
height: '100%'
|
|
5172
5159
|
};
|
|
5173
|
-
return
|
|
5160
|
+
return _react["default"].createElement("div", {
|
|
5174
5161
|
key: id,
|
|
5175
5162
|
className: className,
|
|
5176
5163
|
style: style
|
|
@@ -5197,7 +5184,7 @@ exports["default"] = _default;
|
|
|
5197
5184
|
});
|
|
5198
5185
|
|
|
5199
5186
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5200
|
-
Wistia_1.Wistia;
|
|
5187
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5201
5188
|
|
|
5202
5189
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5203
5190
|
|
|
@@ -5206,7 +5193,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5206
5193
|
});
|
|
5207
5194
|
exports["default"] = exports.Twitch = void 0;
|
|
5208
5195
|
|
|
5209
|
-
var _react = _interopRequireWildcard(React__default
|
|
5196
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5210
5197
|
|
|
5211
5198
|
|
|
5212
5199
|
|
|
@@ -5230,16 +5217,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5230
5217
|
|
|
5231
5218
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5232
5219
|
|
|
5233
|
-
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); }; }
|
|
5234
|
-
|
|
5235
5220
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5236
5221
|
|
|
5237
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5238
|
-
|
|
5239
|
-
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; } }
|
|
5240
|
-
|
|
5241
5222
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5242
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
|
+
|
|
5243
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); }
|
|
5244
5227
|
|
|
5245
5228
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5252,12 +5235,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5252
5235
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5253
5236
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5254
5237
|
|
|
5255
|
-
var Twitch =
|
|
5238
|
+
var Twitch =
|
|
5239
|
+
/*#__PURE__*/
|
|
5240
|
+
function (_Component) {
|
|
5256
5241
|
_inherits(Twitch, _Component);
|
|
5257
5242
|
|
|
5258
|
-
var _super = _createSuper(Twitch);
|
|
5259
|
-
|
|
5260
5243
|
function Twitch() {
|
|
5244
|
+
var _getPrototypeOf2;
|
|
5245
|
+
|
|
5261
5246
|
var _this;
|
|
5262
5247
|
|
|
5263
5248
|
_classCallCheck(this, Twitch);
|
|
@@ -5266,7 +5251,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5266
5251
|
args[_key] = arguments[_key];
|
|
5267
5252
|
}
|
|
5268
5253
|
|
|
5269
|
-
_this =
|
|
5254
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5270
5255
|
|
|
5271
5256
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5272
5257
|
|
|
@@ -5387,7 +5372,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5387
5372
|
width: '100%',
|
|
5388
5373
|
height: '100%'
|
|
5389
5374
|
};
|
|
5390
|
-
return
|
|
5375
|
+
return _react["default"].createElement("div", {
|
|
5391
5376
|
style: style,
|
|
5392
5377
|
id: this.playerID
|
|
5393
5378
|
});
|
|
@@ -5413,7 +5398,7 @@ exports["default"] = _default;
|
|
|
5413
5398
|
});
|
|
5414
5399
|
|
|
5415
5400
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5416
|
-
Twitch_1.Twitch;
|
|
5401
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5417
5402
|
|
|
5418
5403
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5419
5404
|
|
|
@@ -5422,7 +5407,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5422
5407
|
});
|
|
5423
5408
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5424
5409
|
|
|
5425
|
-
var _react = _interopRequireWildcard(React__default
|
|
5410
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5426
5411
|
|
|
5427
5412
|
|
|
5428
5413
|
|
|
@@ -5440,15 +5425,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5440
5425
|
|
|
5441
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; }
|
|
5442
5427
|
|
|
5443
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5444
|
-
|
|
5445
|
-
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."); }
|
|
5446
|
-
|
|
5447
|
-
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); }
|
|
5428
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5448
5429
|
|
|
5449
|
-
function
|
|
5430
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5450
5431
|
|
|
5451
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
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; }
|
|
5452
5433
|
|
|
5453
5434
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5454
5435
|
|
|
@@ -5458,16 +5439,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5458
5439
|
|
|
5459
5440
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5460
5441
|
|
|
5461
|
-
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); }; }
|
|
5462
|
-
|
|
5463
5442
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5464
5443
|
|
|
5465
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5466
|
-
|
|
5467
|
-
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; } }
|
|
5468
|
-
|
|
5469
5444
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5470
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
|
+
|
|
5471
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); }
|
|
5472
5449
|
|
|
5473
5450
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5479,12 +5456,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5479
5456
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5480
5457
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5481
5458
|
|
|
5482
|
-
var DailyMotion =
|
|
5459
|
+
var DailyMotion =
|
|
5460
|
+
/*#__PURE__*/
|
|
5461
|
+
function (_Component) {
|
|
5483
5462
|
_inherits(DailyMotion, _Component);
|
|
5484
5463
|
|
|
5485
|
-
var _super = _createSuper(DailyMotion);
|
|
5486
|
-
|
|
5487
5464
|
function DailyMotion() {
|
|
5465
|
+
var _getPrototypeOf2;
|
|
5466
|
+
|
|
5488
5467
|
var _this;
|
|
5489
5468
|
|
|
5490
5469
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5493,7 +5472,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5493
5472
|
args[_key] = arguments[_key];
|
|
5494
5473
|
}
|
|
5495
5474
|
|
|
5496
|
-
_this =
|
|
5475
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5497
5476
|
|
|
5498
5477
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5499
5478
|
|
|
@@ -5622,9 +5601,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5622
5601
|
height: '100%',
|
|
5623
5602
|
display: display
|
|
5624
5603
|
};
|
|
5625
|
-
return
|
|
5604
|
+
return _react["default"].createElement("div", {
|
|
5626
5605
|
style: style
|
|
5627
|
-
},
|
|
5606
|
+
}, _react["default"].createElement("div", {
|
|
5628
5607
|
ref: this.ref
|
|
5629
5608
|
}));
|
|
5630
5609
|
}
|
|
@@ -5649,7 +5628,7 @@ exports["default"] = _default;
|
|
|
5649
5628
|
});
|
|
5650
5629
|
|
|
5651
5630
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5652
|
-
DailyMotion_1.DailyMotion;
|
|
5631
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5653
5632
|
|
|
5654
5633
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5655
5634
|
|
|
@@ -5658,7 +5637,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5658
5637
|
});
|
|
5659
5638
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5660
5639
|
|
|
5661
|
-
var _react = _interopRequireWildcard(React__default
|
|
5640
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5662
5641
|
|
|
5663
5642
|
|
|
5664
5643
|
|
|
@@ -5682,16 +5661,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5682
5661
|
|
|
5683
5662
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5684
5663
|
|
|
5685
|
-
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); }; }
|
|
5686
|
-
|
|
5687
5664
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5688
5665
|
|
|
5689
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5690
|
-
|
|
5691
|
-
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; } }
|
|
5692
|
-
|
|
5693
5666
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5694
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
|
+
|
|
5695
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); }
|
|
5696
5671
|
|
|
5697
5672
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5702,12 +5677,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5702
5677
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5703
5678
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5704
5679
|
|
|
5705
|
-
var Mixcloud =
|
|
5680
|
+
var Mixcloud =
|
|
5681
|
+
/*#__PURE__*/
|
|
5682
|
+
function (_Component) {
|
|
5706
5683
|
_inherits(Mixcloud, _Component);
|
|
5707
5684
|
|
|
5708
|
-
var _super = _createSuper(Mixcloud);
|
|
5709
|
-
|
|
5710
5685
|
function Mixcloud() {
|
|
5686
|
+
var _getPrototypeOf2;
|
|
5687
|
+
|
|
5711
5688
|
var _this;
|
|
5712
5689
|
|
|
5713
5690
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5716,7 +5693,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5716
5693
|
args[_key] = arguments[_key];
|
|
5717
5694
|
}
|
|
5718
5695
|
|
|
5719
|
-
_this =
|
|
5696
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5720
5697
|
|
|
5721
5698
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5722
5699
|
|
|
@@ -5819,7 +5796,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5819
5796
|
})); // We have to give the iframe a key here to prevent a
|
|
5820
5797
|
// weird dialog appearing when loading a new track
|
|
5821
5798
|
|
|
5822
|
-
return
|
|
5799
|
+
return _react["default"].createElement("iframe", {
|
|
5823
5800
|
key: id,
|
|
5824
5801
|
ref: this.ref,
|
|
5825
5802
|
style: style,
|
|
@@ -5848,7 +5825,7 @@ exports["default"] = _default;
|
|
|
5848
5825
|
});
|
|
5849
5826
|
|
|
5850
5827
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5851
|
-
Mixcloud_1.Mixcloud;
|
|
5828
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5852
5829
|
|
|
5853
5830
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5854
5831
|
|
|
@@ -5857,7 +5834,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5857
5834
|
});
|
|
5858
5835
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5859
5836
|
|
|
5860
|
-
var _react = _interopRequireWildcard(React__default
|
|
5837
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5861
5838
|
|
|
5862
5839
|
|
|
5863
5840
|
|
|
@@ -5879,33 +5856,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5879
5856
|
|
|
5880
5857
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5881
5858
|
|
|
5882
|
-
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); }; }
|
|
5883
|
-
|
|
5884
5859
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5885
5860
|
|
|
5886
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5887
|
-
|
|
5888
|
-
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; } }
|
|
5889
|
-
|
|
5890
5861
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5891
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
|
+
|
|
5892
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); }
|
|
5893
5866
|
|
|
5894
5867
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5895
5868
|
|
|
5896
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; }
|
|
5897
5870
|
|
|
5898
|
-
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; } } }; }
|
|
5899
|
-
|
|
5900
|
-
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); }
|
|
5901
|
-
|
|
5902
|
-
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; }
|
|
5903
|
-
|
|
5904
5871
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5905
5872
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5906
5873
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5907
5874
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5908
|
-
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';
|
|
5909
5876
|
var HLS_GLOBAL = 'Hls';
|
|
5910
5877
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5911
5878
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5914,11 +5881,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5914
5881
|
|
|
5915
5882
|
function canPlay(url) {
|
|
5916
5883
|
if (url instanceof Array) {
|
|
5917
|
-
var
|
|
5918
|
-
|
|
5884
|
+
var _iteratorNormalCompletion = true;
|
|
5885
|
+
var _didIteratorError = false;
|
|
5886
|
+
var _iteratorError = undefined;
|
|
5919
5887
|
|
|
5920
5888
|
try {
|
|
5921
|
-
for (_iterator.
|
|
5889
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5922
5890
|
var item = _step.value;
|
|
5923
5891
|
|
|
5924
5892
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5930,9 +5898,18 @@ function canPlay(url) {
|
|
|
5930
5898
|
}
|
|
5931
5899
|
}
|
|
5932
5900
|
} catch (err) {
|
|
5933
|
-
|
|
5901
|
+
_didIteratorError = true;
|
|
5902
|
+
_iteratorError = err;
|
|
5934
5903
|
} finally {
|
|
5935
|
-
|
|
5904
|
+
try {
|
|
5905
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5906
|
+
_iterator["return"]();
|
|
5907
|
+
}
|
|
5908
|
+
} finally {
|
|
5909
|
+
if (_didIteratorError) {
|
|
5910
|
+
throw _iteratorError;
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5936
5913
|
}
|
|
5937
5914
|
|
|
5938
5915
|
return false;
|
|
@@ -5956,12 +5933,14 @@ function canEnablePIP(url) {
|
|
|
5956
5933
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5957
5934
|
}
|
|
5958
5935
|
|
|
5959
|
-
var FilePlayer =
|
|
5936
|
+
var FilePlayer =
|
|
5937
|
+
/*#__PURE__*/
|
|
5938
|
+
function (_Component) {
|
|
5960
5939
|
_inherits(FilePlayer, _Component);
|
|
5961
5940
|
|
|
5962
|
-
var _super = _createSuper(FilePlayer);
|
|
5963
|
-
|
|
5964
5941
|
function FilePlayer() {
|
|
5942
|
+
var _getPrototypeOf2;
|
|
5943
|
+
|
|
5965
5944
|
var _this;
|
|
5966
5945
|
|
|
5967
5946
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5970,7 +5949,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5970
5949
|
_args[_key] = arguments[_key];
|
|
5971
5950
|
}
|
|
5972
5951
|
|
|
5973
|
-
_this =
|
|
5952
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5974
5953
|
|
|
5975
5954
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5976
5955
|
var _this$props;
|
|
@@ -6057,19 +6036,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6057
6036
|
|
|
6058
6037
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6059
6038
|
if (typeof source === 'string') {
|
|
6060
|
-
return
|
|
6039
|
+
return _react["default"].createElement("source", {
|
|
6061
6040
|
key: index,
|
|
6062
6041
|
src: source
|
|
6063
6042
|
});
|
|
6064
6043
|
}
|
|
6065
6044
|
|
|
6066
|
-
return
|
|
6045
|
+
return _react["default"].createElement("source", _extends({
|
|
6067
6046
|
key: index
|
|
6068
6047
|
}, source));
|
|
6069
6048
|
});
|
|
6070
6049
|
|
|
6071
6050
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6072
|
-
return
|
|
6051
|
+
return _react["default"].createElement("track", _extends({
|
|
6073
6052
|
key: index
|
|
6074
6053
|
}, track));
|
|
6075
6054
|
});
|
|
@@ -6107,10 +6086,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6107
6086
|
key: "componentWillUnmount",
|
|
6108
6087
|
value: function componentWillUnmount() {
|
|
6109
6088
|
this.removeListeners(this.player);
|
|
6110
|
-
|
|
6111
|
-
if (this.hls) {
|
|
6112
|
-
this.hls.destroy();
|
|
6113
|
-
}
|
|
6114
6089
|
}
|
|
6115
6090
|
}, {
|
|
6116
6091
|
key: "addListeners",
|
|
@@ -6241,6 +6216,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6241
6216
|
value: function stop() {
|
|
6242
6217
|
this.player.removeAttribute('src');
|
|
6243
6218
|
|
|
6219
|
+
if (this.hls) {
|
|
6220
|
+
this.hls.destroy();
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6244
6223
|
if (this.dash) {
|
|
6245
6224
|
this.dash.reset();
|
|
6246
6225
|
}
|
|
@@ -6352,7 +6331,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6352
6331
|
width: width === 'auto' ? width : '100%',
|
|
6353
6332
|
height: height === 'auto' ? height : '100%'
|
|
6354
6333
|
};
|
|
6355
|
-
return
|
|
6334
|
+
return _react["default"].createElement(Element, _extends({
|
|
6356
6335
|
ref: this.ref,
|
|
6357
6336
|
src: this.getSource(url),
|
|
6358
6337
|
style: style,
|
|
@@ -6382,7 +6361,7 @@ exports["default"] = _default;
|
|
|
6382
6361
|
});
|
|
6383
6362
|
|
|
6384
6363
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6385
|
-
FilePlayer_1.FilePlayer;
|
|
6364
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6386
6365
|
|
|
6387
6366
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6388
6367
|
|
|
@@ -6424,7 +6403,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6424
6403
|
});
|
|
6425
6404
|
exports["default"] = void 0;
|
|
6426
6405
|
|
|
6427
|
-
var _react = _interopRequireWildcard(React__default
|
|
6406
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6428
6407
|
|
|
6429
6408
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6430
6409
|
|
|
@@ -6442,16 +6421,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6442
6421
|
|
|
6443
6422
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6444
6423
|
|
|
6445
|
-
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); }; }
|
|
6446
|
-
|
|
6447
6424
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6448
6425
|
|
|
6449
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6450
|
-
|
|
6451
|
-
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; } }
|
|
6452
|
-
|
|
6453
6426
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6454
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
|
+
|
|
6455
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); }
|
|
6456
6431
|
|
|
6457
6432
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6460,12 +6435,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6460
6435
|
|
|
6461
6436
|
var ICON_SIZE = '64px';
|
|
6462
6437
|
|
|
6463
|
-
var Preview =
|
|
6438
|
+
var Preview =
|
|
6439
|
+
/*#__PURE__*/
|
|
6440
|
+
function (_Component) {
|
|
6464
6441
|
_inherits(Preview, _Component);
|
|
6465
6442
|
|
|
6466
|
-
var _super = _createSuper(Preview);
|
|
6467
|
-
|
|
6468
6443
|
function Preview() {
|
|
6444
|
+
var _getPrototypeOf2;
|
|
6445
|
+
|
|
6469
6446
|
var _this;
|
|
6470
6447
|
|
|
6471
6448
|
_classCallCheck(this, Preview);
|
|
@@ -6474,7 +6451,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6474
6451
|
args[_key] = arguments[_key];
|
|
6475
6452
|
}
|
|
6476
6453
|
|
|
6477
|
-
_this =
|
|
6454
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6478
6455
|
|
|
6479
6456
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6480
6457
|
|
|
@@ -6572,15 +6549,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6572
6549
|
}
|
|
6573
6550
|
};
|
|
6574
6551
|
|
|
6575
|
-
var defaultPlayIcon =
|
|
6552
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6576
6553
|
style: styles.shadow,
|
|
6577
6554
|
className: "react-player__shadow"
|
|
6578
|
-
},
|
|
6555
|
+
}, _react["default"].createElement("div", {
|
|
6579
6556
|
style: styles.playIcon,
|
|
6580
6557
|
className: "react-player__play-icon"
|
|
6581
6558
|
}));
|
|
6582
6559
|
|
|
6583
|
-
return
|
|
6560
|
+
return _react["default"].createElement("div", {
|
|
6584
6561
|
style: styles.preview,
|
|
6585
6562
|
className: "react-player__preview",
|
|
6586
6563
|
onClick: onClick
|
|
@@ -6603,7 +6580,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6603
6580
|
});
|
|
6604
6581
|
exports["default"] = renderPreloadPlayers;
|
|
6605
6582
|
|
|
6606
|
-
var _react = _interopRequireDefault(React__default
|
|
6583
|
+
var _react = _interopRequireDefault(React__default);
|
|
6607
6584
|
|
|
6608
6585
|
var _Player = _interopRequireDefault(Player_1);
|
|
6609
6586
|
|
|
@@ -6617,12 +6594,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6617
6594
|
|
|
6618
6595
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6619
6596
|
|
|
6620
|
-
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; } } }; }
|
|
6621
|
-
|
|
6622
|
-
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); }
|
|
6623
|
-
|
|
6624
|
-
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; }
|
|
6625
|
-
|
|
6626
6597
|
var PRELOAD_PLAYERS = [{
|
|
6627
6598
|
Player: YouTube_1.YouTube,
|
|
6628
6599
|
configKey: 'youtube',
|
|
@@ -6643,16 +6614,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6643
6614
|
|
|
6644
6615
|
function renderPreloadPlayers(url, controls, config) {
|
|
6645
6616
|
var players = [];
|
|
6646
|
-
|
|
6647
|
-
var
|
|
6648
|
-
|
|
6617
|
+
var _iteratorNormalCompletion = true;
|
|
6618
|
+
var _didIteratorError = false;
|
|
6619
|
+
var _iteratorError = undefined;
|
|
6649
6620
|
|
|
6650
6621
|
try {
|
|
6651
|
-
for (_iterator.
|
|
6622
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6652
6623
|
var player = _step.value;
|
|
6653
6624
|
|
|
6654
6625
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6655
|
-
players.push(
|
|
6626
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6656
6627
|
key: player.Player.displayName,
|
|
6657
6628
|
activePlayer: player.Player,
|
|
6658
6629
|
url: player.url,
|
|
@@ -6664,9 +6635,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6664
6635
|
}
|
|
6665
6636
|
}
|
|
6666
6637
|
} catch (err) {
|
|
6667
|
-
|
|
6638
|
+
_didIteratorError = true;
|
|
6639
|
+
_iteratorError = err;
|
|
6668
6640
|
} finally {
|
|
6669
|
-
|
|
6641
|
+
try {
|
|
6642
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6643
|
+
_iterator["return"]();
|
|
6644
|
+
}
|
|
6645
|
+
} finally {
|
|
6646
|
+
if (_didIteratorError) {
|
|
6647
|
+
throw _iteratorError;
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6670
6650
|
}
|
|
6671
6651
|
|
|
6672
6652
|
return players;
|
|
@@ -6742,7 +6722,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6742
6722
|
});
|
|
6743
6723
|
exports["default"] = void 0;
|
|
6744
6724
|
|
|
6745
|
-
var _react = _interopRequireWildcard(React__default
|
|
6725
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6746
6726
|
|
|
6747
6727
|
|
|
6748
6728
|
|
|
@@ -6790,17 +6770,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6790
6770
|
|
|
6791
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); }
|
|
6792
6772
|
|
|
6793
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6794
|
-
|
|
6795
|
-
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(); }
|
|
6796
6774
|
|
|
6797
|
-
function
|
|
6775
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6798
6776
|
|
|
6799
|
-
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); }
|
|
6800
6778
|
|
|
6801
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6802
|
-
|
|
6803
|
-
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; } }
|
|
6804
6780
|
|
|
6805
6781
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6806
6782
|
|
|
@@ -6808,16 +6784,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6808
6784
|
|
|
6809
6785
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6810
6786
|
|
|
6811
|
-
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); }; }
|
|
6812
|
-
|
|
6813
6787
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6814
6788
|
|
|
6815
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6816
|
-
|
|
6817
|
-
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; } }
|
|
6818
|
-
|
|
6819
6789
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6820
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
|
+
|
|
6821
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); }
|
|
6822
6794
|
|
|
6823
6795
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6827,12 +6799,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6827
6799
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6828
6800
|
var customPlayers = [];
|
|
6829
6801
|
|
|
6830
|
-
var ReactPlayer =
|
|
6802
|
+
var ReactPlayer =
|
|
6803
|
+
/*#__PURE__*/
|
|
6804
|
+
function (_Component) {
|
|
6831
6805
|
_inherits(ReactPlayer, _Component);
|
|
6832
6806
|
|
|
6833
|
-
var _super = _createSuper(ReactPlayer);
|
|
6834
|
-
|
|
6835
6807
|
function ReactPlayer() {
|
|
6808
|
+
var _getPrototypeOf2;
|
|
6809
|
+
|
|
6836
6810
|
var _this;
|
|
6837
6811
|
|
|
6838
6812
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6841,7 +6815,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6841
6815
|
args[_key] = arguments[_key];
|
|
6842
6816
|
}
|
|
6843
6817
|
|
|
6844
|
-
_this =
|
|
6818
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6845
6819
|
|
|
6846
6820
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6847
6821
|
|
|
@@ -6952,7 +6926,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6952
6926
|
key: "renderActivePlayer",
|
|
6953
6927
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6954
6928
|
if (!url) return null;
|
|
6955
|
-
return
|
|
6929
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6956
6930
|
key: activePlayer.displayName,
|
|
6957
6931
|
ref: this.activePlayerRef,
|
|
6958
6932
|
config: this.config,
|
|
@@ -6989,14 +6963,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6989
6963
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6990
6964
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6991
6965
|
|
|
6992
|
-
var preview =
|
|
6966
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6993
6967
|
url: url,
|
|
6994
6968
|
light: light,
|
|
6995
6969
|
playIcon: playIcon,
|
|
6996
6970
|
onClick: this.handleClickPreview
|
|
6997
6971
|
});
|
|
6998
6972
|
|
|
6999
|
-
return
|
|
6973
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
7000
6974
|
ref: this.wrapperRef,
|
|
7001
6975
|
style: _objectSpread({}, style, {
|
|
7002
6976
|
width: width,
|
|
@@ -7056,20 +7030,20 @@ var Audio = function Audio(_ref) {
|
|
|
7056
7030
|
var node = _ref.node;
|
|
7057
7031
|
|
|
7058
7032
|
if (node.uploadAudio) {
|
|
7059
|
-
return React__default
|
|
7033
|
+
return React__default.createElement(
|
|
7060
7034
|
'div',
|
|
7061
7035
|
{ className: 'audio d-block text-center mb-3' },
|
|
7062
|
-
React__default
|
|
7036
|
+
React__default.createElement(
|
|
7063
7037
|
'audio',
|
|
7064
7038
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7065
|
-
React__default
|
|
7066
|
-
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' }),
|
|
7067
7041
|
'Your browser does not support the audio element.'
|
|
7068
7042
|
),
|
|
7069
|
-
node.caption && React__default
|
|
7043
|
+
node.caption && React__default.createElement(
|
|
7070
7044
|
'p',
|
|
7071
7045
|
{ style: { fontSize: '.9rem' } },
|
|
7072
|
-
React__default
|
|
7046
|
+
React__default.createElement(
|
|
7073
7047
|
'em',
|
|
7074
7048
|
null,
|
|
7075
7049
|
node.caption
|
|
@@ -7079,15 +7053,15 @@ var Audio = function Audio(_ref) {
|
|
|
7079
7053
|
} else if (node.audioFilePth) {
|
|
7080
7054
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7081
7055
|
if (hostname === 'embeds.audioboom.com') {
|
|
7082
|
-
return React__default
|
|
7056
|
+
return React__default.createElement(
|
|
7083
7057
|
'div',
|
|
7084
7058
|
null,
|
|
7085
|
-
React__default
|
|
7059
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7086
7060
|
' ',
|
|
7087
|
-
node.caption && React__default
|
|
7061
|
+
node.caption && React__default.createElement(
|
|
7088
7062
|
'p',
|
|
7089
7063
|
{ style: { fontSize: '.9rem' } },
|
|
7090
|
-
React__default
|
|
7064
|
+
React__default.createElement(
|
|
7091
7065
|
'em',
|
|
7092
7066
|
null,
|
|
7093
7067
|
node.caption
|
|
@@ -7095,14 +7069,14 @@ var Audio = function Audio(_ref) {
|
|
|
7095
7069
|
)
|
|
7096
7070
|
);
|
|
7097
7071
|
}
|
|
7098
|
-
return React__default
|
|
7072
|
+
return React__default.createElement(
|
|
7099
7073
|
'div',
|
|
7100
7074
|
{ className: 'audio' },
|
|
7101
|
-
React__default
|
|
7102
|
-
node.caption && React__default
|
|
7075
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7076
|
+
node.caption && React__default.createElement(
|
|
7103
7077
|
'p',
|
|
7104
7078
|
{ style: { fontSize: '.9rem' } },
|
|
7105
|
-
React__default
|
|
7079
|
+
React__default.createElement(
|
|
7106
7080
|
'em',
|
|
7107
7081
|
null,
|
|
7108
7082
|
node.caption
|
|
@@ -7121,34 +7095,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7121
7095
|
var showAuthorDetails = arguments[7];
|
|
7122
7096
|
|
|
7123
7097
|
if (authorName && authorURL) {
|
|
7124
|
-
return React__default
|
|
7098
|
+
return React__default.createElement(
|
|
7125
7099
|
'span',
|
|
7126
7100
|
null,
|
|
7127
|
-
React__default
|
|
7101
|
+
React__default.createElement(
|
|
7128
7102
|
'a',
|
|
7129
7103
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7130
7104
|
authorName
|
|
7131
7105
|
),
|
|
7132
|
-
showAuthorDetails && React__default
|
|
7106
|
+
showAuthorDetails && React__default.createElement(
|
|
7133
7107
|
reactBootstrap.Card,
|
|
7134
7108
|
{ className: 'author-details-card-' + index },
|
|
7135
|
-
React__default
|
|
7109
|
+
React__default.createElement(
|
|
7136
7110
|
reactBootstrap.Row,
|
|
7137
7111
|
null,
|
|
7138
|
-
profileImage && React__default
|
|
7112
|
+
profileImage && React__default.createElement(
|
|
7139
7113
|
reactBootstrap.Col,
|
|
7140
7114
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7141
|
-
React__default
|
|
7115
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7142
7116
|
),
|
|
7143
|
-
React__default
|
|
7117
|
+
React__default.createElement(
|
|
7144
7118
|
reactBootstrap.Col,
|
|
7145
7119
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7146
|
-
React__default
|
|
7120
|
+
React__default.createElement(
|
|
7147
7121
|
'div',
|
|
7148
7122
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7149
7123
|
authorName
|
|
7150
7124
|
),
|
|
7151
|
-
React__default
|
|
7125
|
+
React__default.createElement(
|
|
7152
7126
|
'p',
|
|
7153
7127
|
null,
|
|
7154
7128
|
biography
|
|
@@ -7156,7 +7130,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7156
7130
|
)
|
|
7157
7131
|
)
|
|
7158
7132
|
),
|
|
7159
|
-
React__default
|
|
7133
|
+
React__default.createElement(
|
|
7160
7134
|
'style',
|
|
7161
7135
|
{ jsx: 'true' },
|
|
7162
7136
|
'\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 '
|
|
@@ -7164,7 +7138,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7164
7138
|
length !== index + 1 && ', '
|
|
7165
7139
|
);
|
|
7166
7140
|
} else if (authorName) {
|
|
7167
|
-
return React__default
|
|
7141
|
+
return React__default.createElement(
|
|
7168
7142
|
'span',
|
|
7169
7143
|
{ key: index },
|
|
7170
7144
|
authorName,
|
|
@@ -7261,12 +7235,12 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7261
7235
|
|
|
7262
7236
|
Videos.forEach(function (vid) {
|
|
7263
7237
|
if (vid.type == 'mp4') {
|
|
7264
|
-
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7238
|
+
data.push({ title: vid.title, thumbnail: urlFor.urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7265
7239
|
} else {
|
|
7266
7240
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7267
|
-
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7241
|
+
data.push({ title: vid.title, thumbnail: urlFor.urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7268
7242
|
} else {
|
|
7269
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7243
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$2.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7270
7244
|
}
|
|
7271
7245
|
}
|
|
7272
7246
|
});
|
|
@@ -7275,7 +7249,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7275
7249
|
if (data.length < seriesVid || !seriesVid) {
|
|
7276
7250
|
setSeries(1);
|
|
7277
7251
|
setVidUrl(Videos[0].url);
|
|
7278
|
-
setVidThumbnail(Videos[0].thumbnail && Videos[0].thumbnail.asset ? urlFor({ client: client, source: Videos[0].thumbnail.asset }) : '');
|
|
7252
|
+
setVidThumbnail(Videos[0].thumbnail && Videos[0].thumbnail.asset ? urlFor.urlFor({ client: client, source: Videos[0].thumbnail.asset }) : '');
|
|
7279
7253
|
if (Videos[0].type) {
|
|
7280
7254
|
setVidType(Videos[0].type);
|
|
7281
7255
|
}
|
|
@@ -7286,7 +7260,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7286
7260
|
} else {
|
|
7287
7261
|
setSeries(seriesVid);
|
|
7288
7262
|
setVidUrl(Videos[seriesVid - 1].url);
|
|
7289
|
-
setVidThumbnail(Videos[seriesVid - 1].thumbnail && Videos[seriesVid - 1].thumbnail.asset ? urlFor({ client: client, source: Videos[seriesVid - 1].thumbnail.asset }) : '');
|
|
7263
|
+
setVidThumbnail(Videos[seriesVid - 1].thumbnail && Videos[seriesVid - 1].thumbnail.asset ? urlFor.urlFor({ client: client, source: Videos[seriesVid - 1].thumbnail.asset }) : '');
|
|
7290
7264
|
if (Videos[0].type) {
|
|
7291
7265
|
setVidType(Videos[seriesVid - 1].type);
|
|
7292
7266
|
}
|
|
@@ -7320,13 +7294,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7320
7294
|
var queue = Math.floor(duration / 10);
|
|
7321
7295
|
var segment = Math.floor(current / queue);
|
|
7322
7296
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7323
|
-
Segment.report_video_event('Video Ready', main.
|
|
7297
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7324
7298
|
//autoplay
|
|
7325
7299
|
|
|
7326
7300
|
//Small pause before starting next video
|
|
7327
7301
|
setTimeout(function () {
|
|
7328
7302
|
//Youtube API to start video playing automatically
|
|
7329
|
-
var id = index$
|
|
7303
|
+
var id = index$2.getYoutubeId(vidUrl);
|
|
7330
7304
|
event.target.loadVideoById(id);
|
|
7331
7305
|
}, 1500);
|
|
7332
7306
|
};
|
|
@@ -7341,7 +7315,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7341
7315
|
var segment = Math.floor(current / queue);
|
|
7342
7316
|
|
|
7343
7317
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7344
|
-
Segment.report_video_event('Video End', main.
|
|
7318
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7345
7319
|
setEndReported(true);
|
|
7346
7320
|
clearInterval(intervalID);
|
|
7347
7321
|
}
|
|
@@ -7392,7 +7366,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7392
7366
|
var segment = Math.floor(current / queue);
|
|
7393
7367
|
if (!queueProgress.includes(segment)) {
|
|
7394
7368
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7395
|
-
Segment.report_video_event('Video Segment', main.
|
|
7369
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7396
7370
|
queueProgress.push(segment);
|
|
7397
7371
|
}
|
|
7398
7372
|
};
|
|
@@ -7406,7 +7380,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7406
7380
|
var segment = Math.floor(current / queue);
|
|
7407
7381
|
|
|
7408
7382
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7409
|
-
Segment.report_video_event('Video Play', main.
|
|
7383
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7410
7384
|
|
|
7411
7385
|
if (!playReported) {
|
|
7412
7386
|
setPlayReported(true);
|
|
@@ -7425,7 +7399,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7425
7399
|
var segment = Math.floor(current / queue);
|
|
7426
7400
|
|
|
7427
7401
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7428
|
-
Segment.report_video_event('Video Pause', main.
|
|
7402
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7429
7403
|
};
|
|
7430
7404
|
|
|
7431
7405
|
// Youtube Options
|
|
@@ -7436,44 +7410,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7436
7410
|
}
|
|
7437
7411
|
};
|
|
7438
7412
|
|
|
7439
|
-
return React__default
|
|
7413
|
+
return React__default.createElement(
|
|
7440
7414
|
'div',
|
|
7441
7415
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7442
|
-
React__default
|
|
7416
|
+
React__default.createElement(
|
|
7443
7417
|
'div',
|
|
7444
7418
|
{ className: 'mt-2 mb-5' },
|
|
7445
|
-
series && React__default
|
|
7419
|
+
series && React__default.createElement(
|
|
7446
7420
|
'div',
|
|
7447
7421
|
{ style: { fontSize: '0.9rem' } },
|
|
7448
7422
|
article.title,
|
|
7449
7423
|
' - Episode ',
|
|
7450
7424
|
series
|
|
7451
7425
|
),
|
|
7452
|
-
Videos[series - 1] && React__default
|
|
7426
|
+
Videos[series - 1] && React__default.createElement(
|
|
7453
7427
|
'h1',
|
|
7454
7428
|
{ className: 'mb-3' },
|
|
7455
7429
|
Videos[series - 1].title
|
|
7456
7430
|
),
|
|
7457
|
-
React__default
|
|
7431
|
+
React__default.createElement(
|
|
7458
7432
|
'div',
|
|
7459
7433
|
null,
|
|
7460
7434
|
moment.moment(article.published).format('LL')
|
|
7461
7435
|
),
|
|
7462
|
-
React__default
|
|
7436
|
+
React__default.createElement(
|
|
7463
7437
|
'div',
|
|
7464
7438
|
{ className: 'mb-3' },
|
|
7465
7439
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7466
|
-
return React__default
|
|
7440
|
+
return React__default.createElement(
|
|
7467
7441
|
'span',
|
|
7468
7442
|
{ key: index },
|
|
7469
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7443
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor.urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7470
7444
|
);
|
|
7471
7445
|
})
|
|
7472
7446
|
),
|
|
7473
|
-
React__default
|
|
7447
|
+
React__default.createElement(
|
|
7474
7448
|
'p',
|
|
7475
7449
|
null,
|
|
7476
|
-
React__default
|
|
7450
|
+
React__default.createElement(SocialShare, {
|
|
7477
7451
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7478
7452
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7479
7453
|
shareVia: meta.shareVia,
|
|
@@ -7488,22 +7462,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7488
7462
|
hideFacebook: meta.hideFBShare
|
|
7489
7463
|
})
|
|
7490
7464
|
),
|
|
7491
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7465
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7492
7466
|
'p',
|
|
7493
7467
|
{ className: 'mb-3' },
|
|
7494
|
-
React__default
|
|
7468
|
+
React__default.createElement(
|
|
7495
7469
|
'em',
|
|
7496
7470
|
null,
|
|
7497
7471
|
Videos[series - 1].intro
|
|
7498
7472
|
)
|
|
7499
7473
|
)
|
|
7500
7474
|
),
|
|
7501
|
-
React__default
|
|
7475
|
+
React__default.createElement(
|
|
7502
7476
|
'div',
|
|
7503
7477
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7504
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7478
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7505
7479
|
className: 'fluid-iframe',
|
|
7506
|
-
videoId: index$
|
|
7480
|
+
videoId: index$2.getYoutubeId(vidUrl),
|
|
7507
7481
|
opts: opts,
|
|
7508
7482
|
onReady: handleOnReady,
|
|
7509
7483
|
onPlay: handleOnPlay,
|
|
@@ -7512,10 +7486,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7512
7486
|
return handleOnEnd(e);
|
|
7513
7487
|
}
|
|
7514
7488
|
}),
|
|
7515
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7516
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7517
|
-
React__default
|
|
7518
|
-
series && React__default
|
|
7489
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7490
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7491
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7492
|
+
series && React__default.createElement(
|
|
7519
7493
|
'div',
|
|
7520
7494
|
{
|
|
7521
7495
|
className: 'vid-series',
|
|
@@ -7525,10 +7499,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7525
7499
|
maxHeight: '100%',
|
|
7526
7500
|
paddingBottom: '0'
|
|
7527
7501
|
} },
|
|
7528
|
-
React__default
|
|
7502
|
+
React__default.createElement(
|
|
7529
7503
|
'p',
|
|
7530
7504
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7531
|
-
React__default
|
|
7505
|
+
React__default.createElement(
|
|
7532
7506
|
'b',
|
|
7533
7507
|
{ style: { fontSize: '1.25em' } },
|
|
7534
7508
|
'Now Playing:'
|
|
@@ -7536,16 +7510,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7536
7510
|
' ',
|
|
7537
7511
|
seriesData[series ? series - 1 : 0].title
|
|
7538
7512
|
),
|
|
7539
|
-
vidUrl && React__default
|
|
7513
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7540
7514
|
)
|
|
7541
7515
|
),
|
|
7542
|
-
React__default
|
|
7543
|
-
React__default
|
|
7516
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7517
|
+
React__default.createElement(
|
|
7544
7518
|
'div',
|
|
7545
7519
|
{ className: 'vid-text' },
|
|
7546
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7520
|
+
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()))
|
|
7547
7521
|
),
|
|
7548
|
-
React__default
|
|
7522
|
+
React__default.createElement(
|
|
7549
7523
|
'style',
|
|
7550
7524
|
{ jsx: 'true' },
|
|
7551
7525
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7553,14 +7527,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7553
7527
|
);
|
|
7554
7528
|
};
|
|
7555
7529
|
|
|
7556
|
-
var Poll
|
|
7557
|
-
var node = _ref.node
|
|
7558
|
-
_ref.client
|
|
7559
|
-
_ref.pageview
|
|
7560
|
-
_ref.videoAccountIDs
|
|
7561
|
-
|
|
7562
|
-
_ref.showVotes
|
|
7563
|
-
|
|
7530
|
+
var Poll = function Poll(_ref) {
|
|
7531
|
+
var node = _ref.node,
|
|
7532
|
+
client = _ref.client,
|
|
7533
|
+
pageview = _ref.pageview,
|
|
7534
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7535
|
+
onVote = _ref.onVote,
|
|
7536
|
+
_ref$showVotes = _ref.showVotes,
|
|
7537
|
+
getSerializers = _ref.getSerializers;
|
|
7564
7538
|
|
|
7565
7539
|
var _useState = React.useState(null),
|
|
7566
7540
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7598,67 +7572,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7598
7572
|
return acc;
|
|
7599
7573
|
}
|
|
7600
7574
|
}, 0);
|
|
7601
|
-
return React__default
|
|
7602
|
-
React__default
|
|
7575
|
+
return React__default.createElement(
|
|
7576
|
+
React__default.Fragment,
|
|
7603
7577
|
null,
|
|
7604
|
-
question && React__default
|
|
7578
|
+
question && React__default.createElement(
|
|
7605
7579
|
'p',
|
|
7606
7580
|
{ className: 'font-weight-bold' },
|
|
7607
7581
|
question
|
|
7608
7582
|
),
|
|
7609
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7583
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7610
7584
|
'form',
|
|
7611
7585
|
{ onSubmit: function onSubmit(e) {
|
|
7612
7586
|
return onSubmitPoll(e);
|
|
7613
7587
|
} },
|
|
7614
7588
|
choices && choices.map(function (choice) {
|
|
7615
|
-
return React__default
|
|
7589
|
+
return React__default.createElement(
|
|
7616
7590
|
'div',
|
|
7617
7591
|
{ key: choice._key },
|
|
7618
|
-
React__default
|
|
7592
|
+
React__default.createElement(
|
|
7619
7593
|
'label',
|
|
7620
7594
|
{ className: 'pl-2' },
|
|
7621
|
-
React__default
|
|
7595
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7622
7596
|
return setSelectedChoice(e.target.value);
|
|
7623
7597
|
} }),
|
|
7624
7598
|
' ' + choice.choiceText
|
|
7625
7599
|
)
|
|
7626
7600
|
);
|
|
7627
7601
|
}),
|
|
7628
|
-
React__default
|
|
7602
|
+
React__default.createElement(
|
|
7629
7603
|
reactBootstrap.Button,
|
|
7630
7604
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7631
7605
|
'Vote'
|
|
7632
7606
|
)
|
|
7633
7607
|
),
|
|
7634
|
-
React__default
|
|
7608
|
+
React__default.createElement(
|
|
7635
7609
|
'div',
|
|
7636
7610
|
{ className: 'progress-container' },
|
|
7637
7611
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7638
7612
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7639
|
-
return React__default
|
|
7613
|
+
return React__default.createElement(
|
|
7640
7614
|
'div',
|
|
7641
7615
|
{ key: choice._key, className: 'mb-3' },
|
|
7642
|
-
React__default
|
|
7616
|
+
React__default.createElement(
|
|
7643
7617
|
'div',
|
|
7644
7618
|
{ className: 'correct-answer' },
|
|
7645
|
-
React__default
|
|
7619
|
+
React__default.createElement(
|
|
7646
7620
|
'div',
|
|
7647
7621
|
null,
|
|
7648
7622
|
choice.choiceText
|
|
7649
7623
|
),
|
|
7650
|
-
choice.choiceAnswer === true && React__default
|
|
7624
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7651
7625
|
'div',
|
|
7652
7626
|
null,
|
|
7653
|
-
React__default
|
|
7627
|
+
React__default.createElement(
|
|
7654
7628
|
'span',
|
|
7655
7629
|
{ style: { color: 'limegreen' } },
|
|
7656
7630
|
'Correct!'
|
|
7657
7631
|
)
|
|
7658
7632
|
)
|
|
7659
7633
|
),
|
|
7660
|
-
React__default
|
|
7661
|
-
React__default
|
|
7634
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7635
|
+
React__default.createElement(
|
|
7662
7636
|
'span',
|
|
7663
7637
|
{ className: 'float-right' },
|
|
7664
7638
|
percentage,
|
|
@@ -7669,14 +7643,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7669
7643
|
);
|
|
7670
7644
|
})
|
|
7671
7645
|
),
|
|
7672
|
-
showAnswer && React__default
|
|
7646
|
+
showAnswer && React__default.createElement(
|
|
7673
7647
|
'h4',
|
|
7674
7648
|
{ className: 'text-center small p-3' },
|
|
7675
7649
|
'Total Votes: ',
|
|
7676
7650
|
choicesTotalCount
|
|
7677
7651
|
),
|
|
7678
|
-
showAnswer && response && React__default
|
|
7679
|
-
React__default
|
|
7652
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7653
|
+
React__default.createElement(
|
|
7680
7654
|
'style',
|
|
7681
7655
|
{ jsx: 'true' },
|
|
7682
7656
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7694,22 +7668,22 @@ core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
|
7694
7668
|
}
|
|
7695
7669
|
});
|
|
7696
7670
|
|
|
7697
|
-
var values
|
|
7671
|
+
var values = core_getIteratorMethod._core.Object.values;
|
|
7698
7672
|
|
|
7699
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7700
|
-
module.exports = { "default": values
|
|
7673
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7674
|
+
module.exports = { "default": values, __esModule: true };
|
|
7701
7675
|
});
|
|
7702
7676
|
|
|
7703
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7677
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7704
7678
|
|
|
7705
|
-
var Poll = function Poll(_ref) {
|
|
7706
|
-
var node = _ref.node
|
|
7707
|
-
_ref.client
|
|
7708
|
-
_ref.pageview
|
|
7709
|
-
_ref.videoAccountIDs
|
|
7710
|
-
|
|
7711
|
-
_ref.showVotes
|
|
7712
|
-
|
|
7679
|
+
var Poll$1 = function Poll(_ref) {
|
|
7680
|
+
var node = _ref.node,
|
|
7681
|
+
client = _ref.client,
|
|
7682
|
+
pageview = _ref.pageview,
|
|
7683
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7684
|
+
onVote = _ref.onVote,
|
|
7685
|
+
_ref$showVotes = _ref.showVotes,
|
|
7686
|
+
getSerializers = _ref.getSerializers;
|
|
7713
7687
|
|
|
7714
7688
|
var _useState = React.useState(null),
|
|
7715
7689
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7775,67 +7749,67 @@ var Poll = function Poll(_ref) {
|
|
|
7775
7749
|
return acc;
|
|
7776
7750
|
}
|
|
7777
7751
|
}, 0);
|
|
7778
|
-
return React__default
|
|
7779
|
-
React__default
|
|
7752
|
+
return React__default.createElement(
|
|
7753
|
+
React__default.Fragment,
|
|
7780
7754
|
null,
|
|
7781
|
-
question && React__default
|
|
7755
|
+
question && React__default.createElement(
|
|
7782
7756
|
'p',
|
|
7783
7757
|
{ className: 'font-weight-bold' },
|
|
7784
7758
|
question
|
|
7785
7759
|
),
|
|
7786
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7760
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7787
7761
|
'form',
|
|
7788
7762
|
{ onSubmit: function onSubmit(e) {
|
|
7789
7763
|
return onSubmitPoll(e);
|
|
7790
7764
|
} },
|
|
7791
7765
|
choices && choices.map(function (choice) {
|
|
7792
|
-
return React__default
|
|
7766
|
+
return React__default.createElement(
|
|
7793
7767
|
'div',
|
|
7794
7768
|
{ key: choice._key },
|
|
7795
|
-
React__default
|
|
7769
|
+
React__default.createElement(
|
|
7796
7770
|
'label',
|
|
7797
7771
|
{ className: 'pl-2' },
|
|
7798
|
-
React__default
|
|
7772
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7799
7773
|
return setSelectedChoice(e.target.value);
|
|
7800
7774
|
} }),
|
|
7801
7775
|
' ' + choice.choiceText
|
|
7802
7776
|
)
|
|
7803
7777
|
);
|
|
7804
7778
|
}),
|
|
7805
|
-
React__default
|
|
7779
|
+
React__default.createElement(
|
|
7806
7780
|
reactBootstrap.Button,
|
|
7807
7781
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7808
7782
|
'Vote'
|
|
7809
7783
|
)
|
|
7810
7784
|
),
|
|
7811
|
-
React__default
|
|
7785
|
+
React__default.createElement(
|
|
7812
7786
|
'div',
|
|
7813
7787
|
{ className: 'progress-container' },
|
|
7814
7788
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7815
7789
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7816
|
-
return React__default
|
|
7790
|
+
return React__default.createElement(
|
|
7817
7791
|
'div',
|
|
7818
7792
|
{ key: choice._key, className: 'mb-3' },
|
|
7819
|
-
React__default
|
|
7793
|
+
React__default.createElement(
|
|
7820
7794
|
'div',
|
|
7821
7795
|
{ className: 'correct-answer' },
|
|
7822
|
-
React__default
|
|
7796
|
+
React__default.createElement(
|
|
7823
7797
|
'div',
|
|
7824
7798
|
null,
|
|
7825
7799
|
choice.choiceText
|
|
7826
7800
|
),
|
|
7827
|
-
choice.choiceAnswer === true && React__default
|
|
7801
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7828
7802
|
'div',
|
|
7829
7803
|
null,
|
|
7830
|
-
React__default
|
|
7804
|
+
React__default.createElement(
|
|
7831
7805
|
'span',
|
|
7832
7806
|
{ style: { color: 'limegreen' } },
|
|
7833
7807
|
'Correct!'
|
|
7834
7808
|
)
|
|
7835
7809
|
)
|
|
7836
7810
|
),
|
|
7837
|
-
React__default
|
|
7838
|
-
React__default
|
|
7811
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7812
|
+
React__default.createElement(
|
|
7839
7813
|
'span',
|
|
7840
7814
|
{ className: 'float-right' },
|
|
7841
7815
|
percentage,
|
|
@@ -7846,14 +7820,14 @@ var Poll = function Poll(_ref) {
|
|
|
7846
7820
|
);
|
|
7847
7821
|
})
|
|
7848
7822
|
),
|
|
7849
|
-
showAnswer && React__default
|
|
7823
|
+
showAnswer && React__default.createElement(
|
|
7850
7824
|
'h4',
|
|
7851
7825
|
{ className: 'text-center small p-3' },
|
|
7852
7826
|
'Total Votes: ',
|
|
7853
7827
|
choicesTotalCount
|
|
7854
7828
|
),
|
|
7855
|
-
showAnswer && response && React__default
|
|
7856
|
-
React__default
|
|
7829
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7830
|
+
React__default.createElement(
|
|
7857
7831
|
'style',
|
|
7858
7832
|
{ jsx: 'true' },
|
|
7859
7833
|
'\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 '
|
|
@@ -7861,7 +7835,7 @@ var Poll = function Poll(_ref) {
|
|
|
7861
7835
|
);
|
|
7862
7836
|
};
|
|
7863
7837
|
|
|
7864
|
-
var numberOfPaginations = main.
|
|
7838
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7865
7839
|
|
|
7866
7840
|
var Quiz = function Quiz(_ref) {
|
|
7867
7841
|
var quizzes = _ref.quizzes,
|
|
@@ -7979,34 +7953,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7979
7953
|
};
|
|
7980
7954
|
|
|
7981
7955
|
var renderPagination = function renderPagination() {
|
|
7982
|
-
return React__default
|
|
7983
|
-
|
|
7984
|
-
{ className: 'p-0 m-0', size: main.
|
|
7985
|
-
React__default
|
|
7956
|
+
return React__default.createElement(
|
|
7957
|
+
Pagination$1,
|
|
7958
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7959
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7986
7960
|
return changePage('first');
|
|
7987
7961
|
}, disabled: currentPage === 1 }),
|
|
7988
|
-
React__default
|
|
7962
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7989
7963
|
return changePage('prev');
|
|
7990
7964
|
}, disabled: currentPage === 1 }),
|
|
7991
|
-
React__default
|
|
7965
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7992
7966
|
return renderNewPages('prev');
|
|
7993
7967
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7994
7968
|
pages.map(function (page) {
|
|
7995
|
-
return React__default
|
|
7996
|
-
|
|
7969
|
+
return React__default.createElement(
|
|
7970
|
+
Pagination$1.Item,
|
|
7997
7971
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7998
7972
|
return changePage(page);
|
|
7999
7973
|
} },
|
|
8000
7974
|
page
|
|
8001
7975
|
);
|
|
8002
7976
|
}),
|
|
8003
|
-
React__default
|
|
7977
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
8004
7978
|
return renderNewPages('next');
|
|
8005
7979
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8006
|
-
React__default
|
|
7980
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
8007
7981
|
return changePage('next');
|
|
8008
7982
|
}, disabled: currentPage === pageCount }),
|
|
8009
|
-
React__default
|
|
7983
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
8010
7984
|
return changePage('last');
|
|
8011
7985
|
}, disabled: currentPage === pageCount })
|
|
8012
7986
|
);
|
|
@@ -8089,51 +8063,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8089
8063
|
}
|
|
8090
8064
|
};
|
|
8091
8065
|
|
|
8092
|
-
return React__default
|
|
8093
|
-
React__default
|
|
8066
|
+
return React__default.createElement(
|
|
8067
|
+
React__default.Fragment,
|
|
8094
8068
|
null,
|
|
8095
|
-
quizzes[currentPage - 1] && React__default
|
|
8096
|
-
React__default
|
|
8069
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8070
|
+
React__default.Fragment,
|
|
8097
8071
|
null,
|
|
8098
|
-
React__default
|
|
8099
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8072
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8073
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8100
8074
|
'form',
|
|
8101
8075
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8102
8076
|
return e.preventDefault();
|
|
8103
8077
|
} },
|
|
8104
8078
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8105
|
-
return React__default
|
|
8079
|
+
return React__default.createElement(
|
|
8106
8080
|
'div',
|
|
8107
8081
|
{ key: answer._key },
|
|
8108
|
-
React__default
|
|
8082
|
+
React__default.createElement(
|
|
8109
8083
|
'label',
|
|
8110
8084
|
{ className: 'pl-2' },
|
|
8111
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8085
|
+
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 }),
|
|
8112
8086
|
' ' + answer.answerText
|
|
8113
8087
|
)
|
|
8114
8088
|
);
|
|
8115
8089
|
})
|
|
8116
8090
|
)
|
|
8117
8091
|
),
|
|
8118
|
-
!showAnswer && React__default
|
|
8119
|
-
|
|
8092
|
+
!showAnswer && React__default.createElement(
|
|
8093
|
+
Button,
|
|
8120
8094
|
{ onClick: function onClick() {
|
|
8121
8095
|
return checkAnswers();
|
|
8122
8096
|
}, variant: 'info', block: true },
|
|
8123
8097
|
'Please click here for answer'
|
|
8124
8098
|
),
|
|
8125
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8126
|
-
React__default
|
|
8099
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8100
|
+
React__default.Fragment,
|
|
8127
8101
|
null,
|
|
8128
|
-
React__default
|
|
8102
|
+
React__default.createElement(
|
|
8129
8103
|
'h4',
|
|
8130
8104
|
null,
|
|
8131
8105
|
'Answer:'
|
|
8132
8106
|
),
|
|
8133
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8107
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8134
8108
|
),
|
|
8135
|
-
React__default
|
|
8136
|
-
pageCount > 1 && React__default
|
|
8109
|
+
React__default.createElement('br', null),
|
|
8110
|
+
pageCount > 1 && React__default.createElement(
|
|
8137
8111
|
'div',
|
|
8138
8112
|
{ className: 'd-flex justify-content-center' },
|
|
8139
8113
|
renderPagination()
|
|
@@ -8144,19 +8118,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8144
8118
|
var Leads = function Leads(_ref) {
|
|
8145
8119
|
var url = _ref.url;
|
|
8146
8120
|
|
|
8147
|
-
return React__default
|
|
8121
|
+
return React__default.createElement(
|
|
8148
8122
|
'div',
|
|
8149
8123
|
{ className: 'd-block text-center mb-3' },
|
|
8150
|
-
React__default
|
|
8124
|
+
React__default.createElement(
|
|
8151
8125
|
'style',
|
|
8152
8126
|
{ jsx: 'true' },
|
|
8153
8127
|
'\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 '
|
|
8154
8128
|
),
|
|
8155
|
-
url && React__default
|
|
8129
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8156
8130
|
);
|
|
8157
8131
|
};
|
|
8158
8132
|
|
|
8159
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8133
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8160
8134
|
var slides = _ref.node.slides,
|
|
8161
8135
|
client = _ref.client,
|
|
8162
8136
|
pageview = _ref.pageview,
|
|
@@ -8192,53 +8166,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8192
8166
|
setCarouselIndex(selectedIndex);
|
|
8193
8167
|
};
|
|
8194
8168
|
|
|
8195
|
-
return React__default
|
|
8169
|
+
return React__default.createElement(
|
|
8196
8170
|
'div',
|
|
8197
8171
|
{ className: 'mt-3 mb-4' },
|
|
8198
|
-
React__default
|
|
8172
|
+
React__default.createElement(
|
|
8199
8173
|
reactBootstrap.Carousel,
|
|
8200
8174
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8201
8175
|
slides && slides.map(function (slide) {
|
|
8202
8176
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8203
|
-
return React__default
|
|
8177
|
+
return React__default.createElement(
|
|
8204
8178
|
reactBootstrap.Carousel.Item,
|
|
8205
8179
|
{ key: slide._key },
|
|
8206
|
-
React__default
|
|
8180
|
+
React__default.createElement(
|
|
8207
8181
|
'a',
|
|
8208
8182
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8209
|
-
React__default
|
|
8183
|
+
React__default.createElement(
|
|
8210
8184
|
'div',
|
|
8211
8185
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8212
|
-
React__default
|
|
8213
|
-
index$
|
|
8186
|
+
React__default.createElement(
|
|
8187
|
+
index$1.LazyLoad,
|
|
8214
8188
|
null,
|
|
8215
|
-
React__default
|
|
8189
|
+
React__default.createElement(
|
|
8216
8190
|
'picture',
|
|
8217
8191
|
null,
|
|
8218
|
-
React__default
|
|
8219
|
-
React__default
|
|
8220
|
-
React__default
|
|
8221
|
-
React__default
|
|
8192
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor.urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8193
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8194
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8195
|
+
React__default.createElement('img', { src: urlFor.urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8222
8196
|
)
|
|
8223
8197
|
)
|
|
8224
8198
|
)
|
|
8225
8199
|
),
|
|
8226
|
-
React__default
|
|
8200
|
+
React__default.createElement(
|
|
8227
8201
|
'div',
|
|
8228
8202
|
{ className: 'p-2' },
|
|
8229
|
-
slide.slideshowImage.caption && React__default
|
|
8203
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8230
8204
|
'h3',
|
|
8231
8205
|
{ style: { padding: '0px' } },
|
|
8232
8206
|
slide.slideshowImage.caption
|
|
8233
8207
|
),
|
|
8234
|
-
slide.description && React__default
|
|
8208
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8235
8209
|
)
|
|
8236
8210
|
);
|
|
8237
8211
|
}
|
|
8238
8212
|
return null;
|
|
8239
8213
|
})
|
|
8240
8214
|
),
|
|
8241
|
-
React__default
|
|
8215
|
+
React__default.createElement(
|
|
8242
8216
|
'style',
|
|
8243
8217
|
{ jsx: 'true' },
|
|
8244
8218
|
'\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 '
|
|
@@ -8257,10 +8231,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8257
8231
|
sizes = _props$node.sizes,
|
|
8258
8232
|
sizeMapping = _props$node.sizeMapping;
|
|
8259
8233
|
|
|
8260
|
-
return React__default
|
|
8234
|
+
return React__default.createElement(
|
|
8261
8235
|
'div',
|
|
8262
8236
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8263
|
-
React__default
|
|
8237
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8264
8238
|
);
|
|
8265
8239
|
};
|
|
8266
8240
|
|
|
@@ -8271,15 +8245,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8271
8245
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8272
8246
|
|
|
8273
8247
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8274
|
-
return React__default
|
|
8248
|
+
return React__default.createElement(
|
|
8275
8249
|
'section',
|
|
8276
8250
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8277
|
-
Caption && React__default
|
|
8251
|
+
Caption && React__default.createElement(
|
|
8278
8252
|
'h4',
|
|
8279
8253
|
{ className: 'formstack-caption' },
|
|
8280
8254
|
Caption
|
|
8281
8255
|
),
|
|
8282
|
-
React__default
|
|
8256
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8283
8257
|
);
|
|
8284
8258
|
};
|
|
8285
8259
|
|
|
@@ -8295,36 +8269,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8295
8269
|
}
|
|
8296
8270
|
});
|
|
8297
8271
|
if (medias && medias.length > 0) {
|
|
8298
|
-
return React__default
|
|
8272
|
+
return React__default.createElement(
|
|
8299
8273
|
'div',
|
|
8300
8274
|
{ className: 'multi-media-container' },
|
|
8301
|
-
React__default
|
|
8302
|
-
|
|
8275
|
+
React__default.createElement(
|
|
8276
|
+
Row,
|
|
8303
8277
|
{ noGutters: true },
|
|
8304
8278
|
medias.map(function (media) {
|
|
8305
|
-
return React__default
|
|
8306
|
-
|
|
8279
|
+
return React__default.createElement(
|
|
8280
|
+
Col,
|
|
8307
8281
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8308
|
-
React__default
|
|
8282
|
+
React__default.createElement(
|
|
8309
8283
|
'a',
|
|
8310
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8284
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8311
8285
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8312
|
-
React__default
|
|
8286
|
+
React__default.createElement(
|
|
8313
8287
|
'div',
|
|
8314
8288
|
{ className: 'multi-media-image-container' },
|
|
8315
|
-
imageBox && React__default
|
|
8316
|
-
index$
|
|
8289
|
+
imageBox && React__default.createElement(
|
|
8290
|
+
index$1.LazyLoad,
|
|
8317
8291
|
{ once: true },
|
|
8318
|
-
React__default
|
|
8292
|
+
React__default.createElement(
|
|
8319
8293
|
'picture',
|
|
8320
8294
|
null,
|
|
8321
|
-
React__default
|
|
8322
|
-
React__default
|
|
8323
|
-
React__default
|
|
8324
|
-
React__default
|
|
8295
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor.urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8296
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8297
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8298
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor.urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8325
8299
|
)
|
|
8326
8300
|
),
|
|
8327
|
-
media.caption && React__default
|
|
8301
|
+
media.caption && React__default.createElement(
|
|
8328
8302
|
'span',
|
|
8329
8303
|
{ className: 'multi-media-caption' },
|
|
8330
8304
|
media.caption
|
|
@@ -8334,7 +8308,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8334
8308
|
);
|
|
8335
8309
|
})
|
|
8336
8310
|
),
|
|
8337
|
-
React__default
|
|
8311
|
+
React__default.createElement(
|
|
8338
8312
|
'style',
|
|
8339
8313
|
{ jsx: 'true' },
|
|
8340
8314
|
'\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 '
|
|
@@ -8345,12 +8319,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8345
8319
|
};
|
|
8346
8320
|
|
|
8347
8321
|
var InscreenSensor = function (_React$Component) {
|
|
8348
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8322
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8349
8323
|
|
|
8350
8324
|
function InscreenSensor(props) {
|
|
8351
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8325
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8352
8326
|
|
|
8353
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8327
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8354
8328
|
|
|
8355
8329
|
_this.scrollHandler = function () {
|
|
8356
8330
|
var visible = _this.checkInside();
|
|
@@ -8381,12 +8355,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8381
8355
|
}
|
|
8382
8356
|
};
|
|
8383
8357
|
|
|
8384
|
-
_this.wraperRef = React__default
|
|
8358
|
+
_this.wraperRef = React__default.createRef();
|
|
8385
8359
|
_this.visible = false;
|
|
8386
8360
|
return _this;
|
|
8387
8361
|
}
|
|
8388
8362
|
|
|
8389
|
-
inherits._createClass(InscreenSensor, [{
|
|
8363
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8390
8364
|
key: 'componentDidMount',
|
|
8391
8365
|
value: function componentDidMount() {
|
|
8392
8366
|
this.visible = this.checkInside();
|
|
@@ -8409,7 +8383,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8409
8383
|
_props$id = _props.id,
|
|
8410
8384
|
id = _props$id === undefined ? '' : _props$id;
|
|
8411
8385
|
|
|
8412
|
-
return React__default
|
|
8386
|
+
return React__default.createElement(
|
|
8413
8387
|
'div',
|
|
8414
8388
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8415
8389
|
this.props.children
|
|
@@ -8418,7 +8392,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8418
8392
|
}]);
|
|
8419
8393
|
|
|
8420
8394
|
return InscreenSensor;
|
|
8421
|
-
}(React__default
|
|
8395
|
+
}(React__default.Component);
|
|
8422
8396
|
|
|
8423
8397
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8424
8398
|
var nodes = _ref.nodes,
|
|
@@ -8527,33 +8501,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8527
8501
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8528
8502
|
var showReading = show ? 'showReading' : '';
|
|
8529
8503
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8530
|
-
return React__default
|
|
8504
|
+
return React__default.createElement(
|
|
8531
8505
|
'div',
|
|
8532
8506
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8533
|
-
React__default
|
|
8507
|
+
React__default.createElement(
|
|
8534
8508
|
'a',
|
|
8535
8509
|
{ onClick: function onClick(e) {
|
|
8536
8510
|
return articleCardClickHandler(e);
|
|
8537
8511
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8538
|
-
React__default
|
|
8512
|
+
React__default.createElement(
|
|
8539
8513
|
'div',
|
|
8540
8514
|
{ className: 'prevNext-thumbnail' },
|
|
8541
|
-
React__default
|
|
8542
|
-
React__default
|
|
8515
|
+
React__default.createElement('img', { src: urlFor.urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8516
|
+
React__default.createElement(
|
|
8543
8517
|
'div',
|
|
8544
8518
|
{ className: 'prevNext-reading ' + showReading },
|
|
8545
8519
|
articleLabel
|
|
8546
8520
|
)
|
|
8547
8521
|
),
|
|
8548
|
-
React__default
|
|
8522
|
+
React__default.createElement(
|
|
8549
8523
|
'div',
|
|
8550
8524
|
{ className: 'prevNext-summary' },
|
|
8551
|
-
React__default
|
|
8525
|
+
React__default.createElement(
|
|
8552
8526
|
'div',
|
|
8553
8527
|
{ className: 'prevNext-publishDate' },
|
|
8554
8528
|
moment.moment(article.published).format('LL')
|
|
8555
8529
|
),
|
|
8556
|
-
React__default
|
|
8530
|
+
React__default.createElement(
|
|
8557
8531
|
'h2',
|
|
8558
8532
|
{ className: 'prevNext-title' },
|
|
8559
8533
|
article.title
|
|
@@ -8602,13 +8576,13 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8602
8576
|
|
|
8603
8577
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8604
8578
|
if (biography) {
|
|
8605
|
-
return React__default
|
|
8579
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8606
8580
|
}
|
|
8607
8581
|
};
|
|
8608
8582
|
|
|
8609
8583
|
React.useEffect(function () {
|
|
8610
8584
|
if (articleClicked === true) {
|
|
8611
|
-
onChangeArticle(Articles[articleIndex].param.current, 'top', Articles[articleIndex].title, Articles[articleIndex].summary, urlFor({ client: client, source: Articles[articleIndex].thumbnail.asset }));
|
|
8585
|
+
onChangeArticle(Articles[articleIndex].param.current, 'top', Articles[articleIndex].title, Articles[articleIndex].summary, urlFor.urlFor({ client: client, source: Articles[articleIndex].thumbnail.asset }));
|
|
8612
8586
|
}
|
|
8613
8587
|
}, [articleClicked]);
|
|
8614
8588
|
|
|
@@ -8688,7 +8662,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8688
8662
|
//console.log('useLayoutEffect')
|
|
8689
8663
|
if (!firstLoad) {
|
|
8690
8664
|
setUpArrowClicked(false);
|
|
8691
|
-
if (main.
|
|
8665
|
+
if (main.main_36) {
|
|
8692
8666
|
grabLoadedAds();
|
|
8693
8667
|
} else {
|
|
8694
8668
|
scrollToArticle();
|
|
@@ -8712,7 +8686,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8712
8686
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8713
8687
|
if (pageview) pageview(path);
|
|
8714
8688
|
|
|
8715
|
-
if (!main.
|
|
8689
|
+
if (!main.main_36) {
|
|
8716
8690
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8717
8691
|
if (window.googletag && googletag.pubadsReady) {
|
|
8718
8692
|
index.lib_3.refresh();
|
|
@@ -8720,7 +8694,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8720
8694
|
});
|
|
8721
8695
|
}
|
|
8722
8696
|
//Refresh leaderboard ad on mobile
|
|
8723
|
-
if (main.
|
|
8697
|
+
if (main.main_36) {
|
|
8724
8698
|
var leaderboardSlotId = '';
|
|
8725
8699
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8726
8700
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8746,7 +8720,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8746
8720
|
setCurrentTitle(title);
|
|
8747
8721
|
if (rootArticle) {
|
|
8748
8722
|
setCurrentSummary(rootArticle.summary ? rootArticle.summary : '');
|
|
8749
|
-
setCurrentThumbnail(urlFor({ client: client, source: rootArticle.thumbnail.asset }));
|
|
8723
|
+
setCurrentThumbnail(urlFor.urlFor({ client: client, source: rootArticle.thumbnail.asset }));
|
|
8750
8724
|
} else {
|
|
8751
8725
|
setCurrentSummary('');
|
|
8752
8726
|
setCurrentThumbnail('');
|
|
@@ -8760,38 +8734,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8760
8734
|
setSensorVisible(false);
|
|
8761
8735
|
};
|
|
8762
8736
|
|
|
8763
|
-
return React__default
|
|
8764
|
-
React__default
|
|
8737
|
+
return React__default.createElement(
|
|
8738
|
+
React__default.Fragment,
|
|
8765
8739
|
null,
|
|
8766
|
-
React__default
|
|
8740
|
+
React__default.createElement(
|
|
8767
8741
|
'div',
|
|
8768
8742
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8769
|
-
React__default
|
|
8743
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8770
8744
|
return handleArrowClick();
|
|
8771
8745
|
} })
|
|
8772
8746
|
),
|
|
8773
|
-
React__default
|
|
8774
|
-
React__default
|
|
8747
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8748
|
+
React__default.createElement(
|
|
8775
8749
|
'div',
|
|
8776
8750
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8777
|
-
React__default
|
|
8751
|
+
React__default.createElement(
|
|
8778
8752
|
'h5',
|
|
8779
8753
|
{ className: 'objective-title' },
|
|
8780
8754
|
nodes.seriesTitle
|
|
8781
8755
|
),
|
|
8782
|
-
React__default
|
|
8756
|
+
React__default.createElement(
|
|
8783
8757
|
'div',
|
|
8784
8758
|
{ className: 'prevNextWrapper' },
|
|
8785
8759
|
PrevNextCards(false, -1)
|
|
8786
8760
|
)
|
|
8787
8761
|
),
|
|
8788
|
-
React__default
|
|
8789
|
-
React__default
|
|
8762
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8763
|
+
React__default.createElement(
|
|
8790
8764
|
'div',
|
|
8791
8765
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8792
|
-
main.
|
|
8766
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8793
8767
|
if (index === 0) {
|
|
8794
|
-
return React__default
|
|
8768
|
+
return React__default.createElement(
|
|
8795
8769
|
'div',
|
|
8796
8770
|
{
|
|
8797
8771
|
key: 'addid-1',
|
|
@@ -8811,14 +8785,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8811
8785
|
}
|
|
8812
8786
|
})
|
|
8813
8787
|
),
|
|
8814
|
-
React__default
|
|
8788
|
+
React__default.createElement(
|
|
8815
8789
|
'div',
|
|
8816
8790
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8817
8791
|
Articles.map(function (article, index) {
|
|
8818
|
-
return React__default
|
|
8792
|
+
return React__default.createElement(
|
|
8819
8793
|
'div',
|
|
8820
8794
|
{ key: article.title },
|
|
8821
|
-
React__default
|
|
8795
|
+
React__default.createElement(
|
|
8822
8796
|
InscreenSensor,
|
|
8823
8797
|
{
|
|
8824
8798
|
visible: sensorVisible,
|
|
@@ -8832,88 +8806,88 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8832
8806
|
onChange: function onChange(visible) {
|
|
8833
8807
|
if (upArrowClicked === false && articleClicked === false) {
|
|
8834
8808
|
if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
|
|
8835
|
-
onChangeArticle(article.param.current, visible, article.title, article.summary, urlFor({ client: client, source: article.thumbnail.asset }));
|
|
8809
|
+
onChangeArticle(article.param.current, visible, article.title, article.summary, urlFor.urlFor({ client: client, source: article.thumbnail.asset }));
|
|
8836
8810
|
}
|
|
8837
8811
|
}
|
|
8838
8812
|
} },
|
|
8839
|
-
React__default
|
|
8840
|
-
|
|
8813
|
+
React__default.createElement(
|
|
8814
|
+
Head,
|
|
8841
8815
|
null,
|
|
8842
|
-
currentTitle !== null && React__default
|
|
8816
|
+
currentTitle !== null && React__default.createElement(
|
|
8843
8817
|
'title',
|
|
8844
8818
|
{ key: 'title' },
|
|
8845
8819
|
currentTitle
|
|
8846
8820
|
),
|
|
8847
|
-
currentSummary !== null && React__default
|
|
8848
|
-
currentURL !== null && React__default
|
|
8849
|
-
currentTitle !== null && React__default
|
|
8850
|
-
currentThumbnail !== null && React__default
|
|
8851
|
-
currentSummary !== null && React__default
|
|
8852
|
-
currentTitle !== null && React__default
|
|
8853
|
-
currentThumbnail !== null && React__default
|
|
8854
|
-
currentSummary !== null && React__default
|
|
8821
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8822
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8823
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8824
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8825
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8826
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8827
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8828
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8855
8829
|
),
|
|
8856
|
-
React__default
|
|
8830
|
+
React__default.createElement(
|
|
8857
8831
|
'article',
|
|
8858
8832
|
{ className: 'article-wrapper' },
|
|
8859
|
-
React__default
|
|
8833
|
+
React__default.createElement(
|
|
8860
8834
|
'div',
|
|
8861
8835
|
{ className: 'article-publishDate' },
|
|
8862
8836
|
moment.moment(article.published).format('LL')
|
|
8863
8837
|
),
|
|
8864
|
-
React__default
|
|
8838
|
+
React__default.createElement(
|
|
8865
8839
|
'div',
|
|
8866
8840
|
{ className: 'author-details-wrapper' },
|
|
8867
8841
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8868
|
-
return React__default
|
|
8842
|
+
return React__default.createElement(
|
|
8869
8843
|
'span',
|
|
8870
8844
|
{ key: index },
|
|
8871
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8845
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor.urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8872
8846
|
);
|
|
8873
8847
|
})
|
|
8874
8848
|
),
|
|
8875
|
-
React__default
|
|
8849
|
+
React__default.createElement(
|
|
8876
8850
|
'h2',
|
|
8877
8851
|
{ className: 'article-title' },
|
|
8878
8852
|
article.title
|
|
8879
8853
|
),
|
|
8880
|
-
React__default
|
|
8854
|
+
React__default.createElement(
|
|
8881
8855
|
'div',
|
|
8882
8856
|
{ className: 'mt-2 mb-2' },
|
|
8883
|
-
React__default
|
|
8857
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8884
8858
|
serializers: getSerializers,
|
|
8885
8859
|
videoAccountIDs: accountIDs,
|
|
8886
8860
|
blocks: article.text,
|
|
8887
8861
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8888
8862
|
}, client.config())),
|
|
8889
|
-
React__default
|
|
8863
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8890
8864
|
),
|
|
8891
|
-
Articles.length > 1 && React__default
|
|
8892
|
-
React__default
|
|
8865
|
+
Articles.length > 1 && React__default.createElement(
|
|
8866
|
+
React__default.Fragment,
|
|
8893
8867
|
null,
|
|
8894
|
-
React__default
|
|
8868
|
+
React__default.createElement(
|
|
8895
8869
|
'div',
|
|
8896
8870
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8897
|
-
React__default
|
|
8871
|
+
React__default.createElement(
|
|
8898
8872
|
'h5',
|
|
8899
8873
|
{ className: 'objective-title' },
|
|
8900
8874
|
nodes.seriesTitle
|
|
8901
8875
|
),
|
|
8902
|
-
React__default
|
|
8876
|
+
React__default.createElement(
|
|
8903
8877
|
'div',
|
|
8904
8878
|
{ className: 'prevNextWrapper' },
|
|
8905
8879
|
PrevNextCards(true, index)
|
|
8906
8880
|
)
|
|
8907
8881
|
),
|
|
8908
|
-
React__default
|
|
8882
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8909
8883
|
)
|
|
8910
8884
|
),
|
|
8911
|
-
React__default
|
|
8885
|
+
React__default.createElement(
|
|
8912
8886
|
'div',
|
|
8913
8887
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8914
|
-
main.
|
|
8888
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8915
8889
|
if (innerIndex === 0) {
|
|
8916
|
-
return React__default
|
|
8890
|
+
return React__default.createElement(
|
|
8917
8891
|
'div',
|
|
8918
8892
|
{
|
|
8919
8893
|
key: 'addid-' + (index + 2),
|
|
@@ -8936,7 +8910,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8936
8910
|
)
|
|
8937
8911
|
);
|
|
8938
8912
|
}),
|
|
8939
|
-
React__default
|
|
8913
|
+
React__default.createElement(
|
|
8940
8914
|
'style',
|
|
8941
8915
|
{ jsx: 'true' },
|
|
8942
8916
|
'\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 '
|
|
@@ -8966,11 +8940,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8966
8940
|
};
|
|
8967
8941
|
}, [handleClickOutside]);
|
|
8968
8942
|
|
|
8969
|
-
return React__default
|
|
8943
|
+
return React__default.createElement(
|
|
8970
8944
|
'div',
|
|
8971
8945
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8972
|
-
React__default
|
|
8973
|
-
React__default
|
|
8946
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8947
|
+
React__default.createElement(
|
|
8974
8948
|
'style',
|
|
8975
8949
|
{ jsx: 'true' },
|
|
8976
8950
|
'\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 '
|
|
@@ -8984,7 +8958,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8984
8958
|
}
|
|
8985
8959
|
};
|
|
8986
8960
|
|
|
8987
|
-
var FigureImage
|
|
8961
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8988
8962
|
var node = _ref2.node,
|
|
8989
8963
|
client = _ref2.client,
|
|
8990
8964
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8992,16 +8966,16 @@ var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
|
8992
8966
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8993
8967
|
|
|
8994
8968
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8995
|
-
return React__default
|
|
8969
|
+
return React__default.createElement(
|
|
8996
8970
|
'picture',
|
|
8997
8971
|
null,
|
|
8998
|
-
React__default
|
|
8999
|
-
React__default
|
|
9000
|
-
React__default
|
|
9001
|
-
React__default
|
|
8972
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor.urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8973
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8974
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8975
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9002
8976
|
style: figureImageStyle,
|
|
9003
8977
|
className: 'figure-image',
|
|
9004
|
-
src: urlFor({ source: node, client: client }),
|
|
8978
|
+
src: urlFor.urlFor({ source: node, client: client }),
|
|
9005
8979
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9006
8980
|
}, !link && {
|
|
9007
8981
|
onClick: function onClick() {
|
|
@@ -9049,30 +9023,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9049
9023
|
|
|
9050
9024
|
var renderTooltip = function renderTooltip(props) {
|
|
9051
9025
|
if (infoBox[0].title) {
|
|
9052
|
-
return React__default
|
|
9053
|
-
|
|
9026
|
+
return React__default.createElement(
|
|
9027
|
+
Popover,
|
|
9054
9028
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9055
|
-
React__default
|
|
9056
|
-
|
|
9029
|
+
React__default.createElement(
|
|
9030
|
+
Popover.Title,
|
|
9057
9031
|
{ as: 'h3' },
|
|
9058
9032
|
infoBox[0].title
|
|
9059
9033
|
),
|
|
9060
|
-
React__default
|
|
9061
|
-
|
|
9034
|
+
React__default.createElement(
|
|
9035
|
+
Popover.Content,
|
|
9062
9036
|
null,
|
|
9063
|
-
React__default
|
|
9037
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9064
9038
|
)
|
|
9065
9039
|
);
|
|
9066
9040
|
} else {
|
|
9067
|
-
return React__default
|
|
9068
|
-
|
|
9069
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9070
|
-
React__default
|
|
9041
|
+
return React__default.createElement(
|
|
9042
|
+
Tooltip,
|
|
9043
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9044
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9071
9045
|
);
|
|
9072
9046
|
}
|
|
9073
9047
|
};
|
|
9074
9048
|
|
|
9075
|
-
var FigureImageWOverLay = React__default
|
|
9049
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9076
9050
|
var node = _ref3.node,
|
|
9077
9051
|
client = _ref3.client,
|
|
9078
9052
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9080,32 +9054,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9080
9054
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9081
9055
|
|
|
9082
9056
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9083
|
-
var triggerAction = main.
|
|
9084
|
-
var placementLocation = main.
|
|
9085
|
-
return React__default
|
|
9057
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9058
|
+
var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9059
|
+
return React__default.createElement(
|
|
9086
9060
|
'picture',
|
|
9087
9061
|
null,
|
|
9088
|
-
React__default
|
|
9089
|
-
React__default
|
|
9090
|
-
React__default
|
|
9091
|
-
main.
|
|
9062
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor.urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9063
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9064
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9065
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9092
9066
|
style: figureImageStyle,
|
|
9093
9067
|
className: 'figure-image',
|
|
9094
|
-
src: urlFor({ source: node, client: client }),
|
|
9068
|
+
src: urlFor.urlFor({ source: node, client: client }),
|
|
9095
9069
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9096
|
-
}, !link && !main.
|
|
9070
|
+
}, !link && !main.main_35 && {
|
|
9097
9071
|
onClick: function onClick() {
|
|
9098
9072
|
return handleClickFigure(node, client);
|
|
9099
9073
|
}
|
|
9100
|
-
})) : React__default
|
|
9101
|
-
|
|
9074
|
+
})) : React__default.createElement(
|
|
9075
|
+
OverlayTrigger,
|
|
9102
9076
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9103
|
-
React__default
|
|
9077
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9104
9078
|
style: figureImageStyle,
|
|
9105
9079
|
className: 'figure-image',
|
|
9106
|
-
src: urlFor({ source: node, client: client }),
|
|
9080
|
+
src: urlFor.urlFor({ source: node, client: client }),
|
|
9107
9081
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9108
|
-
}, !link && !main.
|
|
9082
|
+
}, !link && !main.main_35 && {
|
|
9109
9083
|
onClick: function onClick() {
|
|
9110
9084
|
return handleClickFigure(node, client);
|
|
9111
9085
|
}
|
|
@@ -9154,13 +9128,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9154
9128
|
|
|
9155
9129
|
var FigureCaption = React.useCallback(function () {
|
|
9156
9130
|
if (imgcaption && imgcaption.length > 0) {
|
|
9157
|
-
return React__default
|
|
9131
|
+
return React__default.createElement(
|
|
9158
9132
|
'div',
|
|
9159
9133
|
{ className: 'figure-caption' },
|
|
9160
|
-
React__default
|
|
9134
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9161
9135
|
);
|
|
9162
9136
|
} else if (caption) {
|
|
9163
|
-
return React__default
|
|
9137
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9164
9138
|
} else return null;
|
|
9165
9139
|
}, [caption, imgcaption]);
|
|
9166
9140
|
|
|
@@ -9173,28 +9147,28 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9173
9147
|
};
|
|
9174
9148
|
|
|
9175
9149
|
var handleClickFigure = React.useCallback(function (node, client) {
|
|
9176
|
-
setLightboxImgSrc(urlFor({ source: node, client: client }));
|
|
9150
|
+
setLightboxImgSrc(urlFor.urlFor({ source: node, client: client }));
|
|
9177
9151
|
setShowLightbox(true);
|
|
9178
9152
|
}, [node, client]);
|
|
9179
9153
|
|
|
9180
|
-
return React__default
|
|
9181
|
-
React__default
|
|
9154
|
+
return React__default.createElement(
|
|
9155
|
+
React__default.Fragment,
|
|
9182
9156
|
null,
|
|
9183
|
-
infoBox.length >= 1 ? React__default
|
|
9184
|
-
|
|
9157
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9158
|
+
Figure$1,
|
|
9185
9159
|
{ className: '' + class_name, style: figureStyle },
|
|
9186
|
-
link ? React__default
|
|
9160
|
+
link ? React__default.createElement(
|
|
9187
9161
|
'a',
|
|
9188
9162
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9189
|
-
React__default
|
|
9190
|
-
React__default
|
|
9191
|
-
) : React__default
|
|
9192
|
-
React__default
|
|
9163
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9164
|
+
React__default.createElement(FigureCaption, null)
|
|
9165
|
+
) : React__default.createElement(
|
|
9166
|
+
React__default.Fragment,
|
|
9193
9167
|
null,
|
|
9194
|
-
React__default
|
|
9195
|
-
React__default
|
|
9168
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9169
|
+
React__default.createElement(FigureCaption, null)
|
|
9196
9170
|
),
|
|
9197
|
-
React__default
|
|
9171
|
+
React__default.createElement(LightBox, {
|
|
9198
9172
|
showLightbox: showLightbox,
|
|
9199
9173
|
lightboxImgSrc: lightboxImgSrc,
|
|
9200
9174
|
closeLightbox: function closeLightbox() {
|
|
@@ -9202,21 +9176,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9202
9176
|
setShowLightbox(false);
|
|
9203
9177
|
}
|
|
9204
9178
|
})
|
|
9205
|
-
) : React__default
|
|
9206
|
-
|
|
9179
|
+
) : React__default.createElement(
|
|
9180
|
+
Figure$1,
|
|
9207
9181
|
{ className: '' + class_name, style: figureStyle },
|
|
9208
|
-
link ? React__default
|
|
9182
|
+
link ? React__default.createElement(
|
|
9209
9183
|
'a',
|
|
9210
9184
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9211
|
-
React__default
|
|
9212
|
-
React__default
|
|
9213
|
-
) : React__default
|
|
9214
|
-
React__default
|
|
9185
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9186
|
+
React__default.createElement(FigureCaption, null)
|
|
9187
|
+
) : React__default.createElement(
|
|
9188
|
+
React__default.Fragment,
|
|
9215
9189
|
null,
|
|
9216
|
-
React__default
|
|
9217
|
-
React__default
|
|
9190
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9191
|
+
React__default.createElement(FigureCaption, null)
|
|
9218
9192
|
),
|
|
9219
|
-
React__default
|
|
9193
|
+
React__default.createElement(LightBox, {
|
|
9220
9194
|
showLightbox: showLightbox,
|
|
9221
9195
|
lightboxImgSrc: lightboxImgSrc,
|
|
9222
9196
|
closeLightbox: function closeLightbox() {
|
|
@@ -9225,7 +9199,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9225
9199
|
}
|
|
9226
9200
|
})
|
|
9227
9201
|
),
|
|
9228
|
-
React__default
|
|
9202
|
+
React__default.createElement(
|
|
9229
9203
|
'style',
|
|
9230
9204
|
{ jsx: 'true' },
|
|
9231
9205
|
'\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 '
|
|
@@ -9233,7 +9207,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9233
9207
|
);
|
|
9234
9208
|
};
|
|
9235
9209
|
|
|
9236
|
-
var Figure = React__default
|
|
9210
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9237
9211
|
|
|
9238
9212
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9239
9213
|
React.useEffect(function () {
|
|
@@ -9250,7 +9224,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9250
9224
|
}, [ref]);
|
|
9251
9225
|
}
|
|
9252
9226
|
|
|
9253
|
-
var FigureImage = React__default
|
|
9227
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9254
9228
|
var imagesCount = _ref.imagesCount,
|
|
9255
9229
|
image = _ref.image,
|
|
9256
9230
|
client = _ref.client,
|
|
@@ -9258,16 +9232,16 @@ var FigureImage = React__default['default'].memo(function (_ref) {
|
|
|
9258
9232
|
link = _ref.link,
|
|
9259
9233
|
handleClickFigure = _ref.handleClickFigure;
|
|
9260
9234
|
|
|
9261
|
-
return React__default
|
|
9235
|
+
return React__default.createElement(
|
|
9262
9236
|
'picture',
|
|
9263
9237
|
null,
|
|
9264
|
-
React__default
|
|
9265
|
-
React__default
|
|
9266
|
-
React__default
|
|
9267
|
-
React__default
|
|
9238
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor.urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9239
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9240
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9241
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9268
9242
|
'images-count': imagesCount,
|
|
9269
9243
|
className: 'multi-figure-image',
|
|
9270
|
-
src: urlFor({ source: image, client: client }),
|
|
9244
|
+
src: urlFor.urlFor({ source: image, client: client }),
|
|
9271
9245
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9272
9246
|
}, !link && {
|
|
9273
9247
|
onClick: function onClick() {
|
|
@@ -9301,22 +9275,22 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9301
9275
|
imgcaption = _ref2.imgcaption;
|
|
9302
9276
|
|
|
9303
9277
|
if (imgcaption && imgcaption.length > 0) {
|
|
9304
|
-
return React__default
|
|
9278
|
+
return React__default.createElement(
|
|
9305
9279
|
'div',
|
|
9306
9280
|
{ className: 'multi-figure-caption' },
|
|
9307
|
-
React__default
|
|
9281
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9308
9282
|
);
|
|
9309
9283
|
} else if (caption) {
|
|
9310
|
-
return React__default
|
|
9284
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9311
9285
|
} else return null;
|
|
9312
9286
|
};
|
|
9313
9287
|
|
|
9314
9288
|
var handleClickFigure = React.useCallback(function (image, client) {
|
|
9315
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9289
|
+
setOpenImgSrc(urlFor.urlFor({ source: image, client: client }));
|
|
9316
9290
|
setOpenImg(true);
|
|
9317
9291
|
}, [client]);
|
|
9318
9292
|
|
|
9319
|
-
var FigureImageWOverLay = React__default
|
|
9293
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9320
9294
|
var imagesCount = _ref3.imagesCount,
|
|
9321
9295
|
image = _ref3.image,
|
|
9322
9296
|
client = _ref3.client,
|
|
@@ -9324,32 +9298,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9324
9298
|
link = _ref3.link,
|
|
9325
9299
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9326
9300
|
|
|
9327
|
-
var triggerAction = main.
|
|
9328
|
-
var placementLocation = main.
|
|
9329
|
-
return React__default
|
|
9301
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9302
|
+
var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9303
|
+
return React__default.createElement(
|
|
9330
9304
|
'picture',
|
|
9331
9305
|
null,
|
|
9332
|
-
React__default
|
|
9333
|
-
React__default
|
|
9334
|
-
React__default
|
|
9335
|
-
main.
|
|
9306
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor.urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9307
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor.urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9308
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor.urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9309
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9336
9310
|
'images-count': imagesCount,
|
|
9337
9311
|
className: 'multi-figure-image',
|
|
9338
|
-
src: urlFor({ source: image, client: client }),
|
|
9312
|
+
src: urlFor.urlFor({ source: image, client: client }),
|
|
9339
9313
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9340
|
-
}, !link && !main.
|
|
9314
|
+
}, !link && !main.main_35 && {
|
|
9341
9315
|
onClick: function onClick() {
|
|
9342
9316
|
return handleClickFigure(image, client);
|
|
9343
9317
|
}
|
|
9344
|
-
})) : React__default
|
|
9345
|
-
|
|
9318
|
+
})) : React__default.createElement(
|
|
9319
|
+
OverlayTrigger,
|
|
9346
9320
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9347
|
-
React__default
|
|
9321
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9348
9322
|
'images-count': imagesCount,
|
|
9349
9323
|
className: 'multi-figure-image',
|
|
9350
|
-
src: urlFor({ source: image, client: client }),
|
|
9324
|
+
src: urlFor.urlFor({ source: image, client: client }),
|
|
9351
9325
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9352
|
-
}, !link && !main.
|
|
9326
|
+
}, !link && !main.main_35 && {
|
|
9353
9327
|
onClick: function onClick() {
|
|
9354
9328
|
return handleClickFigure(image, client);
|
|
9355
9329
|
}
|
|
@@ -9360,102 +9334,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9360
9334
|
|
|
9361
9335
|
var renderTooltip = function renderTooltip(image) {
|
|
9362
9336
|
if (image.infoBox[0].title) {
|
|
9363
|
-
return React__default
|
|
9364
|
-
|
|
9337
|
+
return React__default.createElement(
|
|
9338
|
+
Popover,
|
|
9365
9339
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9366
|
-
React__default
|
|
9367
|
-
|
|
9340
|
+
React__default.createElement(
|
|
9341
|
+
Popover.Title,
|
|
9368
9342
|
{ as: 'h3' },
|
|
9369
9343
|
image.infoBox[0].title
|
|
9370
9344
|
),
|
|
9371
|
-
React__default
|
|
9372
|
-
|
|
9345
|
+
React__default.createElement(
|
|
9346
|
+
Popover.Content,
|
|
9373
9347
|
null,
|
|
9374
|
-
React__default
|
|
9348
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9375
9349
|
)
|
|
9376
9350
|
);
|
|
9377
9351
|
} else {
|
|
9378
|
-
return React__default
|
|
9379
|
-
|
|
9380
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9381
|
-
React__default
|
|
9352
|
+
return React__default.createElement(
|
|
9353
|
+
Tooltip,
|
|
9354
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9355
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9382
9356
|
);
|
|
9383
9357
|
}
|
|
9384
9358
|
};
|
|
9385
9359
|
|
|
9386
9360
|
if (images && images.length > 0) {
|
|
9387
|
-
return React__default
|
|
9361
|
+
return React__default.createElement(
|
|
9388
9362
|
'div',
|
|
9389
9363
|
{ className: 'multi-figure-container' },
|
|
9390
|
-
React__default
|
|
9391
|
-
|
|
9364
|
+
React__default.createElement(
|
|
9365
|
+
Row,
|
|
9392
9366
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9393
9367
|
images.map(function (image, index) {
|
|
9394
9368
|
if (image.infoBox) {
|
|
9395
|
-
return React__default
|
|
9396
|
-
|
|
9369
|
+
return React__default.createElement(
|
|
9370
|
+
Col,
|
|
9397
9371
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9398
|
-
image.link ? React__default
|
|
9372
|
+
image.link ? React__default.createElement(
|
|
9399
9373
|
'a',
|
|
9400
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9401
|
-
React__default
|
|
9374
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9375
|
+
React__default.createElement(
|
|
9402
9376
|
'div',
|
|
9403
9377
|
{ className: 'multi-figure-image-container' },
|
|
9404
|
-
React__default
|
|
9405
|
-
index$
|
|
9378
|
+
React__default.createElement(
|
|
9379
|
+
index$1.LazyLoad,
|
|
9406
9380
|
{ once: true },
|
|
9407
|
-
React__default
|
|
9381
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9408
9382
|
),
|
|
9409
|
-
React__default
|
|
9383
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9410
9384
|
)
|
|
9411
|
-
) : React__default
|
|
9385
|
+
) : React__default.createElement(
|
|
9412
9386
|
'div',
|
|
9413
9387
|
{ className: 'multi-figure-image-container' },
|
|
9414
|
-
React__default
|
|
9415
|
-
index$
|
|
9388
|
+
React__default.createElement(
|
|
9389
|
+
index$1.LazyLoad,
|
|
9416
9390
|
{ once: true },
|
|
9417
|
-
React__default
|
|
9391
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9418
9392
|
),
|
|
9419
|
-
React__default
|
|
9393
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9420
9394
|
)
|
|
9421
9395
|
);
|
|
9422
9396
|
} else {
|
|
9423
|
-
return React__default
|
|
9424
|
-
|
|
9397
|
+
return React__default.createElement(
|
|
9398
|
+
Col,
|
|
9425
9399
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9426
|
-
image.link ? React__default
|
|
9400
|
+
image.link ? React__default.createElement(
|
|
9427
9401
|
'a',
|
|
9428
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9429
|
-
React__default
|
|
9402
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9403
|
+
React__default.createElement(
|
|
9430
9404
|
'div',
|
|
9431
9405
|
{ className: 'multi-figure-image-container' },
|
|
9432
|
-
React__default
|
|
9433
|
-
index$
|
|
9406
|
+
React__default.createElement(
|
|
9407
|
+
index$1.LazyLoad,
|
|
9434
9408
|
{ once: true },
|
|
9435
|
-
React__default
|
|
9409
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9436
9410
|
),
|
|
9437
|
-
React__default
|
|
9411
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9438
9412
|
)
|
|
9439
|
-
) : React__default
|
|
9413
|
+
) : React__default.createElement(
|
|
9440
9414
|
'div',
|
|
9441
9415
|
{ className: 'multi-figure-image-container' },
|
|
9442
|
-
React__default
|
|
9443
|
-
index$
|
|
9416
|
+
React__default.createElement(
|
|
9417
|
+
index$1.LazyLoad,
|
|
9444
9418
|
{ once: true },
|
|
9445
|
-
React__default
|
|
9419
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9446
9420
|
),
|
|
9447
|
-
React__default
|
|
9421
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9448
9422
|
)
|
|
9449
9423
|
);
|
|
9450
9424
|
}
|
|
9451
9425
|
})
|
|
9452
9426
|
),
|
|
9453
|
-
React__default
|
|
9427
|
+
React__default.createElement(
|
|
9454
9428
|
'div',
|
|
9455
9429
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9456
|
-
React__default
|
|
9430
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9457
9431
|
),
|
|
9458
|
-
React__default
|
|
9432
|
+
React__default.createElement(
|
|
9459
9433
|
'style',
|
|
9460
9434
|
{ jsx: 'true' },
|
|
9461
9435
|
'\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 '
|
|
@@ -9504,23 +9478,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9504
9478
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9505
9479
|
}, []);
|
|
9506
9480
|
|
|
9507
|
-
return React__default
|
|
9508
|
-
React__default
|
|
9481
|
+
return React__default.createElement(
|
|
9482
|
+
React__default.Fragment,
|
|
9509
9483
|
null,
|
|
9510
|
-
React__default
|
|
9511
|
-
|
|
9484
|
+
React__default.createElement(
|
|
9485
|
+
Head,
|
|
9512
9486
|
null,
|
|
9513
|
-
React__default
|
|
9487
|
+
React__default.createElement('script', {
|
|
9514
9488
|
dangerouslySetInnerHTML: {
|
|
9515
9489
|
__html: 'history.scrollRestoration = "manual"'
|
|
9516
9490
|
}
|
|
9517
9491
|
})
|
|
9518
9492
|
),
|
|
9519
|
-
React__default
|
|
9493
|
+
React__default.createElement(
|
|
9520
9494
|
'div',
|
|
9521
9495
|
{ id: elementId },
|
|
9522
|
-
React__default
|
|
9523
|
-
React__default
|
|
9496
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9497
|
+
React__default.createElement(
|
|
9524
9498
|
'style',
|
|
9525
9499
|
{ jsx: 'true' },
|
|
9526
9500
|
'\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 '
|
|
@@ -9554,7 +9528,7 @@ exports.__esModule = true;
|
|
|
9554
9528
|
|
|
9555
9529
|
|
|
9556
9530
|
|
|
9557
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9531
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9558
9532
|
|
|
9559
9533
|
|
|
9560
9534
|
|
|
@@ -9562,23 +9536,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9562
9536
|
|
|
9563
9537
|
|
|
9564
9538
|
|
|
9565
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9539
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9566
9540
|
|
|
9567
9541
|
|
|
9568
9542
|
|
|
9569
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9543
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9570
9544
|
|
|
9571
9545
|
|
|
9572
9546
|
|
|
9573
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9547
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9574
9548
|
|
|
9575
9549
|
|
|
9576
9550
|
|
|
9577
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9551
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9578
9552
|
|
|
9579
9553
|
|
|
9580
9554
|
|
|
9581
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9555
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9582
9556
|
|
|
9583
9557
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9584
9558
|
var noop = function noop() {};
|
|
@@ -9723,9 +9697,9 @@ var ScriptTag = function (_Component) {
|
|
|
9723
9697
|
|
|
9724
9698
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9725
9699
|
// eslint-disable-next-line no-unused-vars
|
|
9726
|
-
var _props3 = this.props
|
|
9727
|
-
_props3.isHydrating
|
|
9728
|
-
|
|
9700
|
+
var _props3 = this.props,
|
|
9701
|
+
isHydrating = _props3.isHydrating,
|
|
9702
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9729
9703
|
|
|
9730
9704
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9731
9705
|
return _this2.domRef = tag;
|
|
@@ -9733,7 +9707,7 @@ var ScriptTag = function (_Component) {
|
|
|
9733
9707
|
};
|
|
9734
9708
|
|
|
9735
9709
|
return ScriptTag;
|
|
9736
|
-
}(React__default
|
|
9710
|
+
}(React__default.Component);
|
|
9737
9711
|
|
|
9738
9712
|
ScriptTag.propTypes = {
|
|
9739
9713
|
/**
|
|
@@ -9812,11 +9786,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9812
9786
|
}, []);
|
|
9813
9787
|
|
|
9814
9788
|
if (iframeSrc) {
|
|
9815
|
-
return React__default
|
|
9789
|
+
return React__default.createElement(
|
|
9816
9790
|
'section',
|
|
9817
9791
|
{ className: 'form-assembly' },
|
|
9818
|
-
React__default
|
|
9819
|
-
React__default
|
|
9792
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9793
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9820
9794
|
);
|
|
9821
9795
|
}
|
|
9822
9796
|
|
|
@@ -9853,27 +9827,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9853
9827
|
return window.removeEventListener('resize', handleResize);
|
|
9854
9828
|
};
|
|
9855
9829
|
}, []);
|
|
9856
|
-
return React__default
|
|
9830
|
+
return React__default.createElement(
|
|
9857
9831
|
'div',
|
|
9858
9832
|
{ className: 'blockTableHolder', ref: holder },
|
|
9859
|
-
React__default
|
|
9833
|
+
React__default.createElement(
|
|
9860
9834
|
'div',
|
|
9861
9835
|
{ className: 'blockTable' },
|
|
9862
9836
|
rows && rows.map(function (row) {
|
|
9863
|
-
return React__default
|
|
9837
|
+
return React__default.createElement(
|
|
9864
9838
|
'div',
|
|
9865
9839
|
{ className: 'blockTableRow' },
|
|
9866
9840
|
row.cells && row.cells.map(function (cell) {
|
|
9867
|
-
return React__default
|
|
9841
|
+
return React__default.createElement(
|
|
9868
9842
|
'div',
|
|
9869
9843
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9870
|
-
React__default
|
|
9844
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9871
9845
|
);
|
|
9872
9846
|
})
|
|
9873
9847
|
);
|
|
9874
9848
|
})
|
|
9875
9849
|
),
|
|
9876
|
-
React__default
|
|
9850
|
+
React__default.createElement(
|
|
9877
9851
|
'style',
|
|
9878
9852
|
{ jsx: true },
|
|
9879
9853
|
'\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 '
|
|
@@ -9952,12 +9926,12 @@ var getSerializers = function getSerializers() {
|
|
|
9952
9926
|
var node = _ref.node;
|
|
9953
9927
|
var url = node.url;
|
|
9954
9928
|
|
|
9955
|
-
return React__default
|
|
9929
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9956
9930
|
},
|
|
9957
9931
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9958
9932
|
var node = _ref2.node;
|
|
9959
9933
|
|
|
9960
|
-
return React__default
|
|
9934
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9961
9935
|
nodes: node,
|
|
9962
9936
|
article: article,
|
|
9963
9937
|
meta: meta,
|
|
@@ -9971,7 +9945,7 @@ var getSerializers = function getSerializers() {
|
|
|
9971
9945
|
articleSeries: function articleSeries(_ref3) {
|
|
9972
9946
|
var node = _ref3.node;
|
|
9973
9947
|
|
|
9974
|
-
return React__default
|
|
9948
|
+
return React__default.createElement(ArticleSeries, {
|
|
9975
9949
|
nodes: node,
|
|
9976
9950
|
accountIDs: videoAccountIDs || {},
|
|
9977
9951
|
pageview: pageview,
|
|
@@ -9984,61 +9958,61 @@ var getSerializers = function getSerializers() {
|
|
|
9984
9958
|
figure: function figure(_ref4) {
|
|
9985
9959
|
var node = _ref4.node;
|
|
9986
9960
|
|
|
9987
|
-
return React__default
|
|
9961
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9988
9962
|
},
|
|
9989
9963
|
multifigure: function multifigure(_ref5) {
|
|
9990
9964
|
var node = _ref5.node;
|
|
9991
9965
|
|
|
9992
|
-
return React__default
|
|
9966
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9993
9967
|
},
|
|
9994
9968
|
slideshow: function slideshow(_ref6) {
|
|
9995
9969
|
var node = _ref6.node;
|
|
9996
9970
|
var slides = node.slides;
|
|
9997
9971
|
|
|
9998
|
-
return React__default
|
|
9972
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9999
9973
|
},
|
|
10000
9974
|
sidebar: function sidebar(_ref7) {
|
|
10001
9975
|
var node = _ref7.node;
|
|
10002
9976
|
var caption = node.caption,
|
|
10003
9977
|
content = node.content;
|
|
10004
9978
|
|
|
10005
|
-
return React__default
|
|
9979
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10006
9980
|
},
|
|
10007
9981
|
datatable: function datatable(_ref8) {
|
|
10008
9982
|
var node = _ref8.node;
|
|
10009
9983
|
var table = node.table;
|
|
10010
9984
|
|
|
10011
|
-
return React__default
|
|
9985
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10012
9986
|
},
|
|
10013
9987
|
media: function media(_ref9) {
|
|
10014
9988
|
var node = _ref9.node;
|
|
10015
9989
|
|
|
10016
|
-
return React__default
|
|
9990
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
10017
9991
|
},
|
|
10018
9992
|
iframe: function iframe(_ref10) {
|
|
10019
9993
|
var node = _ref10.node;
|
|
10020
9994
|
|
|
10021
|
-
return React__default
|
|
9995
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10022
9996
|
},
|
|
10023
9997
|
video: function video(_ref11) {
|
|
10024
9998
|
var node = _ref11.node;
|
|
10025
9999
|
|
|
10026
|
-
return React__default
|
|
10000
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10027
10001
|
},
|
|
10028
10002
|
audio: function audio(_ref12) {
|
|
10029
10003
|
var node = _ref12.node;
|
|
10030
10004
|
|
|
10031
|
-
return React__default
|
|
10005
|
+
return React__default.createElement(Audio, { node: node });
|
|
10032
10006
|
},
|
|
10033
10007
|
poll: function poll(_ref13) {
|
|
10034
10008
|
var node = _ref13.node;
|
|
10035
10009
|
|
|
10036
|
-
return React__default
|
|
10010
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10037
10011
|
},
|
|
10038
10012
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10039
10013
|
var node = _ref14.node;
|
|
10040
10014
|
|
|
10041
|
-
return React__default
|
|
10015
|
+
return React__default.createElement(Poll$1, {
|
|
10042
10016
|
node: node,
|
|
10043
10017
|
client: client,
|
|
10044
10018
|
pageview: pageview,
|
|
@@ -10052,35 +10026,35 @@ var getSerializers = function getSerializers() {
|
|
|
10052
10026
|
var node = _ref15.node;
|
|
10053
10027
|
var quizzes = node.quizzes;
|
|
10054
10028
|
|
|
10055
|
-
return React__default
|
|
10029
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10056
10030
|
},
|
|
10057
10031
|
leads: function leads(_ref16) {
|
|
10058
10032
|
var node = _ref16.node;
|
|
10059
10033
|
var leadID = node.leadID;
|
|
10060
10034
|
|
|
10061
10035
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10062
|
-
return React__default
|
|
10036
|
+
return React__default.createElement(Leads, { url: url });
|
|
10063
10037
|
},
|
|
10064
10038
|
slideshows: function slideshows(_ref17) {
|
|
10065
10039
|
var node = _ref17.node;
|
|
10066
10040
|
|
|
10067
|
-
return React__default
|
|
10041
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10068
10042
|
},
|
|
10069
10043
|
nativeAd: function nativeAd(_ref18) {
|
|
10070
10044
|
var node = _ref18.node;
|
|
10071
10045
|
|
|
10072
|
-
return React__default
|
|
10046
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10073
10047
|
},
|
|
10074
10048
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10075
10049
|
var node = _ref19.node;
|
|
10076
10050
|
|
|
10077
|
-
return React__default
|
|
10051
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10078
10052
|
},
|
|
10079
10053
|
hrtag: function hrtag() {
|
|
10080
|
-
return React__default
|
|
10054
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10081
10055
|
},
|
|
10082
10056
|
brtag: function brtag() {
|
|
10083
|
-
return React__default
|
|
10057
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10084
10058
|
},
|
|
10085
10059
|
formstack: function formstack(_ref20) {
|
|
10086
10060
|
var node = _ref20.node;
|
|
@@ -10088,29 +10062,29 @@ var getSerializers = function getSerializers() {
|
|
|
10088
10062
|
Caption = node.Caption,
|
|
10089
10063
|
needSegmentSupport = node.needSegmentSupport;
|
|
10090
10064
|
|
|
10091
|
-
return React__default
|
|
10065
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10092
10066
|
},
|
|
10093
10067
|
formassembly: FormAssembly,
|
|
10094
10068
|
multimedia: function multimedia(_ref21) {
|
|
10095
10069
|
var node = _ref21.node;
|
|
10096
10070
|
|
|
10097
|
-
return React__default
|
|
10071
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10098
10072
|
},
|
|
10099
10073
|
blockTable: function blockTable(_ref22) {
|
|
10100
10074
|
var node = _ref22.node;
|
|
10101
|
-
return React__default
|
|
10075
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10102
10076
|
}
|
|
10103
10077
|
},
|
|
10104
10078
|
marks: {
|
|
10105
10079
|
superscript: function superscript(props) {
|
|
10106
|
-
return React__default
|
|
10080
|
+
return React__default.createElement(
|
|
10107
10081
|
'sup',
|
|
10108
10082
|
null,
|
|
10109
10083
|
props.children
|
|
10110
10084
|
);
|
|
10111
10085
|
},
|
|
10112
10086
|
subscript: function subscript(props) {
|
|
10113
|
-
return React__default
|
|
10087
|
+
return React__default.createElement(
|
|
10114
10088
|
'sub',
|
|
10115
10089
|
null,
|
|
10116
10090
|
props.children
|
|
@@ -10127,7 +10101,7 @@ var getSerializers = function getSerializers() {
|
|
|
10127
10101
|
if (href && href.charAt(0) === '#') {
|
|
10128
10102
|
var elementId = href.slice(1);
|
|
10129
10103
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10130
|
-
return React__default
|
|
10104
|
+
return React__default.createElement(
|
|
10131
10105
|
'a',
|
|
10132
10106
|
{ onClick: function onClick() {
|
|
10133
10107
|
return ScrollToElement(elementId);
|
|
@@ -10137,15 +10111,15 @@ var getSerializers = function getSerializers() {
|
|
|
10137
10111
|
}
|
|
10138
10112
|
|
|
10139
10113
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10140
|
-
return href ? React__default
|
|
10114
|
+
return href ? React__default.createElement(
|
|
10141
10115
|
'a',
|
|
10142
|
-
_extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10116
|
+
_extends$1._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10143
10117
|
children
|
|
10144
10118
|
) : children;
|
|
10145
10119
|
},
|
|
10146
10120
|
alignleft: function alignleft(_ref23) {
|
|
10147
10121
|
var children = _ref23.children;
|
|
10148
|
-
return React__default
|
|
10122
|
+
return React__default.createElement(
|
|
10149
10123
|
'div',
|
|
10150
10124
|
{ style: { textAlign: 'left' } },
|
|
10151
10125
|
children
|
|
@@ -10153,7 +10127,7 @@ var getSerializers = function getSerializers() {
|
|
|
10153
10127
|
},
|
|
10154
10128
|
alignright: function alignright(_ref24) {
|
|
10155
10129
|
var children = _ref24.children;
|
|
10156
|
-
return React__default
|
|
10130
|
+
return React__default.createElement(
|
|
10157
10131
|
'div',
|
|
10158
10132
|
{ style: { textAlign: 'right' } },
|
|
10159
10133
|
children
|
|
@@ -10161,7 +10135,7 @@ var getSerializers = function getSerializers() {
|
|
|
10161
10135
|
},
|
|
10162
10136
|
aligncenter: function aligncenter(_ref25) {
|
|
10163
10137
|
var children = _ref25.children;
|
|
10164
|
-
return React__default
|
|
10138
|
+
return React__default.createElement(
|
|
10165
10139
|
'div',
|
|
10166
10140
|
{ style: { textAlign: 'center' } },
|
|
10167
10141
|
children
|
|
@@ -10169,7 +10143,7 @@ var getSerializers = function getSerializers() {
|
|
|
10169
10143
|
},
|
|
10170
10144
|
alignjustify: function alignjustify(_ref26) {
|
|
10171
10145
|
var children = _ref26.children;
|
|
10172
|
-
return React__default
|
|
10146
|
+
return React__default.createElement(
|
|
10173
10147
|
'div',
|
|
10174
10148
|
{ style: { textAlign: 'justify' } },
|
|
10175
10149
|
children
|
|
@@ -10179,7 +10153,7 @@ var getSerializers = function getSerializers() {
|
|
|
10179
10153
|
var children = props.children,
|
|
10180
10154
|
color = props.mark.color;
|
|
10181
10155
|
|
|
10182
|
-
return React__default
|
|
10156
|
+
return React__default.createElement(
|
|
10183
10157
|
'span',
|
|
10184
10158
|
{ style: { color: color ? color.hex : null } },
|
|
10185
10159
|
children
|