@mjhls/mjh-framework 1.0.874-ad-test-v3 → 1.0.874-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +27 -62
- 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-b9e5ff3f.js → ADInfeed-c628363f.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-3cdefebd.js → ADlgInfeed-a827d389.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +33 -34
- 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 +40 -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 +87 -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 +93 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +78 -79
- package/dist/cjs/MediaSeriesLanding.js +1127 -1118
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +145 -150
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/PartnerDetailListing.js +3916 -116
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +40 -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 +308 -308
- 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 +49 -50
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +268 -271
- 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-6a2a3e03.js → index-cdacba23.js} +1063 -1089
- 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 +164 -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 +24 -58
- 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-6c6093ae.js → ADInfeed-8d5edcac.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-5d7386e8.js → ADlgInfeed-996c0199.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +25 -25
- 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 +35 -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 +82 -82
- package/dist/esm/{Dfp-4ca12f2e.js → Dfp-f867d061.js} +20 -20
- package/dist/esm/EventsDeck.js +127 -127
- 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 +90 -90
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +75 -75
- package/dist/esm/MediaSeriesLanding.js +851 -839
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +20 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/PartnerDetailListing.js +3912 -112
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -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 +273 -273
- 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-485f514e.js → SeriesSlider-d555a1d2.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-a5b11613.js → SocialSearchComponent-d240935c.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 +40 -40
- package/dist/esm/VideoSeriesListing.js +72 -72
- package/dist/esm/View.js +250 -249
- 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-7bf8bc4d.js} +30 -30
- 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-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index-5bbd1562.js → index-f51152f7.js} +1021 -1037
- 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 +137 -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-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-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 +111 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/esm/main-b5c5aac1.js +0 -961
- package/dist/esm/stringify-c21932b3.js +0 -15
|
@@ -1,40 +1,40 @@
|
|
|
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 { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
18
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
19
|
+
import Segment from './Segment.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
|
+
import GroupDeck from './GroupDeck.js';
|
|
26
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
+
import { u as util } from './util-7700fc59.js';
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
31
30
|
import Head from 'next/head';
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
31
|
+
import SocialShare from './SocialShare.js';
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
33
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
-
import Popover from 'react-bootstrap/Popover';
|
|
36
|
+
import Tooltip$1 from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover$1 from 'react-bootstrap/Popover';
|
|
38
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -42,7 +42,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
42
42
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var Slideshow
|
|
45
|
+
var Slideshow = function Slideshow(_ref) {
|
|
46
46
|
var slides = _ref.slides,
|
|
47
47
|
client = _ref.client,
|
|
48
48
|
pageview = _ref.pageview;
|
|
@@ -69,27 +69,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React__default.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React__default.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React__default.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React__default.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React__default.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -100,18 +100,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
var isArray = Array.isArray;
|
|
104
|
+
var keyList = Object.keys;
|
|
105
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
106
106
|
|
|
107
107
|
var fastDeepEqual = function equal(a, b) {
|
|
108
108
|
if (a === b) return true;
|
|
109
109
|
|
|
110
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
111
|
+
var arrA = isArray(a)
|
|
112
|
+
, arrB = isArray(b)
|
|
113
|
+
, i
|
|
114
|
+
, length
|
|
115
|
+
, key;
|
|
112
116
|
|
|
113
|
-
|
|
114
|
-
if (Array.isArray(a)) {
|
|
117
|
+
if (arrA && arrB) {
|
|
115
118
|
length = a.length;
|
|
116
119
|
if (length != b.length) return false;
|
|
117
120
|
for (i = length; i-- !== 0;)
|
|
@@ -119,29 +122,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
122
|
return true;
|
|
120
123
|
}
|
|
121
124
|
|
|
125
|
+
if (arrA != arrB) return false;
|
|
122
126
|
|
|
127
|
+
var dateA = a instanceof Date
|
|
128
|
+
, dateB = b instanceof Date;
|
|
129
|
+
if (dateA != dateB) return false;
|
|
130
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (
|
|
132
|
+
var regexpA = a instanceof RegExp
|
|
133
|
+
, regexpB = b instanceof RegExp;
|
|
134
|
+
if (regexpA != regexpB) return false;
|
|
135
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
127
136
|
|
|
128
|
-
keys =
|
|
137
|
+
var keys = keyList(a);
|
|
129
138
|
length = keys.length;
|
|
130
|
-
|
|
139
|
+
|
|
140
|
+
if (length !== keyList(b).length)
|
|
141
|
+
return false;
|
|
131
142
|
|
|
132
143
|
for (i = length; i-- !== 0;)
|
|
133
|
-
if (!
|
|
144
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
134
145
|
|
|
135
146
|
for (i = length; i-- !== 0;) {
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
key = keys[i];
|
|
138
148
|
if (!equal(a[key], b[key])) return false;
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
return true;
|
|
142
152
|
}
|
|
143
153
|
|
|
144
|
-
// true if both NaN, false otherwise
|
|
145
154
|
return a!==a && b!==b;
|
|
146
155
|
};
|
|
147
156
|
|
|
@@ -679,14 +688,14 @@ function coerce(val) {
|
|
|
679
688
|
return val;
|
|
680
689
|
}
|
|
681
690
|
});
|
|
682
|
-
debug.coerce;
|
|
683
|
-
debug.disable;
|
|
684
|
-
debug.enable;
|
|
685
|
-
debug.enabled;
|
|
686
|
-
debug.humanize;
|
|
687
|
-
debug.names;
|
|
688
|
-
debug.skips;
|
|
689
|
-
debug.formatters;
|
|
691
|
+
var debug_1 = debug.coerce;
|
|
692
|
+
var debug_2 = debug.disable;
|
|
693
|
+
var debug_3 = debug.enable;
|
|
694
|
+
var debug_4 = debug.enabled;
|
|
695
|
+
var debug_5 = debug.humanize;
|
|
696
|
+
var debug_6 = debug.names;
|
|
697
|
+
var debug_7 = debug.skips;
|
|
698
|
+
var debug_8 = debug.formatters;
|
|
690
699
|
|
|
691
700
|
var browser = createCommonjsModule(function (module, exports) {
|
|
692
701
|
/**
|
|
@@ -875,13 +884,13 @@ function localstorage() {
|
|
|
875
884
|
} catch (e) {}
|
|
876
885
|
}
|
|
877
886
|
});
|
|
878
|
-
browser.log;
|
|
879
|
-
browser.formatArgs;
|
|
880
|
-
browser.save;
|
|
881
|
-
browser.load;
|
|
882
|
-
browser.useColors;
|
|
883
|
-
browser.storage;
|
|
884
|
-
browser.colors;
|
|
887
|
+
var browser_1 = browser.log;
|
|
888
|
+
var browser_2 = browser.formatArgs;
|
|
889
|
+
var browser_3 = browser.save;
|
|
890
|
+
var browser_4 = browser.load;
|
|
891
|
+
var browser_5 = browser.useColors;
|
|
892
|
+
var browser_6 = browser.storage;
|
|
893
|
+
var browser_7 = browser.colors;
|
|
885
894
|
|
|
886
895
|
// MIT lisence
|
|
887
896
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1156,14 +1165,14 @@ function init (debug) {
|
|
|
1156
1165
|
|
|
1157
1166
|
exports.enable(load());
|
|
1158
1167
|
});
|
|
1159
|
-
node.init;
|
|
1160
|
-
node.log;
|
|
1161
|
-
node.formatArgs;
|
|
1162
|
-
node.save;
|
|
1163
|
-
node.load;
|
|
1164
|
-
node.useColors;
|
|
1165
|
-
node.colors;
|
|
1166
|
-
node.inspectOpts;
|
|
1168
|
+
var node_1 = node.init;
|
|
1169
|
+
var node_2 = node.log;
|
|
1170
|
+
var node_3 = node.formatArgs;
|
|
1171
|
+
var node_4 = node.save;
|
|
1172
|
+
var node_5 = node.load;
|
|
1173
|
+
var node_6 = node.useColors;
|
|
1174
|
+
var node_7 = node.colors;
|
|
1175
|
+
var node_8 = node.inspectOpts;
|
|
1167
1176
|
|
|
1168
1177
|
var src = createCommonjsModule(function (module) {
|
|
1169
1178
|
/**
|
|
@@ -1564,239 +1573,199 @@ module.exports = exports['default'];
|
|
|
1564
1573
|
|
|
1565
1574
|
var youTubePlayer = unwrapExports(dist);
|
|
1566
1575
|
|
|
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; }
|
|
1574
|
-
|
|
1575
|
-
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); }
|
|
1576
|
-
|
|
1577
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
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); }; }
|
|
1576
|
+
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; }; }();
|
|
1580
1577
|
|
|
1581
|
-
function
|
|
1578
|
+
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; };
|
|
1582
1579
|
|
|
1583
|
-
function
|
|
1584
|
-
|
|
1585
|
-
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; } }
|
|
1586
|
-
|
|
1587
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1588
1581
|
|
|
1589
|
-
function
|
|
1582
|
+
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; }
|
|
1590
1583
|
|
|
1591
|
-
function
|
|
1584
|
+
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; }
|
|
1592
1585
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
* @param {Object}
|
|
1598
|
-
* @param {Object} props
|
|
1586
|
+
/**
|
|
1587
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1588
|
+
*
|
|
1589
|
+
* @param {Object} prevProps
|
|
1590
|
+
* @param {Object} props
|
|
1599
1591
|
*/
|
|
1600
|
-
|
|
1601
1592
|
function shouldUpdateVideo(prevProps, props) {
|
|
1602
1593
|
// A changing video should always trigger an update
|
|
1603
1594
|
if (prevProps.videoId !== props.videoId) {
|
|
1604
1595
|
return true;
|
|
1605
|
-
}
|
|
1606
|
-
// update.
|
|
1607
|
-
|
|
1596
|
+
}
|
|
1608
1597
|
|
|
1598
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
|
+
// update.
|
|
1609
1600
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1610
1601
|
var vars = props.opts.playerVars || {};
|
|
1602
|
+
|
|
1611
1603
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1612
1604
|
}
|
|
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
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1608
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
+
* player reset is necessary.
|
|
1610
|
+
*
|
|
1611
|
+
* @param {Object} opts
|
|
1612
|
+
*/
|
|
1622
1613
|
function filterResetOptions(opts) {
|
|
1623
|
-
return
|
|
1624
|
-
playerVars:
|
|
1614
|
+
return _extends({}, opts, {
|
|
1615
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1625
1616
|
autoplay: 0,
|
|
1626
1617
|
start: 0,
|
|
1627
1618
|
end: 0
|
|
1628
|
-
}
|
|
1619
|
+
})
|
|
1629
1620
|
});
|
|
1630
1621
|
}
|
|
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
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1625
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1626
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1627
|
+
* those.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Object} prevProps
|
|
1630
|
+
* @param {Object} props
|
|
1631
|
+
*/
|
|
1642
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1643
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1644
1634
|
}
|
|
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
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Check whether a props change should result in an id or className update.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {Object} prevProps
|
|
1640
|
+
* @param {Object} props
|
|
1641
|
+
*/
|
|
1653
1642
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1654
1643
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1655
1644
|
}
|
|
1656
1645
|
|
|
1657
|
-
var YouTube =
|
|
1646
|
+
var YouTube = function (_React$Component) {
|
|
1658
1647
|
_inherits(YouTube, _React$Component);
|
|
1659
1648
|
|
|
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
1649
|
function YouTube(props) {
|
|
1668
|
-
var _this;
|
|
1669
|
-
|
|
1670
1650
|
_classCallCheck(this, YouTube);
|
|
1671
1651
|
|
|
1672
|
-
_this =
|
|
1652
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1673
1653
|
|
|
1674
|
-
|
|
1654
|
+
_this.onPlayerReady = function (event) {
|
|
1675
1655
|
return _this.props.onReady(event);
|
|
1676
|
-
}
|
|
1656
|
+
};
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerError = function (event) {
|
|
1679
1659
|
return _this.props.onError(event);
|
|
1680
|
-
}
|
|
1660
|
+
};
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerStateChange = function (event) {
|
|
1683
1663
|
_this.props.onStateChange(event);
|
|
1684
|
-
|
|
1685
1664
|
switch (event.data) {
|
|
1665
|
+
|
|
1686
1666
|
case YouTube.PlayerState.ENDED:
|
|
1687
1667
|
_this.props.onEnd(event);
|
|
1688
|
-
|
|
1689
1668
|
break;
|
|
1690
1669
|
|
|
1691
1670
|
case YouTube.PlayerState.PLAYING:
|
|
1692
1671
|
_this.props.onPlay(event);
|
|
1693
|
-
|
|
1694
1672
|
break;
|
|
1695
1673
|
|
|
1696
1674
|
case YouTube.PlayerState.PAUSED:
|
|
1697
1675
|
_this.props.onPause(event);
|
|
1698
|
-
|
|
1699
1676
|
break;
|
|
1700
1677
|
}
|
|
1701
|
-
}
|
|
1678
|
+
};
|
|
1702
1679
|
|
|
1703
|
-
|
|
1680
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1704
1681
|
return _this.props.onPlaybackRateChange(event);
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1708
1685
|
return _this.props.onPlaybackQualityChange(event);
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.createPlayer = function () {
|
|
1712
1689
|
// do not attempt to create a player server-side, it won't work
|
|
1713
|
-
if (typeof document === 'undefined') return;
|
|
1714
|
-
|
|
1715
|
-
var playerOpts =
|
|
1690
|
+
if (typeof document === 'undefined') return;
|
|
1691
|
+
// create player
|
|
1692
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1716
1693
|
// preload the `videoId` video if one is already given
|
|
1717
1694
|
videoId: _this.props.videoId
|
|
1718
1695
|
});
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1696
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1697
|
+
// attach event handlers
|
|
1722
1698
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
-
|
|
1724
1699
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
-
|
|
1726
1700
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
-
|
|
1728
1701
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
-
|
|
1730
1702
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1731
|
-
}
|
|
1703
|
+
};
|
|
1732
1704
|
|
|
1733
|
-
|
|
1705
|
+
_this.resetPlayer = function () {
|
|
1734
1706
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1735
|
-
}
|
|
1707
|
+
};
|
|
1736
1708
|
|
|
1737
|
-
|
|
1709
|
+
_this.updatePlayer = function () {
|
|
1738
1710
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1739
1711
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1740
1712
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1741
1713
|
});
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
-
return _this.internalPlayer;
|
|
1746
|
-
});
|
|
1714
|
+
};
|
|
1747
1715
|
|
|
1748
|
-
|
|
1716
|
+
_this.updateVideo = function () {
|
|
1749
1717
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1750
1718
|
_this.internalPlayer.stopVideo();
|
|
1751
|
-
|
|
1752
1719
|
return;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1720
|
+
}
|
|
1755
1721
|
|
|
1722
|
+
// set queueing options
|
|
1756
1723
|
var autoplay = false;
|
|
1757
1724
|
var opts = {
|
|
1758
1725
|
videoId: _this.props.videoId
|
|
1759
1726
|
};
|
|
1760
|
-
|
|
1761
1727
|
if ('playerVars' in _this.props.opts) {
|
|
1762
1728
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
-
|
|
1764
1729
|
if ('start' in _this.props.opts.playerVars) {
|
|
1765
1730
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1766
1731
|
}
|
|
1767
|
-
|
|
1768
1732
|
if ('end' in _this.props.opts.playerVars) {
|
|
1769
1733
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1770
1734
|
}
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1735
|
+
}
|
|
1773
1736
|
|
|
1737
|
+
// if autoplay is enabled loadVideoById
|
|
1774
1738
|
if (autoplay) {
|
|
1775
1739
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
-
|
|
1777
1740
|
return;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1741
|
+
}
|
|
1742
|
+
// default behaviour just cues the video
|
|
1781
1743
|
_this.internalPlayer.cueVideoById(opts);
|
|
1782
|
-
}
|
|
1744
|
+
};
|
|
1783
1745
|
|
|
1784
|
-
|
|
1746
|
+
_this.refContainer = function (container) {
|
|
1785
1747
|
_this.container = container;
|
|
1786
|
-
}
|
|
1748
|
+
};
|
|
1787
1749
|
|
|
1788
1750
|
_this.container = null;
|
|
1789
1751
|
_this.internalPlayer = null;
|
|
1790
1752
|
return _this;
|
|
1791
1753
|
}
|
|
1792
1754
|
|
|
1755
|
+
/**
|
|
1756
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
+
*/
|
|
1760
|
+
|
|
1761
|
+
|
|
1793
1762
|
_createClass(YouTube, [{
|
|
1794
|
-
key:
|
|
1763
|
+
key: 'componentDidMount',
|
|
1795
1764
|
value: function componentDidMount() {
|
|
1796
1765
|
this.createPlayer();
|
|
1797
1766
|
}
|
|
1798
1767
|
}, {
|
|
1799
|
-
key:
|
|
1768
|
+
key: 'componentDidUpdate',
|
|
1800
1769
|
value: function componentDidUpdate(prevProps) {
|
|
1801
1770
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1802
1771
|
this.updatePlayer();
|
|
@@ -1811,58 +1780,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1811
1780
|
}
|
|
1812
1781
|
}
|
|
1813
1782
|
}, {
|
|
1814
|
-
key:
|
|
1783
|
+
key: 'componentWillUnmount',
|
|
1815
1784
|
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.
|
|
1785
|
+
/**
|
|
1786
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1787
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
+
* this method isn't quick enough to reset the container element.
|
|
1821
1790
|
*/
|
|
1822
1791
|
this.internalPlayer.destroy();
|
|
1823
1792
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1796
|
+
*
|
|
1797
|
+
* @param {Object} event
|
|
1798
|
+
* @param {Object} target - player object
|
|
1799
|
+
*/
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Integer} data - error type
|
|
1807
|
+
* @param {Object} target - player object
|
|
1808
|
+
*/
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
+
*
|
|
1814
|
+
* @param {Object} event
|
|
1815
|
+
* @param {Integer} data - status change type
|
|
1816
|
+
* @param {Object} target - actual YT player
|
|
1817
|
+
*/
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
+
*
|
|
1823
|
+
* @param {Object} event
|
|
1824
|
+
* @param {Float} data - playback rate
|
|
1825
|
+
* @param {Object} target - actual YT player
|
|
1826
|
+
*/
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
+
*
|
|
1832
|
+
* @param {Object} event
|
|
1833
|
+
* @param {String} data - playback quality
|
|
1834
|
+
* @param {Object} target - actual YT player
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
+
* React should update this automatically but since the Youtube Player API
|
|
1851
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
+
*/
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
+
* Youtube Player API methods to update the video.
|
|
1829
1859
|
*/
|
|
1830
1860
|
|
|
1831
1861
|
}, {
|
|
1832
|
-
key:
|
|
1862
|
+
key: 'render',
|
|
1833
1863
|
value: function render() {
|
|
1834
|
-
return
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
id: this.props.id,
|
|
1838
|
-
|
|
1839
|
-
ref: this.refContainer
|
|
1840
|
-
}));
|
|
1864
|
+
return React__default.createElement(
|
|
1865
|
+
'div',
|
|
1866
|
+
{ className: this.props.containerClassName },
|
|
1867
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1868
|
+
);
|
|
1841
1869
|
}
|
|
1842
1870
|
}]);
|
|
1843
1871
|
|
|
1844
1872
|
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
|
-
});
|
|
1873
|
+
}(React__default.Component);
|
|
1855
1874
|
|
|
1856
1875
|
YouTube.propTypes = {
|
|
1857
1876
|
videoId: PropTypes.string,
|
|
1877
|
+
|
|
1858
1878
|
// custom ID for player element
|
|
1859
1879
|
id: PropTypes.string,
|
|
1880
|
+
|
|
1860
1881
|
// custom class name for player element
|
|
1861
1882
|
className: PropTypes.string,
|
|
1862
1883
|
// custom class name for player container element
|
|
1863
1884
|
containerClassName: PropTypes.string,
|
|
1885
|
+
|
|
1864
1886
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1865
1887
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
+
|
|
1866
1889
|
// event subscriptions
|
|
1867
1890
|
onReady: PropTypes.func,
|
|
1868
1891
|
onError: PropTypes.func,
|
|
@@ -1874,7 +1897,6 @@ YouTube.propTypes = {
|
|
|
1874
1897
|
onPlaybackQualityChange: PropTypes.func
|
|
1875
1898
|
};
|
|
1876
1899
|
YouTube.defaultProps = {
|
|
1877
|
-
videoId: null,
|
|
1878
1900
|
id: null,
|
|
1879
1901
|
className: null,
|
|
1880
1902
|
opts: {},
|
|
@@ -1888,6 +1910,14 @@ YouTube.defaultProps = {
|
|
|
1888
1910
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1889
1911
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1890
1912
|
};
|
|
1913
|
+
YouTube.PlayerState = {
|
|
1914
|
+
UNSTARTED: -1,
|
|
1915
|
+
ENDED: 0,
|
|
1916
|
+
PLAYING: 1,
|
|
1917
|
+
PAUSED: 2,
|
|
1918
|
+
BUFFERING: 3,
|
|
1919
|
+
CUED: 5
|
|
1920
|
+
};
|
|
1891
1921
|
|
|
1892
1922
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1893
1923
|
var url = _ref.url,
|
|
@@ -1926,8 +1956,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1926
1956
|
var duration = player.getDuration();
|
|
1927
1957
|
var queue = Math.floor(duration / 10);
|
|
1928
1958
|
var segment = Math.floor(current / queue);
|
|
1929
|
-
Beam.report_beam_video('Ready',
|
|
1930
|
-
Segment.report_video_event('Video Ready',
|
|
1959
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1960
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1931
1961
|
};
|
|
1932
1962
|
|
|
1933
1963
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1937,8 +1967,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1967
|
var segment = Math.floor(current / queue);
|
|
1938
1968
|
|
|
1939
1969
|
if (!queueProgress.includes(segment)) {
|
|
1940
|
-
Beam.report_beam_video('Segment',
|
|
1941
|
-
Segment.report_video_event('Video Segment',
|
|
1970
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1971
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1942
1972
|
queueProgress.push(segment);
|
|
1943
1973
|
}
|
|
1944
1974
|
};
|
|
@@ -1951,8 +1981,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1951
1981
|
var queue = Math.floor(duration / 10);
|
|
1952
1982
|
var segment = Math.floor(current / queue);
|
|
1953
1983
|
|
|
1954
|
-
Beam.report_beam_video('Play',
|
|
1955
|
-
Segment.report_video_event('Video Play',
|
|
1984
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1985
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1956
1986
|
|
|
1957
1987
|
if (!playReported) {
|
|
1958
1988
|
setPlayReported(true);
|
|
@@ -1971,8 +2001,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
2001
|
var queue = Math.floor(duration / 10);
|
|
1972
2002
|
var segment = Math.floor(current / queue);
|
|
1973
2003
|
|
|
1974
|
-
Beam.report_beam_video('End',
|
|
1975
|
-
Segment.report_video_event('Video End',
|
|
2004
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
2005
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1976
2006
|
setEndReported(true);
|
|
1977
2007
|
clearInterval(intervalID);
|
|
1978
2008
|
}
|
|
@@ -1985,15 +2015,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
2015
|
var queue = Math.floor(duration / 10);
|
|
1986
2016
|
var segment = Math.floor(current / queue);
|
|
1987
2017
|
|
|
1988
|
-
Beam.report_beam_video('Pause',
|
|
1989
|
-
Segment.report_video_event('Video Pause',
|
|
2018
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
2019
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
2020
|
};
|
|
1991
2021
|
|
|
1992
|
-
return
|
|
2022
|
+
return React__default.createElement(
|
|
1993
2023
|
'div',
|
|
1994
2024
|
{ id: 'fluid-video-container' },
|
|
1995
|
-
|
|
1996
|
-
|
|
2025
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2026
|
+
React__default.createElement(
|
|
1997
2027
|
'style',
|
|
1998
2028
|
{ jsx: 'true' },
|
|
1999
2029
|
'\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 +2036,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2006
2036
|
content = _ref.content,
|
|
2007
2037
|
getSerializers = _ref.getSerializers;
|
|
2008
2038
|
|
|
2009
|
-
return
|
|
2039
|
+
return React__default.createElement(
|
|
2010
2040
|
'article',
|
|
2011
2041
|
{ className: 'sidebar' },
|
|
2012
|
-
|
|
2042
|
+
React__default.createElement(
|
|
2013
2043
|
'div',
|
|
2014
2044
|
null,
|
|
2015
|
-
|
|
2045
|
+
React__default.createElement(
|
|
2016
2046
|
'h3',
|
|
2017
2047
|
null,
|
|
2018
2048
|
caption
|
|
2019
2049
|
),
|
|
2020
|
-
|
|
2050
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2021
2051
|
),
|
|
2022
|
-
|
|
2052
|
+
React__default.createElement(
|
|
2023
2053
|
'style',
|
|
2024
2054
|
{ jsx: 'true' },
|
|
2025
2055
|
'\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 +2060,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2030
2060
|
var TableShow = function TableShow(_ref) {
|
|
2031
2061
|
var rows = _ref.rows;
|
|
2032
2062
|
|
|
2033
|
-
return
|
|
2063
|
+
return React__default.createElement(
|
|
2034
2064
|
Table,
|
|
2035
2065
|
{ bordered: true, hover: true, responsive: true },
|
|
2036
|
-
|
|
2066
|
+
React__default.createElement(
|
|
2037
2067
|
'tbody',
|
|
2038
2068
|
null,
|
|
2039
2069
|
rows && rows.map(function (row) {
|
|
2040
|
-
return
|
|
2070
|
+
return React__default.createElement(
|
|
2041
2071
|
'tr',
|
|
2042
2072
|
{ key: row._key },
|
|
2043
2073
|
row.cells && row.cells.map(function (cell, index) {
|
|
2044
|
-
return cell &&
|
|
2074
|
+
return cell && React__default.createElement(
|
|
2045
2075
|
'td',
|
|
2046
2076
|
{ key: index },
|
|
2047
2077
|
cell
|
|
@@ -2160,25 +2190,25 @@ var Media = function Media(_ref) {
|
|
|
2160
2190
|
margin: imageMargin
|
|
2161
2191
|
};
|
|
2162
2192
|
|
|
2163
|
-
return
|
|
2193
|
+
return React__default.createElement(
|
|
2164
2194
|
Figure$1,
|
|
2165
2195
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2166
|
-
|
|
2196
|
+
React__default.createElement(
|
|
2167
2197
|
'a',
|
|
2168
2198
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2169
|
-
|
|
2199
|
+
React__default.createElement(
|
|
2170
2200
|
LazyLoad,
|
|
2171
2201
|
{ once: true },
|
|
2172
|
-
|
|
2202
|
+
React__default.createElement(
|
|
2173
2203
|
'picture',
|
|
2174
2204
|
null,
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2205
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2206
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2207
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2208
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2179
2209
|
)
|
|
2180
2210
|
),
|
|
2181
|
-
caption &&
|
|
2211
|
+
caption && React__default.createElement(
|
|
2182
2212
|
Figure$1.Caption,
|
|
2183
2213
|
{ className: 'media-caption' },
|
|
2184
2214
|
caption
|
|
@@ -2186,9 +2216,9 @@ var Media = function Media(_ref) {
|
|
|
2186
2216
|
)
|
|
2187
2217
|
);
|
|
2188
2218
|
} else if (caption && caption !== '') {
|
|
2189
|
-
return
|
|
2219
|
+
return React__default.createElement(
|
|
2190
2220
|
'a',
|
|
2191
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2221
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2192
2222
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2193
2223
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2194
2224
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2206,10 +2236,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2206
2236
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2207
2237
|
|
|
2208
2238
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2209
|
-
return
|
|
2239
|
+
return React__default.createElement(
|
|
2210
2240
|
'div',
|
|
2211
2241
|
{ className: 'd-block text-center mb-3' },
|
|
2212
|
-
|
|
2242
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2213
2243
|
);
|
|
2214
2244
|
};
|
|
2215
2245
|
|
|
@@ -2243,8 +2273,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2243
2273
|
var duration = player.duration;
|
|
2244
2274
|
var queue = Math.floor(duration / 10);
|
|
2245
2275
|
var segment = Math.floor(current / queue);
|
|
2246
|
-
Beam.report_beam_video('Ready',
|
|
2247
|
-
Segment.report_video_event('Video Ready',
|
|
2276
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2277
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2248
2278
|
};
|
|
2249
2279
|
|
|
2250
2280
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2253,8 +2283,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2253
2283
|
var queue = Math.floor(duration / 10);
|
|
2254
2284
|
var segment = Math.floor(current / queue);
|
|
2255
2285
|
if (!queueProgress.includes(segment)) {
|
|
2256
|
-
Beam.report_beam_video('Segment',
|
|
2257
|
-
Segment.report_video_event('Video Segment',
|
|
2286
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2287
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2258
2288
|
queueProgress.push(segment);
|
|
2259
2289
|
}
|
|
2260
2290
|
};
|
|
@@ -2266,8 +2296,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2266
2296
|
var duration = player.duration;
|
|
2267
2297
|
var queue = Math.floor(duration / 10);
|
|
2268
2298
|
var segment = Math.floor(current / queue);
|
|
2269
|
-
Beam.report_beam_video('Play',
|
|
2270
|
-
Segment.report_video_event('Video Play',
|
|
2299
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2300
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2271
2301
|
|
|
2272
2302
|
if (!playReported) {
|
|
2273
2303
|
event.persist();
|
|
@@ -2287,8 +2317,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2287
2317
|
var queue = Math.floor(duration / 10);
|
|
2288
2318
|
var segment = Math.floor(current / queue);
|
|
2289
2319
|
|
|
2290
|
-
Beam.report_beam_video('End',
|
|
2291
|
-
Segment.report_video_event('Video End',
|
|
2320
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2321
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2292
2322
|
setEndReported(true);
|
|
2293
2323
|
clearInterval(intervalID);
|
|
2294
2324
|
}
|
|
@@ -2300,14 +2330,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2300
2330
|
var duration = player.duration - current;
|
|
2301
2331
|
var queue = Math.floor(duration / 10);
|
|
2302
2332
|
var segment = Math.floor(current / queue);
|
|
2303
|
-
Beam.report_beam_video('Pause',
|
|
2304
|
-
Segment.report_video_event('Video Pause',
|
|
2333
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2334
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2305
2335
|
};
|
|
2306
2336
|
|
|
2307
|
-
return
|
|
2337
|
+
return React__default.createElement(
|
|
2308
2338
|
'div',
|
|
2309
2339
|
null,
|
|
2310
|
-
vidLoaded &&
|
|
2340
|
+
vidLoaded && React__default.createElement(
|
|
2311
2341
|
'video',
|
|
2312
2342
|
{
|
|
2313
2343
|
poster: thumbnail || '',
|
|
@@ -2325,7 +2355,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2325
2355
|
onPlay: function onPlay(e) {
|
|
2326
2356
|
return handleOnPlay(e);
|
|
2327
2357
|
} },
|
|
2328
|
-
|
|
2358
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2329
2359
|
'Your browser does not support the video tag.'
|
|
2330
2360
|
)
|
|
2331
2361
|
);
|
|
@@ -2362,7 +2392,7 @@ var Video = function Video(_ref) {
|
|
|
2362
2392
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2363
2393
|
//console.log('success:', success.ref)
|
|
2364
2394
|
var player = success.ref;
|
|
2365
|
-
if (_typeof
|
|
2395
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2366
2396
|
player.ima3.settings.debug = true;
|
|
2367
2397
|
if (targeting.content_placement && targeting.document_url) {
|
|
2368
2398
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2390,8 +2420,8 @@ var Video = function Video(_ref) {
|
|
|
2390
2420
|
player.pause();
|
|
2391
2421
|
}
|
|
2392
2422
|
|
|
2393
|
-
Beam.report_beam_video('Ready',
|
|
2394
|
-
Segment.report_video_event('Video Ready',
|
|
2423
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2424
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2395
2425
|
});
|
|
2396
2426
|
|
|
2397
2427
|
// play
|
|
@@ -2400,8 +2430,8 @@ var Video = function Video(_ref) {
|
|
|
2400
2430
|
var current = player.currentTime();
|
|
2401
2431
|
var queue = Math.floor(duration / 10);
|
|
2402
2432
|
var segment = Math.floor(current / queue);
|
|
2403
|
-
Beam.report_beam_video('Play',
|
|
2404
|
-
Segment.report_video_event('Video Play',
|
|
2433
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2434
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2405
2435
|
});
|
|
2406
2436
|
|
|
2407
2437
|
// pause
|
|
@@ -2410,8 +2440,8 @@ var Video = function Video(_ref) {
|
|
|
2410
2440
|
var current = player.currentTime();
|
|
2411
2441
|
var queue = Math.floor(duration / 10);
|
|
2412
2442
|
var segment = Math.floor(current / queue);
|
|
2413
|
-
Beam.report_beam_video('Pause',
|
|
2414
|
-
Segment.report_video_event('Video Pause',
|
|
2443
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2444
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
2445
|
});
|
|
2416
2446
|
|
|
2417
2447
|
// end
|
|
@@ -2420,8 +2450,8 @@ var Video = function Video(_ref) {
|
|
|
2420
2450
|
var current = player.currentTime();
|
|
2421
2451
|
var queue = Math.floor(duration / 10);
|
|
2422
2452
|
var segment = Math.floor(current / queue);
|
|
2423
|
-
Beam.report_beam_video('End',
|
|
2424
|
-
Segment.report_video_event('Video End',
|
|
2453
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2454
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2425
2455
|
autoplayNextVideo(evt);
|
|
2426
2456
|
});
|
|
2427
2457
|
|
|
@@ -2432,8 +2462,8 @@ var Video = function Video(_ref) {
|
|
|
2432
2462
|
var queue = Math.floor(duration / 10);
|
|
2433
2463
|
var segment = Math.floor(current / queue);
|
|
2434
2464
|
if (!queueProgress.includes(segment)) {
|
|
2435
|
-
Beam.report_beam_video('Segment',
|
|
2436
|
-
Segment.report_video_event('Video Segment',
|
|
2465
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2466
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2437
2467
|
queueProgress.push(segment);
|
|
2438
2468
|
}
|
|
2439
2469
|
});
|
|
@@ -2444,8 +2474,8 @@ var Video = function Video(_ref) {
|
|
|
2444
2474
|
var id = player.ads.ad.id;
|
|
2445
2475
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2446
2476
|
|
|
2447
|
-
Beam.report_beam_ad('AD Started',
|
|
2448
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2477
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2478
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2449
2479
|
});
|
|
2450
2480
|
|
|
2451
2481
|
// ad ended
|
|
@@ -2453,60 +2483,60 @@ var Video = function Video(_ref) {
|
|
|
2453
2483
|
var duration = player.ads.ad.duration;
|
|
2454
2484
|
var id = player.ads.ad.id;
|
|
2455
2485
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2456
|
-
Beam.report_beam_ad('AD Ended',
|
|
2457
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2486
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2487
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2458
2488
|
});
|
|
2459
2489
|
};
|
|
2460
2490
|
|
|
2461
2491
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2462
2492
|
if (videoID) {
|
|
2463
|
-
return
|
|
2493
|
+
return React__default.createElement(
|
|
2464
2494
|
'div',
|
|
2465
2495
|
null,
|
|
2466
|
-
|
|
2496
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2467
2497
|
onSuccess: onVideoSuccess,
|
|
2468
2498
|
accountId: accountIDs.brightcove.accountId,
|
|
2469
2499
|
videoId: videoID,
|
|
2470
2500
|
playerId: accountIDs.brightcove.playerId,
|
|
2471
2501
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2472
2502
|
}),
|
|
2473
|
-
|
|
2503
|
+
React__default.createElement(
|
|
2474
2504
|
'style',
|
|
2475
2505
|
{ jsx: 'true' },
|
|
2476
2506
|
'\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
2507
|
)
|
|
2478
2508
|
);
|
|
2479
2509
|
} else if (playlistID) {
|
|
2480
|
-
return
|
|
2510
|
+
return React__default.createElement(
|
|
2481
2511
|
'div',
|
|
2482
2512
|
null,
|
|
2483
|
-
|
|
2513
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2484
2514
|
accountId: accountIDs.brightcove.accountId,
|
|
2485
2515
|
playlistId: playlistID,
|
|
2486
2516
|
playerId: accountIDs.brightcove.playerId,
|
|
2487
2517
|
onSuccess: onVideoSuccess,
|
|
2488
2518
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2489
2519
|
}),
|
|
2490
|
-
|
|
2520
|
+
React__default.createElement(
|
|
2491
2521
|
'style',
|
|
2492
2522
|
{ jsx: 'true' },
|
|
2493
2523
|
'\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
2524
|
)
|
|
2495
2525
|
);
|
|
2496
2526
|
} else if (experienceID) {
|
|
2497
|
-
return
|
|
2527
|
+
return React__default.createElement(
|
|
2498
2528
|
'div',
|
|
2499
2529
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2500
|
-
videoLoaded &&
|
|
2530
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2501
2531
|
);
|
|
2502
2532
|
}
|
|
2503
2533
|
return null;
|
|
2504
2534
|
}
|
|
2505
2535
|
if (source === 'mp4') {
|
|
2506
|
-
return
|
|
2536
|
+
return React__default.createElement(
|
|
2507
2537
|
'div',
|
|
2508
2538
|
null,
|
|
2509
|
-
|
|
2539
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2510
2540
|
);
|
|
2511
2541
|
}
|
|
2512
2542
|
|
|
@@ -2717,9 +2747,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2717
2747
|
});
|
|
2718
2748
|
|
|
2719
2749
|
unwrapExports(props);
|
|
2720
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2721
|
-
props.defaultProps;
|
|
2722
|
-
props.propTypes;
|
|
2750
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2751
|
+
var props_2 = props.defaultProps;
|
|
2752
|
+
var props_3 = props.propTypes;
|
|
2723
2753
|
|
|
2724
2754
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2725
2755
|
return isNonNullObject(value)
|
|
@@ -2884,17 +2914,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2884
2914
|
|
|
2885
2915
|
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
2916
|
|
|
2887
|
-
function
|
|
2888
|
-
|
|
2889
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2890
|
-
|
|
2891
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2892
|
-
|
|
2893
|
-
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); }
|
|
2917
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2894
2918
|
|
|
2895
|
-
function
|
|
2919
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2896
2920
|
|
|
2897
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
2921
|
+
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
2922
|
|
|
2899
2923
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2924
|
|
|
@@ -3024,12 +3048,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
3048
|
|
|
3025
3049
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
3050
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3051
|
+
var _iteratorNormalCompletion = true;
|
|
3052
|
+
var _didIteratorError = false;
|
|
3053
|
+
var _iteratorError = undefined;
|
|
3030
3054
|
|
|
3031
3055
|
try {
|
|
3032
|
-
for (_iterator.
|
|
3056
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3033
3057
|
var p = _step.value;
|
|
3034
3058
|
|
|
3035
3059
|
if (props$1[p]) {
|
|
@@ -3044,9 +3068,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3068
|
}
|
|
3045
3069
|
}
|
|
3046
3070
|
} catch (err) {
|
|
3047
|
-
|
|
3071
|
+
_didIteratorError = true;
|
|
3072
|
+
_iteratorError = err;
|
|
3048
3073
|
} finally {
|
|
3049
|
-
|
|
3074
|
+
try {
|
|
3075
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3076
|
+
_iterator["return"]();
|
|
3077
|
+
}
|
|
3078
|
+
} finally {
|
|
3079
|
+
if (_didIteratorError) {
|
|
3080
|
+
throw _iteratorError;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3050
3083
|
}
|
|
3051
3084
|
|
|
3052
3085
|
return config;
|
|
@@ -3111,7 +3144,7 @@ function isEqual(a, b) {
|
|
|
3111
3144
|
return true;
|
|
3112
3145
|
}
|
|
3113
3146
|
|
|
3114
|
-
if ((0,
|
|
3147
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3115
3148
|
return true;
|
|
3116
3149
|
}
|
|
3117
3150
|
|
|
@@ -3154,17 +3187,17 @@ function isMediaStream(url) {
|
|
|
3154
3187
|
});
|
|
3155
3188
|
|
|
3156
3189
|
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;
|
|
3190
|
+
var utils_1 = utils.parseStartTime;
|
|
3191
|
+
var utils_2 = utils.parseEndTime;
|
|
3192
|
+
var utils_3 = utils.randomString;
|
|
3193
|
+
var utils_4 = utils.queryString;
|
|
3194
|
+
var utils_5 = utils.getSDK;
|
|
3195
|
+
var utils_6 = utils.getConfig;
|
|
3196
|
+
var utils_7 = utils.omit;
|
|
3197
|
+
var utils_8 = utils.callPlayer;
|
|
3198
|
+
var utils_9 = utils.isObject;
|
|
3199
|
+
var utils_10 = utils.isEqual;
|
|
3200
|
+
var utils_11 = utils.isMediaStream;
|
|
3168
3201
|
|
|
3169
3202
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3170
3203
|
|
|
@@ -3173,7 +3206,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3173
3206
|
});
|
|
3174
3207
|
exports["default"] = void 0;
|
|
3175
3208
|
|
|
3176
|
-
var _react = _interopRequireWildcard(
|
|
3209
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3177
3210
|
|
|
3178
3211
|
|
|
3179
3212
|
|
|
@@ -3193,16 +3226,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3193
3226
|
|
|
3194
3227
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3195
3228
|
|
|
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
3229
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3199
3230
|
|
|
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
3231
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3205
3232
|
|
|
3233
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3234
|
+
|
|
3206
3235
|
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
3236
|
|
|
3208
3237
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3211,12 +3240,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3211
3240
|
|
|
3212
3241
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3213
3242
|
|
|
3214
|
-
var Player =
|
|
3243
|
+
var Player =
|
|
3244
|
+
/*#__PURE__*/
|
|
3245
|
+
function (_Component) {
|
|
3215
3246
|
_inherits(Player, _Component);
|
|
3216
3247
|
|
|
3217
|
-
var _super = _createSuper(Player);
|
|
3218
|
-
|
|
3219
3248
|
function Player() {
|
|
3249
|
+
var _getPrototypeOf2;
|
|
3250
|
+
|
|
3220
3251
|
var _this;
|
|
3221
3252
|
|
|
3222
3253
|
_classCallCheck(this, Player);
|
|
@@ -3225,7 +3256,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3225
3256
|
_args[_key] = arguments[_key];
|
|
3226
3257
|
}
|
|
3227
3258
|
|
|
3228
|
-
_this =
|
|
3259
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3229
3260
|
|
|
3230
3261
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3231
3262
|
|
|
@@ -3550,7 +3581,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3550
3581
|
return null;
|
|
3551
3582
|
}
|
|
3552
3583
|
|
|
3553
|
-
return
|
|
3584
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3554
3585
|
ref: this.ref,
|
|
3555
3586
|
onReady: this.handleReady,
|
|
3556
3587
|
onPlay: this.handlePlay,
|
|
@@ -3583,7 +3614,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3583
3614
|
});
|
|
3584
3615
|
exports["default"] = createSinglePlayer;
|
|
3585
3616
|
|
|
3586
|
-
var _react = _interopRequireWildcard(
|
|
3617
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3587
3618
|
|
|
3588
3619
|
|
|
3589
3620
|
|
|
@@ -3611,16 +3642,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3611
3642
|
|
|
3612
3643
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3613
3644
|
|
|
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
3645
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3617
3646
|
|
|
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
3647
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3623
3648
|
|
|
3649
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3650
|
+
|
|
3624
3651
|
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
3652
|
|
|
3626
3653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3632,12 +3659,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3632
3659
|
function createSinglePlayer(activePlayer) {
|
|
3633
3660
|
var _class, _temp;
|
|
3634
3661
|
|
|
3635
|
-
return _temp = _class =
|
|
3662
|
+
return _temp = _class =
|
|
3663
|
+
/*#__PURE__*/
|
|
3664
|
+
function (_Component) {
|
|
3636
3665
|
_inherits(SinglePlayer, _Component);
|
|
3637
3666
|
|
|
3638
|
-
var _super = _createSuper(SinglePlayer);
|
|
3639
|
-
|
|
3640
3667
|
function SinglePlayer() {
|
|
3668
|
+
var _getPrototypeOf2;
|
|
3669
|
+
|
|
3641
3670
|
var _this;
|
|
3642
3671
|
|
|
3643
3672
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3646,7 +3675,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3646
3675
|
args[_key] = arguments[_key];
|
|
3647
3676
|
}
|
|
3648
3677
|
|
|
3649
|
-
_this =
|
|
3678
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3650
3679
|
|
|
3651
3680
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3652
3681
|
|
|
@@ -3714,12 +3743,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3714
3743
|
height = _this$props.height,
|
|
3715
3744
|
Wrapper = _this$props.wrapper;
|
|
3716
3745
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3717
|
-
return
|
|
3746
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3718
3747
|
style: _objectSpread({}, style, {
|
|
3719
3748
|
width: width,
|
|
3720
3749
|
height: height
|
|
3721
3750
|
})
|
|
3722
|
-
}, otherProps),
|
|
3751
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3723
3752
|
ref: this.ref,
|
|
3724
3753
|
activePlayer: activePlayer,
|
|
3725
3754
|
config: this.config
|
|
@@ -3741,7 +3770,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3741
3770
|
});
|
|
3742
3771
|
exports["default"] = exports.YouTube = void 0;
|
|
3743
3772
|
|
|
3744
|
-
var _react = _interopRequireWildcard(
|
|
3773
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3745
3774
|
|
|
3746
3775
|
|
|
3747
3776
|
|
|
@@ -3765,31 +3794,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3765
3794
|
|
|
3766
3795
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3767
3796
|
|
|
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
3797
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3771
3798
|
|
|
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
3799
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3777
3800
|
|
|
3801
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3802
|
+
|
|
3778
3803
|
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
3804
|
|
|
3780
3805
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3781
3806
|
|
|
3782
3807
|
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
3808
|
|
|
3784
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3809
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3785
3810
|
|
|
3786
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3811
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3787
3812
|
|
|
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; }
|
|
3813
|
+
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
3814
|
|
|
3794
3815
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3795
3816
|
|
|
@@ -3814,12 +3835,14 @@ function parsePlaylist(url) {
|
|
|
3814
3835
|
return {};
|
|
3815
3836
|
}
|
|
3816
3837
|
|
|
3817
|
-
var YouTube =
|
|
3838
|
+
var YouTube =
|
|
3839
|
+
/*#__PURE__*/
|
|
3840
|
+
function (_Component) {
|
|
3818
3841
|
_inherits(YouTube, _Component);
|
|
3819
3842
|
|
|
3820
|
-
var _super = _createSuper(YouTube);
|
|
3821
|
-
|
|
3822
3843
|
function YouTube() {
|
|
3844
|
+
var _getPrototypeOf2;
|
|
3845
|
+
|
|
3823
3846
|
var _this;
|
|
3824
3847
|
|
|
3825
3848
|
_classCallCheck(this, YouTube);
|
|
@@ -3828,7 +3851,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3828
3851
|
args[_key] = arguments[_key];
|
|
3829
3852
|
}
|
|
3830
3853
|
|
|
3831
|
-
_this =
|
|
3854
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3832
3855
|
|
|
3833
3856
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3834
3857
|
|
|
@@ -4016,9 +4039,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4016
4039
|
height: '100%',
|
|
4017
4040
|
display: display
|
|
4018
4041
|
};
|
|
4019
|
-
return
|
|
4042
|
+
return _react["default"].createElement("div", {
|
|
4020
4043
|
style: style
|
|
4021
|
-
},
|
|
4044
|
+
}, _react["default"].createElement("div", {
|
|
4022
4045
|
ref: this.ref
|
|
4023
4046
|
}));
|
|
4024
4047
|
}
|
|
@@ -4041,7 +4064,7 @@ exports["default"] = _default;
|
|
|
4041
4064
|
});
|
|
4042
4065
|
|
|
4043
4066
|
unwrapExports(YouTube_1);
|
|
4044
|
-
YouTube_1.YouTube;
|
|
4067
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4045
4068
|
|
|
4046
4069
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4047
4070
|
|
|
@@ -4050,7 +4073,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4050
4073
|
});
|
|
4051
4074
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4052
4075
|
|
|
4053
|
-
var _react = _interopRequireWildcard(
|
|
4076
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4054
4077
|
|
|
4055
4078
|
|
|
4056
4079
|
|
|
@@ -4074,16 +4097,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4074
4097
|
|
|
4075
4098
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4076
4099
|
|
|
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
4100
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4080
4101
|
|
|
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
4102
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4086
4103
|
|
|
4104
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4105
|
+
|
|
4087
4106
|
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
4107
|
|
|
4089
4108
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4092,14 +4111,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4092
4111
|
|
|
4093
4112
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4094
4113
|
var SDK_GLOBAL = 'SC';
|
|
4095
|
-
var MATCH_URL = /(
|
|
4114
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4096
4115
|
|
|
4097
|
-
var SoundCloud =
|
|
4116
|
+
var SoundCloud =
|
|
4117
|
+
/*#__PURE__*/
|
|
4118
|
+
function (_Component) {
|
|
4098
4119
|
_inherits(SoundCloud, _Component);
|
|
4099
4120
|
|
|
4100
|
-
var _super = _createSuper(SoundCloud);
|
|
4101
|
-
|
|
4102
4121
|
function SoundCloud() {
|
|
4122
|
+
var _getPrototypeOf2;
|
|
4123
|
+
|
|
4103
4124
|
var _this;
|
|
4104
4125
|
|
|
4105
4126
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4108,7 +4129,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4108
4129
|
args[_key] = arguments[_key];
|
|
4109
4130
|
}
|
|
4110
4131
|
|
|
4111
|
-
_this =
|
|
4132
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4112
4133
|
|
|
4113
4134
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4114
4135
|
|
|
@@ -4229,7 +4250,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4229
4250
|
height: '100%',
|
|
4230
4251
|
display: display
|
|
4231
4252
|
};
|
|
4232
|
-
return
|
|
4253
|
+
return _react["default"].createElement("iframe", {
|
|
4233
4254
|
ref: this.ref,
|
|
4234
4255
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4235
4256
|
style: style,
|
|
@@ -4258,7 +4279,7 @@ exports["default"] = _default;
|
|
|
4258
4279
|
});
|
|
4259
4280
|
|
|
4260
4281
|
unwrapExports(SoundCloud_1);
|
|
4261
|
-
SoundCloud_1.SoundCloud;
|
|
4282
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4262
4283
|
|
|
4263
4284
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4264
4285
|
|
|
@@ -4267,7 +4288,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4267
4288
|
});
|
|
4268
4289
|
exports["default"] = exports.Vimeo = void 0;
|
|
4269
4290
|
|
|
4270
|
-
var _react = _interopRequireWildcard(
|
|
4291
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4271
4292
|
|
|
4272
4293
|
|
|
4273
4294
|
|
|
@@ -4291,16 +4312,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4291
4312
|
|
|
4292
4313
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4293
4314
|
|
|
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
4315
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4297
4316
|
|
|
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
4317
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4303
4318
|
|
|
4319
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4320
|
+
|
|
4304
4321
|
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
4322
|
|
|
4306
4323
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4312,12 +4329,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4312
4329
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4313
4330
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4314
4331
|
|
|
4315
|
-
var Vimeo =
|
|
4332
|
+
var Vimeo =
|
|
4333
|
+
/*#__PURE__*/
|
|
4334
|
+
function (_Component) {
|
|
4316
4335
|
_inherits(Vimeo, _Component);
|
|
4317
4336
|
|
|
4318
|
-
var _super = _createSuper(Vimeo);
|
|
4319
|
-
|
|
4320
4337
|
function Vimeo() {
|
|
4338
|
+
var _getPrototypeOf2;
|
|
4339
|
+
|
|
4321
4340
|
var _this;
|
|
4322
4341
|
|
|
4323
4342
|
_classCallCheck(this, Vimeo);
|
|
@@ -4326,7 +4345,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4326
4345
|
args[_key] = arguments[_key];
|
|
4327
4346
|
}
|
|
4328
4347
|
|
|
4329
|
-
_this =
|
|
4348
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4330
4349
|
|
|
4331
4350
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4332
4351
|
|
|
@@ -4483,7 +4502,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4483
4502
|
overflow: 'hidden',
|
|
4484
4503
|
display: display
|
|
4485
4504
|
};
|
|
4486
|
-
return
|
|
4505
|
+
return _react["default"].createElement("div", {
|
|
4487
4506
|
key: this.props.url,
|
|
4488
4507
|
ref: this.ref,
|
|
4489
4508
|
style: style
|
|
@@ -4514,7 +4533,7 @@ exports["default"] = _default;
|
|
|
4514
4533
|
});
|
|
4515
4534
|
|
|
4516
4535
|
unwrapExports(Vimeo_1);
|
|
4517
|
-
Vimeo_1.Vimeo;
|
|
4536
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4518
4537
|
|
|
4519
4538
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4520
4539
|
|
|
@@ -4523,7 +4542,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4523
4542
|
});
|
|
4524
4543
|
exports["default"] = exports.Facebook = void 0;
|
|
4525
4544
|
|
|
4526
|
-
var _react = _interopRequireWildcard(
|
|
4545
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4527
4546
|
|
|
4528
4547
|
|
|
4529
4548
|
|
|
@@ -4543,16 +4562,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4543
4562
|
|
|
4544
4563
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4545
4564
|
|
|
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
4565
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4549
4566
|
|
|
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
4567
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4555
4568
|
|
|
4569
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4570
|
+
|
|
4556
4571
|
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
4572
|
|
|
4558
4573
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4565,12 +4580,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4565
4580
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4566
4581
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4567
4582
|
|
|
4568
|
-
var Facebook =
|
|
4583
|
+
var Facebook =
|
|
4584
|
+
/*#__PURE__*/
|
|
4585
|
+
function (_Component) {
|
|
4569
4586
|
_inherits(Facebook, _Component);
|
|
4570
4587
|
|
|
4571
|
-
var _super = _createSuper(Facebook);
|
|
4572
|
-
|
|
4573
4588
|
function Facebook() {
|
|
4589
|
+
var _getPrototypeOf2;
|
|
4590
|
+
|
|
4574
4591
|
var _this;
|
|
4575
4592
|
|
|
4576
4593
|
_classCallCheck(this, Facebook);
|
|
@@ -4579,7 +4596,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4579
4596
|
args[_key] = arguments[_key];
|
|
4580
4597
|
}
|
|
4581
4598
|
|
|
4582
|
-
_this =
|
|
4599
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4583
4600
|
|
|
4584
4601
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4585
4602
|
|
|
@@ -4695,7 +4712,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4695
4712
|
width: '100%',
|
|
4696
4713
|
height: '100%'
|
|
4697
4714
|
};
|
|
4698
|
-
return
|
|
4715
|
+
return _react["default"].createElement("div", {
|
|
4699
4716
|
style: style,
|
|
4700
4717
|
id: this.playerID,
|
|
4701
4718
|
className: "fb-video",
|
|
@@ -4726,7 +4743,7 @@ exports["default"] = _default;
|
|
|
4726
4743
|
});
|
|
4727
4744
|
|
|
4728
4745
|
unwrapExports(Facebook_1);
|
|
4729
|
-
Facebook_1.Facebook;
|
|
4746
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4730
4747
|
|
|
4731
4748
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4732
4749
|
|
|
@@ -4735,7 +4752,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4735
4752
|
});
|
|
4736
4753
|
exports["default"] = exports.Streamable = void 0;
|
|
4737
4754
|
|
|
4738
|
-
var _react = _interopRequireWildcard(
|
|
4755
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4739
4756
|
|
|
4740
4757
|
|
|
4741
4758
|
|
|
@@ -4755,16 +4772,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4755
4772
|
|
|
4756
4773
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4757
4774
|
|
|
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
4775
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4761
4776
|
|
|
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
4777
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4767
4778
|
|
|
4779
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4780
|
+
|
|
4768
4781
|
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
4782
|
|
|
4770
4783
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4775,12 +4788,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4775
4788
|
var SDK_GLOBAL = 'playerjs';
|
|
4776
4789
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4777
4790
|
|
|
4778
|
-
var Streamable =
|
|
4791
|
+
var Streamable =
|
|
4792
|
+
/*#__PURE__*/
|
|
4793
|
+
function (_Component) {
|
|
4779
4794
|
_inherits(Streamable, _Component);
|
|
4780
4795
|
|
|
4781
|
-
var _super = _createSuper(Streamable);
|
|
4782
|
-
|
|
4783
4796
|
function Streamable() {
|
|
4797
|
+
var _getPrototypeOf2;
|
|
4798
|
+
|
|
4784
4799
|
var _this;
|
|
4785
4800
|
|
|
4786
4801
|
_classCallCheck(this, Streamable);
|
|
@@ -4789,7 +4804,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4789
4804
|
args[_key] = arguments[_key];
|
|
4790
4805
|
}
|
|
4791
4806
|
|
|
4792
|
-
_this =
|
|
4807
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4793
4808
|
|
|
4794
4809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4795
4810
|
|
|
@@ -4909,7 +4924,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4909
4924
|
width: '100%',
|
|
4910
4925
|
height: '100%'
|
|
4911
4926
|
};
|
|
4912
|
-
return
|
|
4927
|
+
return _react["default"].createElement("iframe", {
|
|
4913
4928
|
ref: this.ref,
|
|
4914
4929
|
src: "https://streamable.com/o/".concat(id),
|
|
4915
4930
|
frameBorder: "0",
|
|
@@ -4937,7 +4952,7 @@ exports["default"] = _default;
|
|
|
4937
4952
|
});
|
|
4938
4953
|
|
|
4939
4954
|
unwrapExports(Streamable_1);
|
|
4940
|
-
Streamable_1.Streamable;
|
|
4955
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4941
4956
|
|
|
4942
4957
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4943
4958
|
|
|
@@ -4946,7 +4961,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4946
4961
|
});
|
|
4947
4962
|
exports["default"] = exports.Wistia = void 0;
|
|
4948
4963
|
|
|
4949
|
-
var _react = _interopRequireWildcard(
|
|
4964
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4950
4965
|
|
|
4951
4966
|
|
|
4952
4967
|
|
|
@@ -4970,16 +4985,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4970
4985
|
|
|
4971
4986
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4972
4987
|
|
|
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
4988
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4976
4989
|
|
|
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
4990
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4982
4991
|
|
|
4992
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4993
|
+
|
|
4983
4994
|
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
4995
|
|
|
4985
4996
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4990,48 +5001,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4990
5001
|
var SDK_GLOBAL = 'Wistia';
|
|
4991
5002
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4992
5003
|
|
|
4993
|
-
var Wistia =
|
|
5004
|
+
var Wistia =
|
|
5005
|
+
/*#__PURE__*/
|
|
5006
|
+
function (_Component) {
|
|
4994
5007
|
_inherits(Wistia, _Component);
|
|
4995
5008
|
|
|
4996
|
-
var _super = _createSuper(Wistia);
|
|
4997
|
-
|
|
4998
5009
|
function Wistia() {
|
|
5010
|
+
var _getPrototypeOf2;
|
|
5011
|
+
|
|
4999
5012
|
var _this;
|
|
5000
5013
|
|
|
5001
5014
|
_classCallCheck(this, Wistia);
|
|
5002
5015
|
|
|
5003
|
-
for (var _len = arguments.length,
|
|
5004
|
-
|
|
5016
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5017
|
+
args[_key] = arguments[_key];
|
|
5005
5018
|
}
|
|
5006
5019
|
|
|
5007
|
-
_this =
|
|
5020
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5008
5021
|
|
|
5009
5022
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5010
5023
|
|
|
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
5024
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5036
5025
|
_this.callPlayer('mute');
|
|
5037
5026
|
});
|
|
@@ -5053,13 +5042,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5053
5042
|
value: function load(url) {
|
|
5054
5043
|
var _this2 = this;
|
|
5055
5044
|
|
|
5056
|
-
var _this$
|
|
5057
|
-
playing = _this$
|
|
5058
|
-
muted = _this$
|
|
5059
|
-
controls = _this$
|
|
5060
|
-
_onReady = _this$
|
|
5061
|
-
|
|
5062
|
-
|
|
5045
|
+
var _this$props = this.props,
|
|
5046
|
+
playing = _this$props.playing,
|
|
5047
|
+
muted = _this$props.muted,
|
|
5048
|
+
controls = _this$props.controls,
|
|
5049
|
+
_onReady = _this$props.onReady,
|
|
5050
|
+
onPlay = _this$props.onPlay,
|
|
5051
|
+
onPause = _this$props.onPause,
|
|
5052
|
+
onSeek = _this$props.onSeek,
|
|
5053
|
+
onEnded = _this$props.onEnded,
|
|
5054
|
+
config = _this$props.config,
|
|
5055
|
+
onError = _this$props.onError;
|
|
5063
5056
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5064
5057
|
window._wq = window._wq || [];
|
|
5065
5058
|
|
|
@@ -5076,28 +5069,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5076
5069
|
|
|
5077
5070
|
_this2.unbind();
|
|
5078
5071
|
|
|
5079
|
-
_this2.player.bind('play',
|
|
5072
|
+
_this2.player.bind('play', onPlay);
|
|
5080
5073
|
|
|
5081
|
-
_this2.player.bind('pause',
|
|
5074
|
+
_this2.player.bind('pause', onPause);
|
|
5082
5075
|
|
|
5083
|
-
_this2.player.bind('seek',
|
|
5076
|
+
_this2.player.bind('seek', onSeek);
|
|
5084
5077
|
|
|
5085
|
-
_this2.player.bind('end',
|
|
5078
|
+
_this2.player.bind('end', onEnded);
|
|
5086
5079
|
|
|
5087
5080
|
_onReady();
|
|
5088
5081
|
}
|
|
5089
5082
|
});
|
|
5090
5083
|
}, onError);
|
|
5091
5084
|
}
|
|
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
5085
|
}, {
|
|
5102
5086
|
key: "play",
|
|
5103
5087
|
value: function play() {
|
|
@@ -5108,6 +5092,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5108
5092
|
value: function pause() {
|
|
5109
5093
|
this.callPlayer('pause');
|
|
5110
5094
|
}
|
|
5095
|
+
}, {
|
|
5096
|
+
key: "unbind",
|
|
5097
|
+
value: function unbind() {
|
|
5098
|
+
var _this$props2 = this.props,
|
|
5099
|
+
onPlay = _this$props2.onPlay,
|
|
5100
|
+
onPause = _this$props2.onPause,
|
|
5101
|
+
onSeek = _this$props2.onSeek,
|
|
5102
|
+
onEnded = _this$props2.onEnded;
|
|
5103
|
+
this.player.unbind('play', onPlay);
|
|
5104
|
+
this.player.unbind('pause', onPause);
|
|
5105
|
+
this.player.unbind('seek', onSeek);
|
|
5106
|
+
this.player.unbind('end', onEnded);
|
|
5107
|
+
}
|
|
5111
5108
|
}, {
|
|
5112
5109
|
key: "stop",
|
|
5113
5110
|
value: function stop() {
|
|
@@ -5153,7 +5150,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5153
5150
|
width: '100%',
|
|
5154
5151
|
height: '100%'
|
|
5155
5152
|
};
|
|
5156
|
-
return
|
|
5153
|
+
return _react["default"].createElement("div", {
|
|
5157
5154
|
key: id,
|
|
5158
5155
|
className: className,
|
|
5159
5156
|
style: style
|
|
@@ -5180,7 +5177,7 @@ exports["default"] = _default;
|
|
|
5180
5177
|
});
|
|
5181
5178
|
|
|
5182
5179
|
unwrapExports(Wistia_1);
|
|
5183
|
-
Wistia_1.Wistia;
|
|
5180
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5184
5181
|
|
|
5185
5182
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5186
5183
|
|
|
@@ -5189,7 +5186,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5189
5186
|
});
|
|
5190
5187
|
exports["default"] = exports.Twitch = void 0;
|
|
5191
5188
|
|
|
5192
|
-
var _react = _interopRequireWildcard(
|
|
5189
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5193
5190
|
|
|
5194
5191
|
|
|
5195
5192
|
|
|
@@ -5213,16 +5210,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5213
5210
|
|
|
5214
5211
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5215
5212
|
|
|
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
5213
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5219
5214
|
|
|
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
5215
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5225
5216
|
|
|
5217
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5218
|
+
|
|
5226
5219
|
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
5220
|
|
|
5228
5221
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5235,12 +5228,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5235
5228
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5236
5229
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5237
5230
|
|
|
5238
|
-
var Twitch =
|
|
5231
|
+
var Twitch =
|
|
5232
|
+
/*#__PURE__*/
|
|
5233
|
+
function (_Component) {
|
|
5239
5234
|
_inherits(Twitch, _Component);
|
|
5240
5235
|
|
|
5241
|
-
var _super = _createSuper(Twitch);
|
|
5242
|
-
|
|
5243
5236
|
function Twitch() {
|
|
5237
|
+
var _getPrototypeOf2;
|
|
5238
|
+
|
|
5244
5239
|
var _this;
|
|
5245
5240
|
|
|
5246
5241
|
_classCallCheck(this, Twitch);
|
|
@@ -5249,7 +5244,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5249
5244
|
args[_key] = arguments[_key];
|
|
5250
5245
|
}
|
|
5251
5246
|
|
|
5252
|
-
_this =
|
|
5247
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5253
5248
|
|
|
5254
5249
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5255
5250
|
|
|
@@ -5370,7 +5365,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5370
5365
|
width: '100%',
|
|
5371
5366
|
height: '100%'
|
|
5372
5367
|
};
|
|
5373
|
-
return
|
|
5368
|
+
return _react["default"].createElement("div", {
|
|
5374
5369
|
style: style,
|
|
5375
5370
|
id: this.playerID
|
|
5376
5371
|
});
|
|
@@ -5396,7 +5391,7 @@ exports["default"] = _default;
|
|
|
5396
5391
|
});
|
|
5397
5392
|
|
|
5398
5393
|
unwrapExports(Twitch_1);
|
|
5399
|
-
Twitch_1.Twitch;
|
|
5394
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5400
5395
|
|
|
5401
5396
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5402
5397
|
|
|
@@ -5405,7 +5400,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5405
5400
|
});
|
|
5406
5401
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5407
5402
|
|
|
5408
|
-
var _react = _interopRequireWildcard(
|
|
5403
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5409
5404
|
|
|
5410
5405
|
|
|
5411
5406
|
|
|
@@ -5423,15 +5418,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5423
5418
|
|
|
5424
5419
|
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
5420
|
|
|
5426
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5427
|
-
|
|
5428
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5429
|
-
|
|
5430
|
-
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); }
|
|
5421
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5431
5422
|
|
|
5432
|
-
function
|
|
5423
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5433
5424
|
|
|
5434
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5425
|
+
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
5426
|
|
|
5436
5427
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5437
5428
|
|
|
@@ -5441,16 +5432,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5441
5432
|
|
|
5442
5433
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5443
5434
|
|
|
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
5435
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5447
5436
|
|
|
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
5437
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5453
5438
|
|
|
5439
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5440
|
+
|
|
5454
5441
|
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
5442
|
|
|
5456
5443
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5462,12 +5449,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5462
5449
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5463
5450
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5464
5451
|
|
|
5465
|
-
var DailyMotion =
|
|
5452
|
+
var DailyMotion =
|
|
5453
|
+
/*#__PURE__*/
|
|
5454
|
+
function (_Component) {
|
|
5466
5455
|
_inherits(DailyMotion, _Component);
|
|
5467
5456
|
|
|
5468
|
-
var _super = _createSuper(DailyMotion);
|
|
5469
|
-
|
|
5470
5457
|
function DailyMotion() {
|
|
5458
|
+
var _getPrototypeOf2;
|
|
5459
|
+
|
|
5471
5460
|
var _this;
|
|
5472
5461
|
|
|
5473
5462
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5476,7 +5465,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5476
5465
|
args[_key] = arguments[_key];
|
|
5477
5466
|
}
|
|
5478
5467
|
|
|
5479
|
-
_this =
|
|
5468
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5480
5469
|
|
|
5481
5470
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5482
5471
|
|
|
@@ -5605,9 +5594,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5605
5594
|
height: '100%',
|
|
5606
5595
|
display: display
|
|
5607
5596
|
};
|
|
5608
|
-
return
|
|
5597
|
+
return _react["default"].createElement("div", {
|
|
5609
5598
|
style: style
|
|
5610
|
-
},
|
|
5599
|
+
}, _react["default"].createElement("div", {
|
|
5611
5600
|
ref: this.ref
|
|
5612
5601
|
}));
|
|
5613
5602
|
}
|
|
@@ -5632,7 +5621,7 @@ exports["default"] = _default;
|
|
|
5632
5621
|
});
|
|
5633
5622
|
|
|
5634
5623
|
unwrapExports(DailyMotion_1);
|
|
5635
|
-
DailyMotion_1.DailyMotion;
|
|
5624
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5636
5625
|
|
|
5637
5626
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5638
5627
|
|
|
@@ -5641,7 +5630,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5641
5630
|
});
|
|
5642
5631
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5643
5632
|
|
|
5644
|
-
var _react = _interopRequireWildcard(
|
|
5633
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5645
5634
|
|
|
5646
5635
|
|
|
5647
5636
|
|
|
@@ -5665,16 +5654,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5665
5654
|
|
|
5666
5655
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5667
5656
|
|
|
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
5657
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5671
5658
|
|
|
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
5659
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5677
5660
|
|
|
5661
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5662
|
+
|
|
5678
5663
|
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
5664
|
|
|
5680
5665
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5685,12 +5670,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5685
5670
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5686
5671
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5687
5672
|
|
|
5688
|
-
var Mixcloud =
|
|
5673
|
+
var Mixcloud =
|
|
5674
|
+
/*#__PURE__*/
|
|
5675
|
+
function (_Component) {
|
|
5689
5676
|
_inherits(Mixcloud, _Component);
|
|
5690
5677
|
|
|
5691
|
-
var _super = _createSuper(Mixcloud);
|
|
5692
|
-
|
|
5693
5678
|
function Mixcloud() {
|
|
5679
|
+
var _getPrototypeOf2;
|
|
5680
|
+
|
|
5694
5681
|
var _this;
|
|
5695
5682
|
|
|
5696
5683
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5699,7 +5686,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5699
5686
|
args[_key] = arguments[_key];
|
|
5700
5687
|
}
|
|
5701
5688
|
|
|
5702
|
-
_this =
|
|
5689
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5703
5690
|
|
|
5704
5691
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5705
5692
|
|
|
@@ -5802,7 +5789,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5802
5789
|
})); // We have to give the iframe a key here to prevent a
|
|
5803
5790
|
// weird dialog appearing when loading a new track
|
|
5804
5791
|
|
|
5805
|
-
return
|
|
5792
|
+
return _react["default"].createElement("iframe", {
|
|
5806
5793
|
key: id,
|
|
5807
5794
|
ref: this.ref,
|
|
5808
5795
|
style: style,
|
|
@@ -5831,7 +5818,7 @@ exports["default"] = _default;
|
|
|
5831
5818
|
});
|
|
5832
5819
|
|
|
5833
5820
|
unwrapExports(Mixcloud_1);
|
|
5834
|
-
Mixcloud_1.Mixcloud;
|
|
5821
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5835
5822
|
|
|
5836
5823
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5837
5824
|
|
|
@@ -5840,7 +5827,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5840
5827
|
});
|
|
5841
5828
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5842
5829
|
|
|
5843
|
-
var _react = _interopRequireWildcard(
|
|
5830
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5844
5831
|
|
|
5845
5832
|
|
|
5846
5833
|
|
|
@@ -5862,33 +5849,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5862
5849
|
|
|
5863
5850
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5864
5851
|
|
|
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
5852
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5868
5853
|
|
|
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
5854
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5874
5855
|
|
|
5856
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5857
|
+
|
|
5875
5858
|
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
5859
|
|
|
5877
5860
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5878
5861
|
|
|
5879
5862
|
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
5863
|
|
|
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
5864
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5888
5865
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5889
5866
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5890
5867
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5891
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5868
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5892
5869
|
var HLS_GLOBAL = 'Hls';
|
|
5893
5870
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5894
5871
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5897,11 +5874,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5897
5874
|
|
|
5898
5875
|
function canPlay(url) {
|
|
5899
5876
|
if (url instanceof Array) {
|
|
5900
|
-
var
|
|
5901
|
-
|
|
5877
|
+
var _iteratorNormalCompletion = true;
|
|
5878
|
+
var _didIteratorError = false;
|
|
5879
|
+
var _iteratorError = undefined;
|
|
5902
5880
|
|
|
5903
5881
|
try {
|
|
5904
|
-
for (_iterator.
|
|
5882
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5905
5883
|
var item = _step.value;
|
|
5906
5884
|
|
|
5907
5885
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5913,9 +5891,18 @@ function canPlay(url) {
|
|
|
5913
5891
|
}
|
|
5914
5892
|
}
|
|
5915
5893
|
} catch (err) {
|
|
5916
|
-
|
|
5894
|
+
_didIteratorError = true;
|
|
5895
|
+
_iteratorError = err;
|
|
5917
5896
|
} finally {
|
|
5918
|
-
|
|
5897
|
+
try {
|
|
5898
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5899
|
+
_iterator["return"]();
|
|
5900
|
+
}
|
|
5901
|
+
} finally {
|
|
5902
|
+
if (_didIteratorError) {
|
|
5903
|
+
throw _iteratorError;
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5919
5906
|
}
|
|
5920
5907
|
|
|
5921
5908
|
return false;
|
|
@@ -5939,12 +5926,14 @@ function canEnablePIP(url) {
|
|
|
5939
5926
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5940
5927
|
}
|
|
5941
5928
|
|
|
5942
|
-
var FilePlayer =
|
|
5929
|
+
var FilePlayer =
|
|
5930
|
+
/*#__PURE__*/
|
|
5931
|
+
function (_Component) {
|
|
5943
5932
|
_inherits(FilePlayer, _Component);
|
|
5944
5933
|
|
|
5945
|
-
var _super = _createSuper(FilePlayer);
|
|
5946
|
-
|
|
5947
5934
|
function FilePlayer() {
|
|
5935
|
+
var _getPrototypeOf2;
|
|
5936
|
+
|
|
5948
5937
|
var _this;
|
|
5949
5938
|
|
|
5950
5939
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5953,7 +5942,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5953
5942
|
_args[_key] = arguments[_key];
|
|
5954
5943
|
}
|
|
5955
5944
|
|
|
5956
|
-
_this =
|
|
5945
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5957
5946
|
|
|
5958
5947
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5959
5948
|
var _this$props;
|
|
@@ -6040,19 +6029,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6040
6029
|
|
|
6041
6030
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6042
6031
|
if (typeof source === 'string') {
|
|
6043
|
-
return
|
|
6032
|
+
return _react["default"].createElement("source", {
|
|
6044
6033
|
key: index,
|
|
6045
6034
|
src: source
|
|
6046
6035
|
});
|
|
6047
6036
|
}
|
|
6048
6037
|
|
|
6049
|
-
return
|
|
6038
|
+
return _react["default"].createElement("source", _extends({
|
|
6050
6039
|
key: index
|
|
6051
6040
|
}, source));
|
|
6052
6041
|
});
|
|
6053
6042
|
|
|
6054
6043
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6055
|
-
return
|
|
6044
|
+
return _react["default"].createElement("track", _extends({
|
|
6056
6045
|
key: index
|
|
6057
6046
|
}, track));
|
|
6058
6047
|
});
|
|
@@ -6090,10 +6079,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6090
6079
|
key: "componentWillUnmount",
|
|
6091
6080
|
value: function componentWillUnmount() {
|
|
6092
6081
|
this.removeListeners(this.player);
|
|
6093
|
-
|
|
6094
|
-
if (this.hls) {
|
|
6095
|
-
this.hls.destroy();
|
|
6096
|
-
}
|
|
6097
6082
|
}
|
|
6098
6083
|
}, {
|
|
6099
6084
|
key: "addListeners",
|
|
@@ -6224,6 +6209,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6224
6209
|
value: function stop() {
|
|
6225
6210
|
this.player.removeAttribute('src');
|
|
6226
6211
|
|
|
6212
|
+
if (this.hls) {
|
|
6213
|
+
this.hls.destroy();
|
|
6214
|
+
}
|
|
6215
|
+
|
|
6227
6216
|
if (this.dash) {
|
|
6228
6217
|
this.dash.reset();
|
|
6229
6218
|
}
|
|
@@ -6335,7 +6324,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6335
6324
|
width: width === 'auto' ? width : '100%',
|
|
6336
6325
|
height: height === 'auto' ? height : '100%'
|
|
6337
6326
|
};
|
|
6338
|
-
return
|
|
6327
|
+
return _react["default"].createElement(Element, _extends({
|
|
6339
6328
|
ref: this.ref,
|
|
6340
6329
|
src: this.getSource(url),
|
|
6341
6330
|
style: style,
|
|
@@ -6365,7 +6354,7 @@ exports["default"] = _default;
|
|
|
6365
6354
|
});
|
|
6366
6355
|
|
|
6367
6356
|
unwrapExports(FilePlayer_1);
|
|
6368
|
-
FilePlayer_1.FilePlayer;
|
|
6357
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6369
6358
|
|
|
6370
6359
|
var players = createCommonjsModule(function (module, exports) {
|
|
6371
6360
|
|
|
@@ -6407,7 +6396,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6407
6396
|
});
|
|
6408
6397
|
exports["default"] = void 0;
|
|
6409
6398
|
|
|
6410
|
-
var _react = _interopRequireWildcard(
|
|
6399
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6411
6400
|
|
|
6412
6401
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6413
6402
|
|
|
@@ -6425,16 +6414,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6425
6414
|
|
|
6426
6415
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6427
6416
|
|
|
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
6417
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6431
6418
|
|
|
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
6419
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6437
6420
|
|
|
6421
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6422
|
+
|
|
6438
6423
|
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
6424
|
|
|
6440
6425
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6443,12 +6428,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6443
6428
|
|
|
6444
6429
|
var ICON_SIZE = '64px';
|
|
6445
6430
|
|
|
6446
|
-
var Preview =
|
|
6431
|
+
var Preview =
|
|
6432
|
+
/*#__PURE__*/
|
|
6433
|
+
function (_Component) {
|
|
6447
6434
|
_inherits(Preview, _Component);
|
|
6448
6435
|
|
|
6449
|
-
var _super = _createSuper(Preview);
|
|
6450
|
-
|
|
6451
6436
|
function Preview() {
|
|
6437
|
+
var _getPrototypeOf2;
|
|
6438
|
+
|
|
6452
6439
|
var _this;
|
|
6453
6440
|
|
|
6454
6441
|
_classCallCheck(this, Preview);
|
|
@@ -6457,7 +6444,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6457
6444
|
args[_key] = arguments[_key];
|
|
6458
6445
|
}
|
|
6459
6446
|
|
|
6460
|
-
_this =
|
|
6447
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6461
6448
|
|
|
6462
6449
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6463
6450
|
|
|
@@ -6555,15 +6542,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6555
6542
|
}
|
|
6556
6543
|
};
|
|
6557
6544
|
|
|
6558
|
-
var defaultPlayIcon =
|
|
6545
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6559
6546
|
style: styles.shadow,
|
|
6560
6547
|
className: "react-player__shadow"
|
|
6561
|
-
},
|
|
6548
|
+
}, _react["default"].createElement("div", {
|
|
6562
6549
|
style: styles.playIcon,
|
|
6563
6550
|
className: "react-player__play-icon"
|
|
6564
6551
|
}));
|
|
6565
6552
|
|
|
6566
|
-
return
|
|
6553
|
+
return _react["default"].createElement("div", {
|
|
6567
6554
|
style: styles.preview,
|
|
6568
6555
|
className: "react-player__preview",
|
|
6569
6556
|
onClick: onClick
|
|
@@ -6586,7 +6573,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6586
6573
|
});
|
|
6587
6574
|
exports["default"] = renderPreloadPlayers;
|
|
6588
6575
|
|
|
6589
|
-
var _react = _interopRequireDefault(
|
|
6576
|
+
var _react = _interopRequireDefault(React__default);
|
|
6590
6577
|
|
|
6591
6578
|
var _Player = _interopRequireDefault(Player_1);
|
|
6592
6579
|
|
|
@@ -6600,12 +6587,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6600
6587
|
|
|
6601
6588
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6602
6589
|
|
|
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
6590
|
var PRELOAD_PLAYERS = [{
|
|
6610
6591
|
Player: YouTube_1.YouTube,
|
|
6611
6592
|
configKey: 'youtube',
|
|
@@ -6626,16 +6607,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6626
6607
|
|
|
6627
6608
|
function renderPreloadPlayers(url, controls, config) {
|
|
6628
6609
|
var players = [];
|
|
6629
|
-
|
|
6630
|
-
var
|
|
6631
|
-
|
|
6610
|
+
var _iteratorNormalCompletion = true;
|
|
6611
|
+
var _didIteratorError = false;
|
|
6612
|
+
var _iteratorError = undefined;
|
|
6632
6613
|
|
|
6633
6614
|
try {
|
|
6634
|
-
for (_iterator.
|
|
6615
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6635
6616
|
var player = _step.value;
|
|
6636
6617
|
|
|
6637
6618
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6638
|
-
players.push(
|
|
6619
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6639
6620
|
key: player.Player.displayName,
|
|
6640
6621
|
activePlayer: player.Player,
|
|
6641
6622
|
url: player.url,
|
|
@@ -6647,9 +6628,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6647
6628
|
}
|
|
6648
6629
|
}
|
|
6649
6630
|
} catch (err) {
|
|
6650
|
-
|
|
6631
|
+
_didIteratorError = true;
|
|
6632
|
+
_iteratorError = err;
|
|
6651
6633
|
} finally {
|
|
6652
|
-
|
|
6634
|
+
try {
|
|
6635
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6636
|
+
_iterator["return"]();
|
|
6637
|
+
}
|
|
6638
|
+
} finally {
|
|
6639
|
+
if (_didIteratorError) {
|
|
6640
|
+
throw _iteratorError;
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6653
6643
|
}
|
|
6654
6644
|
|
|
6655
6645
|
return players;
|
|
@@ -6725,7 +6715,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6725
6715
|
});
|
|
6726
6716
|
exports["default"] = void 0;
|
|
6727
6717
|
|
|
6728
|
-
var _react = _interopRequireWildcard(
|
|
6718
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6729
6719
|
|
|
6730
6720
|
|
|
6731
6721
|
|
|
@@ -6773,17 +6763,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6773
6763
|
|
|
6774
6764
|
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
6765
|
|
|
6776
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6766
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6777
6767
|
|
|
6778
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6768
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6779
6769
|
|
|
6780
|
-
function
|
|
6770
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6781
6771
|
|
|
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; }
|
|
6772
|
+
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
6773
|
|
|
6788
6774
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6789
6775
|
|
|
@@ -6791,16 +6777,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6791
6777
|
|
|
6792
6778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6793
6779
|
|
|
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
6780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6797
6781
|
|
|
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
6782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6803
6783
|
|
|
6784
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6785
|
+
|
|
6804
6786
|
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
6787
|
|
|
6806
6788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6810,12 +6792,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6810
6792
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6811
6793
|
var customPlayers = [];
|
|
6812
6794
|
|
|
6813
|
-
var ReactPlayer =
|
|
6795
|
+
var ReactPlayer =
|
|
6796
|
+
/*#__PURE__*/
|
|
6797
|
+
function (_Component) {
|
|
6814
6798
|
_inherits(ReactPlayer, _Component);
|
|
6815
6799
|
|
|
6816
|
-
var _super = _createSuper(ReactPlayer);
|
|
6817
|
-
|
|
6818
6800
|
function ReactPlayer() {
|
|
6801
|
+
var _getPrototypeOf2;
|
|
6802
|
+
|
|
6819
6803
|
var _this;
|
|
6820
6804
|
|
|
6821
6805
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6824,7 +6808,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6824
6808
|
args[_key] = arguments[_key];
|
|
6825
6809
|
}
|
|
6826
6810
|
|
|
6827
|
-
_this =
|
|
6811
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6828
6812
|
|
|
6829
6813
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6830
6814
|
|
|
@@ -6935,7 +6919,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6935
6919
|
key: "renderActivePlayer",
|
|
6936
6920
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6937
6921
|
if (!url) return null;
|
|
6938
|
-
return
|
|
6922
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6939
6923
|
key: activePlayer.displayName,
|
|
6940
6924
|
ref: this.activePlayerRef,
|
|
6941
6925
|
config: this.config,
|
|
@@ -6972,14 +6956,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6972
6956
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6973
6957
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6974
6958
|
|
|
6975
|
-
var preview =
|
|
6959
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6976
6960
|
url: url,
|
|
6977
6961
|
light: light,
|
|
6978
6962
|
playIcon: playIcon,
|
|
6979
6963
|
onClick: this.handleClickPreview
|
|
6980
6964
|
});
|
|
6981
6965
|
|
|
6982
|
-
return
|
|
6966
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6983
6967
|
ref: this.wrapperRef,
|
|
6984
6968
|
style: _objectSpread({}, style, {
|
|
6985
6969
|
width: width,
|
|
@@ -7039,20 +7023,20 @@ var Audio = function Audio(_ref) {
|
|
|
7039
7023
|
var node = _ref.node;
|
|
7040
7024
|
|
|
7041
7025
|
if (node.uploadAudio) {
|
|
7042
|
-
return
|
|
7026
|
+
return React__default.createElement(
|
|
7043
7027
|
'div',
|
|
7044
7028
|
{ className: 'audio d-block text-center mb-3' },
|
|
7045
|
-
|
|
7029
|
+
React__default.createElement(
|
|
7046
7030
|
'audio',
|
|
7047
7031
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7048
|
-
|
|
7049
|
-
|
|
7032
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7033
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7050
7034
|
'Your browser does not support the audio element.'
|
|
7051
7035
|
),
|
|
7052
|
-
node.caption &&
|
|
7036
|
+
node.caption && React__default.createElement(
|
|
7053
7037
|
'p',
|
|
7054
7038
|
{ style: { fontSize: '.9rem' } },
|
|
7055
|
-
|
|
7039
|
+
React__default.createElement(
|
|
7056
7040
|
'em',
|
|
7057
7041
|
null,
|
|
7058
7042
|
node.caption
|
|
@@ -7062,15 +7046,15 @@ var Audio = function Audio(_ref) {
|
|
|
7062
7046
|
} else if (node.audioFilePth) {
|
|
7063
7047
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7064
7048
|
if (hostname === 'embeds.audioboom.com') {
|
|
7065
|
-
return
|
|
7049
|
+
return React__default.createElement(
|
|
7066
7050
|
'div',
|
|
7067
7051
|
null,
|
|
7068
|
-
|
|
7052
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7069
7053
|
' ',
|
|
7070
|
-
node.caption &&
|
|
7054
|
+
node.caption && React__default.createElement(
|
|
7071
7055
|
'p',
|
|
7072
7056
|
{ style: { fontSize: '.9rem' } },
|
|
7073
|
-
|
|
7057
|
+
React__default.createElement(
|
|
7074
7058
|
'em',
|
|
7075
7059
|
null,
|
|
7076
7060
|
node.caption
|
|
@@ -7078,14 +7062,14 @@ var Audio = function Audio(_ref) {
|
|
|
7078
7062
|
)
|
|
7079
7063
|
);
|
|
7080
7064
|
}
|
|
7081
|
-
return
|
|
7065
|
+
return React__default.createElement(
|
|
7082
7066
|
'div',
|
|
7083
7067
|
{ className: 'audio' },
|
|
7084
|
-
|
|
7085
|
-
node.caption &&
|
|
7068
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7069
|
+
node.caption && React__default.createElement(
|
|
7086
7070
|
'p',
|
|
7087
7071
|
{ style: { fontSize: '.9rem' } },
|
|
7088
|
-
|
|
7072
|
+
React__default.createElement(
|
|
7089
7073
|
'em',
|
|
7090
7074
|
null,
|
|
7091
7075
|
node.caption
|
|
@@ -7104,34 +7088,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7104
7088
|
var showAuthorDetails = arguments[7];
|
|
7105
7089
|
|
|
7106
7090
|
if (authorName && authorURL) {
|
|
7107
|
-
return
|
|
7091
|
+
return React__default.createElement(
|
|
7108
7092
|
'span',
|
|
7109
7093
|
null,
|
|
7110
|
-
|
|
7094
|
+
React__default.createElement(
|
|
7111
7095
|
'a',
|
|
7112
7096
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7113
7097
|
authorName
|
|
7114
7098
|
),
|
|
7115
|
-
showAuthorDetails &&
|
|
7099
|
+
showAuthorDetails && React__default.createElement(
|
|
7116
7100
|
Card,
|
|
7117
7101
|
{ className: 'author-details-card-' + index },
|
|
7118
|
-
|
|
7102
|
+
React__default.createElement(
|
|
7119
7103
|
Row,
|
|
7120
7104
|
null,
|
|
7121
|
-
profileImage &&
|
|
7105
|
+
profileImage && React__default.createElement(
|
|
7122
7106
|
Col,
|
|
7123
7107
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7124
|
-
|
|
7108
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7125
7109
|
),
|
|
7126
|
-
|
|
7110
|
+
React__default.createElement(
|
|
7127
7111
|
Col,
|
|
7128
7112
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7129
|
-
|
|
7113
|
+
React__default.createElement(
|
|
7130
7114
|
'div',
|
|
7131
7115
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7132
7116
|
authorName
|
|
7133
7117
|
),
|
|
7134
|
-
|
|
7118
|
+
React__default.createElement(
|
|
7135
7119
|
'p',
|
|
7136
7120
|
null,
|
|
7137
7121
|
biography
|
|
@@ -7139,7 +7123,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7139
7123
|
)
|
|
7140
7124
|
)
|
|
7141
7125
|
),
|
|
7142
|
-
|
|
7126
|
+
React__default.createElement(
|
|
7143
7127
|
'style',
|
|
7144
7128
|
{ jsx: 'true' },
|
|
7145
7129
|
'\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 +7131,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7147
7131
|
length !== index + 1 && ', '
|
|
7148
7132
|
);
|
|
7149
7133
|
} else if (authorName) {
|
|
7150
|
-
return
|
|
7134
|
+
return React__default.createElement(
|
|
7151
7135
|
'span',
|
|
7152
7136
|
{ key: index },
|
|
7153
7137
|
authorName,
|
|
@@ -7302,8 +7286,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7302
7286
|
var duration = player.getDuration();
|
|
7303
7287
|
var queue = Math.floor(duration / 10);
|
|
7304
7288
|
var segment = Math.floor(current / queue);
|
|
7305
|
-
Beam.report_beam_video('Ready',
|
|
7306
|
-
Segment.report_video_event('Video Ready',
|
|
7289
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7290
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7307
7291
|
//autoplay
|
|
7308
7292
|
|
|
7309
7293
|
//Small pause before starting next video
|
|
@@ -7323,8 +7307,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7323
7307
|
var queue = Math.floor(duration / 10);
|
|
7324
7308
|
var segment = Math.floor(current / queue);
|
|
7325
7309
|
|
|
7326
|
-
Beam.report_beam_video('End',
|
|
7327
|
-
Segment.report_video_event('Video End',
|
|
7310
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7311
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7328
7312
|
setEndReported(true);
|
|
7329
7313
|
clearInterval(intervalID);
|
|
7330
7314
|
}
|
|
@@ -7374,8 +7358,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7374
7358
|
var queue = Math.floor(duration / 10);
|
|
7375
7359
|
var segment = Math.floor(current / queue);
|
|
7376
7360
|
if (!queueProgress.includes(segment)) {
|
|
7377
|
-
Beam.report_beam_video('Segment',
|
|
7378
|
-
Segment.report_video_event('Video Segment',
|
|
7361
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7362
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7379
7363
|
queueProgress.push(segment);
|
|
7380
7364
|
}
|
|
7381
7365
|
};
|
|
@@ -7388,8 +7372,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7388
7372
|
var queue = Math.floor(duration / 10);
|
|
7389
7373
|
var segment = Math.floor(current / queue);
|
|
7390
7374
|
|
|
7391
|
-
Beam.report_beam_video('Play',
|
|
7392
|
-
Segment.report_video_event('Video Play',
|
|
7375
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7376
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7393
7377
|
|
|
7394
7378
|
if (!playReported) {
|
|
7395
7379
|
setPlayReported(true);
|
|
@@ -7407,8 +7391,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7407
7391
|
var queue = Math.floor(duration / 10);
|
|
7408
7392
|
var segment = Math.floor(current / queue);
|
|
7409
7393
|
|
|
7410
|
-
Beam.report_beam_video('Pause',
|
|
7411
|
-
Segment.report_video_event('Video Pause',
|
|
7394
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7395
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7412
7396
|
};
|
|
7413
7397
|
|
|
7414
7398
|
// Youtube Options
|
|
@@ -7419,44 +7403,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7419
7403
|
}
|
|
7420
7404
|
};
|
|
7421
7405
|
|
|
7422
|
-
return
|
|
7406
|
+
return React__default.createElement(
|
|
7423
7407
|
'div',
|
|
7424
7408
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7425
|
-
|
|
7409
|
+
React__default.createElement(
|
|
7426
7410
|
'div',
|
|
7427
7411
|
{ className: 'mt-2 mb-5' },
|
|
7428
|
-
series &&
|
|
7412
|
+
series && React__default.createElement(
|
|
7429
7413
|
'div',
|
|
7430
7414
|
{ style: { fontSize: '0.9rem' } },
|
|
7431
7415
|
article.title,
|
|
7432
7416
|
' - Episode ',
|
|
7433
7417
|
series
|
|
7434
7418
|
),
|
|
7435
|
-
Videos[series - 1] &&
|
|
7419
|
+
Videos[series - 1] && React__default.createElement(
|
|
7436
7420
|
'h1',
|
|
7437
7421
|
{ className: 'mb-3' },
|
|
7438
7422
|
Videos[series - 1].title
|
|
7439
7423
|
),
|
|
7440
|
-
|
|
7424
|
+
React__default.createElement(
|
|
7441
7425
|
'div',
|
|
7442
7426
|
null,
|
|
7443
7427
|
moment(article.published).format('LL')
|
|
7444
7428
|
),
|
|
7445
|
-
|
|
7429
|
+
React__default.createElement(
|
|
7446
7430
|
'div',
|
|
7447
7431
|
{ className: 'mb-3' },
|
|
7448
7432
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7449
|
-
return
|
|
7433
|
+
return React__default.createElement(
|
|
7450
7434
|
'span',
|
|
7451
7435
|
{ key: index },
|
|
7452
7436
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7453
7437
|
);
|
|
7454
7438
|
})
|
|
7455
7439
|
),
|
|
7456
|
-
|
|
7440
|
+
React__default.createElement(
|
|
7457
7441
|
'p',
|
|
7458
7442
|
null,
|
|
7459
|
-
|
|
7443
|
+
React__default.createElement(SocialShare, {
|
|
7460
7444
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7461
7445
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7462
7446
|
shareVia: meta.shareVia,
|
|
@@ -7471,20 +7455,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7471
7455
|
hideFacebook: meta.hideFBShare
|
|
7472
7456
|
})
|
|
7473
7457
|
),
|
|
7474
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7458
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7475
7459
|
'p',
|
|
7476
7460
|
{ className: 'mb-3' },
|
|
7477
|
-
|
|
7461
|
+
React__default.createElement(
|
|
7478
7462
|
'em',
|
|
7479
7463
|
null,
|
|
7480
7464
|
Videos[series - 1].intro
|
|
7481
7465
|
)
|
|
7482
7466
|
)
|
|
7483
7467
|
),
|
|
7484
|
-
|
|
7468
|
+
React__default.createElement(
|
|
7485
7469
|
'div',
|
|
7486
7470
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7487
|
-
vidUrl && vidType == 'youtube' &&
|
|
7471
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7488
7472
|
className: 'fluid-iframe',
|
|
7489
7473
|
videoId: getYoutubeId(vidUrl),
|
|
7490
7474
|
opts: opts,
|
|
@@ -7495,10 +7479,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7495
7479
|
return handleOnEnd(e);
|
|
7496
7480
|
}
|
|
7497
7481
|
}),
|
|
7498
|
-
vidUrl && vidType == 'mp4' &&
|
|
7499
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7500
|
-
|
|
7501
|
-
series &&
|
|
7482
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7483
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7484
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7485
|
+
series && React__default.createElement(
|
|
7502
7486
|
'div',
|
|
7503
7487
|
{
|
|
7504
7488
|
className: 'vid-series',
|
|
@@ -7508,10 +7492,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7508
7492
|
maxHeight: '100%',
|
|
7509
7493
|
paddingBottom: '0'
|
|
7510
7494
|
} },
|
|
7511
|
-
|
|
7495
|
+
React__default.createElement(
|
|
7512
7496
|
'p',
|
|
7513
7497
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7514
|
-
|
|
7498
|
+
React__default.createElement(
|
|
7515
7499
|
'b',
|
|
7516
7500
|
{ style: { fontSize: '1.25em' } },
|
|
7517
7501
|
'Now Playing:'
|
|
@@ -7519,16 +7503,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7519
7503
|
' ',
|
|
7520
7504
|
seriesData[series ? series - 1 : 0].title
|
|
7521
7505
|
),
|
|
7522
|
-
vidUrl &&
|
|
7506
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7523
7507
|
)
|
|
7524
7508
|
),
|
|
7525
|
-
|
|
7526
|
-
|
|
7509
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7510
|
+
React__default.createElement(
|
|
7527
7511
|
'div',
|
|
7528
7512
|
{ className: 'vid-text' },
|
|
7529
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7513
|
+
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
7514
|
),
|
|
7531
|
-
|
|
7515
|
+
React__default.createElement(
|
|
7532
7516
|
'style',
|
|
7533
7517
|
{ jsx: 'true' },
|
|
7534
7518
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7536,14 +7520,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7536
7520
|
);
|
|
7537
7521
|
};
|
|
7538
7522
|
|
|
7539
|
-
var Poll
|
|
7540
|
-
var node = _ref.node
|
|
7541
|
-
_ref.client
|
|
7542
|
-
_ref.pageview
|
|
7543
|
-
_ref.videoAccountIDs
|
|
7544
|
-
|
|
7545
|
-
_ref.showVotes
|
|
7546
|
-
|
|
7523
|
+
var Poll = function Poll(_ref) {
|
|
7524
|
+
var node = _ref.node,
|
|
7525
|
+
client = _ref.client,
|
|
7526
|
+
pageview = _ref.pageview,
|
|
7527
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7528
|
+
onVote = _ref.onVote,
|
|
7529
|
+
_ref$showVotes = _ref.showVotes,
|
|
7530
|
+
getSerializers = _ref.getSerializers;
|
|
7547
7531
|
|
|
7548
7532
|
var _useState = useState(null),
|
|
7549
7533
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7581,67 +7565,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7581
7565
|
return acc;
|
|
7582
7566
|
}
|
|
7583
7567
|
}, 0);
|
|
7584
|
-
return
|
|
7585
|
-
|
|
7568
|
+
return React__default.createElement(
|
|
7569
|
+
React__default.Fragment,
|
|
7586
7570
|
null,
|
|
7587
|
-
question &&
|
|
7571
|
+
question && React__default.createElement(
|
|
7588
7572
|
'p',
|
|
7589
7573
|
{ className: 'font-weight-bold' },
|
|
7590
7574
|
question
|
|
7591
7575
|
),
|
|
7592
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7576
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7593
7577
|
'form',
|
|
7594
7578
|
{ onSubmit: function onSubmit(e) {
|
|
7595
7579
|
return onSubmitPoll(e);
|
|
7596
7580
|
} },
|
|
7597
7581
|
choices && choices.map(function (choice) {
|
|
7598
|
-
return
|
|
7582
|
+
return React__default.createElement(
|
|
7599
7583
|
'div',
|
|
7600
7584
|
{ key: choice._key },
|
|
7601
|
-
|
|
7585
|
+
React__default.createElement(
|
|
7602
7586
|
'label',
|
|
7603
7587
|
{ className: 'pl-2' },
|
|
7604
|
-
|
|
7588
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7605
7589
|
return setSelectedChoice(e.target.value);
|
|
7606
7590
|
} }),
|
|
7607
7591
|
' ' + choice.choiceText
|
|
7608
7592
|
)
|
|
7609
7593
|
);
|
|
7610
7594
|
}),
|
|
7611
|
-
|
|
7595
|
+
React__default.createElement(
|
|
7612
7596
|
Button,
|
|
7613
7597
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7614
7598
|
'Vote'
|
|
7615
7599
|
)
|
|
7616
7600
|
),
|
|
7617
|
-
|
|
7601
|
+
React__default.createElement(
|
|
7618
7602
|
'div',
|
|
7619
7603
|
{ className: 'progress-container' },
|
|
7620
7604
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7621
7605
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7622
|
-
return
|
|
7606
|
+
return React__default.createElement(
|
|
7623
7607
|
'div',
|
|
7624
7608
|
{ key: choice._key, className: 'mb-3' },
|
|
7625
|
-
|
|
7609
|
+
React__default.createElement(
|
|
7626
7610
|
'div',
|
|
7627
7611
|
{ className: 'correct-answer' },
|
|
7628
|
-
|
|
7612
|
+
React__default.createElement(
|
|
7629
7613
|
'div',
|
|
7630
7614
|
null,
|
|
7631
7615
|
choice.choiceText
|
|
7632
7616
|
),
|
|
7633
|
-
choice.choiceAnswer === true &&
|
|
7617
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7634
7618
|
'div',
|
|
7635
7619
|
null,
|
|
7636
|
-
|
|
7620
|
+
React__default.createElement(
|
|
7637
7621
|
'span',
|
|
7638
7622
|
{ style: { color: 'limegreen' } },
|
|
7639
7623
|
'Correct!'
|
|
7640
7624
|
)
|
|
7641
7625
|
)
|
|
7642
7626
|
),
|
|
7643
|
-
|
|
7644
|
-
|
|
7627
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7628
|
+
React__default.createElement(
|
|
7645
7629
|
'span',
|
|
7646
7630
|
{ className: 'float-right' },
|
|
7647
7631
|
percentage,
|
|
@@ -7652,14 +7636,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7652
7636
|
);
|
|
7653
7637
|
})
|
|
7654
7638
|
),
|
|
7655
|
-
showAnswer &&
|
|
7639
|
+
showAnswer && React__default.createElement(
|
|
7656
7640
|
'h4',
|
|
7657
7641
|
{ className: 'text-center small p-3' },
|
|
7658
7642
|
'Total Votes: ',
|
|
7659
7643
|
choicesTotalCount
|
|
7660
7644
|
),
|
|
7661
|
-
showAnswer && response &&
|
|
7662
|
-
|
|
7645
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7646
|
+
React__default.createElement(
|
|
7663
7647
|
'style',
|
|
7664
7648
|
{ jsx: 'true' },
|
|
7665
7649
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7677,22 +7661,22 @@ _export(_export.S, 'Object', {
|
|
|
7677
7661
|
}
|
|
7678
7662
|
});
|
|
7679
7663
|
|
|
7680
|
-
var values
|
|
7664
|
+
var values = _core.Object.values;
|
|
7681
7665
|
|
|
7682
|
-
var values = createCommonjsModule(function (module) {
|
|
7683
|
-
module.exports = { "default": values
|
|
7666
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7667
|
+
module.exports = { "default": values, __esModule: true };
|
|
7684
7668
|
});
|
|
7685
7669
|
|
|
7686
|
-
var _Object$values = unwrapExports(values);
|
|
7670
|
+
var _Object$values = unwrapExports(values$1);
|
|
7687
7671
|
|
|
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
|
-
|
|
7672
|
+
var Poll$1 = function Poll(_ref) {
|
|
7673
|
+
var node = _ref.node,
|
|
7674
|
+
client = _ref.client,
|
|
7675
|
+
pageview = _ref.pageview,
|
|
7676
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7677
|
+
onVote = _ref.onVote,
|
|
7678
|
+
_ref$showVotes = _ref.showVotes,
|
|
7679
|
+
getSerializers = _ref.getSerializers;
|
|
7696
7680
|
|
|
7697
7681
|
var _useState = useState(null),
|
|
7698
7682
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7758,67 +7742,67 @@ var Poll = function Poll(_ref) {
|
|
|
7758
7742
|
return acc;
|
|
7759
7743
|
}
|
|
7760
7744
|
}, 0);
|
|
7761
|
-
return
|
|
7762
|
-
|
|
7745
|
+
return React__default.createElement(
|
|
7746
|
+
React__default.Fragment,
|
|
7763
7747
|
null,
|
|
7764
|
-
question &&
|
|
7748
|
+
question && React__default.createElement(
|
|
7765
7749
|
'p',
|
|
7766
7750
|
{ className: 'font-weight-bold' },
|
|
7767
7751
|
question
|
|
7768
7752
|
),
|
|
7769
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7753
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7770
7754
|
'form',
|
|
7771
7755
|
{ onSubmit: function onSubmit(e) {
|
|
7772
7756
|
return onSubmitPoll(e);
|
|
7773
7757
|
} },
|
|
7774
7758
|
choices && choices.map(function (choice) {
|
|
7775
|
-
return
|
|
7759
|
+
return React__default.createElement(
|
|
7776
7760
|
'div',
|
|
7777
7761
|
{ key: choice._key },
|
|
7778
|
-
|
|
7762
|
+
React__default.createElement(
|
|
7779
7763
|
'label',
|
|
7780
7764
|
{ className: 'pl-2' },
|
|
7781
|
-
|
|
7765
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7782
7766
|
return setSelectedChoice(e.target.value);
|
|
7783
7767
|
} }),
|
|
7784
7768
|
' ' + choice.choiceText
|
|
7785
7769
|
)
|
|
7786
7770
|
);
|
|
7787
7771
|
}),
|
|
7788
|
-
|
|
7772
|
+
React__default.createElement(
|
|
7789
7773
|
Button,
|
|
7790
7774
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7791
7775
|
'Vote'
|
|
7792
7776
|
)
|
|
7793
7777
|
),
|
|
7794
|
-
|
|
7778
|
+
React__default.createElement(
|
|
7795
7779
|
'div',
|
|
7796
7780
|
{ className: 'progress-container' },
|
|
7797
7781
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7798
7782
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7799
|
-
return
|
|
7783
|
+
return React__default.createElement(
|
|
7800
7784
|
'div',
|
|
7801
7785
|
{ key: choice._key, className: 'mb-3' },
|
|
7802
|
-
|
|
7786
|
+
React__default.createElement(
|
|
7803
7787
|
'div',
|
|
7804
7788
|
{ className: 'correct-answer' },
|
|
7805
|
-
|
|
7789
|
+
React__default.createElement(
|
|
7806
7790
|
'div',
|
|
7807
7791
|
null,
|
|
7808
7792
|
choice.choiceText
|
|
7809
7793
|
),
|
|
7810
|
-
choice.choiceAnswer === true &&
|
|
7794
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7811
7795
|
'div',
|
|
7812
7796
|
null,
|
|
7813
|
-
|
|
7797
|
+
React__default.createElement(
|
|
7814
7798
|
'span',
|
|
7815
7799
|
{ style: { color: 'limegreen' } },
|
|
7816
7800
|
'Correct!'
|
|
7817
7801
|
)
|
|
7818
7802
|
)
|
|
7819
7803
|
),
|
|
7820
|
-
|
|
7821
|
-
|
|
7804
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7805
|
+
React__default.createElement(
|
|
7822
7806
|
'span',
|
|
7823
7807
|
{ className: 'float-right' },
|
|
7824
7808
|
percentage,
|
|
@@ -7829,14 +7813,14 @@ var Poll = function Poll(_ref) {
|
|
|
7829
7813
|
);
|
|
7830
7814
|
})
|
|
7831
7815
|
),
|
|
7832
|
-
showAnswer &&
|
|
7816
|
+
showAnswer && React__default.createElement(
|
|
7833
7817
|
'h4',
|
|
7834
7818
|
{ className: 'text-center small p-3' },
|
|
7835
7819
|
'Total Votes: ',
|
|
7836
7820
|
choicesTotalCount
|
|
7837
7821
|
),
|
|
7838
|
-
showAnswer && response &&
|
|
7839
|
-
|
|
7822
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7823
|
+
React__default.createElement(
|
|
7840
7824
|
'style',
|
|
7841
7825
|
{ jsx: 'true' },
|
|
7842
7826
|
'\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 +7828,7 @@ var Poll = function Poll(_ref) {
|
|
|
7844
7828
|
);
|
|
7845
7829
|
};
|
|
7846
7830
|
|
|
7847
|
-
var numberOfPaginations =
|
|
7831
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7848
7832
|
|
|
7849
7833
|
var Quiz = function Quiz(_ref) {
|
|
7850
7834
|
var quizzes = _ref.quizzes,
|
|
@@ -7962,34 +7946,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7962
7946
|
};
|
|
7963
7947
|
|
|
7964
7948
|
var renderPagination = function renderPagination() {
|
|
7965
|
-
return
|
|
7966
|
-
Pagination,
|
|
7967
|
-
{ className: 'p-0 m-0', size:
|
|
7968
|
-
|
|
7949
|
+
return React__default.createElement(
|
|
7950
|
+
Pagination$1,
|
|
7951
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7952
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7969
7953
|
return changePage('first');
|
|
7970
7954
|
}, disabled: currentPage === 1 }),
|
|
7971
|
-
|
|
7955
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7972
7956
|
return changePage('prev');
|
|
7973
7957
|
}, disabled: currentPage === 1 }),
|
|
7974
|
-
|
|
7958
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7975
7959
|
return renderNewPages('prev');
|
|
7976
7960
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7977
7961
|
pages.map(function (page) {
|
|
7978
|
-
return
|
|
7979
|
-
Pagination.Item,
|
|
7962
|
+
return React__default.createElement(
|
|
7963
|
+
Pagination$1.Item,
|
|
7980
7964
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7981
7965
|
return changePage(page);
|
|
7982
7966
|
} },
|
|
7983
7967
|
page
|
|
7984
7968
|
);
|
|
7985
7969
|
}),
|
|
7986
|
-
|
|
7970
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7987
7971
|
return renderNewPages('next');
|
|
7988
7972
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7989
|
-
|
|
7973
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7990
7974
|
return changePage('next');
|
|
7991
7975
|
}, disabled: currentPage === pageCount }),
|
|
7992
|
-
|
|
7976
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7993
7977
|
return changePage('last');
|
|
7994
7978
|
}, disabled: currentPage === pageCount })
|
|
7995
7979
|
);
|
|
@@ -8072,51 +8056,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8072
8056
|
}
|
|
8073
8057
|
};
|
|
8074
8058
|
|
|
8075
|
-
return
|
|
8076
|
-
|
|
8059
|
+
return React__default.createElement(
|
|
8060
|
+
React__default.Fragment,
|
|
8077
8061
|
null,
|
|
8078
|
-
quizzes[currentPage - 1] &&
|
|
8079
|
-
|
|
8062
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8063
|
+
React__default.Fragment,
|
|
8080
8064
|
null,
|
|
8081
|
-
|
|
8082
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8065
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8066
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8083
8067
|
'form',
|
|
8084
8068
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8085
8069
|
return e.preventDefault();
|
|
8086
8070
|
} },
|
|
8087
8071
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8088
|
-
return
|
|
8072
|
+
return React__default.createElement(
|
|
8089
8073
|
'div',
|
|
8090
8074
|
{ key: answer._key },
|
|
8091
|
-
|
|
8075
|
+
React__default.createElement(
|
|
8092
8076
|
'label',
|
|
8093
8077
|
{ className: 'pl-2' },
|
|
8094
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8078
|
+
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
8079
|
' ' + answer.answerText
|
|
8096
8080
|
)
|
|
8097
8081
|
);
|
|
8098
8082
|
})
|
|
8099
8083
|
)
|
|
8100
8084
|
),
|
|
8101
|
-
!showAnswer &&
|
|
8085
|
+
!showAnswer && React__default.createElement(
|
|
8102
8086
|
Button$1,
|
|
8103
8087
|
{ onClick: function onClick() {
|
|
8104
8088
|
return checkAnswers();
|
|
8105
8089
|
}, variant: 'info', block: true },
|
|
8106
8090
|
'Please click here for answer'
|
|
8107
8091
|
),
|
|
8108
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8109
|
-
|
|
8092
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8093
|
+
React__default.Fragment,
|
|
8110
8094
|
null,
|
|
8111
|
-
|
|
8095
|
+
React__default.createElement(
|
|
8112
8096
|
'h4',
|
|
8113
8097
|
null,
|
|
8114
8098
|
'Answer:'
|
|
8115
8099
|
),
|
|
8116
|
-
quizzes[currentPage - 1].answer &&
|
|
8100
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8117
8101
|
),
|
|
8118
|
-
|
|
8119
|
-
pageCount > 1 &&
|
|
8102
|
+
React__default.createElement('br', null),
|
|
8103
|
+
pageCount > 1 && React__default.createElement(
|
|
8120
8104
|
'div',
|
|
8121
8105
|
{ className: 'd-flex justify-content-center' },
|
|
8122
8106
|
renderPagination()
|
|
@@ -8127,19 +8111,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8127
8111
|
var Leads = function Leads(_ref) {
|
|
8128
8112
|
var url = _ref.url;
|
|
8129
8113
|
|
|
8130
|
-
return
|
|
8114
|
+
return React__default.createElement(
|
|
8131
8115
|
'div',
|
|
8132
8116
|
{ className: 'd-block text-center mb-3' },
|
|
8133
|
-
|
|
8117
|
+
React__default.createElement(
|
|
8134
8118
|
'style',
|
|
8135
8119
|
{ jsx: 'true' },
|
|
8136
8120
|
'\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
8121
|
),
|
|
8138
|
-
url &&
|
|
8122
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8139
8123
|
);
|
|
8140
8124
|
};
|
|
8141
8125
|
|
|
8142
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8126
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8143
8127
|
var slides = _ref.node.slides,
|
|
8144
8128
|
client = _ref.client,
|
|
8145
8129
|
pageview = _ref.pageview,
|
|
@@ -8175,53 +8159,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8175
8159
|
setCarouselIndex(selectedIndex);
|
|
8176
8160
|
};
|
|
8177
8161
|
|
|
8178
|
-
return
|
|
8162
|
+
return React__default.createElement(
|
|
8179
8163
|
'div',
|
|
8180
8164
|
{ className: 'mt-3 mb-4' },
|
|
8181
|
-
|
|
8165
|
+
React__default.createElement(
|
|
8182
8166
|
Carousel,
|
|
8183
8167
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8184
8168
|
slides && slides.map(function (slide) {
|
|
8185
8169
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8186
|
-
return
|
|
8170
|
+
return React__default.createElement(
|
|
8187
8171
|
Carousel.Item,
|
|
8188
8172
|
{ key: slide._key },
|
|
8189
|
-
|
|
8173
|
+
React__default.createElement(
|
|
8190
8174
|
'a',
|
|
8191
8175
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8192
|
-
|
|
8176
|
+
React__default.createElement(
|
|
8193
8177
|
'div',
|
|
8194
8178
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8195
|
-
|
|
8179
|
+
React__default.createElement(
|
|
8196
8180
|
LazyLoad,
|
|
8197
8181
|
null,
|
|
8198
|
-
|
|
8182
|
+
React__default.createElement(
|
|
8199
8183
|
'picture',
|
|
8200
8184
|
null,
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8185
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8186
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8187
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8188
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8205
8189
|
)
|
|
8206
8190
|
)
|
|
8207
8191
|
)
|
|
8208
8192
|
),
|
|
8209
|
-
|
|
8193
|
+
React__default.createElement(
|
|
8210
8194
|
'div',
|
|
8211
8195
|
{ className: 'p-2' },
|
|
8212
|
-
slide.slideshowImage.caption &&
|
|
8196
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8213
8197
|
'h3',
|
|
8214
8198
|
{ style: { padding: '0px' } },
|
|
8215
8199
|
slide.slideshowImage.caption
|
|
8216
8200
|
),
|
|
8217
|
-
slide.description &&
|
|
8201
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8218
8202
|
)
|
|
8219
8203
|
);
|
|
8220
8204
|
}
|
|
8221
8205
|
return null;
|
|
8222
8206
|
})
|
|
8223
8207
|
),
|
|
8224
|
-
|
|
8208
|
+
React__default.createElement(
|
|
8225
8209
|
'style',
|
|
8226
8210
|
{ jsx: 'true' },
|
|
8227
8211
|
'\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 +8224,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8240
8224
|
sizes = _props$node.sizes,
|
|
8241
8225
|
sizeMapping = _props$node.sizeMapping;
|
|
8242
8226
|
|
|
8243
|
-
return
|
|
8227
|
+
return React__default.createElement(
|
|
8244
8228
|
'div',
|
|
8245
8229
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8246
|
-
|
|
8230
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8247
8231
|
);
|
|
8248
8232
|
};
|
|
8249
8233
|
|
|
@@ -8254,15 +8238,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8254
8238
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8255
8239
|
|
|
8256
8240
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8257
|
-
return
|
|
8241
|
+
return React__default.createElement(
|
|
8258
8242
|
'section',
|
|
8259
8243
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8260
|
-
Caption &&
|
|
8244
|
+
Caption && React__default.createElement(
|
|
8261
8245
|
'h4',
|
|
8262
8246
|
{ className: 'formstack-caption' },
|
|
8263
8247
|
Caption
|
|
8264
8248
|
),
|
|
8265
|
-
|
|
8249
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8266
8250
|
);
|
|
8267
8251
|
};
|
|
8268
8252
|
|
|
@@ -8278,36 +8262,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8278
8262
|
}
|
|
8279
8263
|
});
|
|
8280
8264
|
if (medias && medias.length > 0) {
|
|
8281
|
-
return
|
|
8265
|
+
return React__default.createElement(
|
|
8282
8266
|
'div',
|
|
8283
8267
|
{ className: 'multi-media-container' },
|
|
8284
|
-
|
|
8268
|
+
React__default.createElement(
|
|
8285
8269
|
Row$1,
|
|
8286
8270
|
{ noGutters: true },
|
|
8287
8271
|
medias.map(function (media) {
|
|
8288
|
-
return
|
|
8272
|
+
return React__default.createElement(
|
|
8289
8273
|
Col$1,
|
|
8290
8274
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8291
|
-
|
|
8275
|
+
React__default.createElement(
|
|
8292
8276
|
'a',
|
|
8293
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8277
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8294
8278
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8295
|
-
|
|
8279
|
+
React__default.createElement(
|
|
8296
8280
|
'div',
|
|
8297
8281
|
{ className: 'multi-media-image-container' },
|
|
8298
|
-
imageBox &&
|
|
8282
|
+
imageBox && React__default.createElement(
|
|
8299
8283
|
LazyLoad,
|
|
8300
8284
|
{ once: true },
|
|
8301
|
-
|
|
8285
|
+
React__default.createElement(
|
|
8302
8286
|
'picture',
|
|
8303
8287
|
null,
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8288
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8289
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8290
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8291
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8308
8292
|
)
|
|
8309
8293
|
),
|
|
8310
|
-
media.caption &&
|
|
8294
|
+
media.caption && React__default.createElement(
|
|
8311
8295
|
'span',
|
|
8312
8296
|
{ className: 'multi-media-caption' },
|
|
8313
8297
|
media.caption
|
|
@@ -8317,7 +8301,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8317
8301
|
);
|
|
8318
8302
|
})
|
|
8319
8303
|
),
|
|
8320
|
-
|
|
8304
|
+
React__default.createElement(
|
|
8321
8305
|
'style',
|
|
8322
8306
|
{ jsx: 'true' },
|
|
8323
8307
|
'\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 +8348,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8364
8348
|
}
|
|
8365
8349
|
};
|
|
8366
8350
|
|
|
8367
|
-
_this.wraperRef =
|
|
8351
|
+
_this.wraperRef = React__default.createRef();
|
|
8368
8352
|
_this.visible = false;
|
|
8369
8353
|
return _this;
|
|
8370
8354
|
}
|
|
@@ -8392,7 +8376,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8392
8376
|
_props$id = _props.id,
|
|
8393
8377
|
id = _props$id === undefined ? '' : _props$id;
|
|
8394
8378
|
|
|
8395
|
-
return
|
|
8379
|
+
return React__default.createElement(
|
|
8396
8380
|
'div',
|
|
8397
8381
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8398
8382
|
this.props.children
|
|
@@ -8401,7 +8385,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8401
8385
|
}]);
|
|
8402
8386
|
|
|
8403
8387
|
return InscreenSensor;
|
|
8404
|
-
}(
|
|
8388
|
+
}(React__default.Component);
|
|
8405
8389
|
|
|
8406
8390
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8407
8391
|
var nodes = _ref.nodes,
|
|
@@ -8510,33 +8494,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8510
8494
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8511
8495
|
var showReading = show ? 'showReading' : '';
|
|
8512
8496
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8513
|
-
return
|
|
8497
|
+
return React__default.createElement(
|
|
8514
8498
|
'div',
|
|
8515
8499
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8516
|
-
|
|
8500
|
+
React__default.createElement(
|
|
8517
8501
|
'a',
|
|
8518
8502
|
{ onClick: function onClick(e) {
|
|
8519
8503
|
return articleCardClickHandler(e);
|
|
8520
8504
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8521
|
-
|
|
8505
|
+
React__default.createElement(
|
|
8522
8506
|
'div',
|
|
8523
8507
|
{ className: 'prevNext-thumbnail' },
|
|
8524
|
-
|
|
8525
|
-
|
|
8508
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8509
|
+
React__default.createElement(
|
|
8526
8510
|
'div',
|
|
8527
8511
|
{ className: 'prevNext-reading ' + showReading },
|
|
8528
8512
|
articleLabel
|
|
8529
8513
|
)
|
|
8530
8514
|
),
|
|
8531
|
-
|
|
8515
|
+
React__default.createElement(
|
|
8532
8516
|
'div',
|
|
8533
8517
|
{ className: 'prevNext-summary' },
|
|
8534
|
-
|
|
8518
|
+
React__default.createElement(
|
|
8535
8519
|
'div',
|
|
8536
8520
|
{ className: 'prevNext-publishDate' },
|
|
8537
8521
|
moment(article.published).format('LL')
|
|
8538
8522
|
),
|
|
8539
|
-
|
|
8523
|
+
React__default.createElement(
|
|
8540
8524
|
'h2',
|
|
8541
8525
|
{ className: 'prevNext-title' },
|
|
8542
8526
|
article.title
|
|
@@ -8585,7 +8569,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8585
8569
|
|
|
8586
8570
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8587
8571
|
if (biography) {
|
|
8588
|
-
return
|
|
8572
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8589
8573
|
}
|
|
8590
8574
|
};
|
|
8591
8575
|
|
|
@@ -8671,7 +8655,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8671
8655
|
//console.log('useLayoutEffect')
|
|
8672
8656
|
if (!firstLoad) {
|
|
8673
8657
|
setUpArrowClicked(false);
|
|
8674
|
-
if (
|
|
8658
|
+
if (main_36) {
|
|
8675
8659
|
grabLoadedAds();
|
|
8676
8660
|
} else {
|
|
8677
8661
|
scrollToArticle();
|
|
@@ -8695,7 +8679,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8695
8679
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8696
8680
|
if (pageview) pageview(path);
|
|
8697
8681
|
|
|
8698
|
-
if (!
|
|
8682
|
+
if (!main_36) {
|
|
8699
8683
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8700
8684
|
if (window.googletag && googletag.pubadsReady) {
|
|
8701
8685
|
lib_3.refresh();
|
|
@@ -8703,7 +8687,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8703
8687
|
});
|
|
8704
8688
|
}
|
|
8705
8689
|
//Refresh leaderboard ad on mobile
|
|
8706
|
-
if (
|
|
8690
|
+
if (main_36) {
|
|
8707
8691
|
var leaderboardSlotId = '';
|
|
8708
8692
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8709
8693
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8743,38 +8727,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8743
8727
|
setSensorVisible(false);
|
|
8744
8728
|
};
|
|
8745
8729
|
|
|
8746
|
-
return
|
|
8747
|
-
|
|
8730
|
+
return React__default.createElement(
|
|
8731
|
+
React__default.Fragment,
|
|
8748
8732
|
null,
|
|
8749
|
-
|
|
8733
|
+
React__default.createElement(
|
|
8750
8734
|
'div',
|
|
8751
8735
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8752
|
-
|
|
8736
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8753
8737
|
return handleArrowClick();
|
|
8754
8738
|
} })
|
|
8755
8739
|
),
|
|
8756
|
-
|
|
8757
|
-
|
|
8740
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8741
|
+
React__default.createElement(
|
|
8758
8742
|
'div',
|
|
8759
8743
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8760
|
-
|
|
8744
|
+
React__default.createElement(
|
|
8761
8745
|
'h5',
|
|
8762
8746
|
{ className: 'objective-title' },
|
|
8763
8747
|
nodes.seriesTitle
|
|
8764
8748
|
),
|
|
8765
|
-
|
|
8749
|
+
React__default.createElement(
|
|
8766
8750
|
'div',
|
|
8767
8751
|
{ className: 'prevNextWrapper' },
|
|
8768
8752
|
PrevNextCards(false, -1)
|
|
8769
8753
|
)
|
|
8770
8754
|
),
|
|
8771
|
-
|
|
8772
|
-
|
|
8755
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8756
|
+
React__default.createElement(
|
|
8773
8757
|
'div',
|
|
8774
8758
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8775
|
-
|
|
8759
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8776
8760
|
if (index === 0) {
|
|
8777
|
-
return
|
|
8761
|
+
return React__default.createElement(
|
|
8778
8762
|
'div',
|
|
8779
8763
|
{
|
|
8780
8764
|
key: 'addid-1',
|
|
@@ -8794,14 +8778,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8794
8778
|
}
|
|
8795
8779
|
})
|
|
8796
8780
|
),
|
|
8797
|
-
|
|
8781
|
+
React__default.createElement(
|
|
8798
8782
|
'div',
|
|
8799
8783
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8800
8784
|
Articles.map(function (article, index) {
|
|
8801
|
-
return
|
|
8785
|
+
return React__default.createElement(
|
|
8802
8786
|
'div',
|
|
8803
8787
|
{ key: article.title },
|
|
8804
|
-
|
|
8788
|
+
React__default.createElement(
|
|
8805
8789
|
InscreenSensor,
|
|
8806
8790
|
{
|
|
8807
8791
|
visible: sensorVisible,
|
|
@@ -8819,84 +8803,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8819
8803
|
}
|
|
8820
8804
|
}
|
|
8821
8805
|
} },
|
|
8822
|
-
|
|
8806
|
+
React__default.createElement(
|
|
8823
8807
|
Head,
|
|
8824
8808
|
null,
|
|
8825
|
-
currentTitle !== null &&
|
|
8809
|
+
currentTitle !== null && React__default.createElement(
|
|
8826
8810
|
'title',
|
|
8827
8811
|
{ key: 'title' },
|
|
8828
8812
|
currentTitle
|
|
8829
8813
|
),
|
|
8830
|
-
currentSummary !== null &&
|
|
8831
|
-
currentURL !== null &&
|
|
8832
|
-
currentTitle !== null &&
|
|
8833
|
-
currentThumbnail !== null &&
|
|
8834
|
-
currentSummary !== null &&
|
|
8835
|
-
currentTitle !== null &&
|
|
8836
|
-
currentThumbnail !== null &&
|
|
8837
|
-
currentSummary !== null &&
|
|
8814
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8815
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8816
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8817
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8818
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8819
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8820
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8821
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8838
8822
|
),
|
|
8839
|
-
|
|
8823
|
+
React__default.createElement(
|
|
8840
8824
|
'article',
|
|
8841
8825
|
{ className: 'article-wrapper' },
|
|
8842
|
-
|
|
8826
|
+
React__default.createElement(
|
|
8843
8827
|
'div',
|
|
8844
8828
|
{ className: 'article-publishDate' },
|
|
8845
8829
|
moment(article.published).format('LL')
|
|
8846
8830
|
),
|
|
8847
|
-
|
|
8831
|
+
React__default.createElement(
|
|
8848
8832
|
'div',
|
|
8849
8833
|
{ className: 'author-details-wrapper' },
|
|
8850
8834
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8851
|
-
return
|
|
8835
|
+
return React__default.createElement(
|
|
8852
8836
|
'span',
|
|
8853
8837
|
{ key: index },
|
|
8854
8838
|
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
8839
|
);
|
|
8856
8840
|
})
|
|
8857
8841
|
),
|
|
8858
|
-
|
|
8842
|
+
React__default.createElement(
|
|
8859
8843
|
'h2',
|
|
8860
8844
|
{ className: 'article-title' },
|
|
8861
8845
|
article.title
|
|
8862
8846
|
),
|
|
8863
|
-
|
|
8847
|
+
React__default.createElement(
|
|
8864
8848
|
'div',
|
|
8865
8849
|
{ className: 'mt-2 mb-2' },
|
|
8866
|
-
|
|
8850
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8867
8851
|
serializers: getSerializers,
|
|
8868
8852
|
videoAccountIDs: accountIDs,
|
|
8869
8853
|
blocks: article.text,
|
|
8870
8854
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8871
8855
|
}, client.config())),
|
|
8872
|
-
|
|
8856
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8873
8857
|
),
|
|
8874
|
-
Articles.length > 1 &&
|
|
8875
|
-
|
|
8858
|
+
Articles.length > 1 && React__default.createElement(
|
|
8859
|
+
React__default.Fragment,
|
|
8876
8860
|
null,
|
|
8877
|
-
|
|
8861
|
+
React__default.createElement(
|
|
8878
8862
|
'div',
|
|
8879
8863
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8880
|
-
|
|
8864
|
+
React__default.createElement(
|
|
8881
8865
|
'h5',
|
|
8882
8866
|
{ className: 'objective-title' },
|
|
8883
8867
|
nodes.seriesTitle
|
|
8884
8868
|
),
|
|
8885
|
-
|
|
8869
|
+
React__default.createElement(
|
|
8886
8870
|
'div',
|
|
8887
8871
|
{ className: 'prevNextWrapper' },
|
|
8888
8872
|
PrevNextCards(true, index)
|
|
8889
8873
|
)
|
|
8890
8874
|
),
|
|
8891
|
-
|
|
8875
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8892
8876
|
)
|
|
8893
8877
|
),
|
|
8894
|
-
|
|
8878
|
+
React__default.createElement(
|
|
8895
8879
|
'div',
|
|
8896
8880
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8897
|
-
|
|
8881
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8898
8882
|
if (innerIndex === 0) {
|
|
8899
|
-
return
|
|
8883
|
+
return React__default.createElement(
|
|
8900
8884
|
'div',
|
|
8901
8885
|
{
|
|
8902
8886
|
key: 'addid-' + (index + 2),
|
|
@@ -8919,7 +8903,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8919
8903
|
)
|
|
8920
8904
|
);
|
|
8921
8905
|
}),
|
|
8922
|
-
|
|
8906
|
+
React__default.createElement(
|
|
8923
8907
|
'style',
|
|
8924
8908
|
{ jsx: 'true' },
|
|
8925
8909
|
'\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 +8933,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8949
8933
|
};
|
|
8950
8934
|
}, [handleClickOutside]);
|
|
8951
8935
|
|
|
8952
|
-
return
|
|
8936
|
+
return React__default.createElement(
|
|
8953
8937
|
'div',
|
|
8954
8938
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8955
|
-
|
|
8956
|
-
|
|
8939
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8940
|
+
React__default.createElement(
|
|
8957
8941
|
'style',
|
|
8958
8942
|
{ jsx: 'true' },
|
|
8959
8943
|
'\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 +8951,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8967
8951
|
}
|
|
8968
8952
|
};
|
|
8969
8953
|
|
|
8970
|
-
var FigureImage
|
|
8954
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8971
8955
|
var node = _ref2.node,
|
|
8972
8956
|
client = _ref2.client,
|
|
8973
8957
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8975,13 +8959,13 @@ var FigureImage$1 = React.memo(function (_ref2) {
|
|
|
8975
8959
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8976
8960
|
|
|
8977
8961
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8978
|
-
return
|
|
8962
|
+
return React__default.createElement(
|
|
8979
8963
|
'picture',
|
|
8980
8964
|
null,
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8965
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8966
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8967
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8968
|
+
React__default.createElement('img', _extends$1({
|
|
8985
8969
|
style: figureImageStyle,
|
|
8986
8970
|
className: 'figure-image',
|
|
8987
8971
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9032,30 +9016,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9032
9016
|
|
|
9033
9017
|
var renderTooltip = function renderTooltip(props) {
|
|
9034
9018
|
if (infoBox[0].title) {
|
|
9035
|
-
return
|
|
9036
|
-
Popover,
|
|
9019
|
+
return React__default.createElement(
|
|
9020
|
+
Popover$1,
|
|
9037
9021
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9038
|
-
|
|
9039
|
-
Popover.Title,
|
|
9022
|
+
React__default.createElement(
|
|
9023
|
+
Popover$1.Title,
|
|
9040
9024
|
{ as: 'h3' },
|
|
9041
9025
|
infoBox[0].title
|
|
9042
9026
|
),
|
|
9043
|
-
|
|
9044
|
-
Popover.Content,
|
|
9027
|
+
React__default.createElement(
|
|
9028
|
+
Popover$1.Content,
|
|
9045
9029
|
null,
|
|
9046
|
-
|
|
9030
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9047
9031
|
)
|
|
9048
9032
|
);
|
|
9049
9033
|
} else {
|
|
9050
|
-
return
|
|
9051
|
-
Tooltip,
|
|
9052
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9053
|
-
|
|
9034
|
+
return React__default.createElement(
|
|
9035
|
+
Tooltip$1,
|
|
9036
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9037
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9054
9038
|
);
|
|
9055
9039
|
}
|
|
9056
9040
|
};
|
|
9057
9041
|
|
|
9058
|
-
var FigureImageWOverLay =
|
|
9042
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9059
9043
|
var node = _ref3.node,
|
|
9060
9044
|
client = _ref3.client,
|
|
9061
9045
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9063,32 +9047,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9063
9047
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9064
9048
|
|
|
9065
9049
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9066
|
-
var triggerAction =
|
|
9067
|
-
var placementLocation =
|
|
9068
|
-
return
|
|
9050
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9051
|
+
var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9052
|
+
return React__default.createElement(
|
|
9069
9053
|
'picture',
|
|
9070
9054
|
null,
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9055
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9056
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9057
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9058
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9075
9059
|
style: figureImageStyle,
|
|
9076
9060
|
className: 'figure-image',
|
|
9077
9061
|
src: urlFor({ source: node, client: client }),
|
|
9078
9062
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9079
|
-
}, !link && !
|
|
9063
|
+
}, !link && !main_35 && {
|
|
9080
9064
|
onClick: function onClick() {
|
|
9081
9065
|
return handleClickFigure(node, client);
|
|
9082
9066
|
}
|
|
9083
|
-
})) :
|
|
9067
|
+
})) : React__default.createElement(
|
|
9084
9068
|
OverlayTrigger,
|
|
9085
9069
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9086
|
-
|
|
9070
|
+
React__default.createElement('img', _extends$1({
|
|
9087
9071
|
style: figureImageStyle,
|
|
9088
9072
|
className: 'figure-image',
|
|
9089
9073
|
src: urlFor({ source: node, client: client }),
|
|
9090
9074
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9091
|
-
}, !link && !
|
|
9075
|
+
}, !link && !main_35 && {
|
|
9092
9076
|
onClick: function onClick() {
|
|
9093
9077
|
return handleClickFigure(node, client);
|
|
9094
9078
|
}
|
|
@@ -9137,13 +9121,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9137
9121
|
|
|
9138
9122
|
var FigureCaption = useCallback(function () {
|
|
9139
9123
|
if (imgcaption && imgcaption.length > 0) {
|
|
9140
|
-
return
|
|
9124
|
+
return React__default.createElement(
|
|
9141
9125
|
'div',
|
|
9142
9126
|
{ className: 'figure-caption' },
|
|
9143
|
-
|
|
9127
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9144
9128
|
);
|
|
9145
9129
|
} else if (caption) {
|
|
9146
|
-
return
|
|
9130
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9147
9131
|
} else return null;
|
|
9148
9132
|
}, [caption, imgcaption]);
|
|
9149
9133
|
|
|
@@ -9160,24 +9144,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9160
9144
|
setShowLightbox(true);
|
|
9161
9145
|
}, [node, client]);
|
|
9162
9146
|
|
|
9163
|
-
return
|
|
9164
|
-
|
|
9147
|
+
return React__default.createElement(
|
|
9148
|
+
React__default.Fragment,
|
|
9165
9149
|
null,
|
|
9166
|
-
infoBox.length >= 1 ?
|
|
9167
|
-
Figure$
|
|
9150
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9151
|
+
Figure$1$1,
|
|
9168
9152
|
{ className: '' + class_name, style: figureStyle },
|
|
9169
|
-
link ?
|
|
9153
|
+
link ? React__default.createElement(
|
|
9170
9154
|
'a',
|
|
9171
9155
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
) :
|
|
9175
|
-
|
|
9156
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9157
|
+
React__default.createElement(FigureCaption, null)
|
|
9158
|
+
) : React__default.createElement(
|
|
9159
|
+
React__default.Fragment,
|
|
9176
9160
|
null,
|
|
9177
|
-
|
|
9178
|
-
|
|
9161
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9162
|
+
React__default.createElement(FigureCaption, null)
|
|
9179
9163
|
),
|
|
9180
|
-
|
|
9164
|
+
React__default.createElement(LightBox, {
|
|
9181
9165
|
showLightbox: showLightbox,
|
|
9182
9166
|
lightboxImgSrc: lightboxImgSrc,
|
|
9183
9167
|
closeLightbox: function closeLightbox() {
|
|
@@ -9185,21 +9169,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9185
9169
|
setShowLightbox(false);
|
|
9186
9170
|
}
|
|
9187
9171
|
})
|
|
9188
|
-
) :
|
|
9189
|
-
Figure$
|
|
9172
|
+
) : React__default.createElement(
|
|
9173
|
+
Figure$1$1,
|
|
9190
9174
|
{ className: '' + class_name, style: figureStyle },
|
|
9191
|
-
link ?
|
|
9175
|
+
link ? React__default.createElement(
|
|
9192
9176
|
'a',
|
|
9193
9177
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
) :
|
|
9197
|
-
|
|
9178
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9179
|
+
React__default.createElement(FigureCaption, null)
|
|
9180
|
+
) : React__default.createElement(
|
|
9181
|
+
React__default.Fragment,
|
|
9198
9182
|
null,
|
|
9199
|
-
|
|
9200
|
-
|
|
9183
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9184
|
+
React__default.createElement(FigureCaption, null)
|
|
9201
9185
|
),
|
|
9202
|
-
|
|
9186
|
+
React__default.createElement(LightBox, {
|
|
9203
9187
|
showLightbox: showLightbox,
|
|
9204
9188
|
lightboxImgSrc: lightboxImgSrc,
|
|
9205
9189
|
closeLightbox: function closeLightbox() {
|
|
@@ -9208,7 +9192,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9208
9192
|
}
|
|
9209
9193
|
})
|
|
9210
9194
|
),
|
|
9211
|
-
|
|
9195
|
+
React__default.createElement(
|
|
9212
9196
|
'style',
|
|
9213
9197
|
{ jsx: 'true' },
|
|
9214
9198
|
'\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 +9200,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9216
9200
|
);
|
|
9217
9201
|
};
|
|
9218
9202
|
|
|
9219
|
-
var Figure =
|
|
9203
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9220
9204
|
|
|
9221
9205
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9222
9206
|
useEffect(function () {
|
|
@@ -9233,7 +9217,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9233
9217
|
}, [ref]);
|
|
9234
9218
|
}
|
|
9235
9219
|
|
|
9236
|
-
var FigureImage =
|
|
9220
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9237
9221
|
var imagesCount = _ref.imagesCount,
|
|
9238
9222
|
image = _ref.image,
|
|
9239
9223
|
client = _ref.client,
|
|
@@ -9241,13 +9225,13 @@ var FigureImage = React.memo(function (_ref) {
|
|
|
9241
9225
|
link = _ref.link,
|
|
9242
9226
|
handleClickFigure = _ref.handleClickFigure;
|
|
9243
9227
|
|
|
9244
|
-
return
|
|
9228
|
+
return React__default.createElement(
|
|
9245
9229
|
'picture',
|
|
9246
9230
|
null,
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9231
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9232
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9233
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9234
|
+
React__default.createElement('img', _extends$1({
|
|
9251
9235
|
'images-count': imagesCount,
|
|
9252
9236
|
className: 'multi-figure-image',
|
|
9253
9237
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9284,13 +9268,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9284
9268
|
imgcaption = _ref2.imgcaption;
|
|
9285
9269
|
|
|
9286
9270
|
if (imgcaption && imgcaption.length > 0) {
|
|
9287
|
-
return
|
|
9271
|
+
return React__default.createElement(
|
|
9288
9272
|
'div',
|
|
9289
9273
|
{ className: 'multi-figure-caption' },
|
|
9290
|
-
|
|
9274
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9291
9275
|
);
|
|
9292
9276
|
} else if (caption) {
|
|
9293
|
-
return
|
|
9277
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9294
9278
|
} else return null;
|
|
9295
9279
|
};
|
|
9296
9280
|
|
|
@@ -9299,7 +9283,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9299
9283
|
setOpenImg(true);
|
|
9300
9284
|
}, [client]);
|
|
9301
9285
|
|
|
9302
|
-
var FigureImageWOverLay =
|
|
9286
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9303
9287
|
var imagesCount = _ref3.imagesCount,
|
|
9304
9288
|
image = _ref3.image,
|
|
9305
9289
|
client = _ref3.client,
|
|
@@ -9307,32 +9291,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9307
9291
|
link = _ref3.link,
|
|
9308
9292
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9309
9293
|
|
|
9310
|
-
var triggerAction =
|
|
9311
|
-
var placementLocation =
|
|
9312
|
-
return
|
|
9294
|
+
var triggerAction = main_35 ? 'click' : 'hover';
|
|
9295
|
+
var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9296
|
+
return React__default.createElement(
|
|
9313
9297
|
'picture',
|
|
9314
9298
|
null,
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9299
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9300
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9301
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9302
|
+
main_35 && link ? React__default.createElement('img', _extends$1({
|
|
9319
9303
|
'images-count': imagesCount,
|
|
9320
9304
|
className: 'multi-figure-image',
|
|
9321
9305
|
src: urlFor({ source: image, client: client }),
|
|
9322
9306
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9323
|
-
}, !link && !
|
|
9307
|
+
}, !link && !main_35 && {
|
|
9324
9308
|
onClick: function onClick() {
|
|
9325
9309
|
return handleClickFigure(image, client);
|
|
9326
9310
|
}
|
|
9327
|
-
})) :
|
|
9311
|
+
})) : React__default.createElement(
|
|
9328
9312
|
OverlayTrigger,
|
|
9329
9313
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9330
|
-
|
|
9314
|
+
React__default.createElement('img', _extends$1({
|
|
9331
9315
|
'images-count': imagesCount,
|
|
9332
9316
|
className: 'multi-figure-image',
|
|
9333
9317
|
src: urlFor({ source: image, client: client }),
|
|
9334
9318
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9335
|
-
}, !link && !
|
|
9319
|
+
}, !link && !main_35 && {
|
|
9336
9320
|
onClick: function onClick() {
|
|
9337
9321
|
return handleClickFigure(image, client);
|
|
9338
9322
|
}
|
|
@@ -9343,102 +9327,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9343
9327
|
|
|
9344
9328
|
var renderTooltip = function renderTooltip(image) {
|
|
9345
9329
|
if (image.infoBox[0].title) {
|
|
9346
|
-
return
|
|
9347
|
-
Popover,
|
|
9330
|
+
return React__default.createElement(
|
|
9331
|
+
Popover$1,
|
|
9348
9332
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9349
|
-
|
|
9350
|
-
Popover.Title,
|
|
9333
|
+
React__default.createElement(
|
|
9334
|
+
Popover$1.Title,
|
|
9351
9335
|
{ as: 'h3' },
|
|
9352
9336
|
image.infoBox[0].title
|
|
9353
9337
|
),
|
|
9354
|
-
|
|
9355
|
-
Popover.Content,
|
|
9338
|
+
React__default.createElement(
|
|
9339
|
+
Popover$1.Content,
|
|
9356
9340
|
null,
|
|
9357
|
-
|
|
9341
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9358
9342
|
)
|
|
9359
9343
|
);
|
|
9360
9344
|
} else {
|
|
9361
|
-
return
|
|
9362
|
-
Tooltip,
|
|
9363
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9364
|
-
|
|
9345
|
+
return React__default.createElement(
|
|
9346
|
+
Tooltip$1,
|
|
9347
|
+
_extends$1({ id: 'button-tooltip' }, props),
|
|
9348
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9365
9349
|
);
|
|
9366
9350
|
}
|
|
9367
9351
|
};
|
|
9368
9352
|
|
|
9369
9353
|
if (images && images.length > 0) {
|
|
9370
|
-
return
|
|
9354
|
+
return React__default.createElement(
|
|
9371
9355
|
'div',
|
|
9372
9356
|
{ className: 'multi-figure-container' },
|
|
9373
|
-
|
|
9357
|
+
React__default.createElement(
|
|
9374
9358
|
Row$1,
|
|
9375
9359
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9376
9360
|
images.map(function (image, index) {
|
|
9377
9361
|
if (image.infoBox) {
|
|
9378
|
-
return
|
|
9362
|
+
return React__default.createElement(
|
|
9379
9363
|
Col$1,
|
|
9380
9364
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9381
|
-
image.link ?
|
|
9365
|
+
image.link ? React__default.createElement(
|
|
9382
9366
|
'a',
|
|
9383
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9384
|
-
|
|
9367
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9368
|
+
React__default.createElement(
|
|
9385
9369
|
'div',
|
|
9386
9370
|
{ className: 'multi-figure-image-container' },
|
|
9387
|
-
|
|
9371
|
+
React__default.createElement(
|
|
9388
9372
|
LazyLoad,
|
|
9389
9373
|
{ once: true },
|
|
9390
|
-
|
|
9374
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9391
9375
|
),
|
|
9392
|
-
|
|
9376
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9393
9377
|
)
|
|
9394
|
-
) :
|
|
9378
|
+
) : React__default.createElement(
|
|
9395
9379
|
'div',
|
|
9396
9380
|
{ className: 'multi-figure-image-container' },
|
|
9397
|
-
|
|
9381
|
+
React__default.createElement(
|
|
9398
9382
|
LazyLoad,
|
|
9399
9383
|
{ once: true },
|
|
9400
|
-
|
|
9384
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9401
9385
|
),
|
|
9402
|
-
|
|
9386
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9403
9387
|
)
|
|
9404
9388
|
);
|
|
9405
9389
|
} else {
|
|
9406
|
-
return
|
|
9390
|
+
return React__default.createElement(
|
|
9407
9391
|
Col$1,
|
|
9408
9392
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9409
|
-
image.link ?
|
|
9393
|
+
image.link ? React__default.createElement(
|
|
9410
9394
|
'a',
|
|
9411
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9412
|
-
|
|
9395
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9396
|
+
React__default.createElement(
|
|
9413
9397
|
'div',
|
|
9414
9398
|
{ className: 'multi-figure-image-container' },
|
|
9415
|
-
|
|
9399
|
+
React__default.createElement(
|
|
9416
9400
|
LazyLoad,
|
|
9417
9401
|
{ once: true },
|
|
9418
|
-
|
|
9402
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9419
9403
|
),
|
|
9420
|
-
|
|
9404
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9421
9405
|
)
|
|
9422
|
-
) :
|
|
9406
|
+
) : React__default.createElement(
|
|
9423
9407
|
'div',
|
|
9424
9408
|
{ className: 'multi-figure-image-container' },
|
|
9425
|
-
|
|
9409
|
+
React__default.createElement(
|
|
9426
9410
|
LazyLoad,
|
|
9427
9411
|
{ once: true },
|
|
9428
|
-
|
|
9412
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9429
9413
|
),
|
|
9430
|
-
|
|
9414
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9431
9415
|
)
|
|
9432
9416
|
);
|
|
9433
9417
|
}
|
|
9434
9418
|
})
|
|
9435
9419
|
),
|
|
9436
|
-
|
|
9420
|
+
React__default.createElement(
|
|
9437
9421
|
'div',
|
|
9438
9422
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9439
|
-
|
|
9423
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9440
9424
|
),
|
|
9441
|
-
|
|
9425
|
+
React__default.createElement(
|
|
9442
9426
|
'style',
|
|
9443
9427
|
{ jsx: 'true' },
|
|
9444
9428
|
'\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 +9471,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9487
9471
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9488
9472
|
}, []);
|
|
9489
9473
|
|
|
9490
|
-
return
|
|
9491
|
-
|
|
9474
|
+
return React__default.createElement(
|
|
9475
|
+
React__default.Fragment,
|
|
9492
9476
|
null,
|
|
9493
|
-
|
|
9477
|
+
React__default.createElement(
|
|
9494
9478
|
Head,
|
|
9495
9479
|
null,
|
|
9496
|
-
|
|
9480
|
+
React__default.createElement('script', {
|
|
9497
9481
|
dangerouslySetInnerHTML: {
|
|
9498
9482
|
__html: 'history.scrollRestoration = "manual"'
|
|
9499
9483
|
}
|
|
9500
9484
|
})
|
|
9501
9485
|
),
|
|
9502
|
-
|
|
9486
|
+
React__default.createElement(
|
|
9503
9487
|
'div',
|
|
9504
9488
|
{ id: elementId },
|
|
9505
|
-
|
|
9506
|
-
|
|
9489
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9490
|
+
React__default.createElement(
|
|
9507
9491
|
'style',
|
|
9508
9492
|
{ jsx: 'true' },
|
|
9509
9493
|
'\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 +9521,7 @@ exports.__esModule = true;
|
|
|
9537
9521
|
|
|
9538
9522
|
|
|
9539
9523
|
|
|
9540
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9524
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9541
9525
|
|
|
9542
9526
|
|
|
9543
9527
|
|
|
@@ -9557,7 +9541,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9557
9541
|
|
|
9558
9542
|
|
|
9559
9543
|
|
|
9560
|
-
var _react2 = _interopRequireDefault(
|
|
9544
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9561
9545
|
|
|
9562
9546
|
|
|
9563
9547
|
|
|
@@ -9706,9 +9690,9 @@ var ScriptTag = function (_Component) {
|
|
|
9706
9690
|
|
|
9707
9691
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9708
9692
|
// eslint-disable-next-line no-unused-vars
|
|
9709
|
-
var _props3 = this.props
|
|
9710
|
-
_props3.isHydrating
|
|
9711
|
-
|
|
9693
|
+
var _props3 = this.props,
|
|
9694
|
+
isHydrating = _props3.isHydrating,
|
|
9695
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9712
9696
|
|
|
9713
9697
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9714
9698
|
return _this2.domRef = tag;
|
|
@@ -9716,7 +9700,7 @@ var ScriptTag = function (_Component) {
|
|
|
9716
9700
|
};
|
|
9717
9701
|
|
|
9718
9702
|
return ScriptTag;
|
|
9719
|
-
}(
|
|
9703
|
+
}(React__default.Component);
|
|
9720
9704
|
|
|
9721
9705
|
ScriptTag.propTypes = {
|
|
9722
9706
|
/**
|
|
@@ -9795,11 +9779,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9795
9779
|
}, []);
|
|
9796
9780
|
|
|
9797
9781
|
if (iframeSrc) {
|
|
9798
|
-
return
|
|
9782
|
+
return React__default.createElement(
|
|
9799
9783
|
'section',
|
|
9800
9784
|
{ className: 'form-assembly' },
|
|
9801
|
-
|
|
9802
|
-
|
|
9785
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9786
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9803
9787
|
);
|
|
9804
9788
|
}
|
|
9805
9789
|
|
|
@@ -9836,27 +9820,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9836
9820
|
return window.removeEventListener('resize', handleResize);
|
|
9837
9821
|
};
|
|
9838
9822
|
}, []);
|
|
9839
|
-
return
|
|
9823
|
+
return React__default.createElement(
|
|
9840
9824
|
'div',
|
|
9841
9825
|
{ className: 'blockTableHolder', ref: holder },
|
|
9842
|
-
|
|
9826
|
+
React__default.createElement(
|
|
9843
9827
|
'div',
|
|
9844
9828
|
{ className: 'blockTable' },
|
|
9845
9829
|
rows && rows.map(function (row) {
|
|
9846
|
-
return
|
|
9830
|
+
return React__default.createElement(
|
|
9847
9831
|
'div',
|
|
9848
9832
|
{ className: 'blockTableRow' },
|
|
9849
9833
|
row.cells && row.cells.map(function (cell) {
|
|
9850
|
-
return
|
|
9834
|
+
return React__default.createElement(
|
|
9851
9835
|
'div',
|
|
9852
9836
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9853
|
-
|
|
9837
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9854
9838
|
);
|
|
9855
9839
|
})
|
|
9856
9840
|
);
|
|
9857
9841
|
})
|
|
9858
9842
|
),
|
|
9859
|
-
|
|
9843
|
+
React__default.createElement(
|
|
9860
9844
|
'style',
|
|
9861
9845
|
{ jsx: true },
|
|
9862
9846
|
'\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 +9919,12 @@ var getSerializers = function getSerializers() {
|
|
|
9935
9919
|
var node = _ref.node;
|
|
9936
9920
|
var url = node.url;
|
|
9937
9921
|
|
|
9938
|
-
return
|
|
9922
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9939
9923
|
},
|
|
9940
9924
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9941
9925
|
var node = _ref2.node;
|
|
9942
9926
|
|
|
9943
|
-
return
|
|
9927
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9944
9928
|
nodes: node,
|
|
9945
9929
|
article: article,
|
|
9946
9930
|
meta: meta,
|
|
@@ -9954,7 +9938,7 @@ var getSerializers = function getSerializers() {
|
|
|
9954
9938
|
articleSeries: function articleSeries(_ref3) {
|
|
9955
9939
|
var node = _ref3.node;
|
|
9956
9940
|
|
|
9957
|
-
return
|
|
9941
|
+
return React__default.createElement(ArticleSeries, {
|
|
9958
9942
|
nodes: node,
|
|
9959
9943
|
accountIDs: videoAccountIDs || {},
|
|
9960
9944
|
pageview: pageview,
|
|
@@ -9967,61 +9951,61 @@ var getSerializers = function getSerializers() {
|
|
|
9967
9951
|
figure: function figure(_ref4) {
|
|
9968
9952
|
var node = _ref4.node;
|
|
9969
9953
|
|
|
9970
|
-
return
|
|
9954
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9971
9955
|
},
|
|
9972
9956
|
multifigure: function multifigure(_ref5) {
|
|
9973
9957
|
var node = _ref5.node;
|
|
9974
9958
|
|
|
9975
|
-
return
|
|
9959
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9976
9960
|
},
|
|
9977
9961
|
slideshow: function slideshow(_ref6) {
|
|
9978
9962
|
var node = _ref6.node;
|
|
9979
9963
|
var slides = node.slides;
|
|
9980
9964
|
|
|
9981
|
-
return
|
|
9965
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9982
9966
|
},
|
|
9983
9967
|
sidebar: function sidebar(_ref7) {
|
|
9984
9968
|
var node = _ref7.node;
|
|
9985
9969
|
var caption = node.caption,
|
|
9986
9970
|
content = node.content;
|
|
9987
9971
|
|
|
9988
|
-
return
|
|
9972
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
9989
9973
|
},
|
|
9990
9974
|
datatable: function datatable(_ref8) {
|
|
9991
9975
|
var node = _ref8.node;
|
|
9992
9976
|
var table = node.table;
|
|
9993
9977
|
|
|
9994
|
-
return
|
|
9978
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9995
9979
|
},
|
|
9996
9980
|
media: function media(_ref9) {
|
|
9997
9981
|
var node = _ref9.node;
|
|
9998
9982
|
|
|
9999
|
-
return
|
|
9983
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
10000
9984
|
},
|
|
10001
9985
|
iframe: function iframe(_ref10) {
|
|
10002
9986
|
var node = _ref10.node;
|
|
10003
9987
|
|
|
10004
|
-
return
|
|
9988
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10005
9989
|
},
|
|
10006
9990
|
video: function video(_ref11) {
|
|
10007
9991
|
var node = _ref11.node;
|
|
10008
9992
|
|
|
10009
|
-
return
|
|
9993
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10010
9994
|
},
|
|
10011
9995
|
audio: function audio(_ref12) {
|
|
10012
9996
|
var node = _ref12.node;
|
|
10013
9997
|
|
|
10014
|
-
return
|
|
9998
|
+
return React__default.createElement(Audio, { node: node });
|
|
10015
9999
|
},
|
|
10016
10000
|
poll: function poll(_ref13) {
|
|
10017
10001
|
var node = _ref13.node;
|
|
10018
10002
|
|
|
10019
|
-
return
|
|
10003
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10020
10004
|
},
|
|
10021
10005
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10022
10006
|
var node = _ref14.node;
|
|
10023
10007
|
|
|
10024
|
-
return
|
|
10008
|
+
return React__default.createElement(Poll$1, {
|
|
10025
10009
|
node: node,
|
|
10026
10010
|
client: client,
|
|
10027
10011
|
pageview: pageview,
|
|
@@ -10035,35 +10019,35 @@ var getSerializers = function getSerializers() {
|
|
|
10035
10019
|
var node = _ref15.node;
|
|
10036
10020
|
var quizzes = node.quizzes;
|
|
10037
10021
|
|
|
10038
|
-
return
|
|
10022
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10039
10023
|
},
|
|
10040
10024
|
leads: function leads(_ref16) {
|
|
10041
10025
|
var node = _ref16.node;
|
|
10042
10026
|
var leadID = node.leadID;
|
|
10043
10027
|
|
|
10044
10028
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10045
|
-
return
|
|
10029
|
+
return React__default.createElement(Leads, { url: url });
|
|
10046
10030
|
},
|
|
10047
10031
|
slideshows: function slideshows(_ref17) {
|
|
10048
10032
|
var node = _ref17.node;
|
|
10049
10033
|
|
|
10050
|
-
return
|
|
10034
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10051
10035
|
},
|
|
10052
10036
|
nativeAd: function nativeAd(_ref18) {
|
|
10053
10037
|
var node = _ref18.node;
|
|
10054
10038
|
|
|
10055
|
-
return
|
|
10039
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10056
10040
|
},
|
|
10057
10041
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10058
10042
|
var node = _ref19.node;
|
|
10059
10043
|
|
|
10060
|
-
return
|
|
10044
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10061
10045
|
},
|
|
10062
10046
|
hrtag: function hrtag() {
|
|
10063
|
-
return
|
|
10047
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10064
10048
|
},
|
|
10065
10049
|
brtag: function brtag() {
|
|
10066
|
-
return
|
|
10050
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10067
10051
|
},
|
|
10068
10052
|
formstack: function formstack(_ref20) {
|
|
10069
10053
|
var node = _ref20.node;
|
|
@@ -10071,29 +10055,29 @@ var getSerializers = function getSerializers() {
|
|
|
10071
10055
|
Caption = node.Caption,
|
|
10072
10056
|
needSegmentSupport = node.needSegmentSupport;
|
|
10073
10057
|
|
|
10074
|
-
return
|
|
10058
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10075
10059
|
},
|
|
10076
10060
|
formassembly: FormAssembly,
|
|
10077
10061
|
multimedia: function multimedia(_ref21) {
|
|
10078
10062
|
var node = _ref21.node;
|
|
10079
10063
|
|
|
10080
|
-
return
|
|
10064
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10081
10065
|
},
|
|
10082
10066
|
blockTable: function blockTable(_ref22) {
|
|
10083
10067
|
var node = _ref22.node;
|
|
10084
|
-
return
|
|
10068
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10085
10069
|
}
|
|
10086
10070
|
},
|
|
10087
10071
|
marks: {
|
|
10088
10072
|
superscript: function superscript(props) {
|
|
10089
|
-
return
|
|
10073
|
+
return React__default.createElement(
|
|
10090
10074
|
'sup',
|
|
10091
10075
|
null,
|
|
10092
10076
|
props.children
|
|
10093
10077
|
);
|
|
10094
10078
|
},
|
|
10095
10079
|
subscript: function subscript(props) {
|
|
10096
|
-
return
|
|
10080
|
+
return React__default.createElement(
|
|
10097
10081
|
'sub',
|
|
10098
10082
|
null,
|
|
10099
10083
|
props.children
|
|
@@ -10110,7 +10094,7 @@ var getSerializers = function getSerializers() {
|
|
|
10110
10094
|
if (href && href.charAt(0) === '#') {
|
|
10111
10095
|
var elementId = href.slice(1);
|
|
10112
10096
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10113
|
-
return
|
|
10097
|
+
return React__default.createElement(
|
|
10114
10098
|
'a',
|
|
10115
10099
|
{ onClick: function onClick() {
|
|
10116
10100
|
return ScrollToElement(elementId);
|
|
@@ -10120,15 +10104,15 @@ var getSerializers = function getSerializers() {
|
|
|
10120
10104
|
}
|
|
10121
10105
|
|
|
10122
10106
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10123
|
-
return href ?
|
|
10107
|
+
return href ? React__default.createElement(
|
|
10124
10108
|
'a',
|
|
10125
|
-
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10109
|
+
_extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10126
10110
|
children
|
|
10127
10111
|
) : children;
|
|
10128
10112
|
},
|
|
10129
10113
|
alignleft: function alignleft(_ref23) {
|
|
10130
10114
|
var children = _ref23.children;
|
|
10131
|
-
return
|
|
10115
|
+
return React__default.createElement(
|
|
10132
10116
|
'div',
|
|
10133
10117
|
{ style: { textAlign: 'left' } },
|
|
10134
10118
|
children
|
|
@@ -10136,7 +10120,7 @@ var getSerializers = function getSerializers() {
|
|
|
10136
10120
|
},
|
|
10137
10121
|
alignright: function alignright(_ref24) {
|
|
10138
10122
|
var children = _ref24.children;
|
|
10139
|
-
return
|
|
10123
|
+
return React__default.createElement(
|
|
10140
10124
|
'div',
|
|
10141
10125
|
{ style: { textAlign: 'right' } },
|
|
10142
10126
|
children
|
|
@@ -10144,7 +10128,7 @@ var getSerializers = function getSerializers() {
|
|
|
10144
10128
|
},
|
|
10145
10129
|
aligncenter: function aligncenter(_ref25) {
|
|
10146
10130
|
var children = _ref25.children;
|
|
10147
|
-
return
|
|
10131
|
+
return React__default.createElement(
|
|
10148
10132
|
'div',
|
|
10149
10133
|
{ style: { textAlign: 'center' } },
|
|
10150
10134
|
children
|
|
@@ -10152,7 +10136,7 @@ var getSerializers = function getSerializers() {
|
|
|
10152
10136
|
},
|
|
10153
10137
|
alignjustify: function alignjustify(_ref26) {
|
|
10154
10138
|
var children = _ref26.children;
|
|
10155
|
-
return
|
|
10139
|
+
return React__default.createElement(
|
|
10156
10140
|
'div',
|
|
10157
10141
|
{ style: { textAlign: 'justify' } },
|
|
10158
10142
|
children
|
|
@@ -10162,7 +10146,7 @@ var getSerializers = function getSerializers() {
|
|
|
10162
10146
|
var children = props.children,
|
|
10163
10147
|
color = props.mark.color;
|
|
10164
10148
|
|
|
10165
|
-
return
|
|
10149
|
+
return React__default.createElement(
|
|
10166
10150
|
'span',
|
|
10167
10151
|
{ style: { color: color ? color.hex : null } },
|
|
10168
10152
|
children
|