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