@mjhls/mjh-framework 1.0.880 → 1.0.881-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 +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-9a2e923a.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-957a1996.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1274 -1392
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +60 -61
- package/dist/cjs/ArticleSeriesLandingPage.js +42 -41
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +267 -309
- 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-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +40 -41
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +101 -105
- package/dist/cjs/DeckQueue.js +366 -91
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
- package/dist/cjs/EventsDeck.js +150 -157
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +231 -236
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +138 -143
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +27 -28
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +94 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +468 -81
- package/dist/cjs/MediaSeriesLanding.js +1129 -1118
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +145 -150
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/Pagination-d6a59f99.js +62 -0
- package/dist/cjs/PartnerDetailListing.js +3917 -116
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +41 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationLanding.js +133 -137
- package/dist/cjs/QueueDeckExpanded.js +1649 -317
- package/dist/cjs/RecentNews.js +21 -22
- package/dist/cjs/RelatedContent.js +57 -58
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- 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 +36 -36
- package/dist/cjs/{SeriesSlider-ce3261cb.js → SeriesSlider-49b81b0b.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-5ec44406.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +27 -28
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +51 -50
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +265 -268
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +67 -68
- 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/{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-9d509319.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/cjs/iconBase-68959171.js +3 -0
- 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-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-22bdde81.js → index-bf60a71c.js} +1081 -1080
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +165 -170
- 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/urlFor.js +6 -6
- 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 +7 -7
- package/dist/esm/AD300x250.js +25 -25
- package/dist/esm/AD300x250x600.js +25 -25
- package/dist/esm/AD728x90.js +28 -28
- package/dist/esm/ADFloatingFooter.js +27 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -27
- package/dist/esm/{ADInfeed-8c5f8c58.js → ADInfeed-0c13c803.js} +11 -11
- package/dist/esm/ADSkyscraper.js +27 -27
- package/dist/esm/ADSponsoredResources.js +27 -27
- package/dist/esm/ADWebcast.js +27 -27
- package/dist/esm/ADWelcome.js +28 -28
- package/dist/esm/{ADlgInfeed-2316e091.js → ADlgInfeed-e4e2031a.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +907 -15
- package/dist/esm/AlgoliaSearch.js +703 -820
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +37 -35
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +1487 -659
- package/dist/esm/AuthWrapper.js +265 -306
- package/dist/esm/{AuthorComponent-46a745ba.js → AuthorComponent-e6f95c2f.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +28 -28
- package/dist/esm/Column3.js +54 -54
- package/dist/esm/ConferenceArticleCard.js +38 -38
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +96 -96
- package/dist/esm/DeckQueue.js +362 -83
- package/dist/esm/{Dfp-4ca12f2e.js → Dfp-f867d061.js} +20 -20
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +72 -72
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +199 -199
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -68
- package/dist/esm/HorizontalHero.js +25 -25
- package/dist/esm/IssueContentDeck.js +59 -59
- package/dist/esm/IssueDeck.js +63 -63
- package/dist/esm/IssueLanding.js +91 -90
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +466 -78
- package/dist/esm/MediaSeriesLanding.js +853 -839
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +20 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/Pagination-f7c4c5ae.js +57 -0
- package/dist/esm/PartnerDetailListing.js +3913 -112
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +38 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +56 -56
- package/dist/esm/PublicationLanding.js +120 -120
- package/dist/esm/QueueDeckExpanded.js +1616 -284
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -30
- package/dist/esm/{SeriesSlider-7a6c45ce.js → SeriesSlider-ce19fa25.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-bdecba55.js → SocialSearchComponent-b5be0e6c.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -56
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +68 -68
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +65 -65
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +42 -40
- package/dist/esm/VideoSeriesListing.js +72 -72
- package/dist/esm/View.js +247 -246
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- 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-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- 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/{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-ff2c9409.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-c9bfc91f.js → index-e495ac6f.js} +1039 -1028
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +138 -140
- 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-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- 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/urlFor.js +4 -4
- 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/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-fdf034f5.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +112 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/esm/main-4136096f.js +0 -961
- package/dist/esm/stringify-c21932b3.js +0 -15
|
@@ -1,65 +1,56 @@
|
|
|
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-fc2f1ca2.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.js');
|
|
23
|
+
var index$2 = require('./index-96b3db50.js');
|
|
24
|
+
var main = require('./main-02daeefe.js');
|
|
25
|
+
var entities = require('./entities-310b46ee.js');
|
|
26
|
+
var asyncToGenerator = require('./asyncToGenerator-df19209d.js');
|
|
15
27
|
var Segment = require('./Segment.js');
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
28
|
+
require('./Beam.js');
|
|
29
|
+
var AdSlot = require('./AdSlot.js');
|
|
30
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
31
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
32
|
+
var index$3 = require('./index-187c967e.js');
|
|
21
33
|
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var
|
|
34
|
+
var reactBootstrap = require('react-bootstrap');
|
|
35
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
36
|
+
var util = require('./util-f2c1b65b.js');
|
|
37
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
38
|
+
var Head = _interopDefault(require('next/head'));
|
|
23
39
|
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-974f47d9.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);
|
|
40
|
+
var _objectToArray = require('./_object-to-array-9bac8737.js');
|
|
41
|
+
var Pagination$1 = _interopDefault(require('react-bootstrap/Pagination'));
|
|
42
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
43
|
+
var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
|
|
44
|
+
var Tooltip = _interopDefault(require('react-bootstrap/Tooltip'));
|
|
45
|
+
var Popover = _interopDefault(require('react-bootstrap/Popover'));
|
|
55
46
|
|
|
56
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
57
48
|
var pageNumber = selectedIndex + 1;
|
|
58
49
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
59
|
-
Router__default
|
|
50
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
60
51
|
};
|
|
61
52
|
|
|
62
|
-
var Slideshow
|
|
53
|
+
var Slideshow = function Slideshow(_ref) {
|
|
63
54
|
var slides = _ref.slides,
|
|
64
55
|
client = _ref.client,
|
|
65
56
|
pageview = _ref.pageview;
|
|
@@ -86,27 +77,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
86
77
|
if (pageview) pageview(router.asPath);
|
|
87
78
|
}, [router]);
|
|
88
79
|
|
|
89
|
-
return React__default
|
|
80
|
+
return React__default.createElement(
|
|
90
81
|
'div',
|
|
91
82
|
{ className: 'mt-3 mb-3' },
|
|
92
|
-
React__default
|
|
83
|
+
React__default.createElement(
|
|
93
84
|
reactBootstrap.Carousel,
|
|
94
85
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
95
86
|
return onChangeSlide(selectedIndex, router);
|
|
96
87
|
}, interval: null },
|
|
97
88
|
slides && slides.map(function (slide) {
|
|
98
|
-
return React__default
|
|
89
|
+
return React__default.createElement(
|
|
99
90
|
reactBootstrap.Carousel.Item,
|
|
100
91
|
{ key: slide._key },
|
|
101
|
-
React__default
|
|
92
|
+
React__default.createElement(
|
|
102
93
|
'picture',
|
|
103
94
|
null,
|
|
104
|
-
React__default
|
|
105
|
-
React__default
|
|
106
|
-
React__default
|
|
107
|
-
React__default
|
|
95
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
96
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
97
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
98
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
108
99
|
),
|
|
109
|
-
slide.caption && React__default
|
|
100
|
+
slide.caption && React__default.createElement(
|
|
110
101
|
'p',
|
|
111
102
|
{ className: 'p-2' },
|
|
112
103
|
slide.caption
|
|
@@ -117,18 +108,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
117
108
|
);
|
|
118
109
|
};
|
|
119
110
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
111
|
+
var isArray = Array.isArray;
|
|
112
|
+
var keyList = Object.keys;
|
|
113
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
123
114
|
|
|
124
115
|
var fastDeepEqual = function equal(a, b) {
|
|
125
116
|
if (a === b) return true;
|
|
126
117
|
|
|
127
118
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
128
|
-
|
|
119
|
+
var arrA = isArray(a)
|
|
120
|
+
, arrB = isArray(b)
|
|
121
|
+
, i
|
|
122
|
+
, length
|
|
123
|
+
, key;
|
|
129
124
|
|
|
130
|
-
|
|
131
|
-
if (Array.isArray(a)) {
|
|
125
|
+
if (arrA && arrB) {
|
|
132
126
|
length = a.length;
|
|
133
127
|
if (length != b.length) return false;
|
|
134
128
|
for (i = length; i-- !== 0;)
|
|
@@ -136,29 +130,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
136
130
|
return true;
|
|
137
131
|
}
|
|
138
132
|
|
|
133
|
+
if (arrA != arrB) return false;
|
|
139
134
|
|
|
135
|
+
var dateA = a instanceof Date
|
|
136
|
+
, dateB = b instanceof Date;
|
|
137
|
+
if (dateA != dateB) return false;
|
|
138
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
140
139
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
if (
|
|
140
|
+
var regexpA = a instanceof RegExp
|
|
141
|
+
, regexpB = b instanceof RegExp;
|
|
142
|
+
if (regexpA != regexpB) return false;
|
|
143
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
144
144
|
|
|
145
|
-
keys =
|
|
145
|
+
var keys = keyList(a);
|
|
146
146
|
length = keys.length;
|
|
147
|
-
|
|
147
|
+
|
|
148
|
+
if (length !== keyList(b).length)
|
|
149
|
+
return false;
|
|
148
150
|
|
|
149
151
|
for (i = length; i-- !== 0;)
|
|
150
|
-
if (!
|
|
152
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
151
153
|
|
|
152
154
|
for (i = length; i-- !== 0;) {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
key = keys[i];
|
|
155
156
|
if (!equal(a[key], b[key])) return false;
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
return true;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
|
-
// true if both NaN, false otherwise
|
|
162
162
|
return a!==a && b!==b;
|
|
163
163
|
};
|
|
164
164
|
|
|
@@ -696,14 +696,14 @@ function coerce(val) {
|
|
|
696
696
|
return val;
|
|
697
697
|
}
|
|
698
698
|
});
|
|
699
|
-
debug.coerce;
|
|
700
|
-
debug.disable;
|
|
701
|
-
debug.enable;
|
|
702
|
-
debug.enabled;
|
|
703
|
-
debug.humanize;
|
|
704
|
-
debug.names;
|
|
705
|
-
debug.skips;
|
|
706
|
-
debug.formatters;
|
|
699
|
+
var debug_1 = debug.coerce;
|
|
700
|
+
var debug_2 = debug.disable;
|
|
701
|
+
var debug_3 = debug.enable;
|
|
702
|
+
var debug_4 = debug.enabled;
|
|
703
|
+
var debug_5 = debug.humanize;
|
|
704
|
+
var debug_6 = debug.names;
|
|
705
|
+
var debug_7 = debug.skips;
|
|
706
|
+
var debug_8 = debug.formatters;
|
|
707
707
|
|
|
708
708
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
709
709
|
/**
|
|
@@ -892,13 +892,13 @@ function localstorage() {
|
|
|
892
892
|
} catch (e) {}
|
|
893
893
|
}
|
|
894
894
|
});
|
|
895
|
-
browser.log;
|
|
896
|
-
browser.formatArgs;
|
|
897
|
-
browser.save;
|
|
898
|
-
browser.load;
|
|
899
|
-
browser.useColors;
|
|
900
|
-
browser.storage;
|
|
901
|
-
browser.colors;
|
|
895
|
+
var browser_1 = browser.log;
|
|
896
|
+
var browser_2 = browser.formatArgs;
|
|
897
|
+
var browser_3 = browser.save;
|
|
898
|
+
var browser_4 = browser.load;
|
|
899
|
+
var browser_5 = browser.useColors;
|
|
900
|
+
var browser_6 = browser.storage;
|
|
901
|
+
var browser_7 = browser.colors;
|
|
902
902
|
|
|
903
903
|
// MIT lisence
|
|
904
904
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1173,14 +1173,14 @@ function init (debug) {
|
|
|
1173
1173
|
|
|
1174
1174
|
exports.enable(load());
|
|
1175
1175
|
});
|
|
1176
|
-
node.init;
|
|
1177
|
-
node.log;
|
|
1178
|
-
node.formatArgs;
|
|
1179
|
-
node.save;
|
|
1180
|
-
node.load;
|
|
1181
|
-
node.useColors;
|
|
1182
|
-
node.colors;
|
|
1183
|
-
node.inspectOpts;
|
|
1176
|
+
var node_1 = node.init;
|
|
1177
|
+
var node_2 = node.log;
|
|
1178
|
+
var node_3 = node.formatArgs;
|
|
1179
|
+
var node_4 = node.save;
|
|
1180
|
+
var node_5 = node.load;
|
|
1181
|
+
var node_6 = node.useColors;
|
|
1182
|
+
var node_7 = node.colors;
|
|
1183
|
+
var node_8 = node.inspectOpts;
|
|
1184
1184
|
|
|
1185
1185
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1186
1186
|
/**
|
|
@@ -1581,239 +1581,199 @@ module.exports = exports['default'];
|
|
|
1581
1581
|
|
|
1582
1582
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1583
1583
|
|
|
1584
|
-
function
|
|
1584
|
+
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
1585
|
|
|
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); } }
|
|
1586
|
+
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; };
|
|
1589
1587
|
|
|
1590
|
-
function
|
|
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); }
|
|
1593
|
-
|
|
1594
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
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); }
|
|
1588
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1605
1589
|
|
|
1606
|
-
function
|
|
1590
|
+
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
1591
|
|
|
1608
|
-
function
|
|
1592
|
+
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
1593
|
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
*
|
|
1613
|
-
*
|
|
1614
|
-
* @param {Object}
|
|
1615
|
-
* @param {Object} props
|
|
1594
|
+
/**
|
|
1595
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {Object} prevProps
|
|
1598
|
+
* @param {Object} props
|
|
1616
1599
|
*/
|
|
1617
|
-
|
|
1618
1600
|
function shouldUpdateVideo(prevProps, props) {
|
|
1619
1601
|
// A changing video should always trigger an update
|
|
1620
1602
|
if (prevProps.videoId !== props.videoId) {
|
|
1621
1603
|
return true;
|
|
1622
|
-
}
|
|
1623
|
-
// update.
|
|
1624
|
-
|
|
1604
|
+
}
|
|
1625
1605
|
|
|
1606
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1607
|
+
// update.
|
|
1626
1608
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1627
1609
|
var vars = props.opts.playerVars || {};
|
|
1610
|
+
|
|
1628
1611
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1629
1612
|
}
|
|
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
1613
|
|
|
1614
|
+
/**
|
|
1615
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1616
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1617
|
+
* player reset is necessary.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} opts
|
|
1620
|
+
*/
|
|
1639
1621
|
function filterResetOptions(opts) {
|
|
1640
|
-
return
|
|
1641
|
-
playerVars:
|
|
1622
|
+
return _extends({}, opts, {
|
|
1623
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1642
1624
|
autoplay: 0,
|
|
1643
1625
|
start: 0,
|
|
1644
1626
|
end: 0
|
|
1645
|
-
}
|
|
1627
|
+
})
|
|
1646
1628
|
});
|
|
1647
1629
|
}
|
|
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
1630
|
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
+
* those.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {Object} prevProps
|
|
1638
|
+
* @param {Object} props
|
|
1639
|
+
*/
|
|
1659
1640
|
function shouldResetPlayer(prevProps, props) {
|
|
1660
1641
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1661
1642
|
}
|
|
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
1643
|
|
|
1644
|
+
/**
|
|
1645
|
+
* Check whether a props change should result in an id or className update.
|
|
1646
|
+
*
|
|
1647
|
+
* @param {Object} prevProps
|
|
1648
|
+
* @param {Object} props
|
|
1649
|
+
*/
|
|
1670
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1671
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1672
1652
|
}
|
|
1673
1653
|
|
|
1674
|
-
var YouTube =
|
|
1654
|
+
var YouTube = function (_React$Component) {
|
|
1675
1655
|
_inherits(YouTube, _React$Component);
|
|
1676
1656
|
|
|
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
1657
|
function YouTube(props) {
|
|
1685
|
-
var _this;
|
|
1686
|
-
|
|
1687
1658
|
_classCallCheck(this, YouTube);
|
|
1688
1659
|
|
|
1689
|
-
_this =
|
|
1660
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1690
1661
|
|
|
1691
|
-
|
|
1662
|
+
_this.onPlayerReady = function (event) {
|
|
1692
1663
|
return _this.props.onReady(event);
|
|
1693
|
-
}
|
|
1664
|
+
};
|
|
1694
1665
|
|
|
1695
|
-
|
|
1666
|
+
_this.onPlayerError = function (event) {
|
|
1696
1667
|
return _this.props.onError(event);
|
|
1697
|
-
}
|
|
1668
|
+
};
|
|
1698
1669
|
|
|
1699
|
-
|
|
1670
|
+
_this.onPlayerStateChange = function (event) {
|
|
1700
1671
|
_this.props.onStateChange(event);
|
|
1701
|
-
|
|
1702
1672
|
switch (event.data) {
|
|
1673
|
+
|
|
1703
1674
|
case YouTube.PlayerState.ENDED:
|
|
1704
1675
|
_this.props.onEnd(event);
|
|
1705
|
-
|
|
1706
1676
|
break;
|
|
1707
1677
|
|
|
1708
1678
|
case YouTube.PlayerState.PLAYING:
|
|
1709
1679
|
_this.props.onPlay(event);
|
|
1710
|
-
|
|
1711
1680
|
break;
|
|
1712
1681
|
|
|
1713
1682
|
case YouTube.PlayerState.PAUSED:
|
|
1714
1683
|
_this.props.onPause(event);
|
|
1715
|
-
|
|
1716
1684
|
break;
|
|
1717
1685
|
}
|
|
1718
|
-
}
|
|
1686
|
+
};
|
|
1719
1687
|
|
|
1720
|
-
|
|
1688
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1721
1689
|
return _this.props.onPlaybackRateChange(event);
|
|
1722
|
-
}
|
|
1690
|
+
};
|
|
1723
1691
|
|
|
1724
|
-
|
|
1692
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1725
1693
|
return _this.props.onPlaybackQualityChange(event);
|
|
1726
|
-
}
|
|
1694
|
+
};
|
|
1727
1695
|
|
|
1728
|
-
|
|
1696
|
+
_this.createPlayer = function () {
|
|
1729
1697
|
// do not attempt to create a player server-side, it won't work
|
|
1730
|
-
if (typeof document === 'undefined') return;
|
|
1731
|
-
|
|
1732
|
-
var playerOpts =
|
|
1698
|
+
if (typeof document === 'undefined') return;
|
|
1699
|
+
// create player
|
|
1700
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1733
1701
|
// preload the `videoId` video if one is already given
|
|
1734
1702
|
videoId: _this.props.videoId
|
|
1735
1703
|
});
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1704
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1705
|
+
// attach event handlers
|
|
1739
1706
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1740
|
-
|
|
1741
1707
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1742
|
-
|
|
1743
1708
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1744
|
-
|
|
1745
1709
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1746
|
-
|
|
1747
1710
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1748
|
-
}
|
|
1711
|
+
};
|
|
1749
1712
|
|
|
1750
|
-
|
|
1713
|
+
_this.resetPlayer = function () {
|
|
1751
1714
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1752
|
-
}
|
|
1715
|
+
};
|
|
1753
1716
|
|
|
1754
|
-
|
|
1717
|
+
_this.updatePlayer = function () {
|
|
1755
1718
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1756
1719
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1757
1720
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1758
1721
|
});
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1762
|
-
return _this.internalPlayer;
|
|
1763
|
-
});
|
|
1722
|
+
};
|
|
1764
1723
|
|
|
1765
|
-
|
|
1724
|
+
_this.updateVideo = function () {
|
|
1766
1725
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1767
1726
|
_this.internalPlayer.stopVideo();
|
|
1768
|
-
|
|
1769
1727
|
return;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1728
|
+
}
|
|
1772
1729
|
|
|
1730
|
+
// set queueing options
|
|
1773
1731
|
var autoplay = false;
|
|
1774
1732
|
var opts = {
|
|
1775
1733
|
videoId: _this.props.videoId
|
|
1776
1734
|
};
|
|
1777
|
-
|
|
1778
1735
|
if ('playerVars' in _this.props.opts) {
|
|
1779
1736
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1780
|
-
|
|
1781
1737
|
if ('start' in _this.props.opts.playerVars) {
|
|
1782
1738
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1783
1739
|
}
|
|
1784
|
-
|
|
1785
1740
|
if ('end' in _this.props.opts.playerVars) {
|
|
1786
1741
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1787
1742
|
}
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1743
|
+
}
|
|
1790
1744
|
|
|
1745
|
+
// if autoplay is enabled loadVideoById
|
|
1791
1746
|
if (autoplay) {
|
|
1792
1747
|
_this.internalPlayer.loadVideoById(opts);
|
|
1793
|
-
|
|
1794
1748
|
return;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1749
|
+
}
|
|
1750
|
+
// default behaviour just cues the video
|
|
1798
1751
|
_this.internalPlayer.cueVideoById(opts);
|
|
1799
|
-
}
|
|
1752
|
+
};
|
|
1800
1753
|
|
|
1801
|
-
|
|
1754
|
+
_this.refContainer = function (container) {
|
|
1802
1755
|
_this.container = container;
|
|
1803
|
-
}
|
|
1756
|
+
};
|
|
1804
1757
|
|
|
1805
1758
|
_this.container = null;
|
|
1806
1759
|
_this.internalPlayer = null;
|
|
1807
1760
|
return _this;
|
|
1808
1761
|
}
|
|
1809
1762
|
|
|
1763
|
+
/**
|
|
1764
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1765
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1766
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1767
|
+
*/
|
|
1768
|
+
|
|
1769
|
+
|
|
1810
1770
|
_createClass(YouTube, [{
|
|
1811
|
-
key:
|
|
1771
|
+
key: 'componentDidMount',
|
|
1812
1772
|
value: function componentDidMount() {
|
|
1813
1773
|
this.createPlayer();
|
|
1814
1774
|
}
|
|
1815
1775
|
}, {
|
|
1816
|
-
key:
|
|
1776
|
+
key: 'componentDidUpdate',
|
|
1817
1777
|
value: function componentDidUpdate(prevProps) {
|
|
1818
1778
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1819
1779
|
this.updatePlayer();
|
|
@@ -1828,70 +1788,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1828
1788
|
}
|
|
1829
1789
|
}
|
|
1830
1790
|
}, {
|
|
1831
|
-
key:
|
|
1791
|
+
key: 'componentWillUnmount',
|
|
1832
1792
|
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.
|
|
1793
|
+
/**
|
|
1794
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1795
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1796
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1797
|
+
* this method isn't quick enough to reset the container element.
|
|
1838
1798
|
*/
|
|
1839
1799
|
this.internalPlayer.destroy();
|
|
1840
1800
|
}
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Object} target - player object
|
|
1807
|
+
*/
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1812
|
+
*
|
|
1813
|
+
* @param {Object} event
|
|
1814
|
+
* @param {Integer} data - error type
|
|
1815
|
+
* @param {Object} target - player object
|
|
1816
|
+
*/
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1821
|
+
*
|
|
1822
|
+
* @param {Object} event
|
|
1823
|
+
* @param {Integer} data - status change type
|
|
1824
|
+
* @param {Object} target - actual YT player
|
|
1825
|
+
*/
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1830
|
+
*
|
|
1831
|
+
* @param {Object} event
|
|
1832
|
+
* @param {Float} data - playback rate
|
|
1833
|
+
* @param {Object} target - actual YT player
|
|
1834
|
+
*/
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1839
|
+
*
|
|
1840
|
+
* @param {Object} event
|
|
1841
|
+
* @param {String} data - playback quality
|
|
1842
|
+
* @param {Object} target - actual YT player
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1853
|
+
*/
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1858
|
+
* React should update this automatically but since the Youtube Player API
|
|
1859
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1860
|
+
*/
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1865
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1866
|
+
* Youtube Player API methods to update the video.
|
|
1846
1867
|
*/
|
|
1847
1868
|
|
|
1848
1869
|
}, {
|
|
1849
|
-
key:
|
|
1870
|
+
key: 'render',
|
|
1850
1871
|
value: function render() {
|
|
1851
|
-
return
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
id: this.props.id,
|
|
1855
|
-
|
|
1856
|
-
ref: this.refContainer
|
|
1857
|
-
}));
|
|
1872
|
+
return React__default.createElement(
|
|
1873
|
+
'div',
|
|
1874
|
+
{ className: this.props.containerClassName },
|
|
1875
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1876
|
+
);
|
|
1858
1877
|
}
|
|
1859
1878
|
}]);
|
|
1860
1879
|
|
|
1861
1880
|
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
|
-
});
|
|
1881
|
+
}(React__default.Component);
|
|
1872
1882
|
|
|
1873
1883
|
YouTube.propTypes = {
|
|
1874
|
-
videoId: PropTypes__default
|
|
1884
|
+
videoId: PropTypes__default.string,
|
|
1885
|
+
|
|
1875
1886
|
// custom ID for player element
|
|
1876
|
-
id: PropTypes__default
|
|
1887
|
+
id: PropTypes__default.string,
|
|
1888
|
+
|
|
1877
1889
|
// custom class name for player element
|
|
1878
|
-
className: PropTypes__default
|
|
1890
|
+
className: PropTypes__default.string,
|
|
1879
1891
|
// custom class name for player container element
|
|
1880
|
-
containerClassName: PropTypes__default
|
|
1892
|
+
containerClassName: PropTypes__default.string,
|
|
1893
|
+
|
|
1881
1894
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1882
|
-
opts: PropTypes__default
|
|
1895
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1896
|
+
|
|
1883
1897
|
// 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
|
|
1898
|
+
onReady: PropTypes__default.func,
|
|
1899
|
+
onError: PropTypes__default.func,
|
|
1900
|
+
onPlay: PropTypes__default.func,
|
|
1901
|
+
onPause: PropTypes__default.func,
|
|
1902
|
+
onEnd: PropTypes__default.func,
|
|
1903
|
+
onStateChange: PropTypes__default.func,
|
|
1904
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1905
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1892
1906
|
};
|
|
1893
1907
|
YouTube.defaultProps = {
|
|
1894
|
-
videoId: null,
|
|
1895
1908
|
id: null,
|
|
1896
1909
|
className: null,
|
|
1897
1910
|
opts: {},
|
|
@@ -1905,12 +1918,20 @@ YouTube.defaultProps = {
|
|
|
1905
1918
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1906
1919
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1907
1920
|
};
|
|
1921
|
+
YouTube.PlayerState = {
|
|
1922
|
+
UNSTARTED: -1,
|
|
1923
|
+
ENDED: 0,
|
|
1924
|
+
PLAYING: 1,
|
|
1925
|
+
PAUSED: 2,
|
|
1926
|
+
BUFFERING: 3,
|
|
1927
|
+
CUED: 5
|
|
1928
|
+
};
|
|
1908
1929
|
|
|
1909
1930
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1910
1931
|
var url = _ref.url,
|
|
1911
1932
|
autoplay = _ref.autoplay;
|
|
1912
1933
|
|
|
1913
|
-
var id = index$
|
|
1934
|
+
var id = index$3.getYoutubeId(url);
|
|
1914
1935
|
|
|
1915
1936
|
var _useState = React.useState(false),
|
|
1916
1937
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1944,7 +1965,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1944
1965
|
var queue = Math.floor(duration / 10);
|
|
1945
1966
|
var segment = Math.floor(current / queue);
|
|
1946
1967
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1947
|
-
Segment.report_video_event('Video Ready', main.
|
|
1968
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1948
1969
|
};
|
|
1949
1970
|
|
|
1950
1971
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1955,7 +1976,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1955
1976
|
|
|
1956
1977
|
if (!queueProgress.includes(segment)) {
|
|
1957
1978
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1958
|
-
Segment.report_video_event('Video Segment', main.
|
|
1979
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1959
1980
|
queueProgress.push(segment);
|
|
1960
1981
|
}
|
|
1961
1982
|
};
|
|
@@ -1969,7 +1990,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1969
1990
|
var segment = Math.floor(current / queue);
|
|
1970
1991
|
|
|
1971
1992
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1972
|
-
Segment.report_video_event('Video Play', main.
|
|
1993
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1973
1994
|
|
|
1974
1995
|
if (!playReported) {
|
|
1975
1996
|
setPlayReported(true);
|
|
@@ -1989,7 +2010,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1989
2010
|
var segment = Math.floor(current / queue);
|
|
1990
2011
|
|
|
1991
2012
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1992
|
-
Segment.report_video_event('Video End', main.
|
|
2013
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1993
2014
|
setEndReported(true);
|
|
1994
2015
|
clearInterval(intervalID);
|
|
1995
2016
|
}
|
|
@@ -2003,14 +2024,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2003
2024
|
var segment = Math.floor(current / queue);
|
|
2004
2025
|
|
|
2005
2026
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
2006
|
-
Segment.report_video_event('Video Pause', main.
|
|
2027
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2007
2028
|
};
|
|
2008
2029
|
|
|
2009
|
-
return React__default
|
|
2030
|
+
return React__default.createElement(
|
|
2010
2031
|
'div',
|
|
2011
2032
|
{ id: 'fluid-video-container' },
|
|
2012
|
-
React__default
|
|
2013
|
-
React__default
|
|
2033
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2034
|
+
React__default.createElement(
|
|
2014
2035
|
'style',
|
|
2015
2036
|
{ jsx: 'true' },
|
|
2016
2037
|
'\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 +2044,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2023
2044
|
content = _ref.content,
|
|
2024
2045
|
getSerializers = _ref.getSerializers;
|
|
2025
2046
|
|
|
2026
|
-
return React__default
|
|
2047
|
+
return React__default.createElement(
|
|
2027
2048
|
'article',
|
|
2028
2049
|
{ className: 'sidebar' },
|
|
2029
|
-
React__default
|
|
2050
|
+
React__default.createElement(
|
|
2030
2051
|
'div',
|
|
2031
2052
|
null,
|
|
2032
|
-
React__default
|
|
2053
|
+
React__default.createElement(
|
|
2033
2054
|
'h3',
|
|
2034
2055
|
null,
|
|
2035
2056
|
caption
|
|
2036
2057
|
),
|
|
2037
|
-
React__default
|
|
2058
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2038
2059
|
),
|
|
2039
|
-
React__default
|
|
2060
|
+
React__default.createElement(
|
|
2040
2061
|
'style',
|
|
2041
2062
|
{ jsx: 'true' },
|
|
2042
2063
|
'\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 +2068,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2047
2068
|
var TableShow = function TableShow(_ref) {
|
|
2048
2069
|
var rows = _ref.rows;
|
|
2049
2070
|
|
|
2050
|
-
return React__default
|
|
2071
|
+
return React__default.createElement(
|
|
2051
2072
|
reactBootstrap.Table,
|
|
2052
2073
|
{ bordered: true, hover: true, responsive: true },
|
|
2053
|
-
React__default
|
|
2074
|
+
React__default.createElement(
|
|
2054
2075
|
'tbody',
|
|
2055
2076
|
null,
|
|
2056
2077
|
rows && rows.map(function (row) {
|
|
2057
|
-
return React__default
|
|
2078
|
+
return React__default.createElement(
|
|
2058
2079
|
'tr',
|
|
2059
2080
|
{ key: row._key },
|
|
2060
2081
|
row.cells && row.cells.map(function (cell, index) {
|
|
2061
|
-
return cell && React__default
|
|
2082
|
+
return cell && React__default.createElement(
|
|
2062
2083
|
'td',
|
|
2063
2084
|
{ key: index },
|
|
2064
2085
|
cell
|
|
@@ -2177,25 +2198,25 @@ var Media = function Media(_ref) {
|
|
|
2177
2198
|
margin: imageMargin
|
|
2178
2199
|
};
|
|
2179
2200
|
|
|
2180
|
-
return React__default
|
|
2201
|
+
return React__default.createElement(
|
|
2181
2202
|
reactBootstrap.Figure,
|
|
2182
2203
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2183
|
-
React__default
|
|
2204
|
+
React__default.createElement(
|
|
2184
2205
|
'a',
|
|
2185
2206
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2186
|
-
React__default
|
|
2207
|
+
React__default.createElement(
|
|
2187
2208
|
index$2.LazyLoad,
|
|
2188
2209
|
{ once: true },
|
|
2189
|
-
React__default
|
|
2210
|
+
React__default.createElement(
|
|
2190
2211
|
'picture',
|
|
2191
2212
|
null,
|
|
2192
|
-
React__default
|
|
2193
|
-
React__default
|
|
2194
|
-
React__default
|
|
2195
|
-
React__default
|
|
2213
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2214
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2215
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2216
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2196
2217
|
)
|
|
2197
2218
|
),
|
|
2198
|
-
caption && React__default
|
|
2219
|
+
caption && React__default.createElement(
|
|
2199
2220
|
reactBootstrap.Figure.Caption,
|
|
2200
2221
|
{ className: 'media-caption' },
|
|
2201
2222
|
caption
|
|
@@ -2203,9 +2224,9 @@ var Media = function Media(_ref) {
|
|
|
2203
2224
|
)
|
|
2204
2225
|
);
|
|
2205
2226
|
} else if (caption && caption !== '') {
|
|
2206
|
-
return React__default
|
|
2227
|
+
return React__default.createElement(
|
|
2207
2228
|
'a',
|
|
2208
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2229
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2209
2230
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2210
2231
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2211
2232
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2223,10 +2244,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2223
2244
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2224
2245
|
|
|
2225
2246
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2226
|
-
return React__default
|
|
2247
|
+
return React__default.createElement(
|
|
2227
2248
|
'div',
|
|
2228
2249
|
{ className: 'd-block text-center mb-3' },
|
|
2229
|
-
React__default
|
|
2250
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2230
2251
|
);
|
|
2231
2252
|
};
|
|
2232
2253
|
|
|
@@ -2261,7 +2282,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2261
2282
|
var queue = Math.floor(duration / 10);
|
|
2262
2283
|
var segment = Math.floor(current / queue);
|
|
2263
2284
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2264
|
-
Segment.report_video_event('Video Ready', main.
|
|
2285
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2265
2286
|
};
|
|
2266
2287
|
|
|
2267
2288
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2271,7 +2292,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2271
2292
|
var segment = Math.floor(current / queue);
|
|
2272
2293
|
if (!queueProgress.includes(segment)) {
|
|
2273
2294
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2274
|
-
Segment.report_video_event('Video Segment', main.
|
|
2295
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2275
2296
|
queueProgress.push(segment);
|
|
2276
2297
|
}
|
|
2277
2298
|
};
|
|
@@ -2284,7 +2305,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2284
2305
|
var queue = Math.floor(duration / 10);
|
|
2285
2306
|
var segment = Math.floor(current / queue);
|
|
2286
2307
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2287
|
-
Segment.report_video_event('Video Play', main.
|
|
2308
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2288
2309
|
|
|
2289
2310
|
if (!playReported) {
|
|
2290
2311
|
event.persist();
|
|
@@ -2305,7 +2326,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2305
2326
|
var segment = Math.floor(current / queue);
|
|
2306
2327
|
|
|
2307
2328
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2308
|
-
Segment.report_video_event('Video End', main.
|
|
2329
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2309
2330
|
setEndReported(true);
|
|
2310
2331
|
clearInterval(intervalID);
|
|
2311
2332
|
}
|
|
@@ -2318,13 +2339,13 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2318
2339
|
var queue = Math.floor(duration / 10);
|
|
2319
2340
|
var segment = Math.floor(current / queue);
|
|
2320
2341
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2321
|
-
Segment.report_video_event('Video Pause', main.
|
|
2342
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2322
2343
|
};
|
|
2323
2344
|
|
|
2324
|
-
return React__default
|
|
2345
|
+
return React__default.createElement(
|
|
2325
2346
|
'div',
|
|
2326
2347
|
null,
|
|
2327
|
-
vidLoaded && React__default
|
|
2348
|
+
vidLoaded && React__default.createElement(
|
|
2328
2349
|
'video',
|
|
2329
2350
|
{
|
|
2330
2351
|
poster: thumbnail || '',
|
|
@@ -2342,7 +2363,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2342
2363
|
onPlay: function onPlay(e) {
|
|
2343
2364
|
return handleOnPlay(e);
|
|
2344
2365
|
} },
|
|
2345
|
-
React__default
|
|
2366
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2346
2367
|
'Your browser does not support the video tag.'
|
|
2347
2368
|
)
|
|
2348
2369
|
);
|
|
@@ -2379,7 +2400,7 @@ var Video = function Video(_ref) {
|
|
|
2379
2400
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2380
2401
|
//console.log('success:', success.ref)
|
|
2381
2402
|
var player = success.ref;
|
|
2382
|
-
if (_typeof
|
|
2403
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2383
2404
|
player.ima3.settings.debug = true;
|
|
2384
2405
|
if (targeting.content_placement && targeting.document_url) {
|
|
2385
2406
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2387,6 +2408,8 @@ var Video = function Video(_ref) {
|
|
|
2387
2408
|
}
|
|
2388
2409
|
// this is video ready
|
|
2389
2410
|
player.on('loadedmetadata', function (evt) {
|
|
2411
|
+
var _this = this;
|
|
2412
|
+
|
|
2390
2413
|
//console.log('loadedmetadata:', evt)
|
|
2391
2414
|
console.log('mediainfo:', player.mediainfo); // get the duration from here
|
|
2392
2415
|
var duration = player.mediainfo.duration;
|
|
@@ -2394,21 +2417,45 @@ var Video = function Video(_ref) {
|
|
|
2394
2417
|
var queue = Math.floor(duration / 10);
|
|
2395
2418
|
var segment = Math.floor(current / queue);
|
|
2396
2419
|
|
|
2397
|
-
|
|
2420
|
+
var autoPlayVideo = function () {
|
|
2421
|
+
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
|
|
2422
|
+
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
2423
|
+
while (1) {
|
|
2424
|
+
switch (_context.prev = _context.next) {
|
|
2425
|
+
case 0:
|
|
2426
|
+
_context.prev = 0;
|
|
2427
|
+
_context.next = 3;
|
|
2428
|
+
return player.play();
|
|
2429
|
+
|
|
2430
|
+
case 3:
|
|
2431
|
+
_context.next = 8;
|
|
2432
|
+
break;
|
|
2433
|
+
|
|
2434
|
+
case 5:
|
|
2435
|
+
_context.prev = 5;
|
|
2436
|
+
_context.t0 = _context['catch'](0);
|
|
2437
|
+
|
|
2438
|
+
console.log('could not autoplay video', _context.t0);
|
|
2439
|
+
|
|
2440
|
+
case 8:
|
|
2441
|
+
case 'end':
|
|
2442
|
+
return _context.stop();
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
}, _callee, _this, [[0, 5]]);
|
|
2446
|
+
}));
|
|
2447
|
+
|
|
2448
|
+
return function autoPlayVideo() {
|
|
2449
|
+
return _ref2.apply(this, arguments);
|
|
2450
|
+
};
|
|
2451
|
+
}();
|
|
2452
|
+
|
|
2398
2453
|
if (autoplay) {
|
|
2399
|
-
|
|
2400
|
-
player.muted(false);
|
|
2401
|
-
}).catch(function (error) {
|
|
2402
|
-
// then try to auto play with mute
|
|
2403
|
-
player.muted(true);
|
|
2404
|
-
player.play();
|
|
2405
|
-
});
|
|
2406
|
-
} else {
|
|
2407
|
-
player.pause();
|
|
2454
|
+
autoPlayVideo();
|
|
2408
2455
|
}
|
|
2409
2456
|
|
|
2410
2457
|
//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.
|
|
2458
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2412
2459
|
});
|
|
2413
2460
|
|
|
2414
2461
|
// play
|
|
@@ -2418,7 +2465,7 @@ var Video = function Video(_ref) {
|
|
|
2418
2465
|
var queue = Math.floor(duration / 10);
|
|
2419
2466
|
var segment = Math.floor(current / queue);
|
|
2420
2467
|
//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.
|
|
2468
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2422
2469
|
});
|
|
2423
2470
|
|
|
2424
2471
|
// pause
|
|
@@ -2428,7 +2475,7 @@ var Video = function Video(_ref) {
|
|
|
2428
2475
|
var queue = Math.floor(duration / 10);
|
|
2429
2476
|
var segment = Math.floor(current / queue);
|
|
2430
2477
|
//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.
|
|
2478
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2432
2479
|
});
|
|
2433
2480
|
|
|
2434
2481
|
// end
|
|
@@ -2438,7 +2485,7 @@ var Video = function Video(_ref) {
|
|
|
2438
2485
|
var queue = Math.floor(duration / 10);
|
|
2439
2486
|
var segment = Math.floor(current / queue);
|
|
2440
2487
|
//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.
|
|
2488
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2442
2489
|
autoplayNextVideo(evt);
|
|
2443
2490
|
});
|
|
2444
2491
|
|
|
@@ -2450,7 +2497,7 @@ var Video = function Video(_ref) {
|
|
|
2450
2497
|
var segment = Math.floor(current / queue);
|
|
2451
2498
|
if (!queueProgress.includes(segment)) {
|
|
2452
2499
|
//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.
|
|
2500
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2454
2501
|
queueProgress.push(segment);
|
|
2455
2502
|
}
|
|
2456
2503
|
});
|
|
@@ -2458,72 +2505,72 @@ var Video = function Video(_ref) {
|
|
|
2458
2505
|
// ad impression
|
|
2459
2506
|
player.on('ads-ad-started', function (evt) {
|
|
2460
2507
|
var duration = player.ads.ad.duration;
|
|
2461
|
-
player.ads.ad.id;
|
|
2508
|
+
var id = player.ads.ad.id;
|
|
2462
2509
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2463
2510
|
|
|
2464
2511
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2465
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2512
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2466
2513
|
});
|
|
2467
2514
|
|
|
2468
2515
|
// ad ended
|
|
2469
2516
|
player.on('ads-ad-ended', function (evt) {
|
|
2470
2517
|
var duration = player.ads.ad.duration;
|
|
2471
|
-
player.ads.ad.id;
|
|
2518
|
+
var id = player.ads.ad.id;
|
|
2472
2519
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2473
2520
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2474
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2521
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2475
2522
|
});
|
|
2476
2523
|
};
|
|
2477
2524
|
|
|
2478
2525
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2479
2526
|
if (videoID) {
|
|
2480
|
-
return React__default
|
|
2527
|
+
return React__default.createElement(
|
|
2481
2528
|
'div',
|
|
2482
2529
|
null,
|
|
2483
|
-
React__default
|
|
2530
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2484
2531
|
onSuccess: onVideoSuccess,
|
|
2485
2532
|
accountId: accountIDs.brightcove.accountId,
|
|
2486
2533
|
videoId: videoID,
|
|
2487
2534
|
playerId: accountIDs.brightcove.playerId,
|
|
2488
2535
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2489
2536
|
}),
|
|
2490
|
-
React__default
|
|
2537
|
+
React__default.createElement(
|
|
2491
2538
|
'style',
|
|
2492
2539
|
{ jsx: 'true' },
|
|
2493
|
-
'\n
|
|
2540
|
+
'\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
2541
|
)
|
|
2495
2542
|
);
|
|
2496
2543
|
} else if (playlistID) {
|
|
2497
|
-
return React__default
|
|
2544
|
+
return React__default.createElement(
|
|
2498
2545
|
'div',
|
|
2499
2546
|
null,
|
|
2500
|
-
React__default
|
|
2547
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2501
2548
|
accountId: accountIDs.brightcove.accountId,
|
|
2502
2549
|
playlistId: playlistID,
|
|
2503
2550
|
playerId: accountIDs.brightcove.playerId,
|
|
2504
2551
|
onSuccess: onVideoSuccess,
|
|
2505
2552
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2506
2553
|
}),
|
|
2507
|
-
React__default
|
|
2554
|
+
React__default.createElement(
|
|
2508
2555
|
'style',
|
|
2509
2556
|
{ jsx: 'true' },
|
|
2510
2557
|
'\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
2558
|
)
|
|
2512
2559
|
);
|
|
2513
2560
|
} else if (experienceID) {
|
|
2514
|
-
return React__default
|
|
2561
|
+
return React__default.createElement(
|
|
2515
2562
|
'div',
|
|
2516
2563
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2517
|
-
videoLoaded && React__default
|
|
2564
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2518
2565
|
);
|
|
2519
2566
|
}
|
|
2520
2567
|
return null;
|
|
2521
2568
|
}
|
|
2522
2569
|
if (source === 'mp4') {
|
|
2523
|
-
return React__default
|
|
2570
|
+
return React__default.createElement(
|
|
2524
2571
|
'div',
|
|
2525
2572
|
null,
|
|
2526
|
-
React__default
|
|
2573
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2527
2574
|
);
|
|
2528
2575
|
}
|
|
2529
2576
|
|
|
@@ -2538,7 +2585,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2538
2585
|
});
|
|
2539
2586
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2540
2587
|
|
|
2541
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2588
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2542
2589
|
|
|
2543
2590
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2544
2591
|
|
|
@@ -2734,9 +2781,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2734
2781
|
});
|
|
2735
2782
|
|
|
2736
2783
|
_commonjsHelpers.unwrapExports(props);
|
|
2737
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2738
|
-
props.defaultProps;
|
|
2739
|
-
props.propTypes;
|
|
2784
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2785
|
+
var props_2 = props.defaultProps;
|
|
2786
|
+
var props_3 = props.propTypes;
|
|
2740
2787
|
|
|
2741
2788
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2742
2789
|
return isNonNullObject(value)
|
|
@@ -2901,17 +2948,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2901
2948
|
|
|
2902
2949
|
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
2950
|
|
|
2904
|
-
function
|
|
2905
|
-
|
|
2906
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2907
|
-
|
|
2908
|
-
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."); }
|
|
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); }
|
|
2951
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2911
2952
|
|
|
2912
|
-
function
|
|
2953
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2913
2954
|
|
|
2914
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
2955
|
+
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
2956
|
|
|
2916
2957
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2917
2958
|
|
|
@@ -3041,12 +3082,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3041
3082
|
|
|
3042
3083
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3043
3084
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3044
|
-
|
|
3045
|
-
var
|
|
3046
|
-
|
|
3085
|
+
var _iteratorNormalCompletion = true;
|
|
3086
|
+
var _didIteratorError = false;
|
|
3087
|
+
var _iteratorError = undefined;
|
|
3047
3088
|
|
|
3048
3089
|
try {
|
|
3049
|
-
for (_iterator.
|
|
3090
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3050
3091
|
var p = _step.value;
|
|
3051
3092
|
|
|
3052
3093
|
if (props$1[p]) {
|
|
@@ -3061,9 +3102,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3061
3102
|
}
|
|
3062
3103
|
}
|
|
3063
3104
|
} catch (err) {
|
|
3064
|
-
|
|
3105
|
+
_didIteratorError = true;
|
|
3106
|
+
_iteratorError = err;
|
|
3065
3107
|
} finally {
|
|
3066
|
-
|
|
3108
|
+
try {
|
|
3109
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3110
|
+
_iterator["return"]();
|
|
3111
|
+
}
|
|
3112
|
+
} finally {
|
|
3113
|
+
if (_didIteratorError) {
|
|
3114
|
+
throw _iteratorError;
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3067
3117
|
}
|
|
3068
3118
|
|
|
3069
3119
|
return config;
|
|
@@ -3128,7 +3178,7 @@ function isEqual(a, b) {
|
|
|
3128
3178
|
return true;
|
|
3129
3179
|
}
|
|
3130
3180
|
|
|
3131
|
-
if ((0, React__default
|
|
3181
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3132
3182
|
return true;
|
|
3133
3183
|
}
|
|
3134
3184
|
|
|
@@ -3171,17 +3221,17 @@ function isMediaStream(url) {
|
|
|
3171
3221
|
});
|
|
3172
3222
|
|
|
3173
3223
|
_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;
|
|
3224
|
+
var utils_1 = utils.parseStartTime;
|
|
3225
|
+
var utils_2 = utils.parseEndTime;
|
|
3226
|
+
var utils_3 = utils.randomString;
|
|
3227
|
+
var utils_4 = utils.queryString;
|
|
3228
|
+
var utils_5 = utils.getSDK;
|
|
3229
|
+
var utils_6 = utils.getConfig;
|
|
3230
|
+
var utils_7 = utils.omit;
|
|
3231
|
+
var utils_8 = utils.callPlayer;
|
|
3232
|
+
var utils_9 = utils.isObject;
|
|
3233
|
+
var utils_10 = utils.isEqual;
|
|
3234
|
+
var utils_11 = utils.isMediaStream;
|
|
3185
3235
|
|
|
3186
3236
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3187
3237
|
|
|
@@ -3190,7 +3240,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3190
3240
|
});
|
|
3191
3241
|
exports["default"] = void 0;
|
|
3192
3242
|
|
|
3193
|
-
var _react = _interopRequireWildcard(React__default
|
|
3243
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3194
3244
|
|
|
3195
3245
|
|
|
3196
3246
|
|
|
@@ -3210,16 +3260,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3210
3260
|
|
|
3211
3261
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3212
3262
|
|
|
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
3263
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3216
3264
|
|
|
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
3265
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3222
3266
|
|
|
3267
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3268
|
+
|
|
3223
3269
|
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
3270
|
|
|
3225
3271
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3228,12 +3274,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3228
3274
|
|
|
3229
3275
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3230
3276
|
|
|
3231
|
-
var Player =
|
|
3277
|
+
var Player =
|
|
3278
|
+
/*#__PURE__*/
|
|
3279
|
+
function (_Component) {
|
|
3232
3280
|
_inherits(Player, _Component);
|
|
3233
3281
|
|
|
3234
|
-
var _super = _createSuper(Player);
|
|
3235
|
-
|
|
3236
3282
|
function Player() {
|
|
3283
|
+
var _getPrototypeOf2;
|
|
3284
|
+
|
|
3237
3285
|
var _this;
|
|
3238
3286
|
|
|
3239
3287
|
_classCallCheck(this, Player);
|
|
@@ -3242,7 +3290,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3242
3290
|
_args[_key] = arguments[_key];
|
|
3243
3291
|
}
|
|
3244
3292
|
|
|
3245
|
-
_this =
|
|
3293
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3246
3294
|
|
|
3247
3295
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3248
3296
|
|
|
@@ -3567,7 +3615,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3567
3615
|
return null;
|
|
3568
3616
|
}
|
|
3569
3617
|
|
|
3570
|
-
return
|
|
3618
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3571
3619
|
ref: this.ref,
|
|
3572
3620
|
onReady: this.handleReady,
|
|
3573
3621
|
onPlay: this.handlePlay,
|
|
@@ -3600,7 +3648,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3600
3648
|
});
|
|
3601
3649
|
exports["default"] = createSinglePlayer;
|
|
3602
3650
|
|
|
3603
|
-
var _react = _interopRequireWildcard(React__default
|
|
3651
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3604
3652
|
|
|
3605
3653
|
|
|
3606
3654
|
|
|
@@ -3628,16 +3676,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3628
3676
|
|
|
3629
3677
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3630
3678
|
|
|
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
3679
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3634
3680
|
|
|
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
3681
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3640
3682
|
|
|
3683
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3684
|
+
|
|
3641
3685
|
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
3686
|
|
|
3643
3687
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3649,12 +3693,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3649
3693
|
function createSinglePlayer(activePlayer) {
|
|
3650
3694
|
var _class, _temp;
|
|
3651
3695
|
|
|
3652
|
-
return _temp = _class =
|
|
3696
|
+
return _temp = _class =
|
|
3697
|
+
/*#__PURE__*/
|
|
3698
|
+
function (_Component) {
|
|
3653
3699
|
_inherits(SinglePlayer, _Component);
|
|
3654
3700
|
|
|
3655
|
-
var _super = _createSuper(SinglePlayer);
|
|
3656
|
-
|
|
3657
3701
|
function SinglePlayer() {
|
|
3702
|
+
var _getPrototypeOf2;
|
|
3703
|
+
|
|
3658
3704
|
var _this;
|
|
3659
3705
|
|
|
3660
3706
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3663,7 +3709,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3663
3709
|
args[_key] = arguments[_key];
|
|
3664
3710
|
}
|
|
3665
3711
|
|
|
3666
|
-
_this =
|
|
3712
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3667
3713
|
|
|
3668
3714
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3669
3715
|
|
|
@@ -3731,12 +3777,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3731
3777
|
height = _this$props.height,
|
|
3732
3778
|
Wrapper = _this$props.wrapper;
|
|
3733
3779
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3734
|
-
return
|
|
3780
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3735
3781
|
style: _objectSpread({}, style, {
|
|
3736
3782
|
width: width,
|
|
3737
3783
|
height: height
|
|
3738
3784
|
})
|
|
3739
|
-
}, otherProps),
|
|
3785
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3740
3786
|
ref: this.ref,
|
|
3741
3787
|
activePlayer: activePlayer,
|
|
3742
3788
|
config: this.config
|
|
@@ -3758,7 +3804,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3758
3804
|
});
|
|
3759
3805
|
exports["default"] = exports.YouTube = void 0;
|
|
3760
3806
|
|
|
3761
|
-
var _react = _interopRequireWildcard(React__default
|
|
3807
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3762
3808
|
|
|
3763
3809
|
|
|
3764
3810
|
|
|
@@ -3782,31 +3828,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3782
3828
|
|
|
3783
3829
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3784
3830
|
|
|
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
3831
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3788
3832
|
|
|
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
3833
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3794
3834
|
|
|
3835
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3836
|
+
|
|
3795
3837
|
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
3838
|
|
|
3797
3839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3798
3840
|
|
|
3799
3841
|
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
3842
|
|
|
3801
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3843
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3802
3844
|
|
|
3803
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3845
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3804
3846
|
|
|
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; }
|
|
3847
|
+
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
3848
|
|
|
3811
3849
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3812
3850
|
|
|
@@ -3831,12 +3869,14 @@ function parsePlaylist(url) {
|
|
|
3831
3869
|
return {};
|
|
3832
3870
|
}
|
|
3833
3871
|
|
|
3834
|
-
var YouTube =
|
|
3872
|
+
var YouTube =
|
|
3873
|
+
/*#__PURE__*/
|
|
3874
|
+
function (_Component) {
|
|
3835
3875
|
_inherits(YouTube, _Component);
|
|
3836
3876
|
|
|
3837
|
-
var _super = _createSuper(YouTube);
|
|
3838
|
-
|
|
3839
3877
|
function YouTube() {
|
|
3878
|
+
var _getPrototypeOf2;
|
|
3879
|
+
|
|
3840
3880
|
var _this;
|
|
3841
3881
|
|
|
3842
3882
|
_classCallCheck(this, YouTube);
|
|
@@ -3845,7 +3885,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3845
3885
|
args[_key] = arguments[_key];
|
|
3846
3886
|
}
|
|
3847
3887
|
|
|
3848
|
-
_this =
|
|
3888
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3849
3889
|
|
|
3850
3890
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3851
3891
|
|
|
@@ -4033,9 +4073,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4033
4073
|
height: '100%',
|
|
4034
4074
|
display: display
|
|
4035
4075
|
};
|
|
4036
|
-
return
|
|
4076
|
+
return _react["default"].createElement("div", {
|
|
4037
4077
|
style: style
|
|
4038
|
-
},
|
|
4078
|
+
}, _react["default"].createElement("div", {
|
|
4039
4079
|
ref: this.ref
|
|
4040
4080
|
}));
|
|
4041
4081
|
}
|
|
@@ -4058,7 +4098,7 @@ exports["default"] = _default;
|
|
|
4058
4098
|
});
|
|
4059
4099
|
|
|
4060
4100
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4061
|
-
YouTube_1.YouTube;
|
|
4101
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4062
4102
|
|
|
4063
4103
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4064
4104
|
|
|
@@ -4067,7 +4107,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4067
4107
|
});
|
|
4068
4108
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4069
4109
|
|
|
4070
|
-
var _react = _interopRequireWildcard(React__default
|
|
4110
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4071
4111
|
|
|
4072
4112
|
|
|
4073
4113
|
|
|
@@ -4091,16 +4131,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4091
4131
|
|
|
4092
4132
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4093
4133
|
|
|
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
4134
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4097
4135
|
|
|
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
4136
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4103
4137
|
|
|
4138
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4139
|
+
|
|
4104
4140
|
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
4141
|
|
|
4106
4142
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4109,14 +4145,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4109
4145
|
|
|
4110
4146
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4111
4147
|
var SDK_GLOBAL = 'SC';
|
|
4112
|
-
var MATCH_URL = /(
|
|
4148
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4113
4149
|
|
|
4114
|
-
var SoundCloud =
|
|
4150
|
+
var SoundCloud =
|
|
4151
|
+
/*#__PURE__*/
|
|
4152
|
+
function (_Component) {
|
|
4115
4153
|
_inherits(SoundCloud, _Component);
|
|
4116
4154
|
|
|
4117
|
-
var _super = _createSuper(SoundCloud);
|
|
4118
|
-
|
|
4119
4155
|
function SoundCloud() {
|
|
4156
|
+
var _getPrototypeOf2;
|
|
4157
|
+
|
|
4120
4158
|
var _this;
|
|
4121
4159
|
|
|
4122
4160
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4125,7 +4163,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4125
4163
|
args[_key] = arguments[_key];
|
|
4126
4164
|
}
|
|
4127
4165
|
|
|
4128
|
-
_this =
|
|
4166
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4129
4167
|
|
|
4130
4168
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4131
4169
|
|
|
@@ -4246,7 +4284,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4246
4284
|
height: '100%',
|
|
4247
4285
|
display: display
|
|
4248
4286
|
};
|
|
4249
|
-
return
|
|
4287
|
+
return _react["default"].createElement("iframe", {
|
|
4250
4288
|
ref: this.ref,
|
|
4251
4289
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4252
4290
|
style: style,
|
|
@@ -4275,7 +4313,7 @@ exports["default"] = _default;
|
|
|
4275
4313
|
});
|
|
4276
4314
|
|
|
4277
4315
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4278
|
-
SoundCloud_1.SoundCloud;
|
|
4316
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4279
4317
|
|
|
4280
4318
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4281
4319
|
|
|
@@ -4284,7 +4322,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4284
4322
|
});
|
|
4285
4323
|
exports["default"] = exports.Vimeo = void 0;
|
|
4286
4324
|
|
|
4287
|
-
var _react = _interopRequireWildcard(React__default
|
|
4325
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4288
4326
|
|
|
4289
4327
|
|
|
4290
4328
|
|
|
@@ -4308,16 +4346,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4308
4346
|
|
|
4309
4347
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4310
4348
|
|
|
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
4349
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4314
4350
|
|
|
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
4351
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4320
4352
|
|
|
4353
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4354
|
+
|
|
4321
4355
|
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
4356
|
|
|
4323
4357
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4329,12 +4363,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4329
4363
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4330
4364
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4331
4365
|
|
|
4332
|
-
var Vimeo =
|
|
4366
|
+
var Vimeo =
|
|
4367
|
+
/*#__PURE__*/
|
|
4368
|
+
function (_Component) {
|
|
4333
4369
|
_inherits(Vimeo, _Component);
|
|
4334
4370
|
|
|
4335
|
-
var _super = _createSuper(Vimeo);
|
|
4336
|
-
|
|
4337
4371
|
function Vimeo() {
|
|
4372
|
+
var _getPrototypeOf2;
|
|
4373
|
+
|
|
4338
4374
|
var _this;
|
|
4339
4375
|
|
|
4340
4376
|
_classCallCheck(this, Vimeo);
|
|
@@ -4343,7 +4379,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4343
4379
|
args[_key] = arguments[_key];
|
|
4344
4380
|
}
|
|
4345
4381
|
|
|
4346
|
-
_this =
|
|
4382
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4347
4383
|
|
|
4348
4384
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4349
4385
|
|
|
@@ -4500,7 +4536,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4500
4536
|
overflow: 'hidden',
|
|
4501
4537
|
display: display
|
|
4502
4538
|
};
|
|
4503
|
-
return
|
|
4539
|
+
return _react["default"].createElement("div", {
|
|
4504
4540
|
key: this.props.url,
|
|
4505
4541
|
ref: this.ref,
|
|
4506
4542
|
style: style
|
|
@@ -4531,7 +4567,7 @@ exports["default"] = _default;
|
|
|
4531
4567
|
});
|
|
4532
4568
|
|
|
4533
4569
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4534
|
-
Vimeo_1.Vimeo;
|
|
4570
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4535
4571
|
|
|
4536
4572
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4537
4573
|
|
|
@@ -4540,7 +4576,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4540
4576
|
});
|
|
4541
4577
|
exports["default"] = exports.Facebook = void 0;
|
|
4542
4578
|
|
|
4543
|
-
var _react = _interopRequireWildcard(React__default
|
|
4579
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4544
4580
|
|
|
4545
4581
|
|
|
4546
4582
|
|
|
@@ -4560,16 +4596,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4560
4596
|
|
|
4561
4597
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4562
4598
|
|
|
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
4599
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4566
4600
|
|
|
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
4601
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4572
4602
|
|
|
4603
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4604
|
+
|
|
4573
4605
|
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
4606
|
|
|
4575
4607
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4582,12 +4614,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4582
4614
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4583
4615
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4584
4616
|
|
|
4585
|
-
var Facebook =
|
|
4617
|
+
var Facebook =
|
|
4618
|
+
/*#__PURE__*/
|
|
4619
|
+
function (_Component) {
|
|
4586
4620
|
_inherits(Facebook, _Component);
|
|
4587
4621
|
|
|
4588
|
-
var _super = _createSuper(Facebook);
|
|
4589
|
-
|
|
4590
4622
|
function Facebook() {
|
|
4623
|
+
var _getPrototypeOf2;
|
|
4624
|
+
|
|
4591
4625
|
var _this;
|
|
4592
4626
|
|
|
4593
4627
|
_classCallCheck(this, Facebook);
|
|
@@ -4596,7 +4630,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4596
4630
|
args[_key] = arguments[_key];
|
|
4597
4631
|
}
|
|
4598
4632
|
|
|
4599
|
-
_this =
|
|
4633
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4600
4634
|
|
|
4601
4635
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4602
4636
|
|
|
@@ -4712,7 +4746,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4712
4746
|
width: '100%',
|
|
4713
4747
|
height: '100%'
|
|
4714
4748
|
};
|
|
4715
|
-
return
|
|
4749
|
+
return _react["default"].createElement("div", {
|
|
4716
4750
|
style: style,
|
|
4717
4751
|
id: this.playerID,
|
|
4718
4752
|
className: "fb-video",
|
|
@@ -4743,7 +4777,7 @@ exports["default"] = _default;
|
|
|
4743
4777
|
});
|
|
4744
4778
|
|
|
4745
4779
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4746
|
-
Facebook_1.Facebook;
|
|
4780
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4747
4781
|
|
|
4748
4782
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4749
4783
|
|
|
@@ -4752,7 +4786,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4752
4786
|
});
|
|
4753
4787
|
exports["default"] = exports.Streamable = void 0;
|
|
4754
4788
|
|
|
4755
|
-
var _react = _interopRequireWildcard(React__default
|
|
4789
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4756
4790
|
|
|
4757
4791
|
|
|
4758
4792
|
|
|
@@ -4772,16 +4806,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4772
4806
|
|
|
4773
4807
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4774
4808
|
|
|
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
4809
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4778
4810
|
|
|
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
4811
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4784
4812
|
|
|
4813
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4814
|
+
|
|
4785
4815
|
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
4816
|
|
|
4787
4817
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4792,12 +4822,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4792
4822
|
var SDK_GLOBAL = 'playerjs';
|
|
4793
4823
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4794
4824
|
|
|
4795
|
-
var Streamable =
|
|
4825
|
+
var Streamable =
|
|
4826
|
+
/*#__PURE__*/
|
|
4827
|
+
function (_Component) {
|
|
4796
4828
|
_inherits(Streamable, _Component);
|
|
4797
4829
|
|
|
4798
|
-
var _super = _createSuper(Streamable);
|
|
4799
|
-
|
|
4800
4830
|
function Streamable() {
|
|
4831
|
+
var _getPrototypeOf2;
|
|
4832
|
+
|
|
4801
4833
|
var _this;
|
|
4802
4834
|
|
|
4803
4835
|
_classCallCheck(this, Streamable);
|
|
@@ -4806,7 +4838,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4806
4838
|
args[_key] = arguments[_key];
|
|
4807
4839
|
}
|
|
4808
4840
|
|
|
4809
|
-
_this =
|
|
4841
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4810
4842
|
|
|
4811
4843
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4812
4844
|
|
|
@@ -4926,7 +4958,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4926
4958
|
width: '100%',
|
|
4927
4959
|
height: '100%'
|
|
4928
4960
|
};
|
|
4929
|
-
return
|
|
4961
|
+
return _react["default"].createElement("iframe", {
|
|
4930
4962
|
ref: this.ref,
|
|
4931
4963
|
src: "https://streamable.com/o/".concat(id),
|
|
4932
4964
|
frameBorder: "0",
|
|
@@ -4954,7 +4986,7 @@ exports["default"] = _default;
|
|
|
4954
4986
|
});
|
|
4955
4987
|
|
|
4956
4988
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4957
|
-
Streamable_1.Streamable;
|
|
4989
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4958
4990
|
|
|
4959
4991
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4960
4992
|
|
|
@@ -4963,7 +4995,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4963
4995
|
});
|
|
4964
4996
|
exports["default"] = exports.Wistia = void 0;
|
|
4965
4997
|
|
|
4966
|
-
var _react = _interopRequireWildcard(React__default
|
|
4998
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4967
4999
|
|
|
4968
5000
|
|
|
4969
5001
|
|
|
@@ -4987,16 +5019,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4987
5019
|
|
|
4988
5020
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4989
5021
|
|
|
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
5022
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4993
5023
|
|
|
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
5024
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4999
5025
|
|
|
5026
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5027
|
+
|
|
5000
5028
|
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
5029
|
|
|
5002
5030
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5007,48 +5035,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5007
5035
|
var SDK_GLOBAL = 'Wistia';
|
|
5008
5036
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5009
5037
|
|
|
5010
|
-
var Wistia =
|
|
5038
|
+
var Wistia =
|
|
5039
|
+
/*#__PURE__*/
|
|
5040
|
+
function (_Component) {
|
|
5011
5041
|
_inherits(Wistia, _Component);
|
|
5012
5042
|
|
|
5013
|
-
var _super = _createSuper(Wistia);
|
|
5014
|
-
|
|
5015
5043
|
function Wistia() {
|
|
5044
|
+
var _getPrototypeOf2;
|
|
5045
|
+
|
|
5016
5046
|
var _this;
|
|
5017
5047
|
|
|
5018
5048
|
_classCallCheck(this, Wistia);
|
|
5019
5049
|
|
|
5020
|
-
for (var _len = arguments.length,
|
|
5021
|
-
|
|
5050
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5051
|
+
args[_key] = arguments[_key];
|
|
5022
5052
|
}
|
|
5023
5053
|
|
|
5024
|
-
_this =
|
|
5054
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5025
5055
|
|
|
5026
5056
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5027
5057
|
|
|
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
5058
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5053
5059
|
_this.callPlayer('mute');
|
|
5054
5060
|
});
|
|
@@ -5070,13 +5076,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5070
5076
|
value: function load(url) {
|
|
5071
5077
|
var _this2 = this;
|
|
5072
5078
|
|
|
5073
|
-
var _this$
|
|
5074
|
-
playing = _this$
|
|
5075
|
-
muted = _this$
|
|
5076
|
-
controls = _this$
|
|
5077
|
-
_onReady = _this$
|
|
5078
|
-
|
|
5079
|
-
|
|
5079
|
+
var _this$props = this.props,
|
|
5080
|
+
playing = _this$props.playing,
|
|
5081
|
+
muted = _this$props.muted,
|
|
5082
|
+
controls = _this$props.controls,
|
|
5083
|
+
_onReady = _this$props.onReady,
|
|
5084
|
+
onPlay = _this$props.onPlay,
|
|
5085
|
+
onPause = _this$props.onPause,
|
|
5086
|
+
onSeek = _this$props.onSeek,
|
|
5087
|
+
onEnded = _this$props.onEnded,
|
|
5088
|
+
config = _this$props.config,
|
|
5089
|
+
onError = _this$props.onError;
|
|
5080
5090
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5081
5091
|
window._wq = window._wq || [];
|
|
5082
5092
|
|
|
@@ -5093,28 +5103,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5093
5103
|
|
|
5094
5104
|
_this2.unbind();
|
|
5095
5105
|
|
|
5096
|
-
_this2.player.bind('play',
|
|
5106
|
+
_this2.player.bind('play', onPlay);
|
|
5097
5107
|
|
|
5098
|
-
_this2.player.bind('pause',
|
|
5108
|
+
_this2.player.bind('pause', onPause);
|
|
5099
5109
|
|
|
5100
|
-
_this2.player.bind('seek',
|
|
5110
|
+
_this2.player.bind('seek', onSeek);
|
|
5101
5111
|
|
|
5102
|
-
_this2.player.bind('end',
|
|
5112
|
+
_this2.player.bind('end', onEnded);
|
|
5103
5113
|
|
|
5104
5114
|
_onReady();
|
|
5105
5115
|
}
|
|
5106
5116
|
});
|
|
5107
5117
|
}, onError);
|
|
5108
5118
|
}
|
|
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
5119
|
}, {
|
|
5119
5120
|
key: "play",
|
|
5120
5121
|
value: function play() {
|
|
@@ -5125,6 +5126,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5125
5126
|
value: function pause() {
|
|
5126
5127
|
this.callPlayer('pause');
|
|
5127
5128
|
}
|
|
5129
|
+
}, {
|
|
5130
|
+
key: "unbind",
|
|
5131
|
+
value: function unbind() {
|
|
5132
|
+
var _this$props2 = this.props,
|
|
5133
|
+
onPlay = _this$props2.onPlay,
|
|
5134
|
+
onPause = _this$props2.onPause,
|
|
5135
|
+
onSeek = _this$props2.onSeek,
|
|
5136
|
+
onEnded = _this$props2.onEnded;
|
|
5137
|
+
this.player.unbind('play', onPlay);
|
|
5138
|
+
this.player.unbind('pause', onPause);
|
|
5139
|
+
this.player.unbind('seek', onSeek);
|
|
5140
|
+
this.player.unbind('end', onEnded);
|
|
5141
|
+
}
|
|
5128
5142
|
}, {
|
|
5129
5143
|
key: "stop",
|
|
5130
5144
|
value: function stop() {
|
|
@@ -5170,7 +5184,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5170
5184
|
width: '100%',
|
|
5171
5185
|
height: '100%'
|
|
5172
5186
|
};
|
|
5173
|
-
return
|
|
5187
|
+
return _react["default"].createElement("div", {
|
|
5174
5188
|
key: id,
|
|
5175
5189
|
className: className,
|
|
5176
5190
|
style: style
|
|
@@ -5197,7 +5211,7 @@ exports["default"] = _default;
|
|
|
5197
5211
|
});
|
|
5198
5212
|
|
|
5199
5213
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5200
|
-
Wistia_1.Wistia;
|
|
5214
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5201
5215
|
|
|
5202
5216
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5203
5217
|
|
|
@@ -5206,7 +5220,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5206
5220
|
});
|
|
5207
5221
|
exports["default"] = exports.Twitch = void 0;
|
|
5208
5222
|
|
|
5209
|
-
var _react = _interopRequireWildcard(React__default
|
|
5223
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5210
5224
|
|
|
5211
5225
|
|
|
5212
5226
|
|
|
@@ -5230,16 +5244,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5230
5244
|
|
|
5231
5245
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5232
5246
|
|
|
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
5247
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5236
5248
|
|
|
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
5249
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5242
5250
|
|
|
5251
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5252
|
+
|
|
5243
5253
|
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
5254
|
|
|
5245
5255
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5252,12 +5262,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5252
5262
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5253
5263
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5254
5264
|
|
|
5255
|
-
var Twitch =
|
|
5265
|
+
var Twitch =
|
|
5266
|
+
/*#__PURE__*/
|
|
5267
|
+
function (_Component) {
|
|
5256
5268
|
_inherits(Twitch, _Component);
|
|
5257
5269
|
|
|
5258
|
-
var _super = _createSuper(Twitch);
|
|
5259
|
-
|
|
5260
5270
|
function Twitch() {
|
|
5271
|
+
var _getPrototypeOf2;
|
|
5272
|
+
|
|
5261
5273
|
var _this;
|
|
5262
5274
|
|
|
5263
5275
|
_classCallCheck(this, Twitch);
|
|
@@ -5266,7 +5278,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5266
5278
|
args[_key] = arguments[_key];
|
|
5267
5279
|
}
|
|
5268
5280
|
|
|
5269
|
-
_this =
|
|
5281
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5270
5282
|
|
|
5271
5283
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5272
5284
|
|
|
@@ -5387,7 +5399,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5387
5399
|
width: '100%',
|
|
5388
5400
|
height: '100%'
|
|
5389
5401
|
};
|
|
5390
|
-
return
|
|
5402
|
+
return _react["default"].createElement("div", {
|
|
5391
5403
|
style: style,
|
|
5392
5404
|
id: this.playerID
|
|
5393
5405
|
});
|
|
@@ -5413,7 +5425,7 @@ exports["default"] = _default;
|
|
|
5413
5425
|
});
|
|
5414
5426
|
|
|
5415
5427
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5416
|
-
Twitch_1.Twitch;
|
|
5428
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5417
5429
|
|
|
5418
5430
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5419
5431
|
|
|
@@ -5422,7 +5434,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5422
5434
|
});
|
|
5423
5435
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5424
5436
|
|
|
5425
|
-
var _react = _interopRequireWildcard(React__default
|
|
5437
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5426
5438
|
|
|
5427
5439
|
|
|
5428
5440
|
|
|
@@ -5440,15 +5452,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5440
5452
|
|
|
5441
5453
|
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
5454
|
|
|
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); }
|
|
5455
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5448
5456
|
|
|
5449
|
-
function
|
|
5457
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5450
5458
|
|
|
5451
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5459
|
+
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
5460
|
|
|
5453
5461
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5454
5462
|
|
|
@@ -5458,16 +5466,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5458
5466
|
|
|
5459
5467
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5460
5468
|
|
|
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
5469
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5464
5470
|
|
|
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
5471
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5470
5472
|
|
|
5473
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5474
|
+
|
|
5471
5475
|
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
5476
|
|
|
5473
5477
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5479,12 +5483,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5479
5483
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5480
5484
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5481
5485
|
|
|
5482
|
-
var DailyMotion =
|
|
5486
|
+
var DailyMotion =
|
|
5487
|
+
/*#__PURE__*/
|
|
5488
|
+
function (_Component) {
|
|
5483
5489
|
_inherits(DailyMotion, _Component);
|
|
5484
5490
|
|
|
5485
|
-
var _super = _createSuper(DailyMotion);
|
|
5486
|
-
|
|
5487
5491
|
function DailyMotion() {
|
|
5492
|
+
var _getPrototypeOf2;
|
|
5493
|
+
|
|
5488
5494
|
var _this;
|
|
5489
5495
|
|
|
5490
5496
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5493,7 +5499,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5493
5499
|
args[_key] = arguments[_key];
|
|
5494
5500
|
}
|
|
5495
5501
|
|
|
5496
|
-
_this =
|
|
5502
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5497
5503
|
|
|
5498
5504
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5499
5505
|
|
|
@@ -5622,9 +5628,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5622
5628
|
height: '100%',
|
|
5623
5629
|
display: display
|
|
5624
5630
|
};
|
|
5625
|
-
return
|
|
5631
|
+
return _react["default"].createElement("div", {
|
|
5626
5632
|
style: style
|
|
5627
|
-
},
|
|
5633
|
+
}, _react["default"].createElement("div", {
|
|
5628
5634
|
ref: this.ref
|
|
5629
5635
|
}));
|
|
5630
5636
|
}
|
|
@@ -5649,7 +5655,7 @@ exports["default"] = _default;
|
|
|
5649
5655
|
});
|
|
5650
5656
|
|
|
5651
5657
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5652
|
-
DailyMotion_1.DailyMotion;
|
|
5658
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5653
5659
|
|
|
5654
5660
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5655
5661
|
|
|
@@ -5658,7 +5664,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5658
5664
|
});
|
|
5659
5665
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5660
5666
|
|
|
5661
|
-
var _react = _interopRequireWildcard(React__default
|
|
5667
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5662
5668
|
|
|
5663
5669
|
|
|
5664
5670
|
|
|
@@ -5682,16 +5688,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5682
5688
|
|
|
5683
5689
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5684
5690
|
|
|
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
5691
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5688
5692
|
|
|
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
5693
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5694
5694
|
|
|
5695
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5696
|
+
|
|
5695
5697
|
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
5698
|
|
|
5697
5699
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5702,12 +5704,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5702
5704
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5703
5705
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5704
5706
|
|
|
5705
|
-
var Mixcloud =
|
|
5707
|
+
var Mixcloud =
|
|
5708
|
+
/*#__PURE__*/
|
|
5709
|
+
function (_Component) {
|
|
5706
5710
|
_inherits(Mixcloud, _Component);
|
|
5707
5711
|
|
|
5708
|
-
var _super = _createSuper(Mixcloud);
|
|
5709
|
-
|
|
5710
5712
|
function Mixcloud() {
|
|
5713
|
+
var _getPrototypeOf2;
|
|
5714
|
+
|
|
5711
5715
|
var _this;
|
|
5712
5716
|
|
|
5713
5717
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5716,7 +5720,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5716
5720
|
args[_key] = arguments[_key];
|
|
5717
5721
|
}
|
|
5718
5722
|
|
|
5719
|
-
_this =
|
|
5723
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5720
5724
|
|
|
5721
5725
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5722
5726
|
|
|
@@ -5819,7 +5823,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5819
5823
|
})); // We have to give the iframe a key here to prevent a
|
|
5820
5824
|
// weird dialog appearing when loading a new track
|
|
5821
5825
|
|
|
5822
|
-
return
|
|
5826
|
+
return _react["default"].createElement("iframe", {
|
|
5823
5827
|
key: id,
|
|
5824
5828
|
ref: this.ref,
|
|
5825
5829
|
style: style,
|
|
@@ -5848,7 +5852,7 @@ exports["default"] = _default;
|
|
|
5848
5852
|
});
|
|
5849
5853
|
|
|
5850
5854
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5851
|
-
Mixcloud_1.Mixcloud;
|
|
5855
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5852
5856
|
|
|
5853
5857
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5854
5858
|
|
|
@@ -5857,7 +5861,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5857
5861
|
});
|
|
5858
5862
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5859
5863
|
|
|
5860
|
-
var _react = _interopRequireWildcard(React__default
|
|
5864
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5861
5865
|
|
|
5862
5866
|
|
|
5863
5867
|
|
|
@@ -5879,33 +5883,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5879
5883
|
|
|
5880
5884
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5881
5885
|
|
|
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
5886
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5885
5887
|
|
|
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
5888
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5891
5889
|
|
|
5890
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5891
|
+
|
|
5892
5892
|
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
5893
|
|
|
5894
5894
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5895
5895
|
|
|
5896
5896
|
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
5897
|
|
|
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
5898
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5905
5899
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5906
5900
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5907
5901
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5908
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5902
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5909
5903
|
var HLS_GLOBAL = 'Hls';
|
|
5910
5904
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5911
5905
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5914,11 +5908,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5914
5908
|
|
|
5915
5909
|
function canPlay(url) {
|
|
5916
5910
|
if (url instanceof Array) {
|
|
5917
|
-
var
|
|
5918
|
-
|
|
5911
|
+
var _iteratorNormalCompletion = true;
|
|
5912
|
+
var _didIteratorError = false;
|
|
5913
|
+
var _iteratorError = undefined;
|
|
5919
5914
|
|
|
5920
5915
|
try {
|
|
5921
|
-
for (_iterator.
|
|
5916
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5922
5917
|
var item = _step.value;
|
|
5923
5918
|
|
|
5924
5919
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5930,9 +5925,18 @@ function canPlay(url) {
|
|
|
5930
5925
|
}
|
|
5931
5926
|
}
|
|
5932
5927
|
} catch (err) {
|
|
5933
|
-
|
|
5928
|
+
_didIteratorError = true;
|
|
5929
|
+
_iteratorError = err;
|
|
5934
5930
|
} finally {
|
|
5935
|
-
|
|
5931
|
+
try {
|
|
5932
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5933
|
+
_iterator["return"]();
|
|
5934
|
+
}
|
|
5935
|
+
} finally {
|
|
5936
|
+
if (_didIteratorError) {
|
|
5937
|
+
throw _iteratorError;
|
|
5938
|
+
}
|
|
5939
|
+
}
|
|
5936
5940
|
}
|
|
5937
5941
|
|
|
5938
5942
|
return false;
|
|
@@ -5956,12 +5960,14 @@ function canEnablePIP(url) {
|
|
|
5956
5960
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5957
5961
|
}
|
|
5958
5962
|
|
|
5959
|
-
var FilePlayer =
|
|
5963
|
+
var FilePlayer =
|
|
5964
|
+
/*#__PURE__*/
|
|
5965
|
+
function (_Component) {
|
|
5960
5966
|
_inherits(FilePlayer, _Component);
|
|
5961
5967
|
|
|
5962
|
-
var _super = _createSuper(FilePlayer);
|
|
5963
|
-
|
|
5964
5968
|
function FilePlayer() {
|
|
5969
|
+
var _getPrototypeOf2;
|
|
5970
|
+
|
|
5965
5971
|
var _this;
|
|
5966
5972
|
|
|
5967
5973
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5970,7 +5976,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5970
5976
|
_args[_key] = arguments[_key];
|
|
5971
5977
|
}
|
|
5972
5978
|
|
|
5973
|
-
_this =
|
|
5979
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5974
5980
|
|
|
5975
5981
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5976
5982
|
var _this$props;
|
|
@@ -6057,19 +6063,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6057
6063
|
|
|
6058
6064
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6059
6065
|
if (typeof source === 'string') {
|
|
6060
|
-
return
|
|
6066
|
+
return _react["default"].createElement("source", {
|
|
6061
6067
|
key: index,
|
|
6062
6068
|
src: source
|
|
6063
6069
|
});
|
|
6064
6070
|
}
|
|
6065
6071
|
|
|
6066
|
-
return
|
|
6072
|
+
return _react["default"].createElement("source", _extends({
|
|
6067
6073
|
key: index
|
|
6068
6074
|
}, source));
|
|
6069
6075
|
});
|
|
6070
6076
|
|
|
6071
6077
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6072
|
-
return
|
|
6078
|
+
return _react["default"].createElement("track", _extends({
|
|
6073
6079
|
key: index
|
|
6074
6080
|
}, track));
|
|
6075
6081
|
});
|
|
@@ -6107,10 +6113,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6107
6113
|
key: "componentWillUnmount",
|
|
6108
6114
|
value: function componentWillUnmount() {
|
|
6109
6115
|
this.removeListeners(this.player);
|
|
6110
|
-
|
|
6111
|
-
if (this.hls) {
|
|
6112
|
-
this.hls.destroy();
|
|
6113
|
-
}
|
|
6114
6116
|
}
|
|
6115
6117
|
}, {
|
|
6116
6118
|
key: "addListeners",
|
|
@@ -6241,6 +6243,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6241
6243
|
value: function stop() {
|
|
6242
6244
|
this.player.removeAttribute('src');
|
|
6243
6245
|
|
|
6246
|
+
if (this.hls) {
|
|
6247
|
+
this.hls.destroy();
|
|
6248
|
+
}
|
|
6249
|
+
|
|
6244
6250
|
if (this.dash) {
|
|
6245
6251
|
this.dash.reset();
|
|
6246
6252
|
}
|
|
@@ -6352,7 +6358,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6352
6358
|
width: width === 'auto' ? width : '100%',
|
|
6353
6359
|
height: height === 'auto' ? height : '100%'
|
|
6354
6360
|
};
|
|
6355
|
-
return
|
|
6361
|
+
return _react["default"].createElement(Element, _extends({
|
|
6356
6362
|
ref: this.ref,
|
|
6357
6363
|
src: this.getSource(url),
|
|
6358
6364
|
style: style,
|
|
@@ -6382,7 +6388,7 @@ exports["default"] = _default;
|
|
|
6382
6388
|
});
|
|
6383
6389
|
|
|
6384
6390
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6385
|
-
FilePlayer_1.FilePlayer;
|
|
6391
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6386
6392
|
|
|
6387
6393
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6388
6394
|
|
|
@@ -6424,7 +6430,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6424
6430
|
});
|
|
6425
6431
|
exports["default"] = void 0;
|
|
6426
6432
|
|
|
6427
|
-
var _react = _interopRequireWildcard(React__default
|
|
6433
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6428
6434
|
|
|
6429
6435
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6430
6436
|
|
|
@@ -6442,16 +6448,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6442
6448
|
|
|
6443
6449
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6444
6450
|
|
|
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
6451
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6448
6452
|
|
|
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
6453
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6454
6454
|
|
|
6455
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6456
|
+
|
|
6455
6457
|
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
6458
|
|
|
6457
6459
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6460,12 +6462,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6460
6462
|
|
|
6461
6463
|
var ICON_SIZE = '64px';
|
|
6462
6464
|
|
|
6463
|
-
var Preview =
|
|
6465
|
+
var Preview =
|
|
6466
|
+
/*#__PURE__*/
|
|
6467
|
+
function (_Component) {
|
|
6464
6468
|
_inherits(Preview, _Component);
|
|
6465
6469
|
|
|
6466
|
-
var _super = _createSuper(Preview);
|
|
6467
|
-
|
|
6468
6470
|
function Preview() {
|
|
6471
|
+
var _getPrototypeOf2;
|
|
6472
|
+
|
|
6469
6473
|
var _this;
|
|
6470
6474
|
|
|
6471
6475
|
_classCallCheck(this, Preview);
|
|
@@ -6474,7 +6478,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6474
6478
|
args[_key] = arguments[_key];
|
|
6475
6479
|
}
|
|
6476
6480
|
|
|
6477
|
-
_this =
|
|
6481
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6478
6482
|
|
|
6479
6483
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6480
6484
|
|
|
@@ -6572,15 +6576,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6572
6576
|
}
|
|
6573
6577
|
};
|
|
6574
6578
|
|
|
6575
|
-
var defaultPlayIcon =
|
|
6579
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6576
6580
|
style: styles.shadow,
|
|
6577
6581
|
className: "react-player__shadow"
|
|
6578
|
-
},
|
|
6582
|
+
}, _react["default"].createElement("div", {
|
|
6579
6583
|
style: styles.playIcon,
|
|
6580
6584
|
className: "react-player__play-icon"
|
|
6581
6585
|
}));
|
|
6582
6586
|
|
|
6583
|
-
return
|
|
6587
|
+
return _react["default"].createElement("div", {
|
|
6584
6588
|
style: styles.preview,
|
|
6585
6589
|
className: "react-player__preview",
|
|
6586
6590
|
onClick: onClick
|
|
@@ -6603,7 +6607,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6603
6607
|
});
|
|
6604
6608
|
exports["default"] = renderPreloadPlayers;
|
|
6605
6609
|
|
|
6606
|
-
var _react = _interopRequireDefault(React__default
|
|
6610
|
+
var _react = _interopRequireDefault(React__default);
|
|
6607
6611
|
|
|
6608
6612
|
var _Player = _interopRequireDefault(Player_1);
|
|
6609
6613
|
|
|
@@ -6617,12 +6621,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6617
6621
|
|
|
6618
6622
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6619
6623
|
|
|
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
6624
|
var PRELOAD_PLAYERS = [{
|
|
6627
6625
|
Player: YouTube_1.YouTube,
|
|
6628
6626
|
configKey: 'youtube',
|
|
@@ -6643,16 +6641,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6643
6641
|
|
|
6644
6642
|
function renderPreloadPlayers(url, controls, config) {
|
|
6645
6643
|
var players = [];
|
|
6646
|
-
|
|
6647
|
-
var
|
|
6648
|
-
|
|
6644
|
+
var _iteratorNormalCompletion = true;
|
|
6645
|
+
var _didIteratorError = false;
|
|
6646
|
+
var _iteratorError = undefined;
|
|
6649
6647
|
|
|
6650
6648
|
try {
|
|
6651
|
-
for (_iterator.
|
|
6649
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6652
6650
|
var player = _step.value;
|
|
6653
6651
|
|
|
6654
6652
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6655
|
-
players.push(
|
|
6653
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6656
6654
|
key: player.Player.displayName,
|
|
6657
6655
|
activePlayer: player.Player,
|
|
6658
6656
|
url: player.url,
|
|
@@ -6664,9 +6662,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6664
6662
|
}
|
|
6665
6663
|
}
|
|
6666
6664
|
} catch (err) {
|
|
6667
|
-
|
|
6665
|
+
_didIteratorError = true;
|
|
6666
|
+
_iteratorError = err;
|
|
6668
6667
|
} finally {
|
|
6669
|
-
|
|
6668
|
+
try {
|
|
6669
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6670
|
+
_iterator["return"]();
|
|
6671
|
+
}
|
|
6672
|
+
} finally {
|
|
6673
|
+
if (_didIteratorError) {
|
|
6674
|
+
throw _iteratorError;
|
|
6675
|
+
}
|
|
6676
|
+
}
|
|
6670
6677
|
}
|
|
6671
6678
|
|
|
6672
6679
|
return players;
|
|
@@ -6742,7 +6749,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6742
6749
|
});
|
|
6743
6750
|
exports["default"] = void 0;
|
|
6744
6751
|
|
|
6745
|
-
var _react = _interopRequireWildcard(React__default
|
|
6752
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6746
6753
|
|
|
6747
6754
|
|
|
6748
6755
|
|
|
@@ -6790,17 +6797,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6790
6797
|
|
|
6791
6798
|
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
6799
|
|
|
6793
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6800
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6794
6801
|
|
|
6795
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6802
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6796
6803
|
|
|
6797
|
-
function
|
|
6804
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6798
6805
|
|
|
6799
|
-
function
|
|
6800
|
-
|
|
6801
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(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; }
|
|
6806
|
+
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
6807
|
|
|
6805
6808
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6806
6809
|
|
|
@@ -6808,16 +6811,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6808
6811
|
|
|
6809
6812
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6810
6813
|
|
|
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
6814
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6814
6815
|
|
|
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
6816
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6820
6817
|
|
|
6818
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6819
|
+
|
|
6821
6820
|
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
6821
|
|
|
6823
6822
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6827,12 +6826,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6827
6826
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6828
6827
|
var customPlayers = [];
|
|
6829
6828
|
|
|
6830
|
-
var ReactPlayer =
|
|
6829
|
+
var ReactPlayer =
|
|
6830
|
+
/*#__PURE__*/
|
|
6831
|
+
function (_Component) {
|
|
6831
6832
|
_inherits(ReactPlayer, _Component);
|
|
6832
6833
|
|
|
6833
|
-
var _super = _createSuper(ReactPlayer);
|
|
6834
|
-
|
|
6835
6834
|
function ReactPlayer() {
|
|
6835
|
+
var _getPrototypeOf2;
|
|
6836
|
+
|
|
6836
6837
|
var _this;
|
|
6837
6838
|
|
|
6838
6839
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6841,7 +6842,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6841
6842
|
args[_key] = arguments[_key];
|
|
6842
6843
|
}
|
|
6843
6844
|
|
|
6844
|
-
_this =
|
|
6845
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6845
6846
|
|
|
6846
6847
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6847
6848
|
|
|
@@ -6952,7 +6953,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6952
6953
|
key: "renderActivePlayer",
|
|
6953
6954
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6954
6955
|
if (!url) return null;
|
|
6955
|
-
return
|
|
6956
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6956
6957
|
key: activePlayer.displayName,
|
|
6957
6958
|
ref: this.activePlayerRef,
|
|
6958
6959
|
config: this.config,
|
|
@@ -6989,14 +6990,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6989
6990
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6990
6991
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6991
6992
|
|
|
6992
|
-
var preview =
|
|
6993
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6993
6994
|
url: url,
|
|
6994
6995
|
light: light,
|
|
6995
6996
|
playIcon: playIcon,
|
|
6996
6997
|
onClick: this.handleClickPreview
|
|
6997
6998
|
});
|
|
6998
6999
|
|
|
6999
|
-
return
|
|
7000
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
7000
7001
|
ref: this.wrapperRef,
|
|
7001
7002
|
style: _objectSpread({}, style, {
|
|
7002
7003
|
width: width,
|
|
@@ -7056,20 +7057,20 @@ var Audio = function Audio(_ref) {
|
|
|
7056
7057
|
var node = _ref.node;
|
|
7057
7058
|
|
|
7058
7059
|
if (node.uploadAudio) {
|
|
7059
|
-
return React__default
|
|
7060
|
+
return React__default.createElement(
|
|
7060
7061
|
'div',
|
|
7061
7062
|
{ className: 'audio d-block text-center mb-3' },
|
|
7062
|
-
React__default
|
|
7063
|
+
React__default.createElement(
|
|
7063
7064
|
'audio',
|
|
7064
7065
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7065
|
-
React__default
|
|
7066
|
-
React__default
|
|
7066
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7067
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7067
7068
|
'Your browser does not support the audio element.'
|
|
7068
7069
|
),
|
|
7069
|
-
node.caption && React__default
|
|
7070
|
+
node.caption && React__default.createElement(
|
|
7070
7071
|
'p',
|
|
7071
7072
|
{ style: { fontSize: '.9rem' } },
|
|
7072
|
-
React__default
|
|
7073
|
+
React__default.createElement(
|
|
7073
7074
|
'em',
|
|
7074
7075
|
null,
|
|
7075
7076
|
node.caption
|
|
@@ -7079,15 +7080,15 @@ var Audio = function Audio(_ref) {
|
|
|
7079
7080
|
} else if (node.audioFilePth) {
|
|
7080
7081
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7081
7082
|
if (hostname === 'embeds.audioboom.com') {
|
|
7082
|
-
return React__default
|
|
7083
|
+
return React__default.createElement(
|
|
7083
7084
|
'div',
|
|
7084
7085
|
null,
|
|
7085
|
-
React__default
|
|
7086
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7086
7087
|
' ',
|
|
7087
|
-
node.caption && React__default
|
|
7088
|
+
node.caption && React__default.createElement(
|
|
7088
7089
|
'p',
|
|
7089
7090
|
{ style: { fontSize: '.9rem' } },
|
|
7090
|
-
React__default
|
|
7091
|
+
React__default.createElement(
|
|
7091
7092
|
'em',
|
|
7092
7093
|
null,
|
|
7093
7094
|
node.caption
|
|
@@ -7095,14 +7096,14 @@ var Audio = function Audio(_ref) {
|
|
|
7095
7096
|
)
|
|
7096
7097
|
);
|
|
7097
7098
|
}
|
|
7098
|
-
return React__default
|
|
7099
|
+
return React__default.createElement(
|
|
7099
7100
|
'div',
|
|
7100
7101
|
{ className: 'audio' },
|
|
7101
|
-
React__default
|
|
7102
|
-
node.caption && React__default
|
|
7102
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7103
|
+
node.caption && React__default.createElement(
|
|
7103
7104
|
'p',
|
|
7104
7105
|
{ style: { fontSize: '.9rem' } },
|
|
7105
|
-
React__default
|
|
7106
|
+
React__default.createElement(
|
|
7106
7107
|
'em',
|
|
7107
7108
|
null,
|
|
7108
7109
|
node.caption
|
|
@@ -7121,34 +7122,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7121
7122
|
var showAuthorDetails = arguments[7];
|
|
7122
7123
|
|
|
7123
7124
|
if (authorName && authorURL) {
|
|
7124
|
-
return React__default
|
|
7125
|
+
return React__default.createElement(
|
|
7125
7126
|
'span',
|
|
7126
7127
|
null,
|
|
7127
|
-
React__default
|
|
7128
|
+
React__default.createElement(
|
|
7128
7129
|
'a',
|
|
7129
7130
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7130
7131
|
authorName
|
|
7131
7132
|
),
|
|
7132
|
-
showAuthorDetails && React__default
|
|
7133
|
+
showAuthorDetails && React__default.createElement(
|
|
7133
7134
|
reactBootstrap.Card,
|
|
7134
7135
|
{ className: 'author-details-card-' + index },
|
|
7135
|
-
React__default
|
|
7136
|
+
React__default.createElement(
|
|
7136
7137
|
reactBootstrap.Row,
|
|
7137
7138
|
null,
|
|
7138
|
-
profileImage && React__default
|
|
7139
|
+
profileImage && React__default.createElement(
|
|
7139
7140
|
reactBootstrap.Col,
|
|
7140
7141
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7141
|
-
React__default
|
|
7142
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7142
7143
|
),
|
|
7143
|
-
React__default
|
|
7144
|
+
React__default.createElement(
|
|
7144
7145
|
reactBootstrap.Col,
|
|
7145
7146
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7146
|
-
React__default
|
|
7147
|
+
React__default.createElement(
|
|
7147
7148
|
'div',
|
|
7148
7149
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7149
7150
|
authorName
|
|
7150
7151
|
),
|
|
7151
|
-
React__default
|
|
7152
|
+
React__default.createElement(
|
|
7152
7153
|
'p',
|
|
7153
7154
|
null,
|
|
7154
7155
|
biography
|
|
@@ -7156,7 +7157,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7156
7157
|
)
|
|
7157
7158
|
)
|
|
7158
7159
|
),
|
|
7159
|
-
React__default
|
|
7160
|
+
React__default.createElement(
|
|
7160
7161
|
'style',
|
|
7161
7162
|
{ jsx: 'true' },
|
|
7162
7163
|
'\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 +7165,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7164
7165
|
length !== index + 1 && ', '
|
|
7165
7166
|
);
|
|
7166
7167
|
} else if (authorName) {
|
|
7167
|
-
return React__default
|
|
7168
|
+
return React__default.createElement(
|
|
7168
7169
|
'span',
|
|
7169
7170
|
{ key: index },
|
|
7170
7171
|
authorName,
|
|
@@ -7266,7 +7267,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7266
7267
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7267
7268
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7268
7269
|
} else {
|
|
7269
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7270
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7270
7271
|
}
|
|
7271
7272
|
}
|
|
7272
7273
|
});
|
|
@@ -7320,13 +7321,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7320
7321
|
var queue = Math.floor(duration / 10);
|
|
7321
7322
|
var segment = Math.floor(current / queue);
|
|
7322
7323
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7323
|
-
Segment.report_video_event('Video Ready', main.
|
|
7324
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7324
7325
|
//autoplay
|
|
7325
7326
|
|
|
7326
7327
|
//Small pause before starting next video
|
|
7327
7328
|
setTimeout(function () {
|
|
7328
7329
|
//Youtube API to start video playing automatically
|
|
7329
|
-
var id = index$
|
|
7330
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7330
7331
|
event.target.loadVideoById(id);
|
|
7331
7332
|
}, 1500);
|
|
7332
7333
|
};
|
|
@@ -7341,7 +7342,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7341
7342
|
var segment = Math.floor(current / queue);
|
|
7342
7343
|
|
|
7343
7344
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7344
|
-
Segment.report_video_event('Video End', main.
|
|
7345
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7345
7346
|
setEndReported(true);
|
|
7346
7347
|
clearInterval(intervalID);
|
|
7347
7348
|
}
|
|
@@ -7392,7 +7393,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7392
7393
|
var segment = Math.floor(current / queue);
|
|
7393
7394
|
if (!queueProgress.includes(segment)) {
|
|
7394
7395
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7395
|
-
Segment.report_video_event('Video Segment', main.
|
|
7396
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7396
7397
|
queueProgress.push(segment);
|
|
7397
7398
|
}
|
|
7398
7399
|
};
|
|
@@ -7406,7 +7407,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7406
7407
|
var segment = Math.floor(current / queue);
|
|
7407
7408
|
|
|
7408
7409
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7409
|
-
Segment.report_video_event('Video Play', main.
|
|
7410
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7410
7411
|
|
|
7411
7412
|
if (!playReported) {
|
|
7412
7413
|
setPlayReported(true);
|
|
@@ -7425,7 +7426,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7425
7426
|
var segment = Math.floor(current / queue);
|
|
7426
7427
|
|
|
7427
7428
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7428
|
-
Segment.report_video_event('Video Pause', main.
|
|
7429
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7429
7430
|
};
|
|
7430
7431
|
|
|
7431
7432
|
// Youtube Options
|
|
@@ -7436,44 +7437,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7436
7437
|
}
|
|
7437
7438
|
};
|
|
7438
7439
|
|
|
7439
|
-
return React__default
|
|
7440
|
+
return React__default.createElement(
|
|
7440
7441
|
'div',
|
|
7441
7442
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7442
|
-
React__default
|
|
7443
|
+
React__default.createElement(
|
|
7443
7444
|
'div',
|
|
7444
7445
|
{ className: 'mt-2 mb-5' },
|
|
7445
|
-
series && React__default
|
|
7446
|
+
series && React__default.createElement(
|
|
7446
7447
|
'div',
|
|
7447
7448
|
{ style: { fontSize: '0.9rem' } },
|
|
7448
7449
|
article.title,
|
|
7449
7450
|
' - Episode ',
|
|
7450
7451
|
series
|
|
7451
7452
|
),
|
|
7452
|
-
Videos[series - 1] && React__default
|
|
7453
|
+
Videos[series - 1] && React__default.createElement(
|
|
7453
7454
|
'h1',
|
|
7454
7455
|
{ className: 'mb-3' },
|
|
7455
7456
|
Videos[series - 1].title
|
|
7456
7457
|
),
|
|
7457
|
-
React__default
|
|
7458
|
+
React__default.createElement(
|
|
7458
7459
|
'div',
|
|
7459
7460
|
null,
|
|
7460
7461
|
moment.moment(article.published).format('LL')
|
|
7461
7462
|
),
|
|
7462
|
-
React__default
|
|
7463
|
+
React__default.createElement(
|
|
7463
7464
|
'div',
|
|
7464
7465
|
{ className: 'mb-3' },
|
|
7465
7466
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7466
|
-
return React__default
|
|
7467
|
+
return React__default.createElement(
|
|
7467
7468
|
'span',
|
|
7468
7469
|
{ key: index },
|
|
7469
7470
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7470
7471
|
);
|
|
7471
7472
|
})
|
|
7472
7473
|
),
|
|
7473
|
-
React__default
|
|
7474
|
+
React__default.createElement(
|
|
7474
7475
|
'p',
|
|
7475
7476
|
null,
|
|
7476
|
-
React__default
|
|
7477
|
+
React__default.createElement(SocialShare, {
|
|
7477
7478
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7478
7479
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7479
7480
|
shareVia: meta.shareVia,
|
|
@@ -7488,22 +7489,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7488
7489
|
hideFacebook: meta.hideFBShare
|
|
7489
7490
|
})
|
|
7490
7491
|
),
|
|
7491
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7492
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7492
7493
|
'p',
|
|
7493
7494
|
{ className: 'mb-3' },
|
|
7494
|
-
React__default
|
|
7495
|
+
React__default.createElement(
|
|
7495
7496
|
'em',
|
|
7496
7497
|
null,
|
|
7497
7498
|
Videos[series - 1].intro
|
|
7498
7499
|
)
|
|
7499
7500
|
)
|
|
7500
7501
|
),
|
|
7501
|
-
React__default
|
|
7502
|
+
React__default.createElement(
|
|
7502
7503
|
'div',
|
|
7503
7504
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7504
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7505
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7505
7506
|
className: 'fluid-iframe',
|
|
7506
|
-
videoId: index$
|
|
7507
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7507
7508
|
opts: opts,
|
|
7508
7509
|
onReady: handleOnReady,
|
|
7509
7510
|
onPlay: handleOnPlay,
|
|
@@ -7512,10 +7513,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7512
7513
|
return handleOnEnd(e);
|
|
7513
7514
|
}
|
|
7514
7515
|
}),
|
|
7515
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7516
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7517
|
-
React__default
|
|
7518
|
-
series && React__default
|
|
7516
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7517
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7518
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7519
|
+
series && React__default.createElement(
|
|
7519
7520
|
'div',
|
|
7520
7521
|
{
|
|
7521
7522
|
className: 'vid-series',
|
|
@@ -7525,10 +7526,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7525
7526
|
maxHeight: '100%',
|
|
7526
7527
|
paddingBottom: '0'
|
|
7527
7528
|
} },
|
|
7528
|
-
React__default
|
|
7529
|
+
React__default.createElement(
|
|
7529
7530
|
'p',
|
|
7530
7531
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7531
|
-
React__default
|
|
7532
|
+
React__default.createElement(
|
|
7532
7533
|
'b',
|
|
7533
7534
|
{ style: { fontSize: '1.25em' } },
|
|
7534
7535
|
'Now Playing:'
|
|
@@ -7536,16 +7537,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7536
7537
|
' ',
|
|
7537
7538
|
seriesData[series ? series - 1 : 0].title
|
|
7538
7539
|
),
|
|
7539
|
-
vidUrl && React__default
|
|
7540
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7540
7541
|
)
|
|
7541
7542
|
),
|
|
7542
|
-
React__default
|
|
7543
|
-
React__default
|
|
7543
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7544
|
+
React__default.createElement(
|
|
7544
7545
|
'div',
|
|
7545
7546
|
{ className: 'vid-text' },
|
|
7546
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7547
|
+
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
7548
|
),
|
|
7548
|
-
React__default
|
|
7549
|
+
React__default.createElement(
|
|
7549
7550
|
'style',
|
|
7550
7551
|
{ jsx: 'true' },
|
|
7551
7552
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7553,14 +7554,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7553
7554
|
);
|
|
7554
7555
|
};
|
|
7555
7556
|
|
|
7556
|
-
var Poll
|
|
7557
|
-
var node = _ref.node
|
|
7558
|
-
_ref.client
|
|
7559
|
-
_ref.pageview
|
|
7560
|
-
_ref.videoAccountIDs
|
|
7561
|
-
|
|
7562
|
-
_ref.showVotes
|
|
7563
|
-
|
|
7557
|
+
var Poll = function Poll(_ref) {
|
|
7558
|
+
var node = _ref.node,
|
|
7559
|
+
client = _ref.client,
|
|
7560
|
+
pageview = _ref.pageview,
|
|
7561
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7562
|
+
onVote = _ref.onVote,
|
|
7563
|
+
_ref$showVotes = _ref.showVotes,
|
|
7564
|
+
getSerializers = _ref.getSerializers;
|
|
7564
7565
|
|
|
7565
7566
|
var _useState = React.useState(null),
|
|
7566
7567
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7598,67 +7599,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7598
7599
|
return acc;
|
|
7599
7600
|
}
|
|
7600
7601
|
}, 0);
|
|
7601
|
-
return React__default
|
|
7602
|
-
React__default
|
|
7602
|
+
return React__default.createElement(
|
|
7603
|
+
React__default.Fragment,
|
|
7603
7604
|
null,
|
|
7604
|
-
question && React__default
|
|
7605
|
+
question && React__default.createElement(
|
|
7605
7606
|
'p',
|
|
7606
7607
|
{ className: 'font-weight-bold' },
|
|
7607
7608
|
question
|
|
7608
7609
|
),
|
|
7609
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7610
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7610
7611
|
'form',
|
|
7611
7612
|
{ onSubmit: function onSubmit(e) {
|
|
7612
7613
|
return onSubmitPoll(e);
|
|
7613
7614
|
} },
|
|
7614
7615
|
choices && choices.map(function (choice) {
|
|
7615
|
-
return React__default
|
|
7616
|
+
return React__default.createElement(
|
|
7616
7617
|
'div',
|
|
7617
7618
|
{ key: choice._key },
|
|
7618
|
-
React__default
|
|
7619
|
+
React__default.createElement(
|
|
7619
7620
|
'label',
|
|
7620
7621
|
{ className: 'pl-2' },
|
|
7621
|
-
React__default
|
|
7622
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7622
7623
|
return setSelectedChoice(e.target.value);
|
|
7623
7624
|
} }),
|
|
7624
7625
|
' ' + choice.choiceText
|
|
7625
7626
|
)
|
|
7626
7627
|
);
|
|
7627
7628
|
}),
|
|
7628
|
-
React__default
|
|
7629
|
+
React__default.createElement(
|
|
7629
7630
|
reactBootstrap.Button,
|
|
7630
7631
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7631
7632
|
'Vote'
|
|
7632
7633
|
)
|
|
7633
7634
|
),
|
|
7634
|
-
React__default
|
|
7635
|
+
React__default.createElement(
|
|
7635
7636
|
'div',
|
|
7636
7637
|
{ className: 'progress-container' },
|
|
7637
7638
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7638
7639
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7639
|
-
return React__default
|
|
7640
|
+
return React__default.createElement(
|
|
7640
7641
|
'div',
|
|
7641
7642
|
{ key: choice._key, className: 'mb-3' },
|
|
7642
|
-
React__default
|
|
7643
|
+
React__default.createElement(
|
|
7643
7644
|
'div',
|
|
7644
7645
|
{ className: 'correct-answer' },
|
|
7645
|
-
React__default
|
|
7646
|
+
React__default.createElement(
|
|
7646
7647
|
'div',
|
|
7647
7648
|
null,
|
|
7648
7649
|
choice.choiceText
|
|
7649
7650
|
),
|
|
7650
|
-
choice.choiceAnswer === true && React__default
|
|
7651
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7651
7652
|
'div',
|
|
7652
7653
|
null,
|
|
7653
|
-
React__default
|
|
7654
|
+
React__default.createElement(
|
|
7654
7655
|
'span',
|
|
7655
7656
|
{ style: { color: 'limegreen' } },
|
|
7656
7657
|
'Correct!'
|
|
7657
7658
|
)
|
|
7658
7659
|
)
|
|
7659
7660
|
),
|
|
7660
|
-
React__default
|
|
7661
|
-
React__default
|
|
7661
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7662
|
+
React__default.createElement(
|
|
7662
7663
|
'span',
|
|
7663
7664
|
{ className: 'float-right' },
|
|
7664
7665
|
percentage,
|
|
@@ -7669,14 +7670,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7669
7670
|
);
|
|
7670
7671
|
})
|
|
7671
7672
|
),
|
|
7672
|
-
showAnswer && React__default
|
|
7673
|
+
showAnswer && React__default.createElement(
|
|
7673
7674
|
'h4',
|
|
7674
7675
|
{ className: 'text-center small p-3' },
|
|
7675
7676
|
'Total Votes: ',
|
|
7676
7677
|
choicesTotalCount
|
|
7677
7678
|
),
|
|
7678
|
-
showAnswer && response && React__default
|
|
7679
|
-
React__default
|
|
7679
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7680
|
+
React__default.createElement(
|
|
7680
7681
|
'style',
|
|
7681
7682
|
{ jsx: 'true' },
|
|
7682
7683
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7694,22 +7695,22 @@ core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
|
7694
7695
|
}
|
|
7695
7696
|
});
|
|
7696
7697
|
|
|
7697
|
-
var values
|
|
7698
|
+
var values = core_getIteratorMethod._core.Object.values;
|
|
7698
7699
|
|
|
7699
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7700
|
-
module.exports = { "default": values
|
|
7700
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7701
|
+
module.exports = { "default": values, __esModule: true };
|
|
7701
7702
|
});
|
|
7702
7703
|
|
|
7703
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7704
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7704
7705
|
|
|
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
|
-
|
|
7706
|
+
var Poll$1 = function Poll(_ref) {
|
|
7707
|
+
var node = _ref.node,
|
|
7708
|
+
client = _ref.client,
|
|
7709
|
+
pageview = _ref.pageview,
|
|
7710
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7711
|
+
onVote = _ref.onVote,
|
|
7712
|
+
_ref$showVotes = _ref.showVotes,
|
|
7713
|
+
getSerializers = _ref.getSerializers;
|
|
7713
7714
|
|
|
7714
7715
|
var _useState = React.useState(null),
|
|
7715
7716
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7775,67 +7776,67 @@ var Poll = function Poll(_ref) {
|
|
|
7775
7776
|
return acc;
|
|
7776
7777
|
}
|
|
7777
7778
|
}, 0);
|
|
7778
|
-
return React__default
|
|
7779
|
-
React__default
|
|
7779
|
+
return React__default.createElement(
|
|
7780
|
+
React__default.Fragment,
|
|
7780
7781
|
null,
|
|
7781
|
-
question && React__default
|
|
7782
|
+
question && React__default.createElement(
|
|
7782
7783
|
'p',
|
|
7783
7784
|
{ className: 'font-weight-bold' },
|
|
7784
7785
|
question
|
|
7785
7786
|
),
|
|
7786
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7787
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7787
7788
|
'form',
|
|
7788
7789
|
{ onSubmit: function onSubmit(e) {
|
|
7789
7790
|
return onSubmitPoll(e);
|
|
7790
7791
|
} },
|
|
7791
7792
|
choices && choices.map(function (choice) {
|
|
7792
|
-
return React__default
|
|
7793
|
+
return React__default.createElement(
|
|
7793
7794
|
'div',
|
|
7794
7795
|
{ key: choice._key },
|
|
7795
|
-
React__default
|
|
7796
|
+
React__default.createElement(
|
|
7796
7797
|
'label',
|
|
7797
7798
|
{ className: 'pl-2' },
|
|
7798
|
-
React__default
|
|
7799
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7799
7800
|
return setSelectedChoice(e.target.value);
|
|
7800
7801
|
} }),
|
|
7801
7802
|
' ' + choice.choiceText
|
|
7802
7803
|
)
|
|
7803
7804
|
);
|
|
7804
7805
|
}),
|
|
7805
|
-
React__default
|
|
7806
|
+
React__default.createElement(
|
|
7806
7807
|
reactBootstrap.Button,
|
|
7807
7808
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7808
7809
|
'Vote'
|
|
7809
7810
|
)
|
|
7810
7811
|
),
|
|
7811
|
-
React__default
|
|
7812
|
+
React__default.createElement(
|
|
7812
7813
|
'div',
|
|
7813
7814
|
{ className: 'progress-container' },
|
|
7814
7815
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7815
7816
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7816
|
-
return React__default
|
|
7817
|
+
return React__default.createElement(
|
|
7817
7818
|
'div',
|
|
7818
7819
|
{ key: choice._key, className: 'mb-3' },
|
|
7819
|
-
React__default
|
|
7820
|
+
React__default.createElement(
|
|
7820
7821
|
'div',
|
|
7821
7822
|
{ className: 'correct-answer' },
|
|
7822
|
-
React__default
|
|
7823
|
+
React__default.createElement(
|
|
7823
7824
|
'div',
|
|
7824
7825
|
null,
|
|
7825
7826
|
choice.choiceText
|
|
7826
7827
|
),
|
|
7827
|
-
choice.choiceAnswer === true && React__default
|
|
7828
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7828
7829
|
'div',
|
|
7829
7830
|
null,
|
|
7830
|
-
React__default
|
|
7831
|
+
React__default.createElement(
|
|
7831
7832
|
'span',
|
|
7832
7833
|
{ style: { color: 'limegreen' } },
|
|
7833
7834
|
'Correct!'
|
|
7834
7835
|
)
|
|
7835
7836
|
)
|
|
7836
7837
|
),
|
|
7837
|
-
React__default
|
|
7838
|
-
React__default
|
|
7838
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7839
|
+
React__default.createElement(
|
|
7839
7840
|
'span',
|
|
7840
7841
|
{ className: 'float-right' },
|
|
7841
7842
|
percentage,
|
|
@@ -7846,14 +7847,14 @@ var Poll = function Poll(_ref) {
|
|
|
7846
7847
|
);
|
|
7847
7848
|
})
|
|
7848
7849
|
),
|
|
7849
|
-
showAnswer && React__default
|
|
7850
|
+
showAnswer && React__default.createElement(
|
|
7850
7851
|
'h4',
|
|
7851
7852
|
{ className: 'text-center small p-3' },
|
|
7852
7853
|
'Total Votes: ',
|
|
7853
7854
|
choicesTotalCount
|
|
7854
7855
|
),
|
|
7855
|
-
showAnswer && response && React__default
|
|
7856
|
-
React__default
|
|
7856
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7857
|
+
React__default.createElement(
|
|
7857
7858
|
'style',
|
|
7858
7859
|
{ jsx: 'true' },
|
|
7859
7860
|
'\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 +7862,7 @@ var Poll = function Poll(_ref) {
|
|
|
7861
7862
|
);
|
|
7862
7863
|
};
|
|
7863
7864
|
|
|
7864
|
-
var numberOfPaginations = main.
|
|
7865
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7865
7866
|
|
|
7866
7867
|
var Quiz = function Quiz(_ref) {
|
|
7867
7868
|
var quizzes = _ref.quizzes,
|
|
@@ -7979,34 +7980,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7979
7980
|
};
|
|
7980
7981
|
|
|
7981
7982
|
var renderPagination = function renderPagination() {
|
|
7982
|
-
return React__default
|
|
7983
|
-
|
|
7984
|
-
{ className: 'p-0 m-0', size: main.
|
|
7985
|
-
React__default
|
|
7983
|
+
return React__default.createElement(
|
|
7984
|
+
Pagination$1,
|
|
7985
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7986
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7986
7987
|
return changePage('first');
|
|
7987
7988
|
}, disabled: currentPage === 1 }),
|
|
7988
|
-
React__default
|
|
7989
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7989
7990
|
return changePage('prev');
|
|
7990
7991
|
}, disabled: currentPage === 1 }),
|
|
7991
|
-
React__default
|
|
7992
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7992
7993
|
return renderNewPages('prev');
|
|
7993
7994
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7994
7995
|
pages.map(function (page) {
|
|
7995
|
-
return React__default
|
|
7996
|
-
|
|
7996
|
+
return React__default.createElement(
|
|
7997
|
+
Pagination$1.Item,
|
|
7997
7998
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7998
7999
|
return changePage(page);
|
|
7999
8000
|
} },
|
|
8000
8001
|
page
|
|
8001
8002
|
);
|
|
8002
8003
|
}),
|
|
8003
|
-
React__default
|
|
8004
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
8004
8005
|
return renderNewPages('next');
|
|
8005
8006
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8006
|
-
React__default
|
|
8007
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
8007
8008
|
return changePage('next');
|
|
8008
8009
|
}, disabled: currentPage === pageCount }),
|
|
8009
|
-
React__default
|
|
8010
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
8010
8011
|
return changePage('last');
|
|
8011
8012
|
}, disabled: currentPage === pageCount })
|
|
8012
8013
|
);
|
|
@@ -8089,51 +8090,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8089
8090
|
}
|
|
8090
8091
|
};
|
|
8091
8092
|
|
|
8092
|
-
return React__default
|
|
8093
|
-
React__default
|
|
8093
|
+
return React__default.createElement(
|
|
8094
|
+
React__default.Fragment,
|
|
8094
8095
|
null,
|
|
8095
|
-
quizzes[currentPage - 1] && React__default
|
|
8096
|
-
React__default
|
|
8096
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8097
|
+
React__default.Fragment,
|
|
8097
8098
|
null,
|
|
8098
|
-
React__default
|
|
8099
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8099
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8100
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8100
8101
|
'form',
|
|
8101
8102
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8102
8103
|
return e.preventDefault();
|
|
8103
8104
|
} },
|
|
8104
8105
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8105
|
-
return React__default
|
|
8106
|
+
return React__default.createElement(
|
|
8106
8107
|
'div',
|
|
8107
8108
|
{ key: answer._key },
|
|
8108
|
-
React__default
|
|
8109
|
+
React__default.createElement(
|
|
8109
8110
|
'label',
|
|
8110
8111
|
{ className: 'pl-2' },
|
|
8111
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8112
|
+
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
8113
|
' ' + answer.answerText
|
|
8113
8114
|
)
|
|
8114
8115
|
);
|
|
8115
8116
|
})
|
|
8116
8117
|
)
|
|
8117
8118
|
),
|
|
8118
|
-
!showAnswer && React__default
|
|
8119
|
-
|
|
8119
|
+
!showAnswer && React__default.createElement(
|
|
8120
|
+
Button,
|
|
8120
8121
|
{ onClick: function onClick() {
|
|
8121
8122
|
return checkAnswers();
|
|
8122
8123
|
}, variant: 'info', block: true },
|
|
8123
8124
|
'Please click here for answer'
|
|
8124
8125
|
),
|
|
8125
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8126
|
-
React__default
|
|
8126
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8127
|
+
React__default.Fragment,
|
|
8127
8128
|
null,
|
|
8128
|
-
React__default
|
|
8129
|
+
React__default.createElement(
|
|
8129
8130
|
'h4',
|
|
8130
8131
|
null,
|
|
8131
8132
|
'Answer:'
|
|
8132
8133
|
),
|
|
8133
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8134
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8134
8135
|
),
|
|
8135
|
-
React__default
|
|
8136
|
-
pageCount > 1 && React__default
|
|
8136
|
+
React__default.createElement('br', null),
|
|
8137
|
+
pageCount > 1 && React__default.createElement(
|
|
8137
8138
|
'div',
|
|
8138
8139
|
{ className: 'd-flex justify-content-center' },
|
|
8139
8140
|
renderPagination()
|
|
@@ -8144,19 +8145,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8144
8145
|
var Leads = function Leads(_ref) {
|
|
8145
8146
|
var url = _ref.url;
|
|
8146
8147
|
|
|
8147
|
-
return React__default
|
|
8148
|
+
return React__default.createElement(
|
|
8148
8149
|
'div',
|
|
8149
8150
|
{ className: 'd-block text-center mb-3' },
|
|
8150
|
-
React__default
|
|
8151
|
+
React__default.createElement(
|
|
8151
8152
|
'style',
|
|
8152
8153
|
{ jsx: 'true' },
|
|
8153
8154
|
'\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
8155
|
),
|
|
8155
|
-
url && React__default
|
|
8156
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8156
8157
|
);
|
|
8157
8158
|
};
|
|
8158
8159
|
|
|
8159
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8160
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8160
8161
|
var slides = _ref.node.slides,
|
|
8161
8162
|
client = _ref.client,
|
|
8162
8163
|
pageview = _ref.pageview,
|
|
@@ -8192,53 +8193,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8192
8193
|
setCarouselIndex(selectedIndex);
|
|
8193
8194
|
};
|
|
8194
8195
|
|
|
8195
|
-
return React__default
|
|
8196
|
+
return React__default.createElement(
|
|
8196
8197
|
'div',
|
|
8197
8198
|
{ className: 'mt-3 mb-4' },
|
|
8198
|
-
React__default
|
|
8199
|
+
React__default.createElement(
|
|
8199
8200
|
reactBootstrap.Carousel,
|
|
8200
8201
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8201
8202
|
slides && slides.map(function (slide) {
|
|
8202
8203
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8203
|
-
return React__default
|
|
8204
|
+
return React__default.createElement(
|
|
8204
8205
|
reactBootstrap.Carousel.Item,
|
|
8205
8206
|
{ key: slide._key },
|
|
8206
|
-
React__default
|
|
8207
|
+
React__default.createElement(
|
|
8207
8208
|
'a',
|
|
8208
8209
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8209
|
-
React__default
|
|
8210
|
+
React__default.createElement(
|
|
8210
8211
|
'div',
|
|
8211
8212
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8212
|
-
React__default
|
|
8213
|
+
React__default.createElement(
|
|
8213
8214
|
index$2.LazyLoad,
|
|
8214
8215
|
null,
|
|
8215
|
-
React__default
|
|
8216
|
+
React__default.createElement(
|
|
8216
8217
|
'picture',
|
|
8217
8218
|
null,
|
|
8218
|
-
React__default
|
|
8219
|
-
React__default
|
|
8220
|
-
React__default
|
|
8221
|
-
React__default
|
|
8219
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8220
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8221
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8222
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8222
8223
|
)
|
|
8223
8224
|
)
|
|
8224
8225
|
)
|
|
8225
8226
|
),
|
|
8226
|
-
React__default
|
|
8227
|
+
React__default.createElement(
|
|
8227
8228
|
'div',
|
|
8228
8229
|
{ className: 'p-2' },
|
|
8229
|
-
slide.slideshowImage.caption && React__default
|
|
8230
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8230
8231
|
'h3',
|
|
8231
8232
|
{ style: { padding: '0px' } },
|
|
8232
8233
|
slide.slideshowImage.caption
|
|
8233
8234
|
),
|
|
8234
|
-
slide.description && React__default
|
|
8235
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8235
8236
|
)
|
|
8236
8237
|
);
|
|
8237
8238
|
}
|
|
8238
8239
|
return null;
|
|
8239
8240
|
})
|
|
8240
8241
|
),
|
|
8241
|
-
React__default
|
|
8242
|
+
React__default.createElement(
|
|
8242
8243
|
'style',
|
|
8243
8244
|
{ jsx: 'true' },
|
|
8244
8245
|
'\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 +8258,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8257
8258
|
sizes = _props$node.sizes,
|
|
8258
8259
|
sizeMapping = _props$node.sizeMapping;
|
|
8259
8260
|
|
|
8260
|
-
return React__default
|
|
8261
|
+
return React__default.createElement(
|
|
8261
8262
|
'div',
|
|
8262
8263
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8263
|
-
React__default
|
|
8264
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8264
8265
|
);
|
|
8265
8266
|
};
|
|
8266
8267
|
|
|
@@ -8271,15 +8272,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8271
8272
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8272
8273
|
|
|
8273
8274
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8274
|
-
return React__default
|
|
8275
|
+
return React__default.createElement(
|
|
8275
8276
|
'section',
|
|
8276
8277
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8277
|
-
Caption && React__default
|
|
8278
|
+
Caption && React__default.createElement(
|
|
8278
8279
|
'h4',
|
|
8279
8280
|
{ className: 'formstack-caption' },
|
|
8280
8281
|
Caption
|
|
8281
8282
|
),
|
|
8282
|
-
React__default
|
|
8283
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8283
8284
|
);
|
|
8284
8285
|
};
|
|
8285
8286
|
|
|
@@ -8295,36 +8296,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8295
8296
|
}
|
|
8296
8297
|
});
|
|
8297
8298
|
if (medias && medias.length > 0) {
|
|
8298
|
-
return React__default
|
|
8299
|
+
return React__default.createElement(
|
|
8299
8300
|
'div',
|
|
8300
8301
|
{ className: 'multi-media-container' },
|
|
8301
|
-
React__default
|
|
8302
|
-
|
|
8302
|
+
React__default.createElement(
|
|
8303
|
+
Row,
|
|
8303
8304
|
{ noGutters: true },
|
|
8304
8305
|
medias.map(function (media) {
|
|
8305
|
-
return React__default
|
|
8306
|
-
|
|
8306
|
+
return React__default.createElement(
|
|
8307
|
+
Col,
|
|
8307
8308
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8308
|
-
React__default
|
|
8309
|
+
React__default.createElement(
|
|
8309
8310
|
'a',
|
|
8310
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8311
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8311
8312
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8312
|
-
React__default
|
|
8313
|
+
React__default.createElement(
|
|
8313
8314
|
'div',
|
|
8314
8315
|
{ className: 'multi-media-image-container' },
|
|
8315
|
-
imageBox && React__default
|
|
8316
|
+
imageBox && React__default.createElement(
|
|
8316
8317
|
index$2.LazyLoad,
|
|
8317
8318
|
{ once: true },
|
|
8318
|
-
React__default
|
|
8319
|
+
React__default.createElement(
|
|
8319
8320
|
'picture',
|
|
8320
8321
|
null,
|
|
8321
|
-
React__default
|
|
8322
|
-
React__default
|
|
8323
|
-
React__default
|
|
8324
|
-
React__default
|
|
8322
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8323
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8324
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8325
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8325
8326
|
)
|
|
8326
8327
|
),
|
|
8327
|
-
media.caption && React__default
|
|
8328
|
+
media.caption && React__default.createElement(
|
|
8328
8329
|
'span',
|
|
8329
8330
|
{ className: 'multi-media-caption' },
|
|
8330
8331
|
media.caption
|
|
@@ -8334,7 +8335,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8334
8335
|
);
|
|
8335
8336
|
})
|
|
8336
8337
|
),
|
|
8337
|
-
React__default
|
|
8338
|
+
React__default.createElement(
|
|
8338
8339
|
'style',
|
|
8339
8340
|
{ jsx: 'true' },
|
|
8340
8341
|
'\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 +8346,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8345
8346
|
};
|
|
8346
8347
|
|
|
8347
8348
|
var InscreenSensor = function (_React$Component) {
|
|
8348
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8349
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8349
8350
|
|
|
8350
8351
|
function InscreenSensor(props) {
|
|
8351
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8352
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8352
8353
|
|
|
8353
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8354
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8354
8355
|
|
|
8355
8356
|
_this.scrollHandler = function () {
|
|
8356
8357
|
var visible = _this.checkInside();
|
|
@@ -8381,12 +8382,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8381
8382
|
}
|
|
8382
8383
|
};
|
|
8383
8384
|
|
|
8384
|
-
_this.wraperRef = React__default
|
|
8385
|
+
_this.wraperRef = React__default.createRef();
|
|
8385
8386
|
_this.visible = false;
|
|
8386
8387
|
return _this;
|
|
8387
8388
|
}
|
|
8388
8389
|
|
|
8389
|
-
inherits._createClass(InscreenSensor, [{
|
|
8390
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8390
8391
|
key: 'componentDidMount',
|
|
8391
8392
|
value: function componentDidMount() {
|
|
8392
8393
|
this.visible = this.checkInside();
|
|
@@ -8409,7 +8410,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8409
8410
|
_props$id = _props.id,
|
|
8410
8411
|
id = _props$id === undefined ? '' : _props$id;
|
|
8411
8412
|
|
|
8412
|
-
return React__default
|
|
8413
|
+
return React__default.createElement(
|
|
8413
8414
|
'div',
|
|
8414
8415
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8415
8416
|
this.props.children
|
|
@@ -8418,7 +8419,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8418
8419
|
}]);
|
|
8419
8420
|
|
|
8420
8421
|
return InscreenSensor;
|
|
8421
|
-
}(React__default
|
|
8422
|
+
}(React__default.Component);
|
|
8422
8423
|
|
|
8423
8424
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8424
8425
|
var nodes = _ref.nodes,
|
|
@@ -8527,33 +8528,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8527
8528
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8528
8529
|
var showReading = show ? 'showReading' : '';
|
|
8529
8530
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8530
|
-
return React__default
|
|
8531
|
+
return React__default.createElement(
|
|
8531
8532
|
'div',
|
|
8532
8533
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8533
|
-
React__default
|
|
8534
|
+
React__default.createElement(
|
|
8534
8535
|
'a',
|
|
8535
8536
|
{ onClick: function onClick(e) {
|
|
8536
8537
|
return articleCardClickHandler(e);
|
|
8537
8538
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8538
|
-
React__default
|
|
8539
|
+
React__default.createElement(
|
|
8539
8540
|
'div',
|
|
8540
8541
|
{ className: 'prevNext-thumbnail' },
|
|
8541
|
-
React__default
|
|
8542
|
-
React__default
|
|
8542
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8543
|
+
React__default.createElement(
|
|
8543
8544
|
'div',
|
|
8544
8545
|
{ className: 'prevNext-reading ' + showReading },
|
|
8545
8546
|
articleLabel
|
|
8546
8547
|
)
|
|
8547
8548
|
),
|
|
8548
|
-
React__default
|
|
8549
|
+
React__default.createElement(
|
|
8549
8550
|
'div',
|
|
8550
8551
|
{ className: 'prevNext-summary' },
|
|
8551
|
-
React__default
|
|
8552
|
+
React__default.createElement(
|
|
8552
8553
|
'div',
|
|
8553
8554
|
{ className: 'prevNext-publishDate' },
|
|
8554
8555
|
moment.moment(article.published).format('LL')
|
|
8555
8556
|
),
|
|
8556
|
-
React__default
|
|
8557
|
+
React__default.createElement(
|
|
8557
8558
|
'h2',
|
|
8558
8559
|
{ className: 'prevNext-title' },
|
|
8559
8560
|
article.title
|
|
@@ -8602,7 +8603,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8602
8603
|
|
|
8603
8604
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8604
8605
|
if (biography) {
|
|
8605
|
-
return React__default
|
|
8606
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8606
8607
|
}
|
|
8607
8608
|
};
|
|
8608
8609
|
|
|
@@ -8688,7 +8689,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8688
8689
|
//console.log('useLayoutEffect')
|
|
8689
8690
|
if (!firstLoad) {
|
|
8690
8691
|
setUpArrowClicked(false);
|
|
8691
|
-
if (main.
|
|
8692
|
+
if (main.main_36) {
|
|
8692
8693
|
grabLoadedAds();
|
|
8693
8694
|
} else {
|
|
8694
8695
|
scrollToArticle();
|
|
@@ -8712,7 +8713,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8712
8713
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8713
8714
|
if (pageview) pageview(path);
|
|
8714
8715
|
|
|
8715
|
-
if (!main.
|
|
8716
|
+
if (!main.main_36) {
|
|
8716
8717
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8717
8718
|
if (window.googletag && googletag.pubadsReady) {
|
|
8718
8719
|
index.lib_3.refresh();
|
|
@@ -8720,7 +8721,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8720
8721
|
});
|
|
8721
8722
|
}
|
|
8722
8723
|
//Refresh leaderboard ad on mobile
|
|
8723
|
-
if (main.
|
|
8724
|
+
if (main.main_36) {
|
|
8724
8725
|
var leaderboardSlotId = '';
|
|
8725
8726
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8726
8727
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8760,38 +8761,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8760
8761
|
setSensorVisible(false);
|
|
8761
8762
|
};
|
|
8762
8763
|
|
|
8763
|
-
return React__default
|
|
8764
|
-
React__default
|
|
8764
|
+
return React__default.createElement(
|
|
8765
|
+
React__default.Fragment,
|
|
8765
8766
|
null,
|
|
8766
|
-
React__default
|
|
8767
|
+
React__default.createElement(
|
|
8767
8768
|
'div',
|
|
8768
8769
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8769
|
-
React__default
|
|
8770
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8770
8771
|
return handleArrowClick();
|
|
8771
8772
|
} })
|
|
8772
8773
|
),
|
|
8773
|
-
React__default
|
|
8774
|
-
React__default
|
|
8774
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8775
|
+
React__default.createElement(
|
|
8775
8776
|
'div',
|
|
8776
8777
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8777
|
-
React__default
|
|
8778
|
+
React__default.createElement(
|
|
8778
8779
|
'h5',
|
|
8779
8780
|
{ className: 'objective-title' },
|
|
8780
8781
|
nodes.seriesTitle
|
|
8781
8782
|
),
|
|
8782
|
-
React__default
|
|
8783
|
+
React__default.createElement(
|
|
8783
8784
|
'div',
|
|
8784
8785
|
{ className: 'prevNextWrapper' },
|
|
8785
8786
|
PrevNextCards(false, -1)
|
|
8786
8787
|
)
|
|
8787
8788
|
),
|
|
8788
|
-
React__default
|
|
8789
|
-
React__default
|
|
8789
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8790
|
+
React__default.createElement(
|
|
8790
8791
|
'div',
|
|
8791
8792
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8792
|
-
main.
|
|
8793
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8793
8794
|
if (index === 0) {
|
|
8794
|
-
return React__default
|
|
8795
|
+
return React__default.createElement(
|
|
8795
8796
|
'div',
|
|
8796
8797
|
{
|
|
8797
8798
|
key: 'addid-1',
|
|
@@ -8811,14 +8812,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8811
8812
|
}
|
|
8812
8813
|
})
|
|
8813
8814
|
),
|
|
8814
|
-
React__default
|
|
8815
|
+
React__default.createElement(
|
|
8815
8816
|
'div',
|
|
8816
8817
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8817
8818
|
Articles.map(function (article, index) {
|
|
8818
|
-
return React__default
|
|
8819
|
+
return React__default.createElement(
|
|
8819
8820
|
'div',
|
|
8820
8821
|
{ key: article.title },
|
|
8821
|
-
React__default
|
|
8822
|
+
React__default.createElement(
|
|
8822
8823
|
InscreenSensor,
|
|
8823
8824
|
{
|
|
8824
8825
|
visible: sensorVisible,
|
|
@@ -8836,84 +8837,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8836
8837
|
}
|
|
8837
8838
|
}
|
|
8838
8839
|
} },
|
|
8839
|
-
React__default
|
|
8840
|
-
|
|
8840
|
+
React__default.createElement(
|
|
8841
|
+
Head,
|
|
8841
8842
|
null,
|
|
8842
|
-
currentTitle !== null && React__default
|
|
8843
|
+
currentTitle !== null && React__default.createElement(
|
|
8843
8844
|
'title',
|
|
8844
8845
|
{ key: 'title' },
|
|
8845
8846
|
currentTitle
|
|
8846
8847
|
),
|
|
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
|
|
8848
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8849
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8850
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8851
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8852
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8853
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8854
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8855
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8855
8856
|
),
|
|
8856
|
-
React__default
|
|
8857
|
+
React__default.createElement(
|
|
8857
8858
|
'article',
|
|
8858
8859
|
{ className: 'article-wrapper' },
|
|
8859
|
-
React__default
|
|
8860
|
+
React__default.createElement(
|
|
8860
8861
|
'div',
|
|
8861
8862
|
{ className: 'article-publishDate' },
|
|
8862
8863
|
moment.moment(article.published).format('LL')
|
|
8863
8864
|
),
|
|
8864
|
-
React__default
|
|
8865
|
+
React__default.createElement(
|
|
8865
8866
|
'div',
|
|
8866
8867
|
{ className: 'author-details-wrapper' },
|
|
8867
8868
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8868
|
-
return React__default
|
|
8869
|
+
return React__default.createElement(
|
|
8869
8870
|
'span',
|
|
8870
8871
|
{ key: index },
|
|
8871
8872
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8872
8873
|
);
|
|
8873
8874
|
})
|
|
8874
8875
|
),
|
|
8875
|
-
React__default
|
|
8876
|
+
React__default.createElement(
|
|
8876
8877
|
'h2',
|
|
8877
8878
|
{ className: 'article-title' },
|
|
8878
8879
|
article.title
|
|
8879
8880
|
),
|
|
8880
|
-
React__default
|
|
8881
|
+
React__default.createElement(
|
|
8881
8882
|
'div',
|
|
8882
8883
|
{ className: 'mt-2 mb-2' },
|
|
8883
|
-
React__default
|
|
8884
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8884
8885
|
serializers: getSerializers,
|
|
8885
8886
|
videoAccountIDs: accountIDs,
|
|
8886
8887
|
blocks: article.text,
|
|
8887
8888
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8888
8889
|
}, client.config())),
|
|
8889
|
-
React__default
|
|
8890
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8890
8891
|
),
|
|
8891
|
-
Articles.length > 1 && React__default
|
|
8892
|
-
React__default
|
|
8892
|
+
Articles.length > 1 && React__default.createElement(
|
|
8893
|
+
React__default.Fragment,
|
|
8893
8894
|
null,
|
|
8894
|
-
React__default
|
|
8895
|
+
React__default.createElement(
|
|
8895
8896
|
'div',
|
|
8896
8897
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8897
|
-
React__default
|
|
8898
|
+
React__default.createElement(
|
|
8898
8899
|
'h5',
|
|
8899
8900
|
{ className: 'objective-title' },
|
|
8900
8901
|
nodes.seriesTitle
|
|
8901
8902
|
),
|
|
8902
|
-
React__default
|
|
8903
|
+
React__default.createElement(
|
|
8903
8904
|
'div',
|
|
8904
8905
|
{ className: 'prevNextWrapper' },
|
|
8905
8906
|
PrevNextCards(true, index)
|
|
8906
8907
|
)
|
|
8907
8908
|
),
|
|
8908
|
-
React__default
|
|
8909
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8909
8910
|
)
|
|
8910
8911
|
),
|
|
8911
|
-
React__default
|
|
8912
|
+
React__default.createElement(
|
|
8912
8913
|
'div',
|
|
8913
8914
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8914
|
-
main.
|
|
8915
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8915
8916
|
if (innerIndex === 0) {
|
|
8916
|
-
return React__default
|
|
8917
|
+
return React__default.createElement(
|
|
8917
8918
|
'div',
|
|
8918
8919
|
{
|
|
8919
8920
|
key: 'addid-' + (index + 2),
|
|
@@ -8936,7 +8937,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8936
8937
|
)
|
|
8937
8938
|
);
|
|
8938
8939
|
}),
|
|
8939
|
-
React__default
|
|
8940
|
+
React__default.createElement(
|
|
8940
8941
|
'style',
|
|
8941
8942
|
{ jsx: 'true' },
|
|
8942
8943
|
'\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 +8967,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8966
8967
|
};
|
|
8967
8968
|
}, [handleClickOutside]);
|
|
8968
8969
|
|
|
8969
|
-
return React__default
|
|
8970
|
+
return React__default.createElement(
|
|
8970
8971
|
'div',
|
|
8971
8972
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8972
|
-
React__default
|
|
8973
|
-
React__default
|
|
8973
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8974
|
+
React__default.createElement(
|
|
8974
8975
|
'style',
|
|
8975
8976
|
{ jsx: 'true' },
|
|
8976
8977
|
'\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 +8985,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8984
8985
|
}
|
|
8985
8986
|
};
|
|
8986
8987
|
|
|
8987
|
-
var FigureImage
|
|
8988
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8988
8989
|
var node = _ref2.node,
|
|
8989
8990
|
client = _ref2.client,
|
|
8990
8991
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8992,13 +8993,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
|
8992
8993
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8993
8994
|
|
|
8994
8995
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8995
|
-
return React__default
|
|
8996
|
+
return React__default.createElement(
|
|
8996
8997
|
'picture',
|
|
8997
8998
|
null,
|
|
8998
|
-
React__default
|
|
8999
|
-
React__default
|
|
9000
|
-
React__default
|
|
9001
|
-
React__default
|
|
8999
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9000
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9001
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9002
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9002
9003
|
style: figureImageStyle,
|
|
9003
9004
|
className: 'figure-image',
|
|
9004
9005
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9049,30 +9050,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9049
9050
|
|
|
9050
9051
|
var renderTooltip = function renderTooltip(props) {
|
|
9051
9052
|
if (infoBox[0].title) {
|
|
9052
|
-
return React__default
|
|
9053
|
-
|
|
9053
|
+
return React__default.createElement(
|
|
9054
|
+
Popover,
|
|
9054
9055
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9055
|
-
React__default
|
|
9056
|
-
|
|
9056
|
+
React__default.createElement(
|
|
9057
|
+
Popover.Title,
|
|
9057
9058
|
{ as: 'h3' },
|
|
9058
9059
|
infoBox[0].title
|
|
9059
9060
|
),
|
|
9060
|
-
React__default
|
|
9061
|
-
|
|
9061
|
+
React__default.createElement(
|
|
9062
|
+
Popover.Content,
|
|
9062
9063
|
null,
|
|
9063
|
-
React__default
|
|
9064
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9064
9065
|
)
|
|
9065
9066
|
);
|
|
9066
9067
|
} else {
|
|
9067
|
-
return React__default
|
|
9068
|
-
|
|
9069
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9070
|
-
React__default
|
|
9068
|
+
return React__default.createElement(
|
|
9069
|
+
Tooltip,
|
|
9070
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9071
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9071
9072
|
);
|
|
9072
9073
|
}
|
|
9073
9074
|
};
|
|
9074
9075
|
|
|
9075
|
-
var FigureImageWOverLay = React__default
|
|
9076
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9076
9077
|
var node = _ref3.node,
|
|
9077
9078
|
client = _ref3.client,
|
|
9078
9079
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9080,32 +9081,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9080
9081
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9081
9082
|
|
|
9082
9083
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9083
|
-
var triggerAction = main.
|
|
9084
|
-
var placementLocation = main.
|
|
9085
|
-
return React__default
|
|
9084
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9085
|
+
var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9086
|
+
return React__default.createElement(
|
|
9086
9087
|
'picture',
|
|
9087
9088
|
null,
|
|
9088
|
-
React__default
|
|
9089
|
-
React__default
|
|
9090
|
-
React__default
|
|
9091
|
-
main.
|
|
9089
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9090
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9091
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9092
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9092
9093
|
style: figureImageStyle,
|
|
9093
9094
|
className: 'figure-image',
|
|
9094
9095
|
src: urlFor({ source: node, client: client }),
|
|
9095
9096
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9096
|
-
}, !link && !main.
|
|
9097
|
+
}, !link && !main.main_35 && {
|
|
9097
9098
|
onClick: function onClick() {
|
|
9098
9099
|
return handleClickFigure(node, client);
|
|
9099
9100
|
}
|
|
9100
|
-
})) : React__default
|
|
9101
|
-
|
|
9101
|
+
})) : React__default.createElement(
|
|
9102
|
+
OverlayTrigger,
|
|
9102
9103
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9103
|
-
React__default
|
|
9104
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9104
9105
|
style: figureImageStyle,
|
|
9105
9106
|
className: 'figure-image',
|
|
9106
9107
|
src: urlFor({ source: node, client: client }),
|
|
9107
9108
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9108
|
-
}, !link && !main.
|
|
9109
|
+
}, !link && !main.main_35 && {
|
|
9109
9110
|
onClick: function onClick() {
|
|
9110
9111
|
return handleClickFigure(node, client);
|
|
9111
9112
|
}
|
|
@@ -9154,13 +9155,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9154
9155
|
|
|
9155
9156
|
var FigureCaption = React.useCallback(function () {
|
|
9156
9157
|
if (imgcaption && imgcaption.length > 0) {
|
|
9157
|
-
return React__default
|
|
9158
|
+
return React__default.createElement(
|
|
9158
9159
|
'div',
|
|
9159
9160
|
{ className: 'figure-caption' },
|
|
9160
|
-
React__default
|
|
9161
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9161
9162
|
);
|
|
9162
9163
|
} else if (caption) {
|
|
9163
|
-
return React__default
|
|
9164
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9164
9165
|
} else return null;
|
|
9165
9166
|
}, [caption, imgcaption]);
|
|
9166
9167
|
|
|
@@ -9177,24 +9178,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9177
9178
|
setShowLightbox(true);
|
|
9178
9179
|
}, [node, client]);
|
|
9179
9180
|
|
|
9180
|
-
return React__default
|
|
9181
|
-
React__default
|
|
9181
|
+
return React__default.createElement(
|
|
9182
|
+
React__default.Fragment,
|
|
9182
9183
|
null,
|
|
9183
|
-
infoBox.length >= 1 ? React__default
|
|
9184
|
-
|
|
9184
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9185
|
+
Figure$1,
|
|
9185
9186
|
{ className: '' + class_name, style: figureStyle },
|
|
9186
|
-
link ? React__default
|
|
9187
|
+
link ? React__default.createElement(
|
|
9187
9188
|
'a',
|
|
9188
9189
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9189
|
-
React__default
|
|
9190
|
-
React__default
|
|
9191
|
-
) : React__default
|
|
9192
|
-
React__default
|
|
9190
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9191
|
+
React__default.createElement(FigureCaption, null)
|
|
9192
|
+
) : React__default.createElement(
|
|
9193
|
+
React__default.Fragment,
|
|
9193
9194
|
null,
|
|
9194
|
-
React__default
|
|
9195
|
-
React__default
|
|
9195
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9196
|
+
React__default.createElement(FigureCaption, null)
|
|
9196
9197
|
),
|
|
9197
|
-
React__default
|
|
9198
|
+
React__default.createElement(LightBox, {
|
|
9198
9199
|
showLightbox: showLightbox,
|
|
9199
9200
|
lightboxImgSrc: lightboxImgSrc,
|
|
9200
9201
|
closeLightbox: function closeLightbox() {
|
|
@@ -9202,21 +9203,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9202
9203
|
setShowLightbox(false);
|
|
9203
9204
|
}
|
|
9204
9205
|
})
|
|
9205
|
-
) : React__default
|
|
9206
|
-
|
|
9206
|
+
) : React__default.createElement(
|
|
9207
|
+
Figure$1,
|
|
9207
9208
|
{ className: '' + class_name, style: figureStyle },
|
|
9208
|
-
link ? React__default
|
|
9209
|
+
link ? React__default.createElement(
|
|
9209
9210
|
'a',
|
|
9210
9211
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9211
|
-
React__default
|
|
9212
|
-
React__default
|
|
9213
|
-
) : React__default
|
|
9214
|
-
React__default
|
|
9212
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9213
|
+
React__default.createElement(FigureCaption, null)
|
|
9214
|
+
) : React__default.createElement(
|
|
9215
|
+
React__default.Fragment,
|
|
9215
9216
|
null,
|
|
9216
|
-
React__default
|
|
9217
|
-
React__default
|
|
9217
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9218
|
+
React__default.createElement(FigureCaption, null)
|
|
9218
9219
|
),
|
|
9219
|
-
React__default
|
|
9220
|
+
React__default.createElement(LightBox, {
|
|
9220
9221
|
showLightbox: showLightbox,
|
|
9221
9222
|
lightboxImgSrc: lightboxImgSrc,
|
|
9222
9223
|
closeLightbox: function closeLightbox() {
|
|
@@ -9225,7 +9226,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9225
9226
|
}
|
|
9226
9227
|
})
|
|
9227
9228
|
),
|
|
9228
|
-
React__default
|
|
9229
|
+
React__default.createElement(
|
|
9229
9230
|
'style',
|
|
9230
9231
|
{ jsx: 'true' },
|
|
9231
9232
|
'\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 +9234,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9233
9234
|
);
|
|
9234
9235
|
};
|
|
9235
9236
|
|
|
9236
|
-
var Figure = React__default
|
|
9237
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9237
9238
|
|
|
9238
9239
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9239
9240
|
React.useEffect(function () {
|
|
@@ -9250,7 +9251,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9250
9251
|
}, [ref]);
|
|
9251
9252
|
}
|
|
9252
9253
|
|
|
9253
|
-
var FigureImage = React__default
|
|
9254
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9254
9255
|
var imagesCount = _ref.imagesCount,
|
|
9255
9256
|
image = _ref.image,
|
|
9256
9257
|
client = _ref.client,
|
|
@@ -9258,13 +9259,13 @@ var FigureImage = React__default['default'].memo(function (_ref) {
|
|
|
9258
9259
|
link = _ref.link,
|
|
9259
9260
|
handleClickFigure = _ref.handleClickFigure;
|
|
9260
9261
|
|
|
9261
|
-
return React__default
|
|
9262
|
+
return React__default.createElement(
|
|
9262
9263
|
'picture',
|
|
9263
9264
|
null,
|
|
9264
|
-
React__default
|
|
9265
|
-
React__default
|
|
9266
|
-
React__default
|
|
9267
|
-
React__default
|
|
9265
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9266
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9267
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9268
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9268
9269
|
'images-count': imagesCount,
|
|
9269
9270
|
className: 'multi-figure-image',
|
|
9270
9271
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9301,13 +9302,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9301
9302
|
imgcaption = _ref2.imgcaption;
|
|
9302
9303
|
|
|
9303
9304
|
if (imgcaption && imgcaption.length > 0) {
|
|
9304
|
-
return React__default
|
|
9305
|
+
return React__default.createElement(
|
|
9305
9306
|
'div',
|
|
9306
9307
|
{ className: 'multi-figure-caption' },
|
|
9307
|
-
React__default
|
|
9308
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9308
9309
|
);
|
|
9309
9310
|
} else if (caption) {
|
|
9310
|
-
return React__default
|
|
9311
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9311
9312
|
} else return null;
|
|
9312
9313
|
};
|
|
9313
9314
|
|
|
@@ -9316,7 +9317,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9316
9317
|
setOpenImg(true);
|
|
9317
9318
|
}, [client]);
|
|
9318
9319
|
|
|
9319
|
-
var FigureImageWOverLay = React__default
|
|
9320
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9320
9321
|
var imagesCount = _ref3.imagesCount,
|
|
9321
9322
|
image = _ref3.image,
|
|
9322
9323
|
client = _ref3.client,
|
|
@@ -9324,32 +9325,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9324
9325
|
link = _ref3.link,
|
|
9325
9326
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9326
9327
|
|
|
9327
|
-
var triggerAction = main.
|
|
9328
|
-
var placementLocation = main.
|
|
9329
|
-
return React__default
|
|
9328
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9329
|
+
var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9330
|
+
return React__default.createElement(
|
|
9330
9331
|
'picture',
|
|
9331
9332
|
null,
|
|
9332
|
-
React__default
|
|
9333
|
-
React__default
|
|
9334
|
-
React__default
|
|
9335
|
-
main.
|
|
9333
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9334
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9335
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9336
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9336
9337
|
'images-count': imagesCount,
|
|
9337
9338
|
className: 'multi-figure-image',
|
|
9338
9339
|
src: urlFor({ source: image, client: client }),
|
|
9339
9340
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9340
|
-
}, !link && !main.
|
|
9341
|
+
}, !link && !main.main_35 && {
|
|
9341
9342
|
onClick: function onClick() {
|
|
9342
9343
|
return handleClickFigure(image, client);
|
|
9343
9344
|
}
|
|
9344
|
-
})) : React__default
|
|
9345
|
-
|
|
9345
|
+
})) : React__default.createElement(
|
|
9346
|
+
OverlayTrigger,
|
|
9346
9347
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9347
|
-
React__default
|
|
9348
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9348
9349
|
'images-count': imagesCount,
|
|
9349
9350
|
className: 'multi-figure-image',
|
|
9350
9351
|
src: urlFor({ source: image, client: client }),
|
|
9351
9352
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9352
|
-
}, !link && !main.
|
|
9353
|
+
}, !link && !main.main_35 && {
|
|
9353
9354
|
onClick: function onClick() {
|
|
9354
9355
|
return handleClickFigure(image, client);
|
|
9355
9356
|
}
|
|
@@ -9360,102 +9361,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9360
9361
|
|
|
9361
9362
|
var renderTooltip = function renderTooltip(image) {
|
|
9362
9363
|
if (image.infoBox[0].title) {
|
|
9363
|
-
return React__default
|
|
9364
|
-
|
|
9364
|
+
return React__default.createElement(
|
|
9365
|
+
Popover,
|
|
9365
9366
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9366
|
-
React__default
|
|
9367
|
-
|
|
9367
|
+
React__default.createElement(
|
|
9368
|
+
Popover.Title,
|
|
9368
9369
|
{ as: 'h3' },
|
|
9369
9370
|
image.infoBox[0].title
|
|
9370
9371
|
),
|
|
9371
|
-
React__default
|
|
9372
|
-
|
|
9372
|
+
React__default.createElement(
|
|
9373
|
+
Popover.Content,
|
|
9373
9374
|
null,
|
|
9374
|
-
React__default
|
|
9375
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9375
9376
|
)
|
|
9376
9377
|
);
|
|
9377
9378
|
} else {
|
|
9378
|
-
return React__default
|
|
9379
|
-
|
|
9380
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9381
|
-
React__default
|
|
9379
|
+
return React__default.createElement(
|
|
9380
|
+
Tooltip,
|
|
9381
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9382
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9382
9383
|
);
|
|
9383
9384
|
}
|
|
9384
9385
|
};
|
|
9385
9386
|
|
|
9386
9387
|
if (images && images.length > 0) {
|
|
9387
|
-
return React__default
|
|
9388
|
+
return React__default.createElement(
|
|
9388
9389
|
'div',
|
|
9389
9390
|
{ className: 'multi-figure-container' },
|
|
9390
|
-
React__default
|
|
9391
|
-
|
|
9391
|
+
React__default.createElement(
|
|
9392
|
+
Row,
|
|
9392
9393
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9393
9394
|
images.map(function (image, index) {
|
|
9394
9395
|
if (image.infoBox) {
|
|
9395
|
-
return React__default
|
|
9396
|
-
|
|
9396
|
+
return React__default.createElement(
|
|
9397
|
+
Col,
|
|
9397
9398
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9398
|
-
image.link ? React__default
|
|
9399
|
+
image.link ? React__default.createElement(
|
|
9399
9400
|
'a',
|
|
9400
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9401
|
-
React__default
|
|
9401
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9402
|
+
React__default.createElement(
|
|
9402
9403
|
'div',
|
|
9403
9404
|
{ className: 'multi-figure-image-container' },
|
|
9404
|
-
React__default
|
|
9405
|
+
React__default.createElement(
|
|
9405
9406
|
index$2.LazyLoad,
|
|
9406
9407
|
{ once: true },
|
|
9407
|
-
React__default
|
|
9408
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9408
9409
|
),
|
|
9409
|
-
React__default
|
|
9410
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9410
9411
|
)
|
|
9411
|
-
) : React__default
|
|
9412
|
+
) : React__default.createElement(
|
|
9412
9413
|
'div',
|
|
9413
9414
|
{ className: 'multi-figure-image-container' },
|
|
9414
|
-
React__default
|
|
9415
|
+
React__default.createElement(
|
|
9415
9416
|
index$2.LazyLoad,
|
|
9416
9417
|
{ once: true },
|
|
9417
|
-
React__default
|
|
9418
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9418
9419
|
),
|
|
9419
|
-
React__default
|
|
9420
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9420
9421
|
)
|
|
9421
9422
|
);
|
|
9422
9423
|
} else {
|
|
9423
|
-
return React__default
|
|
9424
|
-
|
|
9424
|
+
return React__default.createElement(
|
|
9425
|
+
Col,
|
|
9425
9426
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9426
|
-
image.link ? React__default
|
|
9427
|
+
image.link ? React__default.createElement(
|
|
9427
9428
|
'a',
|
|
9428
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9429
|
-
React__default
|
|
9429
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9430
|
+
React__default.createElement(
|
|
9430
9431
|
'div',
|
|
9431
9432
|
{ className: 'multi-figure-image-container' },
|
|
9432
|
-
React__default
|
|
9433
|
+
React__default.createElement(
|
|
9433
9434
|
index$2.LazyLoad,
|
|
9434
9435
|
{ once: true },
|
|
9435
|
-
React__default
|
|
9436
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9436
9437
|
),
|
|
9437
|
-
React__default
|
|
9438
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9438
9439
|
)
|
|
9439
|
-
) : React__default
|
|
9440
|
+
) : React__default.createElement(
|
|
9440
9441
|
'div',
|
|
9441
9442
|
{ className: 'multi-figure-image-container' },
|
|
9442
|
-
React__default
|
|
9443
|
+
React__default.createElement(
|
|
9443
9444
|
index$2.LazyLoad,
|
|
9444
9445
|
{ once: true },
|
|
9445
|
-
React__default
|
|
9446
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9446
9447
|
),
|
|
9447
|
-
React__default
|
|
9448
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9448
9449
|
)
|
|
9449
9450
|
);
|
|
9450
9451
|
}
|
|
9451
9452
|
})
|
|
9452
9453
|
),
|
|
9453
|
-
React__default
|
|
9454
|
+
React__default.createElement(
|
|
9454
9455
|
'div',
|
|
9455
9456
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9456
|
-
React__default
|
|
9457
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9457
9458
|
),
|
|
9458
|
-
React__default
|
|
9459
|
+
React__default.createElement(
|
|
9459
9460
|
'style',
|
|
9460
9461
|
{ jsx: 'true' },
|
|
9461
9462
|
'\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 +9505,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9504
9505
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9505
9506
|
}, []);
|
|
9506
9507
|
|
|
9507
|
-
return React__default
|
|
9508
|
-
React__default
|
|
9508
|
+
return React__default.createElement(
|
|
9509
|
+
React__default.Fragment,
|
|
9509
9510
|
null,
|
|
9510
|
-
React__default
|
|
9511
|
-
|
|
9511
|
+
React__default.createElement(
|
|
9512
|
+
Head,
|
|
9512
9513
|
null,
|
|
9513
|
-
React__default
|
|
9514
|
+
React__default.createElement('script', {
|
|
9514
9515
|
dangerouslySetInnerHTML: {
|
|
9515
9516
|
__html: 'history.scrollRestoration = "manual"'
|
|
9516
9517
|
}
|
|
9517
9518
|
})
|
|
9518
9519
|
),
|
|
9519
|
-
React__default
|
|
9520
|
+
React__default.createElement(
|
|
9520
9521
|
'div',
|
|
9521
9522
|
{ id: elementId },
|
|
9522
|
-
React__default
|
|
9523
|
-
React__default
|
|
9523
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9524
|
+
React__default.createElement(
|
|
9524
9525
|
'style',
|
|
9525
9526
|
{ jsx: 'true' },
|
|
9526
9527
|
'\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 +9555,7 @@ exports.__esModule = true;
|
|
|
9554
9555
|
|
|
9555
9556
|
|
|
9556
9557
|
|
|
9557
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9558
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9558
9559
|
|
|
9559
9560
|
|
|
9560
9561
|
|
|
@@ -9562,23 +9563,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9562
9563
|
|
|
9563
9564
|
|
|
9564
9565
|
|
|
9565
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9566
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9566
9567
|
|
|
9567
9568
|
|
|
9568
9569
|
|
|
9569
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9570
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9570
9571
|
|
|
9571
9572
|
|
|
9572
9573
|
|
|
9573
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9574
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9574
9575
|
|
|
9575
9576
|
|
|
9576
9577
|
|
|
9577
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9578
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9578
9579
|
|
|
9579
9580
|
|
|
9580
9581
|
|
|
9581
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9582
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9582
9583
|
|
|
9583
9584
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9584
9585
|
var noop = function noop() {};
|
|
@@ -9723,9 +9724,9 @@ var ScriptTag = function (_Component) {
|
|
|
9723
9724
|
|
|
9724
9725
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9725
9726
|
// eslint-disable-next-line no-unused-vars
|
|
9726
|
-
var _props3 = this.props
|
|
9727
|
-
_props3.isHydrating
|
|
9728
|
-
|
|
9727
|
+
var _props3 = this.props,
|
|
9728
|
+
isHydrating = _props3.isHydrating,
|
|
9729
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9729
9730
|
|
|
9730
9731
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9731
9732
|
return _this2.domRef = tag;
|
|
@@ -9733,7 +9734,7 @@ var ScriptTag = function (_Component) {
|
|
|
9733
9734
|
};
|
|
9734
9735
|
|
|
9735
9736
|
return ScriptTag;
|
|
9736
|
-
}(React__default
|
|
9737
|
+
}(React__default.Component);
|
|
9737
9738
|
|
|
9738
9739
|
ScriptTag.propTypes = {
|
|
9739
9740
|
/**
|
|
@@ -9812,11 +9813,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9812
9813
|
}, []);
|
|
9813
9814
|
|
|
9814
9815
|
if (iframeSrc) {
|
|
9815
|
-
return React__default
|
|
9816
|
+
return React__default.createElement(
|
|
9816
9817
|
'section',
|
|
9817
9818
|
{ className: 'form-assembly' },
|
|
9818
|
-
React__default
|
|
9819
|
-
React__default
|
|
9819
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9820
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9820
9821
|
);
|
|
9821
9822
|
}
|
|
9822
9823
|
|
|
@@ -9853,27 +9854,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9853
9854
|
return window.removeEventListener('resize', handleResize);
|
|
9854
9855
|
};
|
|
9855
9856
|
}, []);
|
|
9856
|
-
return React__default
|
|
9857
|
+
return React__default.createElement(
|
|
9857
9858
|
'div',
|
|
9858
9859
|
{ className: 'blockTableHolder', ref: holder },
|
|
9859
|
-
React__default
|
|
9860
|
+
React__default.createElement(
|
|
9860
9861
|
'div',
|
|
9861
9862
|
{ className: 'blockTable' },
|
|
9862
9863
|
rows && rows.map(function (row) {
|
|
9863
|
-
return React__default
|
|
9864
|
+
return React__default.createElement(
|
|
9864
9865
|
'div',
|
|
9865
9866
|
{ className: 'blockTableRow' },
|
|
9866
9867
|
row.cells && row.cells.map(function (cell) {
|
|
9867
|
-
return React__default
|
|
9868
|
+
return React__default.createElement(
|
|
9868
9869
|
'div',
|
|
9869
9870
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9870
|
-
React__default
|
|
9871
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9871
9872
|
);
|
|
9872
9873
|
})
|
|
9873
9874
|
);
|
|
9874
9875
|
})
|
|
9875
9876
|
),
|
|
9876
|
-
React__default
|
|
9877
|
+
React__default.createElement(
|
|
9877
9878
|
'style',
|
|
9878
9879
|
{ jsx: true },
|
|
9879
9880
|
'\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 +9953,12 @@ var getSerializers = function getSerializers() {
|
|
|
9952
9953
|
var node = _ref.node;
|
|
9953
9954
|
var url = node.url;
|
|
9954
9955
|
|
|
9955
|
-
return React__default
|
|
9956
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9956
9957
|
},
|
|
9957
9958
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9958
9959
|
var node = _ref2.node;
|
|
9959
9960
|
|
|
9960
|
-
return React__default
|
|
9961
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9961
9962
|
nodes: node,
|
|
9962
9963
|
article: article,
|
|
9963
9964
|
meta: meta,
|
|
@@ -9971,7 +9972,7 @@ var getSerializers = function getSerializers() {
|
|
|
9971
9972
|
articleSeries: function articleSeries(_ref3) {
|
|
9972
9973
|
var node = _ref3.node;
|
|
9973
9974
|
|
|
9974
|
-
return React__default
|
|
9975
|
+
return React__default.createElement(ArticleSeries, {
|
|
9975
9976
|
nodes: node,
|
|
9976
9977
|
accountIDs: videoAccountIDs || {},
|
|
9977
9978
|
pageview: pageview,
|
|
@@ -9984,61 +9985,61 @@ var getSerializers = function getSerializers() {
|
|
|
9984
9985
|
figure: function figure(_ref4) {
|
|
9985
9986
|
var node = _ref4.node;
|
|
9986
9987
|
|
|
9987
|
-
return React__default
|
|
9988
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9988
9989
|
},
|
|
9989
9990
|
multifigure: function multifigure(_ref5) {
|
|
9990
9991
|
var node = _ref5.node;
|
|
9991
9992
|
|
|
9992
|
-
return React__default
|
|
9993
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9993
9994
|
},
|
|
9994
9995
|
slideshow: function slideshow(_ref6) {
|
|
9995
9996
|
var node = _ref6.node;
|
|
9996
9997
|
var slides = node.slides;
|
|
9997
9998
|
|
|
9998
|
-
return React__default
|
|
9999
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9999
10000
|
},
|
|
10000
10001
|
sidebar: function sidebar(_ref7) {
|
|
10001
10002
|
var node = _ref7.node;
|
|
10002
10003
|
var caption = node.caption,
|
|
10003
10004
|
content = node.content;
|
|
10004
10005
|
|
|
10005
|
-
return React__default
|
|
10006
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10006
10007
|
},
|
|
10007
10008
|
datatable: function datatable(_ref8) {
|
|
10008
10009
|
var node = _ref8.node;
|
|
10009
10010
|
var table = node.table;
|
|
10010
10011
|
|
|
10011
|
-
return React__default
|
|
10012
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10012
10013
|
},
|
|
10013
10014
|
media: function media(_ref9) {
|
|
10014
10015
|
var node = _ref9.node;
|
|
10015
10016
|
|
|
10016
|
-
return React__default
|
|
10017
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
10017
10018
|
},
|
|
10018
10019
|
iframe: function iframe(_ref10) {
|
|
10019
10020
|
var node = _ref10.node;
|
|
10020
10021
|
|
|
10021
|
-
return React__default
|
|
10022
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10022
10023
|
},
|
|
10023
10024
|
video: function video(_ref11) {
|
|
10024
10025
|
var node = _ref11.node;
|
|
10025
10026
|
|
|
10026
|
-
return React__default
|
|
10027
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10027
10028
|
},
|
|
10028
10029
|
audio: function audio(_ref12) {
|
|
10029
10030
|
var node = _ref12.node;
|
|
10030
10031
|
|
|
10031
|
-
return React__default
|
|
10032
|
+
return React__default.createElement(Audio, { node: node });
|
|
10032
10033
|
},
|
|
10033
10034
|
poll: function poll(_ref13) {
|
|
10034
10035
|
var node = _ref13.node;
|
|
10035
10036
|
|
|
10036
|
-
return React__default
|
|
10037
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10037
10038
|
},
|
|
10038
10039
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10039
10040
|
var node = _ref14.node;
|
|
10040
10041
|
|
|
10041
|
-
return React__default
|
|
10042
|
+
return React__default.createElement(Poll$1, {
|
|
10042
10043
|
node: node,
|
|
10043
10044
|
client: client,
|
|
10044
10045
|
pageview: pageview,
|
|
@@ -10052,35 +10053,35 @@ var getSerializers = function getSerializers() {
|
|
|
10052
10053
|
var node = _ref15.node;
|
|
10053
10054
|
var quizzes = node.quizzes;
|
|
10054
10055
|
|
|
10055
|
-
return React__default
|
|
10056
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10056
10057
|
},
|
|
10057
10058
|
leads: function leads(_ref16) {
|
|
10058
10059
|
var node = _ref16.node;
|
|
10059
10060
|
var leadID = node.leadID;
|
|
10060
10061
|
|
|
10061
10062
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10062
|
-
return React__default
|
|
10063
|
+
return React__default.createElement(Leads, { url: url });
|
|
10063
10064
|
},
|
|
10064
10065
|
slideshows: function slideshows(_ref17) {
|
|
10065
10066
|
var node = _ref17.node;
|
|
10066
10067
|
|
|
10067
|
-
return React__default
|
|
10068
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10068
10069
|
},
|
|
10069
10070
|
nativeAd: function nativeAd(_ref18) {
|
|
10070
10071
|
var node = _ref18.node;
|
|
10071
10072
|
|
|
10072
|
-
return React__default
|
|
10073
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10073
10074
|
},
|
|
10074
10075
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10075
10076
|
var node = _ref19.node;
|
|
10076
10077
|
|
|
10077
|
-
return React__default
|
|
10078
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10078
10079
|
},
|
|
10079
10080
|
hrtag: function hrtag() {
|
|
10080
|
-
return React__default
|
|
10081
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10081
10082
|
},
|
|
10082
10083
|
brtag: function brtag() {
|
|
10083
|
-
return React__default
|
|
10084
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10084
10085
|
},
|
|
10085
10086
|
formstack: function formstack(_ref20) {
|
|
10086
10087
|
var node = _ref20.node;
|
|
@@ -10088,29 +10089,29 @@ var getSerializers = function getSerializers() {
|
|
|
10088
10089
|
Caption = node.Caption,
|
|
10089
10090
|
needSegmentSupport = node.needSegmentSupport;
|
|
10090
10091
|
|
|
10091
|
-
return React__default
|
|
10092
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10092
10093
|
},
|
|
10093
10094
|
formassembly: FormAssembly,
|
|
10094
10095
|
multimedia: function multimedia(_ref21) {
|
|
10095
10096
|
var node = _ref21.node;
|
|
10096
10097
|
|
|
10097
|
-
return React__default
|
|
10098
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10098
10099
|
},
|
|
10099
10100
|
blockTable: function blockTable(_ref22) {
|
|
10100
10101
|
var node = _ref22.node;
|
|
10101
|
-
return React__default
|
|
10102
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10102
10103
|
}
|
|
10103
10104
|
},
|
|
10104
10105
|
marks: {
|
|
10105
10106
|
superscript: function superscript(props) {
|
|
10106
|
-
return React__default
|
|
10107
|
+
return React__default.createElement(
|
|
10107
10108
|
'sup',
|
|
10108
10109
|
null,
|
|
10109
10110
|
props.children
|
|
10110
10111
|
);
|
|
10111
10112
|
},
|
|
10112
10113
|
subscript: function subscript(props) {
|
|
10113
|
-
return React__default
|
|
10114
|
+
return React__default.createElement(
|
|
10114
10115
|
'sub',
|
|
10115
10116
|
null,
|
|
10116
10117
|
props.children
|
|
@@ -10127,7 +10128,7 @@ var getSerializers = function getSerializers() {
|
|
|
10127
10128
|
if (href && href.charAt(0) === '#') {
|
|
10128
10129
|
var elementId = href.slice(1);
|
|
10129
10130
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10130
|
-
return React__default
|
|
10131
|
+
return React__default.createElement(
|
|
10131
10132
|
'a',
|
|
10132
10133
|
{ onClick: function onClick() {
|
|
10133
10134
|
return ScrollToElement(elementId);
|
|
@@ -10137,15 +10138,15 @@ var getSerializers = function getSerializers() {
|
|
|
10137
10138
|
}
|
|
10138
10139
|
|
|
10139
10140
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10140
|
-
return href ? React__default
|
|
10141
|
+
return href ? React__default.createElement(
|
|
10141
10142
|
'a',
|
|
10142
|
-
_extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10143
|
+
_extends$1._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10143
10144
|
children
|
|
10144
10145
|
) : children;
|
|
10145
10146
|
},
|
|
10146
10147
|
alignleft: function alignleft(_ref23) {
|
|
10147
10148
|
var children = _ref23.children;
|
|
10148
|
-
return React__default
|
|
10149
|
+
return React__default.createElement(
|
|
10149
10150
|
'div',
|
|
10150
10151
|
{ style: { textAlign: 'left' } },
|
|
10151
10152
|
children
|
|
@@ -10153,7 +10154,7 @@ var getSerializers = function getSerializers() {
|
|
|
10153
10154
|
},
|
|
10154
10155
|
alignright: function alignright(_ref24) {
|
|
10155
10156
|
var children = _ref24.children;
|
|
10156
|
-
return React__default
|
|
10157
|
+
return React__default.createElement(
|
|
10157
10158
|
'div',
|
|
10158
10159
|
{ style: { textAlign: 'right' } },
|
|
10159
10160
|
children
|
|
@@ -10161,7 +10162,7 @@ var getSerializers = function getSerializers() {
|
|
|
10161
10162
|
},
|
|
10162
10163
|
aligncenter: function aligncenter(_ref25) {
|
|
10163
10164
|
var children = _ref25.children;
|
|
10164
|
-
return React__default
|
|
10165
|
+
return React__default.createElement(
|
|
10165
10166
|
'div',
|
|
10166
10167
|
{ style: { textAlign: 'center' } },
|
|
10167
10168
|
children
|
|
@@ -10169,7 +10170,7 @@ var getSerializers = function getSerializers() {
|
|
|
10169
10170
|
},
|
|
10170
10171
|
alignjustify: function alignjustify(_ref26) {
|
|
10171
10172
|
var children = _ref26.children;
|
|
10172
|
-
return React__default
|
|
10173
|
+
return React__default.createElement(
|
|
10173
10174
|
'div',
|
|
10174
10175
|
{ style: { textAlign: 'justify' } },
|
|
10175
10176
|
children
|
|
@@ -10179,7 +10180,7 @@ var getSerializers = function getSerializers() {
|
|
|
10179
10180
|
var children = props.children,
|
|
10180
10181
|
color = props.mark.color;
|
|
10181
10182
|
|
|
10182
|
-
return React__default
|
|
10183
|
+
return React__default.createElement(
|
|
10183
10184
|
'span',
|
|
10184
10185
|
{ style: { color: color ? color.hex : null } },
|
|
10185
10186
|
children
|