@mjhls/mjh-framework 1.0.880 → 1.0.881-beta.1
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 +388 -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 +482 -80
- package/dist/cjs/MediaSeriesLanding.js +1578 -1122
- 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-f3ef7bc1.js +59 -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 +384 -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 +480 -77
- package/dist/esm/MediaSeriesLanding.js +1302 -843
- 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-a24855d4.js +54 -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,40 +1,41 @@
|
|
|
1
|
-
import { _ as _extends, b as _extends$1 } from './extends-dc6a71fd.js';
|
|
2
|
-
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
3
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-ca2c8b8d.js';
|
|
4
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
5
|
-
import urlFor from './urlFor.js';
|
|
6
|
-
import { l as lib_3 } from './index-2446af28.js';
|
|
7
|
-
import Router, { useRouter } from 'next/router';
|
|
8
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import {
|
|
12
|
-
import './
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
21
|
-
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as _export, a as _core } from './core.get-iterator-method-e903ff31.js';
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-50a6b9a3.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
25
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
2
|
+
import { _ as _export, a as _core } from './core.get-iterator-method-86d4db69.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
4
|
+
import { _ as _extends$1, b as _extends$2 } from './extends-5b1796d4.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-2409637d.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
29
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
30
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
|
|
15
|
+
import urlFor from './urlFor.js';
|
|
16
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
17
|
+
import { e as main_16, b as main_35, m as main_36 } from './main-c0612122.js';
|
|
18
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
19
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
20
|
+
import Segment from './Segment.js';
|
|
21
|
+
import './Beam.js';
|
|
22
|
+
import DFPAdSlot from './AdSlot.js';
|
|
23
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
24
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
25
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
26
|
+
import GroupDeck from './GroupDeck.js';
|
|
27
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
28
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
29
|
+
import { u as util } from './util-7700fc59.js';
|
|
30
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
31
31
|
import Head from 'next/head';
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
32
|
+
import SocialShare from './SocialShare.js';
|
|
33
|
+
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
34
|
+
import Pagination$1$1 from 'react-bootstrap/Pagination';
|
|
35
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
36
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
-
import Popover from 'react-bootstrap/Popover';
|
|
37
|
+
import Tooltip$1 from 'react-bootstrap/Tooltip';
|
|
38
|
+
import Popover$1 from 'react-bootstrap/Popover';
|
|
38
39
|
|
|
39
40
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
41
|
var pageNumber = selectedIndex + 1;
|
|
@@ -42,7 +43,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
42
43
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
43
44
|
};
|
|
44
45
|
|
|
45
|
-
var Slideshow
|
|
46
|
+
var Slideshow = function Slideshow(_ref) {
|
|
46
47
|
var slides = _ref.slides,
|
|
47
48
|
client = _ref.client,
|
|
48
49
|
pageview = _ref.pageview;
|
|
@@ -69,27 +70,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
69
70
|
if (pageview) pageview(router.asPath);
|
|
70
71
|
}, [router]);
|
|
71
72
|
|
|
72
|
-
return
|
|
73
|
+
return React__default.createElement(
|
|
73
74
|
'div',
|
|
74
75
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
76
|
+
React__default.createElement(
|
|
76
77
|
Carousel,
|
|
77
78
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
79
|
return onChangeSlide(selectedIndex, router);
|
|
79
80
|
}, interval: null },
|
|
80
81
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
82
|
+
return React__default.createElement(
|
|
82
83
|
Carousel.Item,
|
|
83
84
|
{ key: slide._key },
|
|
84
|
-
|
|
85
|
+
React__default.createElement(
|
|
85
86
|
'picture',
|
|
86
87
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
89
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
90
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
91
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
92
|
),
|
|
92
|
-
slide.caption &&
|
|
93
|
+
slide.caption && React__default.createElement(
|
|
93
94
|
'p',
|
|
94
95
|
{ className: 'p-2' },
|
|
95
96
|
slide.caption
|
|
@@ -100,18 +101,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
100
101
|
);
|
|
101
102
|
};
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
var isArray = Array.isArray;
|
|
105
|
+
var keyList = Object.keys;
|
|
106
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
106
107
|
|
|
107
108
|
var fastDeepEqual = function equal(a, b) {
|
|
108
109
|
if (a === b) return true;
|
|
109
110
|
|
|
110
111
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
112
|
+
var arrA = isArray(a)
|
|
113
|
+
, arrB = isArray(b)
|
|
114
|
+
, i
|
|
115
|
+
, length
|
|
116
|
+
, key;
|
|
112
117
|
|
|
113
|
-
|
|
114
|
-
if (Array.isArray(a)) {
|
|
118
|
+
if (arrA && arrB) {
|
|
115
119
|
length = a.length;
|
|
116
120
|
if (length != b.length) return false;
|
|
117
121
|
for (i = length; i-- !== 0;)
|
|
@@ -119,29 +123,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
123
|
return true;
|
|
120
124
|
}
|
|
121
125
|
|
|
126
|
+
if (arrA != arrB) return false;
|
|
122
127
|
|
|
128
|
+
var dateA = a instanceof Date
|
|
129
|
+
, dateB = b instanceof Date;
|
|
130
|
+
if (dateA != dateB) return false;
|
|
131
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
123
132
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (
|
|
133
|
+
var regexpA = a instanceof RegExp
|
|
134
|
+
, regexpB = b instanceof RegExp;
|
|
135
|
+
if (regexpA != regexpB) return false;
|
|
136
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
127
137
|
|
|
128
|
-
keys =
|
|
138
|
+
var keys = keyList(a);
|
|
129
139
|
length = keys.length;
|
|
130
|
-
|
|
140
|
+
|
|
141
|
+
if (length !== keyList(b).length)
|
|
142
|
+
return false;
|
|
131
143
|
|
|
132
144
|
for (i = length; i-- !== 0;)
|
|
133
|
-
if (!
|
|
145
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
134
146
|
|
|
135
147
|
for (i = length; i-- !== 0;) {
|
|
136
|
-
|
|
137
|
-
|
|
148
|
+
key = keys[i];
|
|
138
149
|
if (!equal(a[key], b[key])) return false;
|
|
139
150
|
}
|
|
140
151
|
|
|
141
152
|
return true;
|
|
142
153
|
}
|
|
143
154
|
|
|
144
|
-
// true if both NaN, false otherwise
|
|
145
155
|
return a!==a && b!==b;
|
|
146
156
|
};
|
|
147
157
|
|
|
@@ -679,14 +689,14 @@ function coerce(val) {
|
|
|
679
689
|
return val;
|
|
680
690
|
}
|
|
681
691
|
});
|
|
682
|
-
debug.coerce;
|
|
683
|
-
debug.disable;
|
|
684
|
-
debug.enable;
|
|
685
|
-
debug.enabled;
|
|
686
|
-
debug.humanize;
|
|
687
|
-
debug.names;
|
|
688
|
-
debug.skips;
|
|
689
|
-
debug.formatters;
|
|
692
|
+
var debug_1 = debug.coerce;
|
|
693
|
+
var debug_2 = debug.disable;
|
|
694
|
+
var debug_3 = debug.enable;
|
|
695
|
+
var debug_4 = debug.enabled;
|
|
696
|
+
var debug_5 = debug.humanize;
|
|
697
|
+
var debug_6 = debug.names;
|
|
698
|
+
var debug_7 = debug.skips;
|
|
699
|
+
var debug_8 = debug.formatters;
|
|
690
700
|
|
|
691
701
|
var browser = createCommonjsModule(function (module, exports) {
|
|
692
702
|
/**
|
|
@@ -875,13 +885,13 @@ function localstorage() {
|
|
|
875
885
|
} catch (e) {}
|
|
876
886
|
}
|
|
877
887
|
});
|
|
878
|
-
browser.log;
|
|
879
|
-
browser.formatArgs;
|
|
880
|
-
browser.save;
|
|
881
|
-
browser.load;
|
|
882
|
-
browser.useColors;
|
|
883
|
-
browser.storage;
|
|
884
|
-
browser.colors;
|
|
888
|
+
var browser_1 = browser.log;
|
|
889
|
+
var browser_2 = browser.formatArgs;
|
|
890
|
+
var browser_3 = browser.save;
|
|
891
|
+
var browser_4 = browser.load;
|
|
892
|
+
var browser_5 = browser.useColors;
|
|
893
|
+
var browser_6 = browser.storage;
|
|
894
|
+
var browser_7 = browser.colors;
|
|
885
895
|
|
|
886
896
|
// MIT lisence
|
|
887
897
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1156,14 +1166,14 @@ function init (debug) {
|
|
|
1156
1166
|
|
|
1157
1167
|
exports.enable(load());
|
|
1158
1168
|
});
|
|
1159
|
-
node.init;
|
|
1160
|
-
node.log;
|
|
1161
|
-
node.formatArgs;
|
|
1162
|
-
node.save;
|
|
1163
|
-
node.load;
|
|
1164
|
-
node.useColors;
|
|
1165
|
-
node.colors;
|
|
1166
|
-
node.inspectOpts;
|
|
1169
|
+
var node_1 = node.init;
|
|
1170
|
+
var node_2 = node.log;
|
|
1171
|
+
var node_3 = node.formatArgs;
|
|
1172
|
+
var node_4 = node.save;
|
|
1173
|
+
var node_5 = node.load;
|
|
1174
|
+
var node_6 = node.useColors;
|
|
1175
|
+
var node_7 = node.colors;
|
|
1176
|
+
var node_8 = node.inspectOpts;
|
|
1167
1177
|
|
|
1168
1178
|
var src = createCommonjsModule(function (module) {
|
|
1169
1179
|
/**
|
|
@@ -1564,239 +1574,199 @@ module.exports = exports['default'];
|
|
|
1564
1574
|
|
|
1565
1575
|
var youTubePlayer = unwrapExports(dist);
|
|
1566
1576
|
|
|
1567
|
-
function
|
|
1568
|
-
|
|
1569
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1570
|
-
|
|
1571
|
-
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); } }
|
|
1572
|
-
|
|
1573
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1577
|
+
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; }; }();
|
|
1574
1578
|
|
|
1575
|
-
function
|
|
1579
|
+
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; };
|
|
1576
1580
|
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1579
|
-
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); }; }
|
|
1580
|
-
|
|
1581
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1582
|
-
|
|
1583
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1584
1582
|
|
|
1585
|
-
function
|
|
1583
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1586
1584
|
|
|
1587
|
-
function
|
|
1585
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1588
1586
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
/**
|
|
1595
|
-
* Check whether a `props` change should result in the video being updated.
|
|
1596
|
-
*
|
|
1597
|
-
* @param {Object} prevProps
|
|
1598
|
-
* @param {Object} props
|
|
1587
|
+
/**
|
|
1588
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1589
|
+
*
|
|
1590
|
+
* @param {Object} prevProps
|
|
1591
|
+
* @param {Object} props
|
|
1599
1592
|
*/
|
|
1600
|
-
|
|
1601
1593
|
function shouldUpdateVideo(prevProps, props) {
|
|
1602
1594
|
// A changing video should always trigger an update
|
|
1603
1595
|
if (prevProps.videoId !== props.videoId) {
|
|
1604
1596
|
return true;
|
|
1605
|
-
}
|
|
1606
|
-
// update.
|
|
1607
|
-
|
|
1597
|
+
}
|
|
1608
1598
|
|
|
1599
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1600
|
+
// update.
|
|
1609
1601
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1610
1602
|
var vars = props.opts.playerVars || {};
|
|
1603
|
+
|
|
1611
1604
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1612
1605
|
}
|
|
1613
|
-
/**
|
|
1614
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1615
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
-
* player reset is necessary.
|
|
1617
|
-
*
|
|
1618
|
-
* @param {Object} opts
|
|
1619
|
-
*/
|
|
1620
|
-
|
|
1621
1606
|
|
|
1607
|
+
/**
|
|
1608
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1609
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1610
|
+
* player reset is necessary.
|
|
1611
|
+
*
|
|
1612
|
+
* @param {Object} opts
|
|
1613
|
+
*/
|
|
1622
1614
|
function filterResetOptions(opts) {
|
|
1623
|
-
return
|
|
1624
|
-
playerVars:
|
|
1615
|
+
return _extends({}, opts, {
|
|
1616
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1625
1617
|
autoplay: 0,
|
|
1626
1618
|
start: 0,
|
|
1627
1619
|
end: 0
|
|
1628
|
-
}
|
|
1620
|
+
})
|
|
1629
1621
|
});
|
|
1630
1622
|
}
|
|
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
|
-
*/
|
|
1640
|
-
|
|
1641
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1626
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1627
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1628
|
+
* those.
|
|
1629
|
+
*
|
|
1630
|
+
* @param {Object} prevProps
|
|
1631
|
+
* @param {Object} props
|
|
1632
|
+
*/
|
|
1642
1633
|
function shouldResetPlayer(prevProps, props) {
|
|
1643
1634
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1644
1635
|
}
|
|
1645
|
-
/**
|
|
1646
|
-
* Check whether a props change should result in an id or className update.
|
|
1647
|
-
*
|
|
1648
|
-
* @param {Object} prevProps
|
|
1649
|
-
* @param {Object} props
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
1636
|
|
|
1637
|
+
/**
|
|
1638
|
+
* Check whether a props change should result in an id or className update.
|
|
1639
|
+
*
|
|
1640
|
+
* @param {Object} prevProps
|
|
1641
|
+
* @param {Object} props
|
|
1642
|
+
*/
|
|
1653
1643
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1654
1644
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1655
1645
|
}
|
|
1656
1646
|
|
|
1657
|
-
var YouTube =
|
|
1647
|
+
var YouTube = function (_React$Component) {
|
|
1658
1648
|
_inherits(YouTube, _React$Component);
|
|
1659
1649
|
|
|
1660
|
-
var _super = _createSuper(YouTube);
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1664
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1665
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1666
|
-
*/
|
|
1667
1650
|
function YouTube(props) {
|
|
1668
|
-
var _this;
|
|
1669
|
-
|
|
1670
1651
|
_classCallCheck(this, YouTube);
|
|
1671
1652
|
|
|
1672
|
-
_this =
|
|
1653
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1673
1654
|
|
|
1674
|
-
|
|
1655
|
+
_this.onPlayerReady = function (event) {
|
|
1675
1656
|
return _this.props.onReady(event);
|
|
1676
|
-
}
|
|
1657
|
+
};
|
|
1677
1658
|
|
|
1678
|
-
|
|
1659
|
+
_this.onPlayerError = function (event) {
|
|
1679
1660
|
return _this.props.onError(event);
|
|
1680
|
-
}
|
|
1661
|
+
};
|
|
1681
1662
|
|
|
1682
|
-
|
|
1663
|
+
_this.onPlayerStateChange = function (event) {
|
|
1683
1664
|
_this.props.onStateChange(event);
|
|
1684
|
-
|
|
1685
1665
|
switch (event.data) {
|
|
1666
|
+
|
|
1686
1667
|
case YouTube.PlayerState.ENDED:
|
|
1687
1668
|
_this.props.onEnd(event);
|
|
1688
|
-
|
|
1689
1669
|
break;
|
|
1690
1670
|
|
|
1691
1671
|
case YouTube.PlayerState.PLAYING:
|
|
1692
1672
|
_this.props.onPlay(event);
|
|
1693
|
-
|
|
1694
1673
|
break;
|
|
1695
1674
|
|
|
1696
1675
|
case YouTube.PlayerState.PAUSED:
|
|
1697
1676
|
_this.props.onPause(event);
|
|
1698
|
-
|
|
1699
1677
|
break;
|
|
1700
1678
|
}
|
|
1701
|
-
}
|
|
1679
|
+
};
|
|
1702
1680
|
|
|
1703
|
-
|
|
1681
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1704
1682
|
return _this.props.onPlaybackRateChange(event);
|
|
1705
|
-
}
|
|
1683
|
+
};
|
|
1706
1684
|
|
|
1707
|
-
|
|
1685
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1708
1686
|
return _this.props.onPlaybackQualityChange(event);
|
|
1709
|
-
}
|
|
1687
|
+
};
|
|
1710
1688
|
|
|
1711
|
-
|
|
1689
|
+
_this.createPlayer = function () {
|
|
1712
1690
|
// do not attempt to create a player server-side, it won't work
|
|
1713
|
-
if (typeof document === 'undefined') return;
|
|
1714
|
-
|
|
1715
|
-
var playerOpts =
|
|
1691
|
+
if (typeof document === 'undefined') return;
|
|
1692
|
+
// create player
|
|
1693
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1716
1694
|
// preload the `videoId` video if one is already given
|
|
1717
1695
|
videoId: _this.props.videoId
|
|
1718
1696
|
});
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1697
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1698
|
+
// attach event handlers
|
|
1722
1699
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
-
|
|
1724
1700
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
-
|
|
1726
1701
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
-
|
|
1728
1702
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
-
|
|
1730
1703
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1731
|
-
}
|
|
1704
|
+
};
|
|
1732
1705
|
|
|
1733
|
-
|
|
1706
|
+
_this.resetPlayer = function () {
|
|
1734
1707
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1735
|
-
}
|
|
1708
|
+
};
|
|
1736
1709
|
|
|
1737
|
-
|
|
1710
|
+
_this.updatePlayer = function () {
|
|
1738
1711
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1739
1712
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1740
1713
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1741
1714
|
});
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
-
return _this.internalPlayer;
|
|
1746
|
-
});
|
|
1715
|
+
};
|
|
1747
1716
|
|
|
1748
|
-
|
|
1717
|
+
_this.updateVideo = function () {
|
|
1749
1718
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1750
1719
|
_this.internalPlayer.stopVideo();
|
|
1751
|
-
|
|
1752
1720
|
return;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1721
|
+
}
|
|
1755
1722
|
|
|
1723
|
+
// set queueing options
|
|
1756
1724
|
var autoplay = false;
|
|
1757
1725
|
var opts = {
|
|
1758
1726
|
videoId: _this.props.videoId
|
|
1759
1727
|
};
|
|
1760
|
-
|
|
1761
1728
|
if ('playerVars' in _this.props.opts) {
|
|
1762
1729
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
-
|
|
1764
1730
|
if ('start' in _this.props.opts.playerVars) {
|
|
1765
1731
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1766
1732
|
}
|
|
1767
|
-
|
|
1768
1733
|
if ('end' in _this.props.opts.playerVars) {
|
|
1769
1734
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1770
1735
|
}
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1736
|
+
}
|
|
1773
1737
|
|
|
1738
|
+
// if autoplay is enabled loadVideoById
|
|
1774
1739
|
if (autoplay) {
|
|
1775
1740
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
-
|
|
1777
1741
|
return;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1742
|
+
}
|
|
1743
|
+
// default behaviour just cues the video
|
|
1781
1744
|
_this.internalPlayer.cueVideoById(opts);
|
|
1782
|
-
}
|
|
1745
|
+
};
|
|
1783
1746
|
|
|
1784
|
-
|
|
1747
|
+
_this.refContainer = function (container) {
|
|
1785
1748
|
_this.container = container;
|
|
1786
|
-
}
|
|
1749
|
+
};
|
|
1787
1750
|
|
|
1788
1751
|
_this.container = null;
|
|
1789
1752
|
_this.internalPlayer = null;
|
|
1790
1753
|
return _this;
|
|
1791
1754
|
}
|
|
1792
1755
|
|
|
1756
|
+
/**
|
|
1757
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1758
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1759
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1760
|
+
*/
|
|
1761
|
+
|
|
1762
|
+
|
|
1793
1763
|
_createClass(YouTube, [{
|
|
1794
|
-
key:
|
|
1764
|
+
key: 'componentDidMount',
|
|
1795
1765
|
value: function componentDidMount() {
|
|
1796
1766
|
this.createPlayer();
|
|
1797
1767
|
}
|
|
1798
1768
|
}, {
|
|
1799
|
-
key:
|
|
1769
|
+
key: 'componentDidUpdate',
|
|
1800
1770
|
value: function componentDidUpdate(prevProps) {
|
|
1801
1771
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1802
1772
|
this.updatePlayer();
|
|
@@ -1811,58 +1781,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1811
1781
|
}
|
|
1812
1782
|
}
|
|
1813
1783
|
}, {
|
|
1814
|
-
key:
|
|
1784
|
+
key: 'componentWillUnmount',
|
|
1815
1785
|
value: function componentWillUnmount() {
|
|
1816
|
-
/**
|
|
1817
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1818
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
-
* this method isn't quick enough to reset the container element.
|
|
1786
|
+
/**
|
|
1787
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1788
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1789
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1790
|
+
* this method isn't quick enough to reset the container element.
|
|
1821
1791
|
*/
|
|
1822
1792
|
this.internalPlayer.destroy();
|
|
1823
1793
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1797
|
+
*
|
|
1798
|
+
* @param {Object} event
|
|
1799
|
+
* @param {Object} target - player object
|
|
1800
|
+
*/
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1805
|
+
*
|
|
1806
|
+
* @param {Object} event
|
|
1807
|
+
* @param {Integer} data - error type
|
|
1808
|
+
* @param {Object} target - player object
|
|
1809
|
+
*/
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1814
|
+
*
|
|
1815
|
+
* @param {Object} event
|
|
1816
|
+
* @param {Integer} data - status change type
|
|
1817
|
+
* @param {Object} target - actual YT player
|
|
1818
|
+
*/
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Float} data - playback rate
|
|
1826
|
+
* @param {Object} target - actual YT player
|
|
1827
|
+
*/
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1832
|
+
*
|
|
1833
|
+
* @param {Object} event
|
|
1834
|
+
* @param {String} data - playback quality
|
|
1835
|
+
* @param {Object} target - actual YT player
|
|
1836
|
+
*/
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1841
|
+
*/
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1846
|
+
*/
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1851
|
+
* React should update this automatically but since the Youtube Player API
|
|
1852
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1853
|
+
*/
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1858
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1859
|
+
* Youtube Player API methods to update the video.
|
|
1829
1860
|
*/
|
|
1830
1861
|
|
|
1831
1862
|
}, {
|
|
1832
|
-
key:
|
|
1863
|
+
key: 'render',
|
|
1833
1864
|
value: function render() {
|
|
1834
|
-
return
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
id: this.props.id,
|
|
1838
|
-
|
|
1839
|
-
ref: this.refContainer
|
|
1840
|
-
}));
|
|
1865
|
+
return React__default.createElement(
|
|
1866
|
+
'div',
|
|
1867
|
+
{ className: this.props.containerClassName },
|
|
1868
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1869
|
+
);
|
|
1841
1870
|
}
|
|
1842
1871
|
}]);
|
|
1843
1872
|
|
|
1844
1873
|
return YouTube;
|
|
1845
|
-
}(
|
|
1846
|
-
|
|
1847
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
-
UNSTARTED: -1,
|
|
1849
|
-
ENDED: 0,
|
|
1850
|
-
PLAYING: 1,
|
|
1851
|
-
PAUSED: 2,
|
|
1852
|
-
BUFFERING: 3,
|
|
1853
|
-
CUED: 5
|
|
1854
|
-
});
|
|
1874
|
+
}(React__default.Component);
|
|
1855
1875
|
|
|
1856
1876
|
YouTube.propTypes = {
|
|
1857
1877
|
videoId: PropTypes.string,
|
|
1878
|
+
|
|
1858
1879
|
// custom ID for player element
|
|
1859
1880
|
id: PropTypes.string,
|
|
1881
|
+
|
|
1860
1882
|
// custom class name for player element
|
|
1861
1883
|
className: PropTypes.string,
|
|
1862
1884
|
// custom class name for player container element
|
|
1863
1885
|
containerClassName: PropTypes.string,
|
|
1886
|
+
|
|
1864
1887
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1865
1888
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1889
|
+
|
|
1866
1890
|
// event subscriptions
|
|
1867
1891
|
onReady: PropTypes.func,
|
|
1868
1892
|
onError: PropTypes.func,
|
|
@@ -1874,7 +1898,6 @@ YouTube.propTypes = {
|
|
|
1874
1898
|
onPlaybackQualityChange: PropTypes.func
|
|
1875
1899
|
};
|
|
1876
1900
|
YouTube.defaultProps = {
|
|
1877
|
-
videoId: null,
|
|
1878
1901
|
id: null,
|
|
1879
1902
|
className: null,
|
|
1880
1903
|
opts: {},
|
|
@@ -1888,6 +1911,14 @@ YouTube.defaultProps = {
|
|
|
1888
1911
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1889
1912
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1890
1913
|
};
|
|
1914
|
+
YouTube.PlayerState = {
|
|
1915
|
+
UNSTARTED: -1,
|
|
1916
|
+
ENDED: 0,
|
|
1917
|
+
PLAYING: 1,
|
|
1918
|
+
PAUSED: 2,
|
|
1919
|
+
BUFFERING: 3,
|
|
1920
|
+
CUED: 5
|
|
1921
|
+
};
|
|
1891
1922
|
|
|
1892
1923
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1893
1924
|
var url = _ref.url,
|
|
@@ -1927,7 +1958,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1927
1958
|
var queue = Math.floor(duration / 10);
|
|
1928
1959
|
var segment = Math.floor(current / queue);
|
|
1929
1960
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1930
|
-
Segment.report_video_event('Video Ready',
|
|
1961
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1931
1962
|
};
|
|
1932
1963
|
|
|
1933
1964
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1938,7 +1969,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1938
1969
|
|
|
1939
1970
|
if (!queueProgress.includes(segment)) {
|
|
1940
1971
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1941
|
-
Segment.report_video_event('Video Segment',
|
|
1972
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1942
1973
|
queueProgress.push(segment);
|
|
1943
1974
|
}
|
|
1944
1975
|
};
|
|
@@ -1952,7 +1983,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1952
1983
|
var segment = Math.floor(current / queue);
|
|
1953
1984
|
|
|
1954
1985
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1955
|
-
Segment.report_video_event('Video Play',
|
|
1986
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1956
1987
|
|
|
1957
1988
|
if (!playReported) {
|
|
1958
1989
|
setPlayReported(true);
|
|
@@ -1972,7 +2003,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1972
2003
|
var segment = Math.floor(current / queue);
|
|
1973
2004
|
|
|
1974
2005
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1975
|
-
Segment.report_video_event('Video End',
|
|
2006
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1976
2007
|
setEndReported(true);
|
|
1977
2008
|
clearInterval(intervalID);
|
|
1978
2009
|
}
|
|
@@ -1986,14 +2017,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1986
2017
|
var segment = Math.floor(current / queue);
|
|
1987
2018
|
|
|
1988
2019
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1989
|
-
Segment.report_video_event('Video Pause',
|
|
2020
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
2021
|
};
|
|
1991
2022
|
|
|
1992
|
-
return
|
|
2023
|
+
return React__default.createElement(
|
|
1993
2024
|
'div',
|
|
1994
2025
|
{ id: 'fluid-video-container' },
|
|
1995
|
-
|
|
1996
|
-
|
|
2026
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2027
|
+
React__default.createElement(
|
|
1997
2028
|
'style',
|
|
1998
2029
|
{ jsx: 'true' },
|
|
1999
2030
|
'\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 '
|
|
@@ -2006,20 +2037,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2006
2037
|
content = _ref.content,
|
|
2007
2038
|
getSerializers = _ref.getSerializers;
|
|
2008
2039
|
|
|
2009
|
-
return
|
|
2040
|
+
return React__default.createElement(
|
|
2010
2041
|
'article',
|
|
2011
2042
|
{ className: 'sidebar' },
|
|
2012
|
-
|
|
2043
|
+
React__default.createElement(
|
|
2013
2044
|
'div',
|
|
2014
2045
|
null,
|
|
2015
|
-
|
|
2046
|
+
React__default.createElement(
|
|
2016
2047
|
'h3',
|
|
2017
2048
|
null,
|
|
2018
2049
|
caption
|
|
2019
2050
|
),
|
|
2020
|
-
|
|
2051
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2021
2052
|
),
|
|
2022
|
-
|
|
2053
|
+
React__default.createElement(
|
|
2023
2054
|
'style',
|
|
2024
2055
|
{ jsx: 'true' },
|
|
2025
2056
|
'\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 '
|
|
@@ -2030,18 +2061,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2030
2061
|
var TableShow = function TableShow(_ref) {
|
|
2031
2062
|
var rows = _ref.rows;
|
|
2032
2063
|
|
|
2033
|
-
return
|
|
2064
|
+
return React__default.createElement(
|
|
2034
2065
|
Table,
|
|
2035
2066
|
{ bordered: true, hover: true, responsive: true },
|
|
2036
|
-
|
|
2067
|
+
React__default.createElement(
|
|
2037
2068
|
'tbody',
|
|
2038
2069
|
null,
|
|
2039
2070
|
rows && rows.map(function (row) {
|
|
2040
|
-
return
|
|
2071
|
+
return React__default.createElement(
|
|
2041
2072
|
'tr',
|
|
2042
2073
|
{ key: row._key },
|
|
2043
2074
|
row.cells && row.cells.map(function (cell, index) {
|
|
2044
|
-
return cell &&
|
|
2075
|
+
return cell && React__default.createElement(
|
|
2045
2076
|
'td',
|
|
2046
2077
|
{ key: index },
|
|
2047
2078
|
cell
|
|
@@ -2160,25 +2191,25 @@ var Media = function Media(_ref) {
|
|
|
2160
2191
|
margin: imageMargin
|
|
2161
2192
|
};
|
|
2162
2193
|
|
|
2163
|
-
return
|
|
2194
|
+
return React__default.createElement(
|
|
2164
2195
|
Figure$1,
|
|
2165
2196
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2166
|
-
|
|
2197
|
+
React__default.createElement(
|
|
2167
2198
|
'a',
|
|
2168
2199
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2169
|
-
|
|
2200
|
+
React__default.createElement(
|
|
2170
2201
|
LazyLoad,
|
|
2171
2202
|
{ once: true },
|
|
2172
|
-
|
|
2203
|
+
React__default.createElement(
|
|
2173
2204
|
'picture',
|
|
2174
2205
|
null,
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2206
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2207
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2208
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2209
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2179
2210
|
)
|
|
2180
2211
|
),
|
|
2181
|
-
caption &&
|
|
2212
|
+
caption && React__default.createElement(
|
|
2182
2213
|
Figure$1.Caption,
|
|
2183
2214
|
{ className: 'media-caption' },
|
|
2184
2215
|
caption
|
|
@@ -2186,9 +2217,9 @@ var Media = function Media(_ref) {
|
|
|
2186
2217
|
)
|
|
2187
2218
|
);
|
|
2188
2219
|
} else if (caption && caption !== '') {
|
|
2189
|
-
return
|
|
2220
|
+
return React__default.createElement(
|
|
2190
2221
|
'a',
|
|
2191
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2222
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2192
2223
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2193
2224
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2194
2225
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2206,10 +2237,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2206
2237
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2207
2238
|
|
|
2208
2239
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2209
|
-
return
|
|
2240
|
+
return React__default.createElement(
|
|
2210
2241
|
'div',
|
|
2211
2242
|
{ className: 'd-block text-center mb-3' },
|
|
2212
|
-
|
|
2243
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2213
2244
|
);
|
|
2214
2245
|
};
|
|
2215
2246
|
|
|
@@ -2244,7 +2275,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2244
2275
|
var queue = Math.floor(duration / 10);
|
|
2245
2276
|
var segment = Math.floor(current / queue);
|
|
2246
2277
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2247
|
-
Segment.report_video_event('Video Ready',
|
|
2278
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2248
2279
|
};
|
|
2249
2280
|
|
|
2250
2281
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2254,7 +2285,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2254
2285
|
var segment = Math.floor(current / queue);
|
|
2255
2286
|
if (!queueProgress.includes(segment)) {
|
|
2256
2287
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2257
|
-
Segment.report_video_event('Video Segment',
|
|
2288
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2258
2289
|
queueProgress.push(segment);
|
|
2259
2290
|
}
|
|
2260
2291
|
};
|
|
@@ -2267,7 +2298,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2267
2298
|
var queue = Math.floor(duration / 10);
|
|
2268
2299
|
var segment = Math.floor(current / queue);
|
|
2269
2300
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2270
|
-
Segment.report_video_event('Video Play',
|
|
2301
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2271
2302
|
|
|
2272
2303
|
if (!playReported) {
|
|
2273
2304
|
event.persist();
|
|
@@ -2288,7 +2319,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2288
2319
|
var segment = Math.floor(current / queue);
|
|
2289
2320
|
|
|
2290
2321
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2291
|
-
Segment.report_video_event('Video End',
|
|
2322
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2292
2323
|
setEndReported(true);
|
|
2293
2324
|
clearInterval(intervalID);
|
|
2294
2325
|
}
|
|
@@ -2301,13 +2332,13 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2301
2332
|
var queue = Math.floor(duration / 10);
|
|
2302
2333
|
var segment = Math.floor(current / queue);
|
|
2303
2334
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2304
|
-
Segment.report_video_event('Video Pause',
|
|
2335
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2305
2336
|
};
|
|
2306
2337
|
|
|
2307
|
-
return
|
|
2338
|
+
return React__default.createElement(
|
|
2308
2339
|
'div',
|
|
2309
2340
|
null,
|
|
2310
|
-
vidLoaded &&
|
|
2341
|
+
vidLoaded && React__default.createElement(
|
|
2311
2342
|
'video',
|
|
2312
2343
|
{
|
|
2313
2344
|
poster: thumbnail || '',
|
|
@@ -2325,7 +2356,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2325
2356
|
onPlay: function onPlay(e) {
|
|
2326
2357
|
return handleOnPlay(e);
|
|
2327
2358
|
} },
|
|
2328
|
-
|
|
2359
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2329
2360
|
'Your browser does not support the video tag.'
|
|
2330
2361
|
)
|
|
2331
2362
|
);
|
|
@@ -2362,7 +2393,7 @@ var Video = function Video(_ref) {
|
|
|
2362
2393
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2363
2394
|
//console.log('success:', success.ref)
|
|
2364
2395
|
var player = success.ref;
|
|
2365
|
-
if (_typeof
|
|
2396
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2366
2397
|
player.ima3.settings.debug = true;
|
|
2367
2398
|
if (targeting.content_placement && targeting.document_url) {
|
|
2368
2399
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2370,6 +2401,8 @@ var Video = function Video(_ref) {
|
|
|
2370
2401
|
}
|
|
2371
2402
|
// this is video ready
|
|
2372
2403
|
player.on('loadedmetadata', function (evt) {
|
|
2404
|
+
var _this = this;
|
|
2405
|
+
|
|
2373
2406
|
//console.log('loadedmetadata:', evt)
|
|
2374
2407
|
console.log('mediainfo:', player.mediainfo); // get the duration from here
|
|
2375
2408
|
var duration = player.mediainfo.duration;
|
|
@@ -2377,21 +2410,45 @@ var Video = function Video(_ref) {
|
|
|
2377
2410
|
var queue = Math.floor(duration / 10);
|
|
2378
2411
|
var segment = Math.floor(current / queue);
|
|
2379
2412
|
|
|
2380
|
-
|
|
2413
|
+
var autoPlayVideo = function () {
|
|
2414
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
2415
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
2416
|
+
while (1) {
|
|
2417
|
+
switch (_context.prev = _context.next) {
|
|
2418
|
+
case 0:
|
|
2419
|
+
_context.prev = 0;
|
|
2420
|
+
_context.next = 3;
|
|
2421
|
+
return player.play();
|
|
2422
|
+
|
|
2423
|
+
case 3:
|
|
2424
|
+
_context.next = 8;
|
|
2425
|
+
break;
|
|
2426
|
+
|
|
2427
|
+
case 5:
|
|
2428
|
+
_context.prev = 5;
|
|
2429
|
+
_context.t0 = _context['catch'](0);
|
|
2430
|
+
|
|
2431
|
+
console.log('could not autoplay video', _context.t0);
|
|
2432
|
+
|
|
2433
|
+
case 8:
|
|
2434
|
+
case 'end':
|
|
2435
|
+
return _context.stop();
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
}, _callee, _this, [[0, 5]]);
|
|
2439
|
+
}));
|
|
2440
|
+
|
|
2441
|
+
return function autoPlayVideo() {
|
|
2442
|
+
return _ref2.apply(this, arguments);
|
|
2443
|
+
};
|
|
2444
|
+
}();
|
|
2445
|
+
|
|
2381
2446
|
if (autoplay) {
|
|
2382
|
-
|
|
2383
|
-
player.muted(false);
|
|
2384
|
-
}).catch(function (error) {
|
|
2385
|
-
// then try to auto play with mute
|
|
2386
|
-
player.muted(true);
|
|
2387
|
-
player.play();
|
|
2388
|
-
});
|
|
2389
|
-
} else {
|
|
2390
|
-
player.pause();
|
|
2447
|
+
autoPlayVideo();
|
|
2391
2448
|
}
|
|
2392
2449
|
|
|
2393
2450
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2394
|
-
Segment.report_video_event('Video Ready',
|
|
2451
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2395
2452
|
});
|
|
2396
2453
|
|
|
2397
2454
|
// play
|
|
@@ -2401,7 +2458,7 @@ var Video = function Video(_ref) {
|
|
|
2401
2458
|
var queue = Math.floor(duration / 10);
|
|
2402
2459
|
var segment = Math.floor(current / queue);
|
|
2403
2460
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2404
|
-
Segment.report_video_event('Video Play',
|
|
2461
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2405
2462
|
});
|
|
2406
2463
|
|
|
2407
2464
|
// pause
|
|
@@ -2411,7 +2468,7 @@ var Video = function Video(_ref) {
|
|
|
2411
2468
|
var queue = Math.floor(duration / 10);
|
|
2412
2469
|
var segment = Math.floor(current / queue);
|
|
2413
2470
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2414
|
-
Segment.report_video_event('Video Pause',
|
|
2471
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
2472
|
});
|
|
2416
2473
|
|
|
2417
2474
|
// end
|
|
@@ -2421,7 +2478,7 @@ var Video = function Video(_ref) {
|
|
|
2421
2478
|
var queue = Math.floor(duration / 10);
|
|
2422
2479
|
var segment = Math.floor(current / queue);
|
|
2423
2480
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2424
|
-
Segment.report_video_event('Video End',
|
|
2481
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2425
2482
|
autoplayNextVideo(evt);
|
|
2426
2483
|
});
|
|
2427
2484
|
|
|
@@ -2433,7 +2490,7 @@ var Video = function Video(_ref) {
|
|
|
2433
2490
|
var segment = Math.floor(current / queue);
|
|
2434
2491
|
if (!queueProgress.includes(segment)) {
|
|
2435
2492
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2436
|
-
Segment.report_video_event('Video Segment',
|
|
2493
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2437
2494
|
queueProgress.push(segment);
|
|
2438
2495
|
}
|
|
2439
2496
|
});
|
|
@@ -2441,72 +2498,72 @@ var Video = function Video(_ref) {
|
|
|
2441
2498
|
// ad impression
|
|
2442
2499
|
player.on('ads-ad-started', function (evt) {
|
|
2443
2500
|
var duration = player.ads.ad.duration;
|
|
2444
|
-
player.ads.ad.id;
|
|
2501
|
+
var id = player.ads.ad.id;
|
|
2445
2502
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2446
2503
|
|
|
2447
2504
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2448
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2505
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2449
2506
|
});
|
|
2450
2507
|
|
|
2451
2508
|
// ad ended
|
|
2452
2509
|
player.on('ads-ad-ended', function (evt) {
|
|
2453
2510
|
var duration = player.ads.ad.duration;
|
|
2454
|
-
player.ads.ad.id;
|
|
2511
|
+
var id = player.ads.ad.id;
|
|
2455
2512
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2456
2513
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2457
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2514
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2458
2515
|
});
|
|
2459
2516
|
};
|
|
2460
2517
|
|
|
2461
2518
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2462
2519
|
if (videoID) {
|
|
2463
|
-
return
|
|
2520
|
+
return React__default.createElement(
|
|
2464
2521
|
'div',
|
|
2465
2522
|
null,
|
|
2466
|
-
|
|
2523
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2467
2524
|
onSuccess: onVideoSuccess,
|
|
2468
2525
|
accountId: accountIDs.brightcove.accountId,
|
|
2469
2526
|
videoId: videoID,
|
|
2470
2527
|
playerId: accountIDs.brightcove.playerId,
|
|
2471
2528
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2472
2529
|
}),
|
|
2473
|
-
|
|
2530
|
+
React__default.createElement(
|
|
2474
2531
|
'style',
|
|
2475
2532
|
{ jsx: 'true' },
|
|
2476
|
-
'\n
|
|
2533
|
+
'\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 '
|
|
2477
2534
|
)
|
|
2478
2535
|
);
|
|
2479
2536
|
} else if (playlistID) {
|
|
2480
|
-
return
|
|
2537
|
+
return React__default.createElement(
|
|
2481
2538
|
'div',
|
|
2482
2539
|
null,
|
|
2483
|
-
|
|
2540
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2484
2541
|
accountId: accountIDs.brightcove.accountId,
|
|
2485
2542
|
playlistId: playlistID,
|
|
2486
2543
|
playerId: accountIDs.brightcove.playerId,
|
|
2487
2544
|
onSuccess: onVideoSuccess,
|
|
2488
2545
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2489
2546
|
}),
|
|
2490
|
-
|
|
2547
|
+
React__default.createElement(
|
|
2491
2548
|
'style',
|
|
2492
2549
|
{ jsx: 'true' },
|
|
2493
2550
|
'\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
2551
|
)
|
|
2495
2552
|
);
|
|
2496
2553
|
} else if (experienceID) {
|
|
2497
|
-
return
|
|
2554
|
+
return React__default.createElement(
|
|
2498
2555
|
'div',
|
|
2499
2556
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2500
|
-
videoLoaded &&
|
|
2557
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2501
2558
|
);
|
|
2502
2559
|
}
|
|
2503
2560
|
return null;
|
|
2504
2561
|
}
|
|
2505
2562
|
if (source === 'mp4') {
|
|
2506
|
-
return
|
|
2563
|
+
return React__default.createElement(
|
|
2507
2564
|
'div',
|
|
2508
2565
|
null,
|
|
2509
|
-
|
|
2566
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2510
2567
|
);
|
|
2511
2568
|
}
|
|
2512
2569
|
|
|
@@ -2717,9 +2774,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2717
2774
|
});
|
|
2718
2775
|
|
|
2719
2776
|
unwrapExports(props);
|
|
2720
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2721
|
-
props.defaultProps;
|
|
2722
|
-
props.propTypes;
|
|
2777
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2778
|
+
var props_2 = props.defaultProps;
|
|
2779
|
+
var props_3 = props.propTypes;
|
|
2723
2780
|
|
|
2724
2781
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2725
2782
|
return isNonNullObject(value)
|
|
@@ -2884,17 +2941,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2884
2941
|
|
|
2885
2942
|
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; }
|
|
2886
2943
|
|
|
2887
|
-
function
|
|
2888
|
-
|
|
2889
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2944
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2890
2945
|
|
|
2891
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2946
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2892
2947
|
|
|
2893
|
-
function
|
|
2894
|
-
|
|
2895
|
-
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; }
|
|
2896
|
-
|
|
2897
|
-
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; }
|
|
2948
|
+
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; }
|
|
2898
2949
|
|
|
2899
2950
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2951
|
|
|
@@ -3024,12 +3075,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
3075
|
|
|
3025
3076
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
3077
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3078
|
+
var _iteratorNormalCompletion = true;
|
|
3079
|
+
var _didIteratorError = false;
|
|
3080
|
+
var _iteratorError = undefined;
|
|
3030
3081
|
|
|
3031
3082
|
try {
|
|
3032
|
-
for (_iterator.
|
|
3083
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3033
3084
|
var p = _step.value;
|
|
3034
3085
|
|
|
3035
3086
|
if (props$1[p]) {
|
|
@@ -3044,9 +3095,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3095
|
}
|
|
3045
3096
|
}
|
|
3046
3097
|
} catch (err) {
|
|
3047
|
-
|
|
3098
|
+
_didIteratorError = true;
|
|
3099
|
+
_iteratorError = err;
|
|
3048
3100
|
} finally {
|
|
3049
|
-
|
|
3101
|
+
try {
|
|
3102
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3103
|
+
_iterator["return"]();
|
|
3104
|
+
}
|
|
3105
|
+
} finally {
|
|
3106
|
+
if (_didIteratorError) {
|
|
3107
|
+
throw _iteratorError;
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3050
3110
|
}
|
|
3051
3111
|
|
|
3052
3112
|
return config;
|
|
@@ -3111,7 +3171,7 @@ function isEqual(a, b) {
|
|
|
3111
3171
|
return true;
|
|
3112
3172
|
}
|
|
3113
3173
|
|
|
3114
|
-
if ((0,
|
|
3174
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3115
3175
|
return true;
|
|
3116
3176
|
}
|
|
3117
3177
|
|
|
@@ -3154,17 +3214,17 @@ function isMediaStream(url) {
|
|
|
3154
3214
|
});
|
|
3155
3215
|
|
|
3156
3216
|
unwrapExports(utils);
|
|
3157
|
-
utils.parseStartTime;
|
|
3158
|
-
utils.parseEndTime;
|
|
3159
|
-
utils.randomString;
|
|
3160
|
-
utils.queryString;
|
|
3161
|
-
utils.getSDK;
|
|
3162
|
-
utils.getConfig;
|
|
3163
|
-
utils.omit;
|
|
3164
|
-
utils.callPlayer;
|
|
3165
|
-
utils.isObject;
|
|
3166
|
-
utils.isEqual;
|
|
3167
|
-
utils.isMediaStream;
|
|
3217
|
+
var utils_1 = utils.parseStartTime;
|
|
3218
|
+
var utils_2 = utils.parseEndTime;
|
|
3219
|
+
var utils_3 = utils.randomString;
|
|
3220
|
+
var utils_4 = utils.queryString;
|
|
3221
|
+
var utils_5 = utils.getSDK;
|
|
3222
|
+
var utils_6 = utils.getConfig;
|
|
3223
|
+
var utils_7 = utils.omit;
|
|
3224
|
+
var utils_8 = utils.callPlayer;
|
|
3225
|
+
var utils_9 = utils.isObject;
|
|
3226
|
+
var utils_10 = utils.isEqual;
|
|
3227
|
+
var utils_11 = utils.isMediaStream;
|
|
3168
3228
|
|
|
3169
3229
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3170
3230
|
|
|
@@ -3173,7 +3233,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3173
3233
|
});
|
|
3174
3234
|
exports["default"] = void 0;
|
|
3175
3235
|
|
|
3176
|
-
var _react = _interopRequireWildcard(
|
|
3236
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3177
3237
|
|
|
3178
3238
|
|
|
3179
3239
|
|
|
@@ -3193,16 +3253,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3193
3253
|
|
|
3194
3254
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3195
3255
|
|
|
3196
|
-
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); }; }
|
|
3197
|
-
|
|
3198
3256
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3199
3257
|
|
|
3200
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3201
|
-
|
|
3202
|
-
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; } }
|
|
3203
|
-
|
|
3204
3258
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3205
3259
|
|
|
3260
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3261
|
+
|
|
3206
3262
|
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); }
|
|
3207
3263
|
|
|
3208
3264
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3211,12 +3267,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3211
3267
|
|
|
3212
3268
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3213
3269
|
|
|
3214
|
-
var Player =
|
|
3270
|
+
var Player =
|
|
3271
|
+
/*#__PURE__*/
|
|
3272
|
+
function (_Component) {
|
|
3215
3273
|
_inherits(Player, _Component);
|
|
3216
3274
|
|
|
3217
|
-
var _super = _createSuper(Player);
|
|
3218
|
-
|
|
3219
3275
|
function Player() {
|
|
3276
|
+
var _getPrototypeOf2;
|
|
3277
|
+
|
|
3220
3278
|
var _this;
|
|
3221
3279
|
|
|
3222
3280
|
_classCallCheck(this, Player);
|
|
@@ -3225,7 +3283,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3225
3283
|
_args[_key] = arguments[_key];
|
|
3226
3284
|
}
|
|
3227
3285
|
|
|
3228
|
-
_this =
|
|
3286
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3229
3287
|
|
|
3230
3288
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3231
3289
|
|
|
@@ -3550,7 +3608,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3550
3608
|
return null;
|
|
3551
3609
|
}
|
|
3552
3610
|
|
|
3553
|
-
return
|
|
3611
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3554
3612
|
ref: this.ref,
|
|
3555
3613
|
onReady: this.handleReady,
|
|
3556
3614
|
onPlay: this.handlePlay,
|
|
@@ -3583,7 +3641,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3583
3641
|
});
|
|
3584
3642
|
exports["default"] = createSinglePlayer;
|
|
3585
3643
|
|
|
3586
|
-
var _react = _interopRequireWildcard(
|
|
3644
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3587
3645
|
|
|
3588
3646
|
|
|
3589
3647
|
|
|
@@ -3611,16 +3669,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3611
3669
|
|
|
3612
3670
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3613
3671
|
|
|
3614
|
-
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); }; }
|
|
3615
|
-
|
|
3616
3672
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3617
3673
|
|
|
3618
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3619
|
-
|
|
3620
|
-
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; } }
|
|
3621
|
-
|
|
3622
3674
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3623
3675
|
|
|
3676
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3677
|
+
|
|
3624
3678
|
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); }
|
|
3625
3679
|
|
|
3626
3680
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3632,12 +3686,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3632
3686
|
function createSinglePlayer(activePlayer) {
|
|
3633
3687
|
var _class, _temp;
|
|
3634
3688
|
|
|
3635
|
-
return _temp = _class =
|
|
3689
|
+
return _temp = _class =
|
|
3690
|
+
/*#__PURE__*/
|
|
3691
|
+
function (_Component) {
|
|
3636
3692
|
_inherits(SinglePlayer, _Component);
|
|
3637
3693
|
|
|
3638
|
-
var _super = _createSuper(SinglePlayer);
|
|
3639
|
-
|
|
3640
3694
|
function SinglePlayer() {
|
|
3695
|
+
var _getPrototypeOf2;
|
|
3696
|
+
|
|
3641
3697
|
var _this;
|
|
3642
3698
|
|
|
3643
3699
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3646,7 +3702,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3646
3702
|
args[_key] = arguments[_key];
|
|
3647
3703
|
}
|
|
3648
3704
|
|
|
3649
|
-
_this =
|
|
3705
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3650
3706
|
|
|
3651
3707
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3652
3708
|
|
|
@@ -3714,12 +3770,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3714
3770
|
height = _this$props.height,
|
|
3715
3771
|
Wrapper = _this$props.wrapper;
|
|
3716
3772
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3717
|
-
return
|
|
3773
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3718
3774
|
style: _objectSpread({}, style, {
|
|
3719
3775
|
width: width,
|
|
3720
3776
|
height: height
|
|
3721
3777
|
})
|
|
3722
|
-
}, otherProps),
|
|
3778
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3723
3779
|
ref: this.ref,
|
|
3724
3780
|
activePlayer: activePlayer,
|
|
3725
3781
|
config: this.config
|
|
@@ -3741,7 +3797,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3741
3797
|
});
|
|
3742
3798
|
exports["default"] = exports.YouTube = void 0;
|
|
3743
3799
|
|
|
3744
|
-
var _react = _interopRequireWildcard(
|
|
3800
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3745
3801
|
|
|
3746
3802
|
|
|
3747
3803
|
|
|
@@ -3765,31 +3821,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3765
3821
|
|
|
3766
3822
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3767
3823
|
|
|
3768
|
-
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); }; }
|
|
3769
|
-
|
|
3770
3824
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3771
3825
|
|
|
3772
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3773
|
-
|
|
3774
|
-
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; } }
|
|
3775
|
-
|
|
3776
3826
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3777
3827
|
|
|
3828
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3829
|
+
|
|
3778
3830
|
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); }
|
|
3779
3831
|
|
|
3780
3832
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3781
3833
|
|
|
3782
3834
|
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; }
|
|
3783
3835
|
|
|
3784
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3836
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3785
3837
|
|
|
3786
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3838
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3787
3839
|
|
|
3788
|
-
function
|
|
3789
|
-
|
|
3790
|
-
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; }
|
|
3791
|
-
|
|
3792
|
-
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; }
|
|
3840
|
+
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; }
|
|
3793
3841
|
|
|
3794
3842
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3795
3843
|
|
|
@@ -3814,12 +3862,14 @@ function parsePlaylist(url) {
|
|
|
3814
3862
|
return {};
|
|
3815
3863
|
}
|
|
3816
3864
|
|
|
3817
|
-
var YouTube =
|
|
3865
|
+
var YouTube =
|
|
3866
|
+
/*#__PURE__*/
|
|
3867
|
+
function (_Component) {
|
|
3818
3868
|
_inherits(YouTube, _Component);
|
|
3819
3869
|
|
|
3820
|
-
var _super = _createSuper(YouTube);
|
|
3821
|
-
|
|
3822
3870
|
function YouTube() {
|
|
3871
|
+
var _getPrototypeOf2;
|
|
3872
|
+
|
|
3823
3873
|
var _this;
|
|
3824
3874
|
|
|
3825
3875
|
_classCallCheck(this, YouTube);
|
|
@@ -3828,7 +3878,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3828
3878
|
args[_key] = arguments[_key];
|
|
3829
3879
|
}
|
|
3830
3880
|
|
|
3831
|
-
_this =
|
|
3881
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3832
3882
|
|
|
3833
3883
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3834
3884
|
|
|
@@ -4016,9 +4066,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4016
4066
|
height: '100%',
|
|
4017
4067
|
display: display
|
|
4018
4068
|
};
|
|
4019
|
-
return
|
|
4069
|
+
return _react["default"].createElement("div", {
|
|
4020
4070
|
style: style
|
|
4021
|
-
},
|
|
4071
|
+
}, _react["default"].createElement("div", {
|
|
4022
4072
|
ref: this.ref
|
|
4023
4073
|
}));
|
|
4024
4074
|
}
|
|
@@ -4041,7 +4091,7 @@ exports["default"] = _default;
|
|
|
4041
4091
|
});
|
|
4042
4092
|
|
|
4043
4093
|
unwrapExports(YouTube_1);
|
|
4044
|
-
YouTube_1.YouTube;
|
|
4094
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4045
4095
|
|
|
4046
4096
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4047
4097
|
|
|
@@ -4050,7 +4100,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4050
4100
|
});
|
|
4051
4101
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4052
4102
|
|
|
4053
|
-
var _react = _interopRequireWildcard(
|
|
4103
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4054
4104
|
|
|
4055
4105
|
|
|
4056
4106
|
|
|
@@ -4074,16 +4124,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4074
4124
|
|
|
4075
4125
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4076
4126
|
|
|
4077
|
-
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); }; }
|
|
4078
|
-
|
|
4079
4127
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4080
4128
|
|
|
4081
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4082
|
-
|
|
4083
|
-
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; } }
|
|
4084
|
-
|
|
4085
4129
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4086
4130
|
|
|
4131
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4132
|
+
|
|
4087
4133
|
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); }
|
|
4088
4134
|
|
|
4089
4135
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4092,14 +4138,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4092
4138
|
|
|
4093
4139
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4094
4140
|
var SDK_GLOBAL = 'SC';
|
|
4095
|
-
var MATCH_URL = /(
|
|
4141
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4096
4142
|
|
|
4097
|
-
var SoundCloud =
|
|
4143
|
+
var SoundCloud =
|
|
4144
|
+
/*#__PURE__*/
|
|
4145
|
+
function (_Component) {
|
|
4098
4146
|
_inherits(SoundCloud, _Component);
|
|
4099
4147
|
|
|
4100
|
-
var _super = _createSuper(SoundCloud);
|
|
4101
|
-
|
|
4102
4148
|
function SoundCloud() {
|
|
4149
|
+
var _getPrototypeOf2;
|
|
4150
|
+
|
|
4103
4151
|
var _this;
|
|
4104
4152
|
|
|
4105
4153
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4108,7 +4156,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4108
4156
|
args[_key] = arguments[_key];
|
|
4109
4157
|
}
|
|
4110
4158
|
|
|
4111
|
-
_this =
|
|
4159
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4112
4160
|
|
|
4113
4161
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4114
4162
|
|
|
@@ -4229,7 +4277,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4229
4277
|
height: '100%',
|
|
4230
4278
|
display: display
|
|
4231
4279
|
};
|
|
4232
|
-
return
|
|
4280
|
+
return _react["default"].createElement("iframe", {
|
|
4233
4281
|
ref: this.ref,
|
|
4234
4282
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4235
4283
|
style: style,
|
|
@@ -4258,7 +4306,7 @@ exports["default"] = _default;
|
|
|
4258
4306
|
});
|
|
4259
4307
|
|
|
4260
4308
|
unwrapExports(SoundCloud_1);
|
|
4261
|
-
SoundCloud_1.SoundCloud;
|
|
4309
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4262
4310
|
|
|
4263
4311
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4264
4312
|
|
|
@@ -4267,7 +4315,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4267
4315
|
});
|
|
4268
4316
|
exports["default"] = exports.Vimeo = void 0;
|
|
4269
4317
|
|
|
4270
|
-
var _react = _interopRequireWildcard(
|
|
4318
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4271
4319
|
|
|
4272
4320
|
|
|
4273
4321
|
|
|
@@ -4291,16 +4339,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4291
4339
|
|
|
4292
4340
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4293
4341
|
|
|
4294
|
-
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); }; }
|
|
4295
|
-
|
|
4296
4342
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4297
4343
|
|
|
4298
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4299
|
-
|
|
4300
|
-
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; } }
|
|
4301
|
-
|
|
4302
4344
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4303
4345
|
|
|
4346
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4347
|
+
|
|
4304
4348
|
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); }
|
|
4305
4349
|
|
|
4306
4350
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4312,12 +4356,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4312
4356
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4313
4357
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4314
4358
|
|
|
4315
|
-
var Vimeo =
|
|
4359
|
+
var Vimeo =
|
|
4360
|
+
/*#__PURE__*/
|
|
4361
|
+
function (_Component) {
|
|
4316
4362
|
_inherits(Vimeo, _Component);
|
|
4317
4363
|
|
|
4318
|
-
var _super = _createSuper(Vimeo);
|
|
4319
|
-
|
|
4320
4364
|
function Vimeo() {
|
|
4365
|
+
var _getPrototypeOf2;
|
|
4366
|
+
|
|
4321
4367
|
var _this;
|
|
4322
4368
|
|
|
4323
4369
|
_classCallCheck(this, Vimeo);
|
|
@@ -4326,7 +4372,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4326
4372
|
args[_key] = arguments[_key];
|
|
4327
4373
|
}
|
|
4328
4374
|
|
|
4329
|
-
_this =
|
|
4375
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4330
4376
|
|
|
4331
4377
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4332
4378
|
|
|
@@ -4483,7 +4529,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4483
4529
|
overflow: 'hidden',
|
|
4484
4530
|
display: display
|
|
4485
4531
|
};
|
|
4486
|
-
return
|
|
4532
|
+
return _react["default"].createElement("div", {
|
|
4487
4533
|
key: this.props.url,
|
|
4488
4534
|
ref: this.ref,
|
|
4489
4535
|
style: style
|
|
@@ -4514,7 +4560,7 @@ exports["default"] = _default;
|
|
|
4514
4560
|
});
|
|
4515
4561
|
|
|
4516
4562
|
unwrapExports(Vimeo_1);
|
|
4517
|
-
Vimeo_1.Vimeo;
|
|
4563
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4518
4564
|
|
|
4519
4565
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4520
4566
|
|
|
@@ -4523,7 +4569,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4523
4569
|
});
|
|
4524
4570
|
exports["default"] = exports.Facebook = void 0;
|
|
4525
4571
|
|
|
4526
|
-
var _react = _interopRequireWildcard(
|
|
4572
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4527
4573
|
|
|
4528
4574
|
|
|
4529
4575
|
|
|
@@ -4543,16 +4589,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4543
4589
|
|
|
4544
4590
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4545
4591
|
|
|
4546
|
-
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); }; }
|
|
4547
|
-
|
|
4548
4592
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4549
4593
|
|
|
4550
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4551
|
-
|
|
4552
|
-
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; } }
|
|
4553
|
-
|
|
4554
4594
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4555
4595
|
|
|
4596
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4597
|
+
|
|
4556
4598
|
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); }
|
|
4557
4599
|
|
|
4558
4600
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4565,12 +4607,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4565
4607
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4566
4608
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4567
4609
|
|
|
4568
|
-
var Facebook =
|
|
4610
|
+
var Facebook =
|
|
4611
|
+
/*#__PURE__*/
|
|
4612
|
+
function (_Component) {
|
|
4569
4613
|
_inherits(Facebook, _Component);
|
|
4570
4614
|
|
|
4571
|
-
var _super = _createSuper(Facebook);
|
|
4572
|
-
|
|
4573
4615
|
function Facebook() {
|
|
4616
|
+
var _getPrototypeOf2;
|
|
4617
|
+
|
|
4574
4618
|
var _this;
|
|
4575
4619
|
|
|
4576
4620
|
_classCallCheck(this, Facebook);
|
|
@@ -4579,7 +4623,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4579
4623
|
args[_key] = arguments[_key];
|
|
4580
4624
|
}
|
|
4581
4625
|
|
|
4582
|
-
_this =
|
|
4626
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4583
4627
|
|
|
4584
4628
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4585
4629
|
|
|
@@ -4695,7 +4739,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4695
4739
|
width: '100%',
|
|
4696
4740
|
height: '100%'
|
|
4697
4741
|
};
|
|
4698
|
-
return
|
|
4742
|
+
return _react["default"].createElement("div", {
|
|
4699
4743
|
style: style,
|
|
4700
4744
|
id: this.playerID,
|
|
4701
4745
|
className: "fb-video",
|
|
@@ -4726,7 +4770,7 @@ exports["default"] = _default;
|
|
|
4726
4770
|
});
|
|
4727
4771
|
|
|
4728
4772
|
unwrapExports(Facebook_1);
|
|
4729
|
-
Facebook_1.Facebook;
|
|
4773
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4730
4774
|
|
|
4731
4775
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4732
4776
|
|
|
@@ -4735,7 +4779,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4735
4779
|
});
|
|
4736
4780
|
exports["default"] = exports.Streamable = void 0;
|
|
4737
4781
|
|
|
4738
|
-
var _react = _interopRequireWildcard(
|
|
4782
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4739
4783
|
|
|
4740
4784
|
|
|
4741
4785
|
|
|
@@ -4755,16 +4799,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4755
4799
|
|
|
4756
4800
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4757
4801
|
|
|
4758
|
-
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); }; }
|
|
4759
|
-
|
|
4760
4802
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4761
4803
|
|
|
4762
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4763
|
-
|
|
4764
|
-
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; } }
|
|
4765
|
-
|
|
4766
4804
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4767
4805
|
|
|
4806
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4807
|
+
|
|
4768
4808
|
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); }
|
|
4769
4809
|
|
|
4770
4810
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4775,12 +4815,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4775
4815
|
var SDK_GLOBAL = 'playerjs';
|
|
4776
4816
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4777
4817
|
|
|
4778
|
-
var Streamable =
|
|
4818
|
+
var Streamable =
|
|
4819
|
+
/*#__PURE__*/
|
|
4820
|
+
function (_Component) {
|
|
4779
4821
|
_inherits(Streamable, _Component);
|
|
4780
4822
|
|
|
4781
|
-
var _super = _createSuper(Streamable);
|
|
4782
|
-
|
|
4783
4823
|
function Streamable() {
|
|
4824
|
+
var _getPrototypeOf2;
|
|
4825
|
+
|
|
4784
4826
|
var _this;
|
|
4785
4827
|
|
|
4786
4828
|
_classCallCheck(this, Streamable);
|
|
@@ -4789,7 +4831,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4789
4831
|
args[_key] = arguments[_key];
|
|
4790
4832
|
}
|
|
4791
4833
|
|
|
4792
|
-
_this =
|
|
4834
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4793
4835
|
|
|
4794
4836
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4795
4837
|
|
|
@@ -4909,7 +4951,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4909
4951
|
width: '100%',
|
|
4910
4952
|
height: '100%'
|
|
4911
4953
|
};
|
|
4912
|
-
return
|
|
4954
|
+
return _react["default"].createElement("iframe", {
|
|
4913
4955
|
ref: this.ref,
|
|
4914
4956
|
src: "https://streamable.com/o/".concat(id),
|
|
4915
4957
|
frameBorder: "0",
|
|
@@ -4937,7 +4979,7 @@ exports["default"] = _default;
|
|
|
4937
4979
|
});
|
|
4938
4980
|
|
|
4939
4981
|
unwrapExports(Streamable_1);
|
|
4940
|
-
Streamable_1.Streamable;
|
|
4982
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4941
4983
|
|
|
4942
4984
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4943
4985
|
|
|
@@ -4946,7 +4988,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4946
4988
|
});
|
|
4947
4989
|
exports["default"] = exports.Wistia = void 0;
|
|
4948
4990
|
|
|
4949
|
-
var _react = _interopRequireWildcard(
|
|
4991
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4950
4992
|
|
|
4951
4993
|
|
|
4952
4994
|
|
|
@@ -4970,16 +5012,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4970
5012
|
|
|
4971
5013
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4972
5014
|
|
|
4973
|
-
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); }; }
|
|
4974
|
-
|
|
4975
5015
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4976
5016
|
|
|
4977
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4978
|
-
|
|
4979
|
-
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; } }
|
|
4980
|
-
|
|
4981
5017
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4982
5018
|
|
|
5019
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5020
|
+
|
|
4983
5021
|
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); }
|
|
4984
5022
|
|
|
4985
5023
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4990,48 +5028,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4990
5028
|
var SDK_GLOBAL = 'Wistia';
|
|
4991
5029
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4992
5030
|
|
|
4993
|
-
var Wistia =
|
|
5031
|
+
var Wistia =
|
|
5032
|
+
/*#__PURE__*/
|
|
5033
|
+
function (_Component) {
|
|
4994
5034
|
_inherits(Wistia, _Component);
|
|
4995
5035
|
|
|
4996
|
-
var _super = _createSuper(Wistia);
|
|
4997
|
-
|
|
4998
5036
|
function Wistia() {
|
|
5037
|
+
var _getPrototypeOf2;
|
|
5038
|
+
|
|
4999
5039
|
var _this;
|
|
5000
5040
|
|
|
5001
5041
|
_classCallCheck(this, Wistia);
|
|
5002
5042
|
|
|
5003
|
-
for (var _len = arguments.length,
|
|
5004
|
-
|
|
5043
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5044
|
+
args[_key] = arguments[_key];
|
|
5005
5045
|
}
|
|
5006
5046
|
|
|
5007
|
-
_this =
|
|
5047
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5008
5048
|
|
|
5009
5049
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5010
5050
|
|
|
5011
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5012
|
-
var _this$props;
|
|
5013
|
-
|
|
5014
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5015
|
-
});
|
|
5016
|
-
|
|
5017
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5018
|
-
var _this$props2;
|
|
5019
|
-
|
|
5020
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5021
|
-
});
|
|
5022
|
-
|
|
5023
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5024
|
-
var _this$props3;
|
|
5025
|
-
|
|
5026
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5027
|
-
});
|
|
5028
|
-
|
|
5029
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5030
|
-
var _this$props4;
|
|
5031
|
-
|
|
5032
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5033
|
-
});
|
|
5034
|
-
|
|
5035
5051
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5036
5052
|
_this.callPlayer('mute');
|
|
5037
5053
|
});
|
|
@@ -5053,13 +5069,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5053
5069
|
value: function load(url) {
|
|
5054
5070
|
var _this2 = this;
|
|
5055
5071
|
|
|
5056
|
-
var _this$
|
|
5057
|
-
playing = _this$
|
|
5058
|
-
muted = _this$
|
|
5059
|
-
controls = _this$
|
|
5060
|
-
_onReady = _this$
|
|
5061
|
-
|
|
5062
|
-
|
|
5072
|
+
var _this$props = this.props,
|
|
5073
|
+
playing = _this$props.playing,
|
|
5074
|
+
muted = _this$props.muted,
|
|
5075
|
+
controls = _this$props.controls,
|
|
5076
|
+
_onReady = _this$props.onReady,
|
|
5077
|
+
onPlay = _this$props.onPlay,
|
|
5078
|
+
onPause = _this$props.onPause,
|
|
5079
|
+
onSeek = _this$props.onSeek,
|
|
5080
|
+
onEnded = _this$props.onEnded,
|
|
5081
|
+
config = _this$props.config,
|
|
5082
|
+
onError = _this$props.onError;
|
|
5063
5083
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5064
5084
|
window._wq = window._wq || [];
|
|
5065
5085
|
|
|
@@ -5076,28 +5096,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5076
5096
|
|
|
5077
5097
|
_this2.unbind();
|
|
5078
5098
|
|
|
5079
|
-
_this2.player.bind('play',
|
|
5099
|
+
_this2.player.bind('play', onPlay);
|
|
5080
5100
|
|
|
5081
|
-
_this2.player.bind('pause',
|
|
5101
|
+
_this2.player.bind('pause', onPause);
|
|
5082
5102
|
|
|
5083
|
-
_this2.player.bind('seek',
|
|
5103
|
+
_this2.player.bind('seek', onSeek);
|
|
5084
5104
|
|
|
5085
|
-
_this2.player.bind('end',
|
|
5105
|
+
_this2.player.bind('end', onEnded);
|
|
5086
5106
|
|
|
5087
5107
|
_onReady();
|
|
5088
5108
|
}
|
|
5089
5109
|
});
|
|
5090
5110
|
}, onError);
|
|
5091
5111
|
}
|
|
5092
|
-
}, {
|
|
5093
|
-
key: "unbind",
|
|
5094
|
-
value: function unbind() {
|
|
5095
|
-
this.player.unbind('play', this.onPlay);
|
|
5096
|
-
this.player.unbind('pause', this.onPause);
|
|
5097
|
-
this.player.unbind('seek', this.onSeek);
|
|
5098
|
-
this.player.unbind('end', this.onEnded);
|
|
5099
|
-
} // Proxy methods to prevent listener leaks
|
|
5100
|
-
|
|
5101
5112
|
}, {
|
|
5102
5113
|
key: "play",
|
|
5103
5114
|
value: function play() {
|
|
@@ -5108,6 +5119,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5108
5119
|
value: function pause() {
|
|
5109
5120
|
this.callPlayer('pause');
|
|
5110
5121
|
}
|
|
5122
|
+
}, {
|
|
5123
|
+
key: "unbind",
|
|
5124
|
+
value: function unbind() {
|
|
5125
|
+
var _this$props2 = this.props,
|
|
5126
|
+
onPlay = _this$props2.onPlay,
|
|
5127
|
+
onPause = _this$props2.onPause,
|
|
5128
|
+
onSeek = _this$props2.onSeek,
|
|
5129
|
+
onEnded = _this$props2.onEnded;
|
|
5130
|
+
this.player.unbind('play', onPlay);
|
|
5131
|
+
this.player.unbind('pause', onPause);
|
|
5132
|
+
this.player.unbind('seek', onSeek);
|
|
5133
|
+
this.player.unbind('end', onEnded);
|
|
5134
|
+
}
|
|
5111
5135
|
}, {
|
|
5112
5136
|
key: "stop",
|
|
5113
5137
|
value: function stop() {
|
|
@@ -5153,7 +5177,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5153
5177
|
width: '100%',
|
|
5154
5178
|
height: '100%'
|
|
5155
5179
|
};
|
|
5156
|
-
return
|
|
5180
|
+
return _react["default"].createElement("div", {
|
|
5157
5181
|
key: id,
|
|
5158
5182
|
className: className,
|
|
5159
5183
|
style: style
|
|
@@ -5180,7 +5204,7 @@ exports["default"] = _default;
|
|
|
5180
5204
|
});
|
|
5181
5205
|
|
|
5182
5206
|
unwrapExports(Wistia_1);
|
|
5183
|
-
Wistia_1.Wistia;
|
|
5207
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5184
5208
|
|
|
5185
5209
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5186
5210
|
|
|
@@ -5189,7 +5213,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5189
5213
|
});
|
|
5190
5214
|
exports["default"] = exports.Twitch = void 0;
|
|
5191
5215
|
|
|
5192
|
-
var _react = _interopRequireWildcard(
|
|
5216
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5193
5217
|
|
|
5194
5218
|
|
|
5195
5219
|
|
|
@@ -5213,16 +5237,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5213
5237
|
|
|
5214
5238
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5215
5239
|
|
|
5216
|
-
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); }; }
|
|
5217
|
-
|
|
5218
5240
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5219
5241
|
|
|
5220
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5221
|
-
|
|
5222
|
-
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; } }
|
|
5223
|
-
|
|
5224
5242
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5225
5243
|
|
|
5244
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5245
|
+
|
|
5226
5246
|
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); }
|
|
5227
5247
|
|
|
5228
5248
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5235,12 +5255,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5235
5255
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5236
5256
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5237
5257
|
|
|
5238
|
-
var Twitch =
|
|
5258
|
+
var Twitch =
|
|
5259
|
+
/*#__PURE__*/
|
|
5260
|
+
function (_Component) {
|
|
5239
5261
|
_inherits(Twitch, _Component);
|
|
5240
5262
|
|
|
5241
|
-
var _super = _createSuper(Twitch);
|
|
5242
|
-
|
|
5243
5263
|
function Twitch() {
|
|
5264
|
+
var _getPrototypeOf2;
|
|
5265
|
+
|
|
5244
5266
|
var _this;
|
|
5245
5267
|
|
|
5246
5268
|
_classCallCheck(this, Twitch);
|
|
@@ -5249,7 +5271,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5249
5271
|
args[_key] = arguments[_key];
|
|
5250
5272
|
}
|
|
5251
5273
|
|
|
5252
|
-
_this =
|
|
5274
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5253
5275
|
|
|
5254
5276
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5255
5277
|
|
|
@@ -5370,7 +5392,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5370
5392
|
width: '100%',
|
|
5371
5393
|
height: '100%'
|
|
5372
5394
|
};
|
|
5373
|
-
return
|
|
5395
|
+
return _react["default"].createElement("div", {
|
|
5374
5396
|
style: style,
|
|
5375
5397
|
id: this.playerID
|
|
5376
5398
|
});
|
|
@@ -5396,7 +5418,7 @@ exports["default"] = _default;
|
|
|
5396
5418
|
});
|
|
5397
5419
|
|
|
5398
5420
|
unwrapExports(Twitch_1);
|
|
5399
|
-
Twitch_1.Twitch;
|
|
5421
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5400
5422
|
|
|
5401
5423
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5402
5424
|
|
|
@@ -5405,7 +5427,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5405
5427
|
});
|
|
5406
5428
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5407
5429
|
|
|
5408
|
-
var _react = _interopRequireWildcard(
|
|
5430
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5409
5431
|
|
|
5410
5432
|
|
|
5411
5433
|
|
|
@@ -5423,15 +5445,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5423
5445
|
|
|
5424
5446
|
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; }
|
|
5425
5447
|
|
|
5426
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5448
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5427
5449
|
|
|
5428
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5450
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5429
5451
|
|
|
5430
|
-
function
|
|
5431
|
-
|
|
5432
|
-
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; }
|
|
5433
|
-
|
|
5434
|
-
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; }
|
|
5452
|
+
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; }
|
|
5435
5453
|
|
|
5436
5454
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5437
5455
|
|
|
@@ -5441,16 +5459,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5441
5459
|
|
|
5442
5460
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5443
5461
|
|
|
5444
|
-
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); }; }
|
|
5445
|
-
|
|
5446
5462
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5447
5463
|
|
|
5448
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5449
|
-
|
|
5450
|
-
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; } }
|
|
5451
|
-
|
|
5452
5464
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5453
5465
|
|
|
5466
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5467
|
+
|
|
5454
5468
|
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); }
|
|
5455
5469
|
|
|
5456
5470
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5462,12 +5476,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5462
5476
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5463
5477
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5464
5478
|
|
|
5465
|
-
var DailyMotion =
|
|
5479
|
+
var DailyMotion =
|
|
5480
|
+
/*#__PURE__*/
|
|
5481
|
+
function (_Component) {
|
|
5466
5482
|
_inherits(DailyMotion, _Component);
|
|
5467
5483
|
|
|
5468
|
-
var _super = _createSuper(DailyMotion);
|
|
5469
|
-
|
|
5470
5484
|
function DailyMotion() {
|
|
5485
|
+
var _getPrototypeOf2;
|
|
5486
|
+
|
|
5471
5487
|
var _this;
|
|
5472
5488
|
|
|
5473
5489
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5476,7 +5492,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5476
5492
|
args[_key] = arguments[_key];
|
|
5477
5493
|
}
|
|
5478
5494
|
|
|
5479
|
-
_this =
|
|
5495
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5480
5496
|
|
|
5481
5497
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5482
5498
|
|
|
@@ -5605,9 +5621,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5605
5621
|
height: '100%',
|
|
5606
5622
|
display: display
|
|
5607
5623
|
};
|
|
5608
|
-
return
|
|
5624
|
+
return _react["default"].createElement("div", {
|
|
5609
5625
|
style: style
|
|
5610
|
-
},
|
|
5626
|
+
}, _react["default"].createElement("div", {
|
|
5611
5627
|
ref: this.ref
|
|
5612
5628
|
}));
|
|
5613
5629
|
}
|
|
@@ -5632,7 +5648,7 @@ exports["default"] = _default;
|
|
|
5632
5648
|
});
|
|
5633
5649
|
|
|
5634
5650
|
unwrapExports(DailyMotion_1);
|
|
5635
|
-
DailyMotion_1.DailyMotion;
|
|
5651
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5636
5652
|
|
|
5637
5653
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5638
5654
|
|
|
@@ -5641,7 +5657,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5641
5657
|
});
|
|
5642
5658
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5643
5659
|
|
|
5644
|
-
var _react = _interopRequireWildcard(
|
|
5660
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5645
5661
|
|
|
5646
5662
|
|
|
5647
5663
|
|
|
@@ -5665,16 +5681,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5665
5681
|
|
|
5666
5682
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5667
5683
|
|
|
5668
|
-
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); }; }
|
|
5669
|
-
|
|
5670
5684
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5671
5685
|
|
|
5672
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5673
|
-
|
|
5674
|
-
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; } }
|
|
5675
|
-
|
|
5676
5686
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5677
5687
|
|
|
5688
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5689
|
+
|
|
5678
5690
|
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); }
|
|
5679
5691
|
|
|
5680
5692
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5685,12 +5697,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5685
5697
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5686
5698
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5687
5699
|
|
|
5688
|
-
var Mixcloud =
|
|
5700
|
+
var Mixcloud =
|
|
5701
|
+
/*#__PURE__*/
|
|
5702
|
+
function (_Component) {
|
|
5689
5703
|
_inherits(Mixcloud, _Component);
|
|
5690
5704
|
|
|
5691
|
-
var _super = _createSuper(Mixcloud);
|
|
5692
|
-
|
|
5693
5705
|
function Mixcloud() {
|
|
5706
|
+
var _getPrototypeOf2;
|
|
5707
|
+
|
|
5694
5708
|
var _this;
|
|
5695
5709
|
|
|
5696
5710
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5699,7 +5713,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5699
5713
|
args[_key] = arguments[_key];
|
|
5700
5714
|
}
|
|
5701
5715
|
|
|
5702
|
-
_this =
|
|
5716
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5703
5717
|
|
|
5704
5718
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5705
5719
|
|
|
@@ -5802,7 +5816,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5802
5816
|
})); // We have to give the iframe a key here to prevent a
|
|
5803
5817
|
// weird dialog appearing when loading a new track
|
|
5804
5818
|
|
|
5805
|
-
return
|
|
5819
|
+
return _react["default"].createElement("iframe", {
|
|
5806
5820
|
key: id,
|
|
5807
5821
|
ref: this.ref,
|
|
5808
5822
|
style: style,
|
|
@@ -5831,7 +5845,7 @@ exports["default"] = _default;
|
|
|
5831
5845
|
});
|
|
5832
5846
|
|
|
5833
5847
|
unwrapExports(Mixcloud_1);
|
|
5834
|
-
Mixcloud_1.Mixcloud;
|
|
5848
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5835
5849
|
|
|
5836
5850
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5837
5851
|
|
|
@@ -5840,7 +5854,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5840
5854
|
});
|
|
5841
5855
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5842
5856
|
|
|
5843
|
-
var _react = _interopRequireWildcard(
|
|
5857
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5844
5858
|
|
|
5845
5859
|
|
|
5846
5860
|
|
|
@@ -5862,33 +5876,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5862
5876
|
|
|
5863
5877
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5864
5878
|
|
|
5865
|
-
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); }; }
|
|
5866
|
-
|
|
5867
5879
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5868
5880
|
|
|
5869
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5870
|
-
|
|
5871
|
-
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; } }
|
|
5872
|
-
|
|
5873
5881
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5874
5882
|
|
|
5883
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5884
|
+
|
|
5875
5885
|
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); }
|
|
5876
5886
|
|
|
5877
5887
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5878
5888
|
|
|
5879
5889
|
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; }
|
|
5880
5890
|
|
|
5881
|
-
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; } } }; }
|
|
5882
|
-
|
|
5883
|
-
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); }
|
|
5884
|
-
|
|
5885
|
-
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; }
|
|
5886
|
-
|
|
5887
5891
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5888
5892
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5889
5893
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5890
5894
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5891
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5895
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5892
5896
|
var HLS_GLOBAL = 'Hls';
|
|
5893
5897
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5894
5898
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5897,11 +5901,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5897
5901
|
|
|
5898
5902
|
function canPlay(url) {
|
|
5899
5903
|
if (url instanceof Array) {
|
|
5900
|
-
var
|
|
5901
|
-
|
|
5904
|
+
var _iteratorNormalCompletion = true;
|
|
5905
|
+
var _didIteratorError = false;
|
|
5906
|
+
var _iteratorError = undefined;
|
|
5902
5907
|
|
|
5903
5908
|
try {
|
|
5904
|
-
for (_iterator.
|
|
5909
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5905
5910
|
var item = _step.value;
|
|
5906
5911
|
|
|
5907
5912
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5913,9 +5918,18 @@ function canPlay(url) {
|
|
|
5913
5918
|
}
|
|
5914
5919
|
}
|
|
5915
5920
|
} catch (err) {
|
|
5916
|
-
|
|
5921
|
+
_didIteratorError = true;
|
|
5922
|
+
_iteratorError = err;
|
|
5917
5923
|
} finally {
|
|
5918
|
-
|
|
5924
|
+
try {
|
|
5925
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5926
|
+
_iterator["return"]();
|
|
5927
|
+
}
|
|
5928
|
+
} finally {
|
|
5929
|
+
if (_didIteratorError) {
|
|
5930
|
+
throw _iteratorError;
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5919
5933
|
}
|
|
5920
5934
|
|
|
5921
5935
|
return false;
|
|
@@ -5939,12 +5953,14 @@ function canEnablePIP(url) {
|
|
|
5939
5953
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5940
5954
|
}
|
|
5941
5955
|
|
|
5942
|
-
var FilePlayer =
|
|
5956
|
+
var FilePlayer =
|
|
5957
|
+
/*#__PURE__*/
|
|
5958
|
+
function (_Component) {
|
|
5943
5959
|
_inherits(FilePlayer, _Component);
|
|
5944
5960
|
|
|
5945
|
-
var _super = _createSuper(FilePlayer);
|
|
5946
|
-
|
|
5947
5961
|
function FilePlayer() {
|
|
5962
|
+
var _getPrototypeOf2;
|
|
5963
|
+
|
|
5948
5964
|
var _this;
|
|
5949
5965
|
|
|
5950
5966
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5953,7 +5969,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5953
5969
|
_args[_key] = arguments[_key];
|
|
5954
5970
|
}
|
|
5955
5971
|
|
|
5956
|
-
_this =
|
|
5972
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5957
5973
|
|
|
5958
5974
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5959
5975
|
var _this$props;
|
|
@@ -6040,19 +6056,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6040
6056
|
|
|
6041
6057
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6042
6058
|
if (typeof source === 'string') {
|
|
6043
|
-
return
|
|
6059
|
+
return _react["default"].createElement("source", {
|
|
6044
6060
|
key: index,
|
|
6045
6061
|
src: source
|
|
6046
6062
|
});
|
|
6047
6063
|
}
|
|
6048
6064
|
|
|
6049
|
-
return
|
|
6065
|
+
return _react["default"].createElement("source", _extends({
|
|
6050
6066
|
key: index
|
|
6051
6067
|
}, source));
|
|
6052
6068
|
});
|
|
6053
6069
|
|
|
6054
6070
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6055
|
-
return
|
|
6071
|
+
return _react["default"].createElement("track", _extends({
|
|
6056
6072
|
key: index
|
|
6057
6073
|
}, track));
|
|
6058
6074
|
});
|
|
@@ -6090,10 +6106,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6090
6106
|
key: "componentWillUnmount",
|
|
6091
6107
|
value: function componentWillUnmount() {
|
|
6092
6108
|
this.removeListeners(this.player);
|
|
6093
|
-
|
|
6094
|
-
if (this.hls) {
|
|
6095
|
-
this.hls.destroy();
|
|
6096
|
-
}
|
|
6097
6109
|
}
|
|
6098
6110
|
}, {
|
|
6099
6111
|
key: "addListeners",
|
|
@@ -6224,6 +6236,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6224
6236
|
value: function stop() {
|
|
6225
6237
|
this.player.removeAttribute('src');
|
|
6226
6238
|
|
|
6239
|
+
if (this.hls) {
|
|
6240
|
+
this.hls.destroy();
|
|
6241
|
+
}
|
|
6242
|
+
|
|
6227
6243
|
if (this.dash) {
|
|
6228
6244
|
this.dash.reset();
|
|
6229
6245
|
}
|
|
@@ -6335,7 +6351,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6335
6351
|
width: width === 'auto' ? width : '100%',
|
|
6336
6352
|
height: height === 'auto' ? height : '100%'
|
|
6337
6353
|
};
|
|
6338
|
-
return
|
|
6354
|
+
return _react["default"].createElement(Element, _extends({
|
|
6339
6355
|
ref: this.ref,
|
|
6340
6356
|
src: this.getSource(url),
|
|
6341
6357
|
style: style,
|
|
@@ -6365,7 +6381,7 @@ exports["default"] = _default;
|
|
|
6365
6381
|
});
|
|
6366
6382
|
|
|
6367
6383
|
unwrapExports(FilePlayer_1);
|
|
6368
|
-
FilePlayer_1.FilePlayer;
|
|
6384
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6369
6385
|
|
|
6370
6386
|
var players = createCommonjsModule(function (module, exports) {
|
|
6371
6387
|
|
|
@@ -6407,7 +6423,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6407
6423
|
});
|
|
6408
6424
|
exports["default"] = void 0;
|
|
6409
6425
|
|
|
6410
|
-
var _react = _interopRequireWildcard(
|
|
6426
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6411
6427
|
|
|
6412
6428
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6413
6429
|
|
|
@@ -6425,16 +6441,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6425
6441
|
|
|
6426
6442
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6427
6443
|
|
|
6428
|
-
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); }; }
|
|
6429
|
-
|
|
6430
6444
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6431
6445
|
|
|
6432
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6433
|
-
|
|
6434
|
-
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; } }
|
|
6435
|
-
|
|
6436
6446
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6437
6447
|
|
|
6448
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6449
|
+
|
|
6438
6450
|
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); }
|
|
6439
6451
|
|
|
6440
6452
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6443,12 +6455,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6443
6455
|
|
|
6444
6456
|
var ICON_SIZE = '64px';
|
|
6445
6457
|
|
|
6446
|
-
var Preview =
|
|
6458
|
+
var Preview =
|
|
6459
|
+
/*#__PURE__*/
|
|
6460
|
+
function (_Component) {
|
|
6447
6461
|
_inherits(Preview, _Component);
|
|
6448
6462
|
|
|
6449
|
-
var _super = _createSuper(Preview);
|
|
6450
|
-
|
|
6451
6463
|
function Preview() {
|
|
6464
|
+
var _getPrototypeOf2;
|
|
6465
|
+
|
|
6452
6466
|
var _this;
|
|
6453
6467
|
|
|
6454
6468
|
_classCallCheck(this, Preview);
|
|
@@ -6457,7 +6471,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6457
6471
|
args[_key] = arguments[_key];
|
|
6458
6472
|
}
|
|
6459
6473
|
|
|
6460
|
-
_this =
|
|
6474
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6461
6475
|
|
|
6462
6476
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6463
6477
|
|
|
@@ -6555,15 +6569,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6555
6569
|
}
|
|
6556
6570
|
};
|
|
6557
6571
|
|
|
6558
|
-
var defaultPlayIcon =
|
|
6572
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6559
6573
|
style: styles.shadow,
|
|
6560
6574
|
className: "react-player__shadow"
|
|
6561
|
-
},
|
|
6575
|
+
}, _react["default"].createElement("div", {
|
|
6562
6576
|
style: styles.playIcon,
|
|
6563
6577
|
className: "react-player__play-icon"
|
|
6564
6578
|
}));
|
|
6565
6579
|
|
|
6566
|
-
return
|
|
6580
|
+
return _react["default"].createElement("div", {
|
|
6567
6581
|
style: styles.preview,
|
|
6568
6582
|
className: "react-player__preview",
|
|
6569
6583
|
onClick: onClick
|
|
@@ -6586,7 +6600,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6586
6600
|
});
|
|
6587
6601
|
exports["default"] = renderPreloadPlayers;
|
|
6588
6602
|
|
|
6589
|
-
var _react = _interopRequireDefault(
|
|
6603
|
+
var _react = _interopRequireDefault(React__default);
|
|
6590
6604
|
|
|
6591
6605
|
var _Player = _interopRequireDefault(Player_1);
|
|
6592
6606
|
|
|
@@ -6600,12 +6614,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6600
6614
|
|
|
6601
6615
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6602
6616
|
|
|
6603
|
-
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; } } }; }
|
|
6604
|
-
|
|
6605
|
-
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); }
|
|
6606
|
-
|
|
6607
|
-
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; }
|
|
6608
|
-
|
|
6609
6617
|
var PRELOAD_PLAYERS = [{
|
|
6610
6618
|
Player: YouTube_1.YouTube,
|
|
6611
6619
|
configKey: 'youtube',
|
|
@@ -6626,16 +6634,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6626
6634
|
|
|
6627
6635
|
function renderPreloadPlayers(url, controls, config) {
|
|
6628
6636
|
var players = [];
|
|
6629
|
-
|
|
6630
|
-
var
|
|
6631
|
-
|
|
6637
|
+
var _iteratorNormalCompletion = true;
|
|
6638
|
+
var _didIteratorError = false;
|
|
6639
|
+
var _iteratorError = undefined;
|
|
6632
6640
|
|
|
6633
6641
|
try {
|
|
6634
|
-
for (_iterator.
|
|
6642
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6635
6643
|
var player = _step.value;
|
|
6636
6644
|
|
|
6637
6645
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6638
|
-
players.push(
|
|
6646
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6639
6647
|
key: player.Player.displayName,
|
|
6640
6648
|
activePlayer: player.Player,
|
|
6641
6649
|
url: player.url,
|
|
@@ -6647,9 +6655,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6647
6655
|
}
|
|
6648
6656
|
}
|
|
6649
6657
|
} catch (err) {
|
|
6650
|
-
|
|
6658
|
+
_didIteratorError = true;
|
|
6659
|
+
_iteratorError = err;
|
|
6651
6660
|
} finally {
|
|
6652
|
-
|
|
6661
|
+
try {
|
|
6662
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6663
|
+
_iterator["return"]();
|
|
6664
|
+
}
|
|
6665
|
+
} finally {
|
|
6666
|
+
if (_didIteratorError) {
|
|
6667
|
+
throw _iteratorError;
|
|
6668
|
+
}
|
|
6669
|
+
}
|
|
6653
6670
|
}
|
|
6654
6671
|
|
|
6655
6672
|
return players;
|
|
@@ -6725,7 +6742,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6725
6742
|
});
|
|
6726
6743
|
exports["default"] = void 0;
|
|
6727
6744
|
|
|
6728
|
-
var _react = _interopRequireWildcard(
|
|
6745
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6729
6746
|
|
|
6730
6747
|
|
|
6731
6748
|
|
|
@@ -6773,17 +6790,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6773
6790
|
|
|
6774
6791
|
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); }
|
|
6775
6792
|
|
|
6776
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6793
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6777
6794
|
|
|
6778
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6795
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6779
6796
|
|
|
6780
|
-
function
|
|
6797
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6781
6798
|
|
|
6782
|
-
function
|
|
6783
|
-
|
|
6784
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6785
|
-
|
|
6786
|
-
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; }
|
|
6799
|
+
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; } }
|
|
6787
6800
|
|
|
6788
6801
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6789
6802
|
|
|
@@ -6791,16 +6804,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6791
6804
|
|
|
6792
6805
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6793
6806
|
|
|
6794
|
-
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); }; }
|
|
6795
|
-
|
|
6796
6807
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6797
6808
|
|
|
6798
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6799
|
-
|
|
6800
|
-
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; } }
|
|
6801
|
-
|
|
6802
6809
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6803
6810
|
|
|
6811
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6812
|
+
|
|
6804
6813
|
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); }
|
|
6805
6814
|
|
|
6806
6815
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6810,12 +6819,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6810
6819
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6811
6820
|
var customPlayers = [];
|
|
6812
6821
|
|
|
6813
|
-
var ReactPlayer =
|
|
6822
|
+
var ReactPlayer =
|
|
6823
|
+
/*#__PURE__*/
|
|
6824
|
+
function (_Component) {
|
|
6814
6825
|
_inherits(ReactPlayer, _Component);
|
|
6815
6826
|
|
|
6816
|
-
var _super = _createSuper(ReactPlayer);
|
|
6817
|
-
|
|
6818
6827
|
function ReactPlayer() {
|
|
6828
|
+
var _getPrototypeOf2;
|
|
6829
|
+
|
|
6819
6830
|
var _this;
|
|
6820
6831
|
|
|
6821
6832
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6824,7 +6835,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6824
6835
|
args[_key] = arguments[_key];
|
|
6825
6836
|
}
|
|
6826
6837
|
|
|
6827
|
-
_this =
|
|
6838
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6828
6839
|
|
|
6829
6840
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6830
6841
|
|
|
@@ -6935,7 +6946,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6935
6946
|
key: "renderActivePlayer",
|
|
6936
6947
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6937
6948
|
if (!url) return null;
|
|
6938
|
-
return
|
|
6949
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6939
6950
|
key: activePlayer.displayName,
|
|
6940
6951
|
ref: this.activePlayerRef,
|
|
6941
6952
|
config: this.config,
|
|
@@ -6972,14 +6983,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6972
6983
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6973
6984
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6974
6985
|
|
|
6975
|
-
var preview =
|
|
6986
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6976
6987
|
url: url,
|
|
6977
6988
|
light: light,
|
|
6978
6989
|
playIcon: playIcon,
|
|
6979
6990
|
onClick: this.handleClickPreview
|
|
6980
6991
|
});
|
|
6981
6992
|
|
|
6982
|
-
return
|
|
6993
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6983
6994
|
ref: this.wrapperRef,
|
|
6984
6995
|
style: _objectSpread({}, style, {
|
|
6985
6996
|
width: width,
|
|
@@ -7039,20 +7050,20 @@ var Audio = function Audio(_ref) {
|
|
|
7039
7050
|
var node = _ref.node;
|
|
7040
7051
|
|
|
7041
7052
|
if (node.uploadAudio) {
|
|
7042
|
-
return
|
|
7053
|
+
return React__default.createElement(
|
|
7043
7054
|
'div',
|
|
7044
7055
|
{ className: 'audio d-block text-center mb-3' },
|
|
7045
|
-
|
|
7056
|
+
React__default.createElement(
|
|
7046
7057
|
'audio',
|
|
7047
7058
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7048
|
-
|
|
7049
|
-
|
|
7059
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7060
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7050
7061
|
'Your browser does not support the audio element.'
|
|
7051
7062
|
),
|
|
7052
|
-
node.caption &&
|
|
7063
|
+
node.caption && React__default.createElement(
|
|
7053
7064
|
'p',
|
|
7054
7065
|
{ style: { fontSize: '.9rem' } },
|
|
7055
|
-
|
|
7066
|
+
React__default.createElement(
|
|
7056
7067
|
'em',
|
|
7057
7068
|
null,
|
|
7058
7069
|
node.caption
|
|
@@ -7062,15 +7073,15 @@ var Audio = function Audio(_ref) {
|
|
|
7062
7073
|
} else if (node.audioFilePth) {
|
|
7063
7074
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7064
7075
|
if (hostname === 'embeds.audioboom.com') {
|
|
7065
|
-
return
|
|
7076
|
+
return React__default.createElement(
|
|
7066
7077
|
'div',
|
|
7067
7078
|
null,
|
|
7068
|
-
|
|
7079
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7069
7080
|
' ',
|
|
7070
|
-
node.caption &&
|
|
7081
|
+
node.caption && React__default.createElement(
|
|
7071
7082
|
'p',
|
|
7072
7083
|
{ style: { fontSize: '.9rem' } },
|
|
7073
|
-
|
|
7084
|
+
React__default.createElement(
|
|
7074
7085
|
'em',
|
|
7075
7086
|
null,
|
|
7076
7087
|
node.caption
|
|
@@ -7078,14 +7089,14 @@ var Audio = function Audio(_ref) {
|
|
|
7078
7089
|
)
|
|
7079
7090
|
);
|
|
7080
7091
|
}
|
|
7081
|
-
return
|
|
7092
|
+
return React__default.createElement(
|
|
7082
7093
|
'div',
|
|
7083
7094
|
{ className: 'audio' },
|
|
7084
|
-
|
|
7085
|
-
node.caption &&
|
|
7095
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7096
|
+
node.caption && React__default.createElement(
|
|
7086
7097
|
'p',
|
|
7087
7098
|
{ style: { fontSize: '.9rem' } },
|
|
7088
|
-
|
|
7099
|
+
React__default.createElement(
|
|
7089
7100
|
'em',
|
|
7090
7101
|
null,
|
|
7091
7102
|
node.caption
|
|
@@ -7104,34 +7115,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7104
7115
|
var showAuthorDetails = arguments[7];
|
|
7105
7116
|
|
|
7106
7117
|
if (authorName && authorURL) {
|
|
7107
|
-
return
|
|
7118
|
+
return React__default.createElement(
|
|
7108
7119
|
'span',
|
|
7109
7120
|
null,
|
|
7110
|
-
|
|
7121
|
+
React__default.createElement(
|
|
7111
7122
|
'a',
|
|
7112
7123
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7113
7124
|
authorName
|
|
7114
7125
|
),
|
|
7115
|
-
showAuthorDetails &&
|
|
7126
|
+
showAuthorDetails && React__default.createElement(
|
|
7116
7127
|
Card,
|
|
7117
7128
|
{ className: 'author-details-card-' + index },
|
|
7118
|
-
|
|
7129
|
+
React__default.createElement(
|
|
7119
7130
|
Row,
|
|
7120
7131
|
null,
|
|
7121
|
-
profileImage &&
|
|
7132
|
+
profileImage && React__default.createElement(
|
|
7122
7133
|
Col,
|
|
7123
7134
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7124
|
-
|
|
7135
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7125
7136
|
),
|
|
7126
|
-
|
|
7137
|
+
React__default.createElement(
|
|
7127
7138
|
Col,
|
|
7128
7139
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7129
|
-
|
|
7140
|
+
React__default.createElement(
|
|
7130
7141
|
'div',
|
|
7131
7142
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7132
7143
|
authorName
|
|
7133
7144
|
),
|
|
7134
|
-
|
|
7145
|
+
React__default.createElement(
|
|
7135
7146
|
'p',
|
|
7136
7147
|
null,
|
|
7137
7148
|
biography
|
|
@@ -7139,7 +7150,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7139
7150
|
)
|
|
7140
7151
|
)
|
|
7141
7152
|
),
|
|
7142
|
-
|
|
7153
|
+
React__default.createElement(
|
|
7143
7154
|
'style',
|
|
7144
7155
|
{ jsx: 'true' },
|
|
7145
7156
|
'\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 '
|
|
@@ -7147,7 +7158,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7147
7158
|
length !== index + 1 && ', '
|
|
7148
7159
|
);
|
|
7149
7160
|
} else if (authorName) {
|
|
7150
|
-
return
|
|
7161
|
+
return React__default.createElement(
|
|
7151
7162
|
'span',
|
|
7152
7163
|
{ key: index },
|
|
7153
7164
|
authorName,
|
|
@@ -7303,7 +7314,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7303
7314
|
var queue = Math.floor(duration / 10);
|
|
7304
7315
|
var segment = Math.floor(current / queue);
|
|
7305
7316
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7306
|
-
Segment.report_video_event('Video Ready',
|
|
7317
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7307
7318
|
//autoplay
|
|
7308
7319
|
|
|
7309
7320
|
//Small pause before starting next video
|
|
@@ -7324,7 +7335,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7324
7335
|
var segment = Math.floor(current / queue);
|
|
7325
7336
|
|
|
7326
7337
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7327
|
-
Segment.report_video_event('Video End',
|
|
7338
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7328
7339
|
setEndReported(true);
|
|
7329
7340
|
clearInterval(intervalID);
|
|
7330
7341
|
}
|
|
@@ -7375,7 +7386,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7375
7386
|
var segment = Math.floor(current / queue);
|
|
7376
7387
|
if (!queueProgress.includes(segment)) {
|
|
7377
7388
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7378
|
-
Segment.report_video_event('Video Segment',
|
|
7389
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7379
7390
|
queueProgress.push(segment);
|
|
7380
7391
|
}
|
|
7381
7392
|
};
|
|
@@ -7389,7 +7400,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7389
7400
|
var segment = Math.floor(current / queue);
|
|
7390
7401
|
|
|
7391
7402
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7392
|
-
Segment.report_video_event('Video Play',
|
|
7403
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7393
7404
|
|
|
7394
7405
|
if (!playReported) {
|
|
7395
7406
|
setPlayReported(true);
|
|
@@ -7408,7 +7419,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7408
7419
|
var segment = Math.floor(current / queue);
|
|
7409
7420
|
|
|
7410
7421
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7411
|
-
Segment.report_video_event('Video Pause',
|
|
7422
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7412
7423
|
};
|
|
7413
7424
|
|
|
7414
7425
|
// Youtube Options
|
|
@@ -7419,44 +7430,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7419
7430
|
}
|
|
7420
7431
|
};
|
|
7421
7432
|
|
|
7422
|
-
return
|
|
7433
|
+
return React__default.createElement(
|
|
7423
7434
|
'div',
|
|
7424
7435
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7425
|
-
|
|
7436
|
+
React__default.createElement(
|
|
7426
7437
|
'div',
|
|
7427
7438
|
{ className: 'mt-2 mb-5' },
|
|
7428
|
-
series &&
|
|
7439
|
+
series && React__default.createElement(
|
|
7429
7440
|
'div',
|
|
7430
7441
|
{ style: { fontSize: '0.9rem' } },
|
|
7431
7442
|
article.title,
|
|
7432
7443
|
' - Episode ',
|
|
7433
7444
|
series
|
|
7434
7445
|
),
|
|
7435
|
-
Videos[series - 1] &&
|
|
7446
|
+
Videos[series - 1] && React__default.createElement(
|
|
7436
7447
|
'h1',
|
|
7437
7448
|
{ className: 'mb-3' },
|
|
7438
7449
|
Videos[series - 1].title
|
|
7439
7450
|
),
|
|
7440
|
-
|
|
7451
|
+
React__default.createElement(
|
|
7441
7452
|
'div',
|
|
7442
7453
|
null,
|
|
7443
7454
|
moment(article.published).format('LL')
|
|
7444
7455
|
),
|
|
7445
|
-
|
|
7456
|
+
React__default.createElement(
|
|
7446
7457
|
'div',
|
|
7447
7458
|
{ className: 'mb-3' },
|
|
7448
7459
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7449
|
-
return
|
|
7460
|
+
return React__default.createElement(
|
|
7450
7461
|
'span',
|
|
7451
7462
|
{ key: index },
|
|
7452
7463
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7453
7464
|
);
|
|
7454
7465
|
})
|
|
7455
7466
|
),
|
|
7456
|
-
|
|
7467
|
+
React__default.createElement(
|
|
7457
7468
|
'p',
|
|
7458
7469
|
null,
|
|
7459
|
-
|
|
7470
|
+
React__default.createElement(SocialShare, {
|
|
7460
7471
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7461
7472
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7462
7473
|
shareVia: meta.shareVia,
|
|
@@ -7471,20 +7482,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7471
7482
|
hideFacebook: meta.hideFBShare
|
|
7472
7483
|
})
|
|
7473
7484
|
),
|
|
7474
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7485
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7475
7486
|
'p',
|
|
7476
7487
|
{ className: 'mb-3' },
|
|
7477
|
-
|
|
7488
|
+
React__default.createElement(
|
|
7478
7489
|
'em',
|
|
7479
7490
|
null,
|
|
7480
7491
|
Videos[series - 1].intro
|
|
7481
7492
|
)
|
|
7482
7493
|
)
|
|
7483
7494
|
),
|
|
7484
|
-
|
|
7495
|
+
React__default.createElement(
|
|
7485
7496
|
'div',
|
|
7486
7497
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7487
|
-
vidUrl && vidType == 'youtube' &&
|
|
7498
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7488
7499
|
className: 'fluid-iframe',
|
|
7489
7500
|
videoId: getYoutubeId(vidUrl),
|
|
7490
7501
|
opts: opts,
|
|
@@ -7495,10 +7506,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7495
7506
|
return handleOnEnd(e);
|
|
7496
7507
|
}
|
|
7497
7508
|
}),
|
|
7498
|
-
vidUrl && vidType == 'mp4' &&
|
|
7499
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7500
|
-
|
|
7501
|
-
series &&
|
|
7509
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7510
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7511
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7512
|
+
series && React__default.createElement(
|
|
7502
7513
|
'div',
|
|
7503
7514
|
{
|
|
7504
7515
|
className: 'vid-series',
|
|
@@ -7508,10 +7519,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7508
7519
|
maxHeight: '100%',
|
|
7509
7520
|
paddingBottom: '0'
|
|
7510
7521
|
} },
|
|
7511
|
-
|
|
7522
|
+
React__default.createElement(
|
|
7512
7523
|
'p',
|
|
7513
7524
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7514
|
-
|
|
7525
|
+
React__default.createElement(
|
|
7515
7526
|
'b',
|
|
7516
7527
|
{ style: { fontSize: '1.25em' } },
|
|
7517
7528
|
'Now Playing:'
|
|
@@ -7519,16 +7530,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7519
7530
|
' ',
|
|
7520
7531
|
seriesData[series ? series - 1 : 0].title
|
|
7521
7532
|
),
|
|
7522
|
-
vidUrl &&
|
|
7533
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7523
7534
|
)
|
|
7524
7535
|
),
|
|
7525
|
-
|
|
7526
|
-
|
|
7536
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7537
|
+
React__default.createElement(
|
|
7527
7538
|
'div',
|
|
7528
7539
|
{ className: 'vid-text' },
|
|
7529
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7540
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7530
7541
|
),
|
|
7531
|
-
|
|
7542
|
+
React__default.createElement(
|
|
7532
7543
|
'style',
|
|
7533
7544
|
{ jsx: 'true' },
|
|
7534
7545
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7536,14 +7547,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7536
7547
|
);
|
|
7537
7548
|
};
|
|
7538
7549
|
|
|
7539
|
-
var Poll
|
|
7540
|
-
var node = _ref.node
|
|
7541
|
-
_ref.client
|
|
7542
|
-
_ref.pageview
|
|
7543
|
-
_ref.videoAccountIDs
|
|
7544
|
-
|
|
7545
|
-
_ref.showVotes
|
|
7546
|
-
|
|
7550
|
+
var Poll = function Poll(_ref) {
|
|
7551
|
+
var node = _ref.node,
|
|
7552
|
+
client = _ref.client,
|
|
7553
|
+
pageview = _ref.pageview,
|
|
7554
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7555
|
+
onVote = _ref.onVote,
|
|
7556
|
+
_ref$showVotes = _ref.showVotes,
|
|
7557
|
+
getSerializers = _ref.getSerializers;
|
|
7547
7558
|
|
|
7548
7559
|
var _useState = useState(null),
|
|
7549
7560
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7581,67 +7592,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7581
7592
|
return acc;
|
|
7582
7593
|
}
|
|
7583
7594
|
}, 0);
|
|
7584
|
-
return
|
|
7585
|
-
|
|
7595
|
+
return React__default.createElement(
|
|
7596
|
+
React__default.Fragment,
|
|
7586
7597
|
null,
|
|
7587
|
-
question &&
|
|
7598
|
+
question && React__default.createElement(
|
|
7588
7599
|
'p',
|
|
7589
7600
|
{ className: 'font-weight-bold' },
|
|
7590
7601
|
question
|
|
7591
7602
|
),
|
|
7592
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7603
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7593
7604
|
'form',
|
|
7594
7605
|
{ onSubmit: function onSubmit(e) {
|
|
7595
7606
|
return onSubmitPoll(e);
|
|
7596
7607
|
} },
|
|
7597
7608
|
choices && choices.map(function (choice) {
|
|
7598
|
-
return
|
|
7609
|
+
return React__default.createElement(
|
|
7599
7610
|
'div',
|
|
7600
7611
|
{ key: choice._key },
|
|
7601
|
-
|
|
7612
|
+
React__default.createElement(
|
|
7602
7613
|
'label',
|
|
7603
7614
|
{ className: 'pl-2' },
|
|
7604
|
-
|
|
7615
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7605
7616
|
return setSelectedChoice(e.target.value);
|
|
7606
7617
|
} }),
|
|
7607
7618
|
' ' + choice.choiceText
|
|
7608
7619
|
)
|
|
7609
7620
|
);
|
|
7610
7621
|
}),
|
|
7611
|
-
|
|
7622
|
+
React__default.createElement(
|
|
7612
7623
|
Button,
|
|
7613
7624
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7614
7625
|
'Vote'
|
|
7615
7626
|
)
|
|
7616
7627
|
),
|
|
7617
|
-
|
|
7628
|
+
React__default.createElement(
|
|
7618
7629
|
'div',
|
|
7619
7630
|
{ className: 'progress-container' },
|
|
7620
7631
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7621
7632
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7622
|
-
return
|
|
7633
|
+
return React__default.createElement(
|
|
7623
7634
|
'div',
|
|
7624
7635
|
{ key: choice._key, className: 'mb-3' },
|
|
7625
|
-
|
|
7636
|
+
React__default.createElement(
|
|
7626
7637
|
'div',
|
|
7627
7638
|
{ className: 'correct-answer' },
|
|
7628
|
-
|
|
7639
|
+
React__default.createElement(
|
|
7629
7640
|
'div',
|
|
7630
7641
|
null,
|
|
7631
7642
|
choice.choiceText
|
|
7632
7643
|
),
|
|
7633
|
-
choice.choiceAnswer === true &&
|
|
7644
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7634
7645
|
'div',
|
|
7635
7646
|
null,
|
|
7636
|
-
|
|
7647
|
+
React__default.createElement(
|
|
7637
7648
|
'span',
|
|
7638
7649
|
{ style: { color: 'limegreen' } },
|
|
7639
7650
|
'Correct!'
|
|
7640
7651
|
)
|
|
7641
7652
|
)
|
|
7642
7653
|
),
|
|
7643
|
-
|
|
7644
|
-
|
|
7654
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7655
|
+
React__default.createElement(
|
|
7645
7656
|
'span',
|
|
7646
7657
|
{ className: 'float-right' },
|
|
7647
7658
|
percentage,
|
|
@@ -7652,14 +7663,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7652
7663
|
);
|
|
7653
7664
|
})
|
|
7654
7665
|
),
|
|
7655
|
-
showAnswer &&
|
|
7666
|
+
showAnswer && React__default.createElement(
|
|
7656
7667
|
'h4',
|
|
7657
7668
|
{ className: 'text-center small p-3' },
|
|
7658
7669
|
'Total Votes: ',
|
|
7659
7670
|
choicesTotalCount
|
|
7660
7671
|
),
|
|
7661
|
-
showAnswer && response &&
|
|
7662
|
-
|
|
7672
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7673
|
+
React__default.createElement(
|
|
7663
7674
|
'style',
|
|
7664
7675
|
{ jsx: 'true' },
|
|
7665
7676
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7677,22 +7688,22 @@ _export(_export.S, 'Object', {
|
|
|
7677
7688
|
}
|
|
7678
7689
|
});
|
|
7679
7690
|
|
|
7680
|
-
var values
|
|
7691
|
+
var values = _core.Object.values;
|
|
7681
7692
|
|
|
7682
|
-
var values = createCommonjsModule(function (module) {
|
|
7683
|
-
module.exports = { "default": values
|
|
7693
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7694
|
+
module.exports = { "default": values, __esModule: true };
|
|
7684
7695
|
});
|
|
7685
7696
|
|
|
7686
|
-
var _Object$values = unwrapExports(values);
|
|
7697
|
+
var _Object$values = unwrapExports(values$1);
|
|
7687
7698
|
|
|
7688
|
-
var Poll = function Poll(_ref) {
|
|
7689
|
-
var node = _ref.node
|
|
7690
|
-
_ref.client
|
|
7691
|
-
_ref.pageview
|
|
7692
|
-
_ref.videoAccountIDs
|
|
7693
|
-
|
|
7694
|
-
_ref.showVotes
|
|
7695
|
-
|
|
7699
|
+
var Poll$1 = function Poll(_ref) {
|
|
7700
|
+
var node = _ref.node,
|
|
7701
|
+
client = _ref.client,
|
|
7702
|
+
pageview = _ref.pageview,
|
|
7703
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7704
|
+
onVote = _ref.onVote,
|
|
7705
|
+
_ref$showVotes = _ref.showVotes,
|
|
7706
|
+
getSerializers = _ref.getSerializers;
|
|
7696
7707
|
|
|
7697
7708
|
var _useState = useState(null),
|
|
7698
7709
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7758,67 +7769,67 @@ var Poll = function Poll(_ref) {
|
|
|
7758
7769
|
return acc;
|
|
7759
7770
|
}
|
|
7760
7771
|
}, 0);
|
|
7761
|
-
return
|
|
7762
|
-
|
|
7772
|
+
return React__default.createElement(
|
|
7773
|
+
React__default.Fragment,
|
|
7763
7774
|
null,
|
|
7764
|
-
question &&
|
|
7775
|
+
question && React__default.createElement(
|
|
7765
7776
|
'p',
|
|
7766
7777
|
{ className: 'font-weight-bold' },
|
|
7767
7778
|
question
|
|
7768
7779
|
),
|
|
7769
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7780
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7770
7781
|
'form',
|
|
7771
7782
|
{ onSubmit: function onSubmit(e) {
|
|
7772
7783
|
return onSubmitPoll(e);
|
|
7773
7784
|
} },
|
|
7774
7785
|
choices && choices.map(function (choice) {
|
|
7775
|
-
return
|
|
7786
|
+
return React__default.createElement(
|
|
7776
7787
|
'div',
|
|
7777
7788
|
{ key: choice._key },
|
|
7778
|
-
|
|
7789
|
+
React__default.createElement(
|
|
7779
7790
|
'label',
|
|
7780
7791
|
{ className: 'pl-2' },
|
|
7781
|
-
|
|
7792
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7782
7793
|
return setSelectedChoice(e.target.value);
|
|
7783
7794
|
} }),
|
|
7784
7795
|
' ' + choice.choiceText
|
|
7785
7796
|
)
|
|
7786
7797
|
);
|
|
7787
7798
|
}),
|
|
7788
|
-
|
|
7799
|
+
React__default.createElement(
|
|
7789
7800
|
Button,
|
|
7790
7801
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7791
7802
|
'Vote'
|
|
7792
7803
|
)
|
|
7793
7804
|
),
|
|
7794
|
-
|
|
7805
|
+
React__default.createElement(
|
|
7795
7806
|
'div',
|
|
7796
7807
|
{ className: 'progress-container' },
|
|
7797
7808
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7798
7809
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7799
|
-
return
|
|
7810
|
+
return React__default.createElement(
|
|
7800
7811
|
'div',
|
|
7801
7812
|
{ key: choice._key, className: 'mb-3' },
|
|
7802
|
-
|
|
7813
|
+
React__default.createElement(
|
|
7803
7814
|
'div',
|
|
7804
7815
|
{ className: 'correct-answer' },
|
|
7805
|
-
|
|
7816
|
+
React__default.createElement(
|
|
7806
7817
|
'div',
|
|
7807
7818
|
null,
|
|
7808
7819
|
choice.choiceText
|
|
7809
7820
|
),
|
|
7810
|
-
choice.choiceAnswer === true &&
|
|
7821
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7811
7822
|
'div',
|
|
7812
7823
|
null,
|
|
7813
|
-
|
|
7824
|
+
React__default.createElement(
|
|
7814
7825
|
'span',
|
|
7815
7826
|
{ style: { color: 'limegreen' } },
|
|
7816
7827
|
'Correct!'
|
|
7817
7828
|
)
|
|
7818
7829
|
)
|
|
7819
7830
|
),
|
|
7820
|
-
|
|
7821
|
-
|
|
7831
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7832
|
+
React__default.createElement(
|
|
7822
7833
|
'span',
|
|
7823
7834
|
{ className: 'float-right' },
|
|
7824
7835
|
percentage,
|
|
@@ -7829,14 +7840,14 @@ var Poll = function Poll(_ref) {
|
|
|
7829
7840
|
);
|
|
7830
7841
|
})
|
|
7831
7842
|
),
|
|
7832
|
-
showAnswer &&
|
|
7843
|
+
showAnswer && React__default.createElement(
|
|
7833
7844
|
'h4',
|
|
7834
7845
|
{ className: 'text-center small p-3' },
|
|
7835
7846
|
'Total Votes: ',
|
|
7836
7847
|
choicesTotalCount
|
|
7837
7848
|
),
|
|
7838
|
-
showAnswer && response &&
|
|
7839
|
-
|
|
7849
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7850
|
+
React__default.createElement(
|
|
7840
7851
|
'style',
|
|
7841
7852
|
{ jsx: 'true' },
|
|
7842
7853
|
'\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 '
|
|
@@ -7844,7 +7855,7 @@ var Poll = function Poll(_ref) {
|
|
|
7844
7855
|
);
|
|
7845
7856
|
};
|
|
7846
7857
|
|
|
7847
|
-
var numberOfPaginations =
|
|
7858
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7848
7859
|
|
|
7849
7860
|
var Quiz = function Quiz(_ref) {
|
|
7850
7861
|
var quizzes = _ref.quizzes,
|
|
@@ -7962,34 +7973,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7962
7973
|
};
|
|
7963
7974
|
|
|
7964
7975
|
var renderPagination = function renderPagination() {
|
|
7965
|
-
return
|
|
7966
|
-
Pagination,
|
|
7967
|
-
{ className: 'p-0 m-0', size:
|
|
7968
|
-
|
|
7976
|
+
return React__default.createElement(
|
|
7977
|
+
Pagination$1$1,
|
|
7978
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7979
|
+
React__default.createElement(Pagination$1$1.First, { onClick: function onClick() {
|
|
7969
7980
|
return changePage('first');
|
|
7970
7981
|
}, disabled: currentPage === 1 }),
|
|
7971
|
-
|
|
7982
|
+
React__default.createElement(Pagination$1$1.Prev, { onClick: function onClick() {
|
|
7972
7983
|
return changePage('prev');
|
|
7973
7984
|
}, disabled: currentPage === 1 }),
|
|
7974
|
-
|
|
7985
|
+
React__default.createElement(Pagination$1$1.Ellipsis, { onClick: function onClick() {
|
|
7975
7986
|
return renderNewPages('prev');
|
|
7976
7987
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7977
7988
|
pages.map(function (page) {
|
|
7978
|
-
return
|
|
7979
|
-
Pagination.Item,
|
|
7989
|
+
return React__default.createElement(
|
|
7990
|
+
Pagination$1$1.Item,
|
|
7980
7991
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7981
7992
|
return changePage(page);
|
|
7982
7993
|
} },
|
|
7983
7994
|
page
|
|
7984
7995
|
);
|
|
7985
7996
|
}),
|
|
7986
|
-
|
|
7997
|
+
React__default.createElement(Pagination$1$1.Ellipsis, { onClick: function onClick() {
|
|
7987
7998
|
return renderNewPages('next');
|
|
7988
7999
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7989
|
-
|
|
8000
|
+
React__default.createElement(Pagination$1$1.Next, { onClick: function onClick() {
|
|
7990
8001
|
return changePage('next');
|
|
7991
8002
|
}, disabled: currentPage === pageCount }),
|
|
7992
|
-
|
|
8003
|
+
React__default.createElement(Pagination$1$1.Last, { onClick: function onClick() {
|
|
7993
8004
|
return changePage('last');
|
|
7994
8005
|
}, disabled: currentPage === pageCount })
|
|
7995
8006
|
);
|
|
@@ -8072,51 +8083,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8072
8083
|
}
|
|
8073
8084
|
};
|
|
8074
8085
|
|
|
8075
|
-
return
|
|
8076
|
-
|
|
8086
|
+
return React__default.createElement(
|
|
8087
|
+
React__default.Fragment,
|
|
8077
8088
|
null,
|
|
8078
|
-
quizzes[currentPage - 1] &&
|
|
8079
|
-
|
|
8089
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8090
|
+
React__default.Fragment,
|
|
8080
8091
|
null,
|
|
8081
|
-
|
|
8082
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8092
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8093
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8083
8094
|
'form',
|
|
8084
8095
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8085
8096
|
return e.preventDefault();
|
|
8086
8097
|
} },
|
|
8087
8098
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8088
|
-
return
|
|
8099
|
+
return React__default.createElement(
|
|
8089
8100
|
'div',
|
|
8090
8101
|
{ key: answer._key },
|
|
8091
|
-
|
|
8102
|
+
React__default.createElement(
|
|
8092
8103
|
'label',
|
|
8093
8104
|
{ className: 'pl-2' },
|
|
8094
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8105
|
+
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 }),
|
|
8095
8106
|
' ' + answer.answerText
|
|
8096
8107
|
)
|
|
8097
8108
|
);
|
|
8098
8109
|
})
|
|
8099
8110
|
)
|
|
8100
8111
|
),
|
|
8101
|
-
!showAnswer &&
|
|
8112
|
+
!showAnswer && React__default.createElement(
|
|
8102
8113
|
Button$1,
|
|
8103
8114
|
{ onClick: function onClick() {
|
|
8104
8115
|
return checkAnswers();
|
|
8105
8116
|
}, variant: 'info', block: true },
|
|
8106
8117
|
'Please click here for answer'
|
|
8107
8118
|
),
|
|
8108
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8109
|
-
|
|
8119
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8120
|
+
React__default.Fragment,
|
|
8110
8121
|
null,
|
|
8111
|
-
|
|
8122
|
+
React__default.createElement(
|
|
8112
8123
|
'h4',
|
|
8113
8124
|
null,
|
|
8114
8125
|
'Answer:'
|
|
8115
8126
|
),
|
|
8116
|
-
quizzes[currentPage - 1].answer &&
|
|
8127
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8117
8128
|
),
|
|
8118
|
-
|
|
8119
|
-
pageCount > 1 &&
|
|
8129
|
+
React__default.createElement('br', null),
|
|
8130
|
+
pageCount > 1 && React__default.createElement(
|
|
8120
8131
|
'div',
|
|
8121
8132
|
{ className: 'd-flex justify-content-center' },
|
|
8122
8133
|
renderPagination()
|
|
@@ -8127,19 +8138,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8127
8138
|
var Leads = function Leads(_ref) {
|
|
8128
8139
|
var url = _ref.url;
|
|
8129
8140
|
|
|
8130
|
-
return
|
|
8141
|
+
return React__default.createElement(
|
|
8131
8142
|
'div',
|
|
8132
8143
|
{ className: 'd-block text-center mb-3' },
|
|
8133
|
-
|
|
8144
|
+
React__default.createElement(
|
|
8134
8145
|
'style',
|
|
8135
8146
|
{ jsx: 'true' },
|
|
8136
8147
|
'\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 '
|
|
8137
8148
|
),
|
|
8138
|
-
url &&
|
|
8149
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8139
8150
|
);
|
|
8140
8151
|
};
|
|
8141
8152
|
|
|
8142
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8153
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8143
8154
|
var slides = _ref.node.slides,
|
|
8144
8155
|
client = _ref.client,
|
|
8145
8156
|
pageview = _ref.pageview,
|
|
@@ -8175,53 +8186,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8175
8186
|
setCarouselIndex(selectedIndex);
|
|
8176
8187
|
};
|
|
8177
8188
|
|
|
8178
|
-
return
|
|
8189
|
+
return React__default.createElement(
|
|
8179
8190
|
'div',
|
|
8180
8191
|
{ className: 'mt-3 mb-4' },
|
|
8181
|
-
|
|
8192
|
+
React__default.createElement(
|
|
8182
8193
|
Carousel,
|
|
8183
8194
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8184
8195
|
slides && slides.map(function (slide) {
|
|
8185
8196
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8186
|
-
return
|
|
8197
|
+
return React__default.createElement(
|
|
8187
8198
|
Carousel.Item,
|
|
8188
8199
|
{ key: slide._key },
|
|
8189
|
-
|
|
8200
|
+
React__default.createElement(
|
|
8190
8201
|
'a',
|
|
8191
8202
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8192
|
-
|
|
8203
|
+
React__default.createElement(
|
|
8193
8204
|
'div',
|
|
8194
8205
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8195
|
-
|
|
8206
|
+
React__default.createElement(
|
|
8196
8207
|
LazyLoad,
|
|
8197
8208
|
null,
|
|
8198
|
-
|
|
8209
|
+
React__default.createElement(
|
|
8199
8210
|
'picture',
|
|
8200
8211
|
null,
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8212
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8213
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8214
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8215
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8205
8216
|
)
|
|
8206
8217
|
)
|
|
8207
8218
|
)
|
|
8208
8219
|
),
|
|
8209
|
-
|
|
8220
|
+
React__default.createElement(
|
|
8210
8221
|
'div',
|
|
8211
8222
|
{ className: 'p-2' },
|
|
8212
|
-
slide.slideshowImage.caption &&
|
|
8223
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8213
8224
|
'h3',
|
|
8214
8225
|
{ style: { padding: '0px' } },
|
|
8215
8226
|
slide.slideshowImage.caption
|
|
8216
8227
|
),
|
|
8217
|
-
slide.description &&
|
|
8228
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8218
8229
|
)
|
|
8219
8230
|
);
|
|
8220
8231
|
}
|
|
8221
8232
|
return null;
|
|
8222
8233
|
})
|
|
8223
8234
|
),
|
|
8224
|
-
|
|
8235
|
+
React__default.createElement(
|
|
8225
8236
|
'style',
|
|
8226
8237
|
{ jsx: 'true' },
|
|
8227
8238
|
'\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 '
|
|
@@ -8240,10 +8251,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8240
8251
|
sizes = _props$node.sizes,
|
|
8241
8252
|
sizeMapping = _props$node.sizeMapping;
|
|
8242
8253
|
|
|
8243
|
-
return
|
|
8254
|
+
return React__default.createElement(
|
|
8244
8255
|
'div',
|
|
8245
8256
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8246
|
-
|
|
8257
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8247
8258
|
);
|
|
8248
8259
|
};
|
|
8249
8260
|
|
|
@@ -8254,15 +8265,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8254
8265
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8255
8266
|
|
|
8256
8267
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8257
|
-
return
|
|
8268
|
+
return React__default.createElement(
|
|
8258
8269
|
'section',
|
|
8259
8270
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8260
|
-
Caption &&
|
|
8271
|
+
Caption && React__default.createElement(
|
|
8261
8272
|
'h4',
|
|
8262
8273
|
{ className: 'formstack-caption' },
|
|
8263
8274
|
Caption
|
|
8264
8275
|
),
|
|
8265
|
-
|
|
8276
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8266
8277
|
);
|
|
8267
8278
|
};
|
|
8268
8279
|
|
|
@@ -8278,36 +8289,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8278
8289
|
}
|
|
8279
8290
|
});
|
|
8280
8291
|
if (medias && medias.length > 0) {
|
|
8281
|
-
return
|
|
8292
|
+
return React__default.createElement(
|
|
8282
8293
|
'div',
|
|
8283
8294
|
{ className: 'multi-media-container' },
|
|
8284
|
-
|
|
8295
|
+
React__default.createElement(
|
|
8285
8296
|
Row$1,
|
|
8286
8297
|
{ noGutters: true },
|
|
8287
8298
|
medias.map(function (media) {
|
|
8288
|
-
return
|
|
8299
|
+
return React__default.createElement(
|
|
8289
8300
|
Col$1,
|
|
8290
8301
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8291
|
-
|
|
8302
|
+
React__default.createElement(
|
|
8292
8303
|
'a',
|
|
8293
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8304
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8294
8305
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8295
|
-
|
|
8306
|
+
React__default.createElement(
|
|
8296
8307
|
'div',
|
|
8297
8308
|
{ className: 'multi-media-image-container' },
|
|
8298
|
-
imageBox &&
|
|
8309
|
+
imageBox && React__default.createElement(
|
|
8299
8310
|
LazyLoad,
|
|
8300
8311
|
{ once: true },
|
|
8301
|
-
|
|
8312
|
+
React__default.createElement(
|
|
8302
8313
|
'picture',
|
|
8303
8314
|
null,
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8315
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8316
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8317
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8318
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8308
8319
|
)
|
|
8309
8320
|
),
|
|
8310
|
-
media.caption &&
|
|
8321
|
+
media.caption && React__default.createElement(
|
|
8311
8322
|
'span',
|
|
8312
8323
|
{ className: 'multi-media-caption' },
|
|
8313
8324
|
media.caption
|
|
@@ -8317,7 +8328,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8317
8328
|
);
|
|
8318
8329
|
})
|
|
8319
8330
|
),
|
|
8320
|
-
|
|
8331
|
+
React__default.createElement(
|
|
8321
8332
|
'style',
|
|
8322
8333
|
{ jsx: 'true' },
|
|
8323
8334
|
'\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 '
|
|
@@ -8364,7 +8375,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8364
8375
|
}
|
|
8365
8376
|
};
|
|
8366
8377
|
|
|
8367
|
-
_this.wraperRef =
|
|
8378
|
+
_this.wraperRef = React__default.createRef();
|
|
8368
8379
|
_this.visible = false;
|
|
8369
8380
|
return _this;
|
|
8370
8381
|
}
|
|
@@ -8392,7 +8403,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8392
8403
|
_props$id = _props.id,
|
|
8393
8404
|
id = _props$id === undefined ? '' : _props$id;
|
|
8394
8405
|
|
|
8395
|
-
return
|
|
8406
|
+
return React__default.createElement(
|
|
8396
8407
|
'div',
|
|
8397
8408
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8398
8409
|
this.props.children
|
|
@@ -8401,7 +8412,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8401
8412
|
}]);
|
|
8402
8413
|
|
|
8403
8414
|
return InscreenSensor;
|
|
8404
|
-
}(
|
|
8415
|
+
}(React__default.Component);
|
|
8405
8416
|
|
|
8406
8417
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8407
8418
|
var nodes = _ref.nodes,
|
|
@@ -8510,33 +8521,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8510
8521
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8511
8522
|
var showReading = show ? 'showReading' : '';
|
|
8512
8523
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8513
|
-
return
|
|
8524
|
+
return React__default.createElement(
|
|
8514
8525
|
'div',
|
|
8515
8526
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8516
|
-
|
|
8527
|
+
React__default.createElement(
|
|
8517
8528
|
'a',
|
|
8518
8529
|
{ onClick: function onClick(e) {
|
|
8519
8530
|
return articleCardClickHandler(e);
|
|
8520
8531
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8521
|
-
|
|
8532
|
+
React__default.createElement(
|
|
8522
8533
|
'div',
|
|
8523
8534
|
{ className: 'prevNext-thumbnail' },
|
|
8524
|
-
|
|
8525
|
-
|
|
8535
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8536
|
+
React__default.createElement(
|
|
8526
8537
|
'div',
|
|
8527
8538
|
{ className: 'prevNext-reading ' + showReading },
|
|
8528
8539
|
articleLabel
|
|
8529
8540
|
)
|
|
8530
8541
|
),
|
|
8531
|
-
|
|
8542
|
+
React__default.createElement(
|
|
8532
8543
|
'div',
|
|
8533
8544
|
{ className: 'prevNext-summary' },
|
|
8534
|
-
|
|
8545
|
+
React__default.createElement(
|
|
8535
8546
|
'div',
|
|
8536
8547
|
{ className: 'prevNext-publishDate' },
|
|
8537
8548
|
moment(article.published).format('LL')
|
|
8538
8549
|
),
|
|
8539
|
-
|
|
8550
|
+
React__default.createElement(
|
|
8540
8551
|
'h2',
|
|
8541
8552
|
{ className: 'prevNext-title' },
|
|
8542
8553
|
article.title
|
|
@@ -8585,7 +8596,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8585
8596
|
|
|
8586
8597
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8587
8598
|
if (biography) {
|
|
8588
|
-
return
|
|
8599
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8589
8600
|
}
|
|
8590
8601
|
};
|
|
8591
8602
|
|
|
@@ -8671,7 +8682,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8671
8682
|
//console.log('useLayoutEffect')
|
|
8672
8683
|
if (!firstLoad) {
|
|
8673
8684
|
setUpArrowClicked(false);
|
|
8674
|
-
if (
|
|
8685
|
+
if (main_36) {
|
|
8675
8686
|
grabLoadedAds();
|
|
8676
8687
|
} else {
|
|
8677
8688
|
scrollToArticle();
|
|
@@ -8695,7 +8706,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8695
8706
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8696
8707
|
if (pageview) pageview(path);
|
|
8697
8708
|
|
|
8698
|
-
if (!
|
|
8709
|
+
if (!main_36) {
|
|
8699
8710
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8700
8711
|
if (window.googletag && googletag.pubadsReady) {
|
|
8701
8712
|
lib_3.refresh();
|
|
@@ -8703,7 +8714,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8703
8714
|
});
|
|
8704
8715
|
}
|
|
8705
8716
|
//Refresh leaderboard ad on mobile
|
|
8706
|
-
if (
|
|
8717
|
+
if (main_36) {
|
|
8707
8718
|
var leaderboardSlotId = '';
|
|
8708
8719
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8709
8720
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8743,38 +8754,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8743
8754
|
setSensorVisible(false);
|
|
8744
8755
|
};
|
|
8745
8756
|
|
|
8746
|
-
return
|
|
8747
|
-
|
|
8757
|
+
return React__default.createElement(
|
|
8758
|
+
React__default.Fragment,
|
|
8748
8759
|
null,
|
|
8749
|
-
|
|
8760
|
+
React__default.createElement(
|
|
8750
8761
|
'div',
|
|
8751
8762
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8752
|
-
|
|
8763
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8753
8764
|
return handleArrowClick();
|
|
8754
8765
|
} })
|
|
8755
8766
|
),
|
|
8756
|
-
|
|
8757
|
-
|
|
8767
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8768
|
+
React__default.createElement(
|
|
8758
8769
|
'div',
|
|
8759
8770
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8760
|
-
|
|
8771
|
+
React__default.createElement(
|
|
8761
8772
|
'h5',
|
|
8762
8773
|
{ className: 'objective-title' },
|
|
8763
8774
|
nodes.seriesTitle
|
|
8764
8775
|
),
|
|
8765
|
-
|
|
8776
|
+
React__default.createElement(
|
|
8766
8777
|
'div',
|
|
8767
8778
|
{ className: 'prevNextWrapper' },
|
|
8768
8779
|
PrevNextCards(false, -1)
|
|
8769
8780
|
)
|
|
8770
8781
|
),
|
|
8771
|
-
|
|
8772
|
-
|
|
8782
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8783
|
+
React__default.createElement(
|
|
8773
8784
|
'div',
|
|
8774
8785
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8775
|
-
|
|
8786
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8776
8787
|
if (index === 0) {
|
|
8777
|
-
return
|
|
8788
|
+
return React__default.createElement(
|
|
8778
8789
|
'div',
|
|
8779
8790
|
{
|
|
8780
8791
|
key: 'addid-1',
|
|
@@ -8794,14 +8805,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8794
8805
|
}
|
|
8795
8806
|
})
|
|
8796
8807
|
),
|
|
8797
|
-
|
|
8808
|
+
React__default.createElement(
|
|
8798
8809
|
'div',
|
|
8799
8810
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8800
8811
|
Articles.map(function (article, index) {
|
|
8801
|
-
return
|
|
8812
|
+
return React__default.createElement(
|
|
8802
8813
|
'div',
|
|
8803
8814
|
{ key: article.title },
|
|
8804
|
-
|
|
8815
|
+
React__default.createElement(
|
|
8805
8816
|
InscreenSensor,
|
|
8806
8817
|
{
|
|
8807
8818
|
visible: sensorVisible,
|
|
@@ -8819,84 +8830,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8819
8830
|
}
|
|
8820
8831
|
}
|
|
8821
8832
|
} },
|
|
8822
|
-
|
|
8833
|
+
React__default.createElement(
|
|
8823
8834
|
Head,
|
|
8824
8835
|
null,
|
|
8825
|
-
currentTitle !== null &&
|
|
8836
|
+
currentTitle !== null && React__default.createElement(
|
|
8826
8837
|
'title',
|
|
8827
8838
|
{ key: 'title' },
|
|
8828
8839
|
currentTitle
|
|
8829
8840
|
),
|
|
8830
|
-
currentSummary !== null &&
|
|
8831
|
-
currentURL !== null &&
|
|
8832
|
-
currentTitle !== null &&
|
|
8833
|
-
currentThumbnail !== null &&
|
|
8834
|
-
currentSummary !== null &&
|
|
8835
|
-
currentTitle !== null &&
|
|
8836
|
-
currentThumbnail !== null &&
|
|
8837
|
-
currentSummary !== null &&
|
|
8841
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8842
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8843
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8844
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8845
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8846
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8847
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8848
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8838
8849
|
),
|
|
8839
|
-
|
|
8850
|
+
React__default.createElement(
|
|
8840
8851
|
'article',
|
|
8841
8852
|
{ className: 'article-wrapper' },
|
|
8842
|
-
|
|
8853
|
+
React__default.createElement(
|
|
8843
8854
|
'div',
|
|
8844
8855
|
{ className: 'article-publishDate' },
|
|
8845
8856
|
moment(article.published).format('LL')
|
|
8846
8857
|
),
|
|
8847
|
-
|
|
8858
|
+
React__default.createElement(
|
|
8848
8859
|
'div',
|
|
8849
8860
|
{ className: 'author-details-wrapper' },
|
|
8850
8861
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8851
|
-
return
|
|
8862
|
+
return React__default.createElement(
|
|
8852
8863
|
'span',
|
|
8853
8864
|
{ key: index },
|
|
8854
8865
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8855
8866
|
);
|
|
8856
8867
|
})
|
|
8857
8868
|
),
|
|
8858
|
-
|
|
8869
|
+
React__default.createElement(
|
|
8859
8870
|
'h2',
|
|
8860
8871
|
{ className: 'article-title' },
|
|
8861
8872
|
article.title
|
|
8862
8873
|
),
|
|
8863
|
-
|
|
8874
|
+
React__default.createElement(
|
|
8864
8875
|
'div',
|
|
8865
8876
|
{ className: 'mt-2 mb-2' },
|
|
8866
|
-
|
|
8877
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8867
8878
|
serializers: getSerializers,
|
|
8868
8879
|
videoAccountIDs: accountIDs,
|
|
8869
8880
|
blocks: article.text,
|
|
8870
8881
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8871
8882
|
}, client.config())),
|
|
8872
|
-
|
|
8883
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8873
8884
|
),
|
|
8874
|
-
Articles.length > 1 &&
|
|
8875
|
-
|
|
8885
|
+
Articles.length > 1 && React__default.createElement(
|
|
8886
|
+
React__default.Fragment,
|
|
8876
8887
|
null,
|
|
8877
|
-
|
|
8888
|
+
React__default.createElement(
|
|
8878
8889
|
'div',
|
|
8879
8890
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8880
|
-
|
|
8891
|
+
React__default.createElement(
|
|
8881
8892
|
'h5',
|
|
8882
8893
|
{ className: 'objective-title' },
|
|
8883
8894
|
nodes.seriesTitle
|
|
8884
8895
|
),
|
|
8885
|
-
|
|
8896
|
+
React__default.createElement(
|
|
8886
8897
|
'div',
|
|
8887
8898
|
{ className: 'prevNextWrapper' },
|
|
8888
8899
|
PrevNextCards(true, index)
|
|
8889
8900
|
)
|
|
8890
8901
|
),
|
|
8891
|
-
|
|
8902
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8892
8903
|
)
|
|
8893
8904
|
),
|
|
8894
|
-
|
|
8905
|
+
React__default.createElement(
|
|
8895
8906
|
'div',
|
|
8896
8907
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8897
|
-
|
|
8908
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8898
8909
|
if (innerIndex === 0) {
|
|
8899
|
-
return
|
|
8910
|
+
return React__default.createElement(
|
|
8900
8911
|
'div',
|
|
8901
8912
|
{
|
|
8902
8913
|
key: 'addid-' + (index + 2),
|
|
@@ -8919,7 +8930,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8919
8930
|
)
|
|
8920
8931
|
);
|
|
8921
8932
|
}),
|
|
8922
|
-
|
|
8933
|
+
React__default.createElement(
|
|
8923
8934
|
'style',
|
|
8924
8935
|
{ jsx: 'true' },
|
|
8925
8936
|
'\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 '
|
|
@@ -8949,11 +8960,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8949
8960
|
};
|
|
8950
8961
|
}, [handleClickOutside]);
|
|
8951
8962
|
|
|
8952
|
-
return
|
|
8963
|
+
return React__default.createElement(
|
|
8953
8964
|
'div',
|
|
8954
8965
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8955
|
-
|
|
8956
|
-
|
|
8966
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8967
|
+
React__default.createElement(
|
|
8957
8968
|
'style',
|
|
8958
8969
|
{ jsx: 'true' },
|
|
8959
8970
|
'\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 '
|
|
@@ -8967,7 +8978,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8967
8978
|
}
|
|
8968
8979
|
};
|
|
8969
8980
|
|
|
8970
|
-
var FigureImage
|
|
8981
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8971
8982
|
var node = _ref2.node,
|
|
8972
8983
|
client = _ref2.client,
|
|
8973
8984
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8975,13 +8986,13 @@ var FigureImage$1 = React.memo(function (_ref2) {
|
|
|
8975
8986
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8976
8987
|
|
|
8977
8988
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8978
|
-
return
|
|
8989
|
+
return React__default.createElement(
|
|
8979
8990
|
'picture',
|
|
8980
8991
|
null,
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8992
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8993
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8994
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8995
|
+
React__default.createElement('img', _extends$1({
|
|
8985
8996
|
style: figureImageStyle,
|
|
8986
8997
|
className: 'figure-image',
|
|
8987
8998
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9032,30 +9043,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9032
9043
|
|
|
9033
9044
|
var renderTooltip = function renderTooltip(props) {
|
|
9034
9045
|
if (infoBox[0].title) {
|
|
9035
|
-
return
|
|
9036
|
-
Popover,
|
|
9046
|
+
return React__default.createElement(
|
|
9047
|
+
Popover$1,
|
|
9037
9048
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9038
|
-
|
|
9039
|
-
Popover.Title,
|
|
9049
|
+
React__default.createElement(
|
|
9050
|
+
Popover$1.Title,
|
|
9040
9051
|
{ as: 'h3' },
|
|
9041
9052
|
infoBox[0].title
|
|
9042
9053
|
),
|
|
9043
|
-
|
|
9044
|
-
Popover.Content,
|
|
9054
|
+
React__default.createElement(
|
|
9055
|
+
Popover$1.Content,
|
|
9045
9056
|
null,
|
|
9046
|
-
|
|
9057
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9047
9058
|
)
|
|
9048
9059
|
);
|
|
9049
9060
|
} else {
|
|
9050
|
-
return
|
|
9051
|
-
Tooltip,
|
|
9052
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9053
|
-
|
|
9061
|
+
return React__default.createElement(
|
|
9062
|
+
Tooltip$1,
|
|
9063
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9064
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9054
9065
|
);
|
|
9055
9066
|
}
|
|
9056
9067
|
};
|
|
9057
9068
|
|
|
9058
|
-
var FigureImageWOverLay =
|
|
9069
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9059
9070
|
var node = _ref3.node,
|
|
9060
9071
|
client = _ref3.client,
|
|
9061
9072
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9063,32 +9074,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9063
9074
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9064
9075
|
|
|
9065
9076
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9066
|
-
var triggerAction =
|
|
9067
|
-
var placementLocation =
|
|
9068
|
-
return
|
|
9077
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9078
|
+
var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9079
|
+
return React__default.createElement(
|
|
9069
9080
|
'picture',
|
|
9070
9081
|
null,
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9082
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9083
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9084
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9085
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9075
9086
|
style: figureImageStyle,
|
|
9076
9087
|
className: 'figure-image',
|
|
9077
9088
|
src: urlFor({ source: node, client: client }),
|
|
9078
9089
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9079
|
-
}, !link && !
|
|
9090
|
+
}, !link && !main_35 && {
|
|
9080
9091
|
onClick: function onClick() {
|
|
9081
9092
|
return handleClickFigure(node, client);
|
|
9082
9093
|
}
|
|
9083
|
-
})) :
|
|
9094
|
+
})) : React__default.createElement(
|
|
9084
9095
|
OverlayTrigger,
|
|
9085
9096
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9086
|
-
|
|
9097
|
+
React__default.createElement('img', _extends$1({
|
|
9087
9098
|
style: figureImageStyle,
|
|
9088
9099
|
className: 'figure-image',
|
|
9089
9100
|
src: urlFor({ source: node, client: client }),
|
|
9090
9101
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9091
|
-
}, !link && !
|
|
9102
|
+
}, !link && !main_35 && {
|
|
9092
9103
|
onClick: function onClick() {
|
|
9093
9104
|
return handleClickFigure(node, client);
|
|
9094
9105
|
}
|
|
@@ -9137,13 +9148,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9137
9148
|
|
|
9138
9149
|
var FigureCaption = useCallback(function () {
|
|
9139
9150
|
if (imgcaption && imgcaption.length > 0) {
|
|
9140
|
-
return
|
|
9151
|
+
return React__default.createElement(
|
|
9141
9152
|
'div',
|
|
9142
9153
|
{ className: 'figure-caption' },
|
|
9143
|
-
|
|
9154
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9144
9155
|
);
|
|
9145
9156
|
} else if (caption) {
|
|
9146
|
-
return
|
|
9157
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9147
9158
|
} else return null;
|
|
9148
9159
|
}, [caption, imgcaption]);
|
|
9149
9160
|
|
|
@@ -9160,24 +9171,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9160
9171
|
setShowLightbox(true);
|
|
9161
9172
|
}, [node, client]);
|
|
9162
9173
|
|
|
9163
|
-
return
|
|
9164
|
-
|
|
9174
|
+
return React__default.createElement(
|
|
9175
|
+
React__default.Fragment,
|
|
9165
9176
|
null,
|
|
9166
|
-
infoBox.length >= 1 ?
|
|
9167
|
-
Figure$
|
|
9177
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9178
|
+
Figure$1$1,
|
|
9168
9179
|
{ className: '' + class_name, style: figureStyle },
|
|
9169
|
-
link ?
|
|
9180
|
+
link ? React__default.createElement(
|
|
9170
9181
|
'a',
|
|
9171
9182
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
) :
|
|
9175
|
-
|
|
9183
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9184
|
+
React__default.createElement(FigureCaption, null)
|
|
9185
|
+
) : React__default.createElement(
|
|
9186
|
+
React__default.Fragment,
|
|
9176
9187
|
null,
|
|
9177
|
-
|
|
9178
|
-
|
|
9188
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9189
|
+
React__default.createElement(FigureCaption, null)
|
|
9179
9190
|
),
|
|
9180
|
-
|
|
9191
|
+
React__default.createElement(LightBox, {
|
|
9181
9192
|
showLightbox: showLightbox,
|
|
9182
9193
|
lightboxImgSrc: lightboxImgSrc,
|
|
9183
9194
|
closeLightbox: function closeLightbox() {
|
|
@@ -9185,21 +9196,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9185
9196
|
setShowLightbox(false);
|
|
9186
9197
|
}
|
|
9187
9198
|
})
|
|
9188
|
-
) :
|
|
9189
|
-
Figure$
|
|
9199
|
+
) : React__default.createElement(
|
|
9200
|
+
Figure$1$1,
|
|
9190
9201
|
{ className: '' + class_name, style: figureStyle },
|
|
9191
|
-
link ?
|
|
9202
|
+
link ? React__default.createElement(
|
|
9192
9203
|
'a',
|
|
9193
9204
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
) :
|
|
9197
|
-
|
|
9205
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9206
|
+
React__default.createElement(FigureCaption, null)
|
|
9207
|
+
) : React__default.createElement(
|
|
9208
|
+
React__default.Fragment,
|
|
9198
9209
|
null,
|
|
9199
|
-
|
|
9200
|
-
|
|
9210
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9211
|
+
React__default.createElement(FigureCaption, null)
|
|
9201
9212
|
),
|
|
9202
|
-
|
|
9213
|
+
React__default.createElement(LightBox, {
|
|
9203
9214
|
showLightbox: showLightbox,
|
|
9204
9215
|
lightboxImgSrc: lightboxImgSrc,
|
|
9205
9216
|
closeLightbox: function closeLightbox() {
|
|
@@ -9208,7 +9219,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9208
9219
|
}
|
|
9209
9220
|
})
|
|
9210
9221
|
),
|
|
9211
|
-
|
|
9222
|
+
React__default.createElement(
|
|
9212
9223
|
'style',
|
|
9213
9224
|
{ jsx: 'true' },
|
|
9214
9225
|
'\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 '
|
|
@@ -9216,7 +9227,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9216
9227
|
);
|
|
9217
9228
|
};
|
|
9218
9229
|
|
|
9219
|
-
var Figure =
|
|
9230
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9220
9231
|
|
|
9221
9232
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9222
9233
|
useEffect(function () {
|
|
@@ -9233,7 +9244,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9233
9244
|
}, [ref]);
|
|
9234
9245
|
}
|
|
9235
9246
|
|
|
9236
|
-
var FigureImage =
|
|
9247
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9237
9248
|
var imagesCount = _ref.imagesCount,
|
|
9238
9249
|
image = _ref.image,
|
|
9239
9250
|
client = _ref.client,
|
|
@@ -9241,13 +9252,13 @@ var FigureImage = React.memo(function (_ref) {
|
|
|
9241
9252
|
link = _ref.link,
|
|
9242
9253
|
handleClickFigure = _ref.handleClickFigure;
|
|
9243
9254
|
|
|
9244
|
-
return
|
|
9255
|
+
return React__default.createElement(
|
|
9245
9256
|
'picture',
|
|
9246
9257
|
null,
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9258
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9259
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9260
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9261
|
+
React__default.createElement('img', _extends$1({
|
|
9251
9262
|
'images-count': imagesCount,
|
|
9252
9263
|
className: 'multi-figure-image',
|
|
9253
9264
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9284,13 +9295,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9284
9295
|
imgcaption = _ref2.imgcaption;
|
|
9285
9296
|
|
|
9286
9297
|
if (imgcaption && imgcaption.length > 0) {
|
|
9287
|
-
return
|
|
9298
|
+
return React__default.createElement(
|
|
9288
9299
|
'div',
|
|
9289
9300
|
{ className: 'multi-figure-caption' },
|
|
9290
|
-
|
|
9301
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9291
9302
|
);
|
|
9292
9303
|
} else if (caption) {
|
|
9293
|
-
return
|
|
9304
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9294
9305
|
} else return null;
|
|
9295
9306
|
};
|
|
9296
9307
|
|
|
@@ -9299,7 +9310,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9299
9310
|
setOpenImg(true);
|
|
9300
9311
|
}, [client]);
|
|
9301
9312
|
|
|
9302
|
-
var FigureImageWOverLay =
|
|
9313
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9303
9314
|
var imagesCount = _ref3.imagesCount,
|
|
9304
9315
|
image = _ref3.image,
|
|
9305
9316
|
client = _ref3.client,
|
|
@@ -9307,32 +9318,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9307
9318
|
link = _ref3.link,
|
|
9308
9319
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9309
9320
|
|
|
9310
|
-
var triggerAction =
|
|
9311
|
-
var placementLocation =
|
|
9312
|
-
return
|
|
9321
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9322
|
+
var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9323
|
+
return React__default.createElement(
|
|
9313
9324
|
'picture',
|
|
9314
9325
|
null,
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9326
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9327
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9328
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9329
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9319
9330
|
'images-count': imagesCount,
|
|
9320
9331
|
className: 'multi-figure-image',
|
|
9321
9332
|
src: urlFor({ source: image, client: client }),
|
|
9322
9333
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9323
|
-
}, !link && !
|
|
9334
|
+
}, !link && !main_35 && {
|
|
9324
9335
|
onClick: function onClick() {
|
|
9325
9336
|
return handleClickFigure(image, client);
|
|
9326
9337
|
}
|
|
9327
|
-
})) :
|
|
9338
|
+
})) : React__default.createElement(
|
|
9328
9339
|
OverlayTrigger,
|
|
9329
9340
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9330
|
-
|
|
9341
|
+
React__default.createElement('img', _extends$1({
|
|
9331
9342
|
'images-count': imagesCount,
|
|
9332
9343
|
className: 'multi-figure-image',
|
|
9333
9344
|
src: urlFor({ source: image, client: client }),
|
|
9334
9345
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9335
|
-
}, !link && !
|
|
9346
|
+
}, !link && !main_35 && {
|
|
9336
9347
|
onClick: function onClick() {
|
|
9337
9348
|
return handleClickFigure(image, client);
|
|
9338
9349
|
}
|
|
@@ -9343,102 +9354,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9343
9354
|
|
|
9344
9355
|
var renderTooltip = function renderTooltip(image) {
|
|
9345
9356
|
if (image.infoBox[0].title) {
|
|
9346
|
-
return
|
|
9347
|
-
Popover,
|
|
9357
|
+
return React__default.createElement(
|
|
9358
|
+
Popover$1,
|
|
9348
9359
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9349
|
-
|
|
9350
|
-
Popover.Title,
|
|
9360
|
+
React__default.createElement(
|
|
9361
|
+
Popover$1.Title,
|
|
9351
9362
|
{ as: 'h3' },
|
|
9352
9363
|
image.infoBox[0].title
|
|
9353
9364
|
),
|
|
9354
|
-
|
|
9355
|
-
Popover.Content,
|
|
9365
|
+
React__default.createElement(
|
|
9366
|
+
Popover$1.Content,
|
|
9356
9367
|
null,
|
|
9357
|
-
|
|
9368
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9358
9369
|
)
|
|
9359
9370
|
);
|
|
9360
9371
|
} else {
|
|
9361
|
-
return
|
|
9362
|
-
Tooltip,
|
|
9363
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9364
|
-
|
|
9372
|
+
return React__default.createElement(
|
|
9373
|
+
Tooltip$1,
|
|
9374
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9375
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9365
9376
|
);
|
|
9366
9377
|
}
|
|
9367
9378
|
};
|
|
9368
9379
|
|
|
9369
9380
|
if (images && images.length > 0) {
|
|
9370
|
-
return
|
|
9381
|
+
return React__default.createElement(
|
|
9371
9382
|
'div',
|
|
9372
9383
|
{ className: 'multi-figure-container' },
|
|
9373
|
-
|
|
9384
|
+
React__default.createElement(
|
|
9374
9385
|
Row$1,
|
|
9375
9386
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9376
9387
|
images.map(function (image, index) {
|
|
9377
9388
|
if (image.infoBox) {
|
|
9378
|
-
return
|
|
9389
|
+
return React__default.createElement(
|
|
9379
9390
|
Col$1,
|
|
9380
9391
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9381
|
-
image.link ?
|
|
9392
|
+
image.link ? React__default.createElement(
|
|
9382
9393
|
'a',
|
|
9383
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9384
|
-
|
|
9394
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9395
|
+
React__default.createElement(
|
|
9385
9396
|
'div',
|
|
9386
9397
|
{ className: 'multi-figure-image-container' },
|
|
9387
|
-
|
|
9398
|
+
React__default.createElement(
|
|
9388
9399
|
LazyLoad,
|
|
9389
9400
|
{ once: true },
|
|
9390
|
-
|
|
9401
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9391
9402
|
),
|
|
9392
|
-
|
|
9403
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9393
9404
|
)
|
|
9394
|
-
) :
|
|
9405
|
+
) : React__default.createElement(
|
|
9395
9406
|
'div',
|
|
9396
9407
|
{ className: 'multi-figure-image-container' },
|
|
9397
|
-
|
|
9408
|
+
React__default.createElement(
|
|
9398
9409
|
LazyLoad,
|
|
9399
9410
|
{ once: true },
|
|
9400
|
-
|
|
9411
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9401
9412
|
),
|
|
9402
|
-
|
|
9413
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9403
9414
|
)
|
|
9404
9415
|
);
|
|
9405
9416
|
} else {
|
|
9406
|
-
return
|
|
9417
|
+
return React__default.createElement(
|
|
9407
9418
|
Col$1,
|
|
9408
9419
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9409
|
-
image.link ?
|
|
9420
|
+
image.link ? React__default.createElement(
|
|
9410
9421
|
'a',
|
|
9411
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9412
|
-
|
|
9422
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9423
|
+
React__default.createElement(
|
|
9413
9424
|
'div',
|
|
9414
9425
|
{ className: 'multi-figure-image-container' },
|
|
9415
|
-
|
|
9426
|
+
React__default.createElement(
|
|
9416
9427
|
LazyLoad,
|
|
9417
9428
|
{ once: true },
|
|
9418
|
-
|
|
9429
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9419
9430
|
),
|
|
9420
|
-
|
|
9431
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9421
9432
|
)
|
|
9422
|
-
) :
|
|
9433
|
+
) : React__default.createElement(
|
|
9423
9434
|
'div',
|
|
9424
9435
|
{ className: 'multi-figure-image-container' },
|
|
9425
|
-
|
|
9436
|
+
React__default.createElement(
|
|
9426
9437
|
LazyLoad,
|
|
9427
9438
|
{ once: true },
|
|
9428
|
-
|
|
9439
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9429
9440
|
),
|
|
9430
|
-
|
|
9441
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9431
9442
|
)
|
|
9432
9443
|
);
|
|
9433
9444
|
}
|
|
9434
9445
|
})
|
|
9435
9446
|
),
|
|
9436
|
-
|
|
9447
|
+
React__default.createElement(
|
|
9437
9448
|
'div',
|
|
9438
9449
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9439
|
-
|
|
9450
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9440
9451
|
),
|
|
9441
|
-
|
|
9452
|
+
React__default.createElement(
|
|
9442
9453
|
'style',
|
|
9443
9454
|
{ jsx: 'true' },
|
|
9444
9455
|
'\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 '
|
|
@@ -9487,23 +9498,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9487
9498
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9488
9499
|
}, []);
|
|
9489
9500
|
|
|
9490
|
-
return
|
|
9491
|
-
|
|
9501
|
+
return React__default.createElement(
|
|
9502
|
+
React__default.Fragment,
|
|
9492
9503
|
null,
|
|
9493
|
-
|
|
9504
|
+
React__default.createElement(
|
|
9494
9505
|
Head,
|
|
9495
9506
|
null,
|
|
9496
|
-
|
|
9507
|
+
React__default.createElement('script', {
|
|
9497
9508
|
dangerouslySetInnerHTML: {
|
|
9498
9509
|
__html: 'history.scrollRestoration = "manual"'
|
|
9499
9510
|
}
|
|
9500
9511
|
})
|
|
9501
9512
|
),
|
|
9502
|
-
|
|
9513
|
+
React__default.createElement(
|
|
9503
9514
|
'div',
|
|
9504
9515
|
{ id: elementId },
|
|
9505
|
-
|
|
9506
|
-
|
|
9516
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9517
|
+
React__default.createElement(
|
|
9507
9518
|
'style',
|
|
9508
9519
|
{ jsx: 'true' },
|
|
9509
9520
|
'\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 '
|
|
@@ -9537,7 +9548,7 @@ exports.__esModule = true;
|
|
|
9537
9548
|
|
|
9538
9549
|
|
|
9539
9550
|
|
|
9540
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9551
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9541
9552
|
|
|
9542
9553
|
|
|
9543
9554
|
|
|
@@ -9557,7 +9568,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9557
9568
|
|
|
9558
9569
|
|
|
9559
9570
|
|
|
9560
|
-
var _react2 = _interopRequireDefault(
|
|
9571
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9561
9572
|
|
|
9562
9573
|
|
|
9563
9574
|
|
|
@@ -9706,9 +9717,9 @@ var ScriptTag = function (_Component) {
|
|
|
9706
9717
|
|
|
9707
9718
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9708
9719
|
// eslint-disable-next-line no-unused-vars
|
|
9709
|
-
var _props3 = this.props
|
|
9710
|
-
_props3.isHydrating
|
|
9711
|
-
|
|
9720
|
+
var _props3 = this.props,
|
|
9721
|
+
isHydrating = _props3.isHydrating,
|
|
9722
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9712
9723
|
|
|
9713
9724
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9714
9725
|
return _this2.domRef = tag;
|
|
@@ -9716,7 +9727,7 @@ var ScriptTag = function (_Component) {
|
|
|
9716
9727
|
};
|
|
9717
9728
|
|
|
9718
9729
|
return ScriptTag;
|
|
9719
|
-
}(
|
|
9730
|
+
}(React__default.Component);
|
|
9720
9731
|
|
|
9721
9732
|
ScriptTag.propTypes = {
|
|
9722
9733
|
/**
|
|
@@ -9795,11 +9806,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9795
9806
|
}, []);
|
|
9796
9807
|
|
|
9797
9808
|
if (iframeSrc) {
|
|
9798
|
-
return
|
|
9809
|
+
return React__default.createElement(
|
|
9799
9810
|
'section',
|
|
9800
9811
|
{ className: 'form-assembly' },
|
|
9801
|
-
|
|
9802
|
-
|
|
9812
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9813
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9803
9814
|
);
|
|
9804
9815
|
}
|
|
9805
9816
|
|
|
@@ -9836,27 +9847,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9836
9847
|
return window.removeEventListener('resize', handleResize);
|
|
9837
9848
|
};
|
|
9838
9849
|
}, []);
|
|
9839
|
-
return
|
|
9850
|
+
return React__default.createElement(
|
|
9840
9851
|
'div',
|
|
9841
9852
|
{ className: 'blockTableHolder', ref: holder },
|
|
9842
|
-
|
|
9853
|
+
React__default.createElement(
|
|
9843
9854
|
'div',
|
|
9844
9855
|
{ className: 'blockTable' },
|
|
9845
9856
|
rows && rows.map(function (row) {
|
|
9846
|
-
return
|
|
9857
|
+
return React__default.createElement(
|
|
9847
9858
|
'div',
|
|
9848
9859
|
{ className: 'blockTableRow' },
|
|
9849
9860
|
row.cells && row.cells.map(function (cell) {
|
|
9850
|
-
return
|
|
9861
|
+
return React__default.createElement(
|
|
9851
9862
|
'div',
|
|
9852
9863
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9853
|
-
|
|
9864
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9854
9865
|
);
|
|
9855
9866
|
})
|
|
9856
9867
|
);
|
|
9857
9868
|
})
|
|
9858
9869
|
),
|
|
9859
|
-
|
|
9870
|
+
React__default.createElement(
|
|
9860
9871
|
'style',
|
|
9861
9872
|
{ jsx: true },
|
|
9862
9873
|
'\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 '
|
|
@@ -9935,12 +9946,12 @@ var getSerializers = function getSerializers() {
|
|
|
9935
9946
|
var node = _ref.node;
|
|
9936
9947
|
var url = node.url;
|
|
9937
9948
|
|
|
9938
|
-
return
|
|
9949
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9939
9950
|
},
|
|
9940
9951
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9941
9952
|
var node = _ref2.node;
|
|
9942
9953
|
|
|
9943
|
-
return
|
|
9954
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9944
9955
|
nodes: node,
|
|
9945
9956
|
article: article,
|
|
9946
9957
|
meta: meta,
|
|
@@ -9954,7 +9965,7 @@ var getSerializers = function getSerializers() {
|
|
|
9954
9965
|
articleSeries: function articleSeries(_ref3) {
|
|
9955
9966
|
var node = _ref3.node;
|
|
9956
9967
|
|
|
9957
|
-
return
|
|
9968
|
+
return React__default.createElement(ArticleSeries, {
|
|
9958
9969
|
nodes: node,
|
|
9959
9970
|
accountIDs: videoAccountIDs || {},
|
|
9960
9971
|
pageview: pageview,
|
|
@@ -9967,61 +9978,61 @@ var getSerializers = function getSerializers() {
|
|
|
9967
9978
|
figure: function figure(_ref4) {
|
|
9968
9979
|
var node = _ref4.node;
|
|
9969
9980
|
|
|
9970
|
-
return
|
|
9981
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9971
9982
|
},
|
|
9972
9983
|
multifigure: function multifigure(_ref5) {
|
|
9973
9984
|
var node = _ref5.node;
|
|
9974
9985
|
|
|
9975
|
-
return
|
|
9986
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9976
9987
|
},
|
|
9977
9988
|
slideshow: function slideshow(_ref6) {
|
|
9978
9989
|
var node = _ref6.node;
|
|
9979
9990
|
var slides = node.slides;
|
|
9980
9991
|
|
|
9981
|
-
return
|
|
9992
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9982
9993
|
},
|
|
9983
9994
|
sidebar: function sidebar(_ref7) {
|
|
9984
9995
|
var node = _ref7.node;
|
|
9985
9996
|
var caption = node.caption,
|
|
9986
9997
|
content = node.content;
|
|
9987
9998
|
|
|
9988
|
-
return
|
|
9999
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
9989
10000
|
},
|
|
9990
10001
|
datatable: function datatable(_ref8) {
|
|
9991
10002
|
var node = _ref8.node;
|
|
9992
10003
|
var table = node.table;
|
|
9993
10004
|
|
|
9994
|
-
return
|
|
10005
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9995
10006
|
},
|
|
9996
10007
|
media: function media(_ref9) {
|
|
9997
10008
|
var node = _ref9.node;
|
|
9998
10009
|
|
|
9999
|
-
return
|
|
10010
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
10000
10011
|
},
|
|
10001
10012
|
iframe: function iframe(_ref10) {
|
|
10002
10013
|
var node = _ref10.node;
|
|
10003
10014
|
|
|
10004
|
-
return
|
|
10015
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10005
10016
|
},
|
|
10006
10017
|
video: function video(_ref11) {
|
|
10007
10018
|
var node = _ref11.node;
|
|
10008
10019
|
|
|
10009
|
-
return
|
|
10020
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10010
10021
|
},
|
|
10011
10022
|
audio: function audio(_ref12) {
|
|
10012
10023
|
var node = _ref12.node;
|
|
10013
10024
|
|
|
10014
|
-
return
|
|
10025
|
+
return React__default.createElement(Audio, { node: node });
|
|
10015
10026
|
},
|
|
10016
10027
|
poll: function poll(_ref13) {
|
|
10017
10028
|
var node = _ref13.node;
|
|
10018
10029
|
|
|
10019
|
-
return
|
|
10030
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10020
10031
|
},
|
|
10021
10032
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10022
10033
|
var node = _ref14.node;
|
|
10023
10034
|
|
|
10024
|
-
return
|
|
10035
|
+
return React__default.createElement(Poll$1, {
|
|
10025
10036
|
node: node,
|
|
10026
10037
|
client: client,
|
|
10027
10038
|
pageview: pageview,
|
|
@@ -10035,35 +10046,35 @@ var getSerializers = function getSerializers() {
|
|
|
10035
10046
|
var node = _ref15.node;
|
|
10036
10047
|
var quizzes = node.quizzes;
|
|
10037
10048
|
|
|
10038
|
-
return
|
|
10049
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10039
10050
|
},
|
|
10040
10051
|
leads: function leads(_ref16) {
|
|
10041
10052
|
var node = _ref16.node;
|
|
10042
10053
|
var leadID = node.leadID;
|
|
10043
10054
|
|
|
10044
10055
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10045
|
-
return
|
|
10056
|
+
return React__default.createElement(Leads, { url: url });
|
|
10046
10057
|
},
|
|
10047
10058
|
slideshows: function slideshows(_ref17) {
|
|
10048
10059
|
var node = _ref17.node;
|
|
10049
10060
|
|
|
10050
|
-
return
|
|
10061
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10051
10062
|
},
|
|
10052
10063
|
nativeAd: function nativeAd(_ref18) {
|
|
10053
10064
|
var node = _ref18.node;
|
|
10054
10065
|
|
|
10055
|
-
return
|
|
10066
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10056
10067
|
},
|
|
10057
10068
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10058
10069
|
var node = _ref19.node;
|
|
10059
10070
|
|
|
10060
|
-
return
|
|
10071
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10061
10072
|
},
|
|
10062
10073
|
hrtag: function hrtag() {
|
|
10063
|
-
return
|
|
10074
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10064
10075
|
},
|
|
10065
10076
|
brtag: function brtag() {
|
|
10066
|
-
return
|
|
10077
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10067
10078
|
},
|
|
10068
10079
|
formstack: function formstack(_ref20) {
|
|
10069
10080
|
var node = _ref20.node;
|
|
@@ -10071,29 +10082,29 @@ var getSerializers = function getSerializers() {
|
|
|
10071
10082
|
Caption = node.Caption,
|
|
10072
10083
|
needSegmentSupport = node.needSegmentSupport;
|
|
10073
10084
|
|
|
10074
|
-
return
|
|
10085
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10075
10086
|
},
|
|
10076
10087
|
formassembly: FormAssembly,
|
|
10077
10088
|
multimedia: function multimedia(_ref21) {
|
|
10078
10089
|
var node = _ref21.node;
|
|
10079
10090
|
|
|
10080
|
-
return
|
|
10091
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10081
10092
|
},
|
|
10082
10093
|
blockTable: function blockTable(_ref22) {
|
|
10083
10094
|
var node = _ref22.node;
|
|
10084
|
-
return
|
|
10095
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10085
10096
|
}
|
|
10086
10097
|
},
|
|
10087
10098
|
marks: {
|
|
10088
10099
|
superscript: function superscript(props) {
|
|
10089
|
-
return
|
|
10100
|
+
return React__default.createElement(
|
|
10090
10101
|
'sup',
|
|
10091
10102
|
null,
|
|
10092
10103
|
props.children
|
|
10093
10104
|
);
|
|
10094
10105
|
},
|
|
10095
10106
|
subscript: function subscript(props) {
|
|
10096
|
-
return
|
|
10107
|
+
return React__default.createElement(
|
|
10097
10108
|
'sub',
|
|
10098
10109
|
null,
|
|
10099
10110
|
props.children
|
|
@@ -10110,7 +10121,7 @@ var getSerializers = function getSerializers() {
|
|
|
10110
10121
|
if (href && href.charAt(0) === '#') {
|
|
10111
10122
|
var elementId = href.slice(1);
|
|
10112
10123
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10113
|
-
return
|
|
10124
|
+
return React__default.createElement(
|
|
10114
10125
|
'a',
|
|
10115
10126
|
{ onClick: function onClick() {
|
|
10116
10127
|
return ScrollToElement(elementId);
|
|
@@ -10120,15 +10131,15 @@ var getSerializers = function getSerializers() {
|
|
|
10120
10131
|
}
|
|
10121
10132
|
|
|
10122
10133
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10123
|
-
return href ?
|
|
10134
|
+
return href ? React__default.createElement(
|
|
10124
10135
|
'a',
|
|
10125
|
-
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10136
|
+
_extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10126
10137
|
children
|
|
10127
10138
|
) : children;
|
|
10128
10139
|
},
|
|
10129
10140
|
alignleft: function alignleft(_ref23) {
|
|
10130
10141
|
var children = _ref23.children;
|
|
10131
|
-
return
|
|
10142
|
+
return React__default.createElement(
|
|
10132
10143
|
'div',
|
|
10133
10144
|
{ style: { textAlign: 'left' } },
|
|
10134
10145
|
children
|
|
@@ -10136,7 +10147,7 @@ var getSerializers = function getSerializers() {
|
|
|
10136
10147
|
},
|
|
10137
10148
|
alignright: function alignright(_ref24) {
|
|
10138
10149
|
var children = _ref24.children;
|
|
10139
|
-
return
|
|
10150
|
+
return React__default.createElement(
|
|
10140
10151
|
'div',
|
|
10141
10152
|
{ style: { textAlign: 'right' } },
|
|
10142
10153
|
children
|
|
@@ -10144,7 +10155,7 @@ var getSerializers = function getSerializers() {
|
|
|
10144
10155
|
},
|
|
10145
10156
|
aligncenter: function aligncenter(_ref25) {
|
|
10146
10157
|
var children = _ref25.children;
|
|
10147
|
-
return
|
|
10158
|
+
return React__default.createElement(
|
|
10148
10159
|
'div',
|
|
10149
10160
|
{ style: { textAlign: 'center' } },
|
|
10150
10161
|
children
|
|
@@ -10152,7 +10163,7 @@ var getSerializers = function getSerializers() {
|
|
|
10152
10163
|
},
|
|
10153
10164
|
alignjustify: function alignjustify(_ref26) {
|
|
10154
10165
|
var children = _ref26.children;
|
|
10155
|
-
return
|
|
10166
|
+
return React__default.createElement(
|
|
10156
10167
|
'div',
|
|
10157
10168
|
{ style: { textAlign: 'justify' } },
|
|
10158
10169
|
children
|
|
@@ -10162,7 +10173,7 @@ var getSerializers = function getSerializers() {
|
|
|
10162
10173
|
var children = props.children,
|
|
10163
10174
|
color = props.mark.color;
|
|
10164
10175
|
|
|
10165
|
-
return
|
|
10176
|
+
return React__default.createElement(
|
|
10166
10177
|
'span',
|
|
10167
10178
|
{ style: { color: color ? color.hex : null } },
|
|
10168
10179
|
children
|