@mjhls/mjh-framework 1.0.884 → 1.0.885-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1306 -1490
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +57 -58
- package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +419 -1637
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +40 -41
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/ContentCardPaginated.js +408 -0
- package/dist/cjs/DeckContent.js +101 -105
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/DeckQueuePaginated.js +339 -0
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-f492f985.js} +31 -32
- package/dist/cjs/EventsDeck.js +150 -157
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +203 -320
- package/dist/cjs/GridContentPaginated.js +698 -0
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +139 -144
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +28 -29
- package/dist/cjs/ImageSlider-38f25e66.js +3989 -0
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +93 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +78 -79
- package/dist/cjs/MasterDeckPaginated.js +443 -0
- package/dist/cjs/MediaSeriesCard-8d27612b.js +9411 -0
- package/dist/cjs/MediaSeriesLanding.js +117 -9601
- package/dist/cjs/MediaSeriesLandingPaginated.js +521 -0
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +146 -151
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/Pagination-90473595.js +59 -0
- package/dist/cjs/PartnerDetailListing.js +96 -2893
- package/dist/cjs/PartnerDetailListingPaginated.js +311 -0
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +40 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationFeature-28c549f2.js +126 -0
- package/dist/cjs/PublicationLanding.js +133 -141
- package/dist/cjs/QueueDeckExpanded.js +308 -308
- package/dist/cjs/QueueDeckExpandedPaginated.js +1377 -0
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +57 -58
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Schema.js +100 -0
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-49b81b0b.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +28 -29
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +72 -76
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +47 -48
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +264 -347
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +67 -68
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-6f89aea7.js → index-54adcbc3.js} +1044 -1070
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +168 -171
- package/dist/cjs/{inherits-de66ea16.js → inherits-12d44cca.js} +18 -18
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-d767ebe2.js} +4 -4
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-cee95aa2.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +906 -14
- package/dist/esm/AlgoliaSearch.js +534 -717
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +30 -30
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +1419 -591
- package/dist/esm/AuthWrapper.js +392 -1609
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +22 -22
- package/dist/esm/Column2.js +14 -14
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +25 -25
- package/dist/esm/ContentCardPaginated.js +402 -0
- package/dist/esm/DeckContent.js +41 -41
- package/dist/esm/DeckQueue.js +31 -31
- package/dist/esm/DeckQueuePaginated.js +333 -0
- package/dist/esm/{Dfp-102f0beb.js → Dfp-f867d061.js} +13 -13
- package/dist/esm/EventsDeck.js +41 -41
- package/dist/esm/ExternalResources.js +45 -45
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +48 -160
- package/dist/esm/GridContentPaginated.js +692 -0
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +35 -35
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/ImageSlider-a3154b97.js +3980 -0
- package/dist/esm/IssueContentDeck.js +11 -11
- package/dist/esm/IssueDeck.js +14 -14
- package/dist/esm/IssueLanding.js +82 -82
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +40 -40
- package/dist/esm/MasterDeckPaginated.js +437 -0
- package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
- package/dist/esm/MediaSeriesLanding.js +75 -9555
- package/dist/esm/MediaSeriesLandingPaginated.js +516 -0
- package/dist/esm/NavDvm.js +11 -11
- package/dist/esm/NavMagazine.js +39 -39
- package/dist/esm/NavNative.js +37 -37
- package/dist/esm/OncliveHero.js +8 -7
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/Pagination-683fa8ef.js +54 -0
- package/dist/esm/PartnerDetailListing.js +62 -2857
- package/dist/esm/PartnerDetailListingPaginated.js +306 -0
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +10 -10
- package/dist/esm/PublicationFeature-fa24dedb.js +121 -0
- package/dist/esm/PublicationLanding.js +52 -56
- package/dist/esm/QueueDeckExpanded.js +36 -36
- package/dist/esm/QueueDeckExpandedPaginated.js +1371 -0
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Schema.js +95 -0
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-ce19fa25.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-dca69151.js} +10 -10
- package/dist/esm/TaxonomyCard.js +12 -12
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +46 -46
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +49 -49
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -36
- package/dist/esm/VideoSeriesListing.js +31 -31
- package/dist/esm/View.js +90 -169
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-ca0c9ff5.js → index-d1476645.js} +599 -615
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -123
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +112 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,66 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var core_getIteratorMethod = require('./core.get-iterator-method-f3c44602.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-c9b8a0d0.js');
|
|
8
|
+
var _extends$1 = require('./extends-eed4f016.js');
|
|
9
|
+
var inherits$1 = require('./inherits-12d44cca.js');
|
|
10
|
+
var _typeof = require('./typeof-5f52cf64.js');
|
|
4
11
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var urlFor = require('./urlFor.js');
|
|
8
|
-
var index = require('./index-fc2f1ca2.js');
|
|
9
|
-
var Router = require('next/router');
|
|
10
|
-
var index$1 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
11
14
|
var PropTypes = require('prop-types');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
require('
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var slicedToArray = require('./slicedToArray-f6d4eaa8.js');
|
|
22
|
+
var urlFor = require('./urlFor.js');
|
|
23
|
+
var index$2 = require('./index-96b3db50.js');
|
|
24
|
+
var main = require('./main-02daeefe.js');
|
|
25
|
+
var entities = require('./entities-310b46ee.js');
|
|
26
|
+
var asyncToGenerator = require('./asyncToGenerator-df19209d.js');
|
|
15
27
|
var Segment = require('./Segment.js');
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
28
|
+
require('./Beam.js');
|
|
29
|
+
var AdSlot = require('./AdSlot.js');
|
|
30
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
31
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
32
|
+
var index$3 = require('./index-187c967e.js');
|
|
22
33
|
var GroupDeck = require('./GroupDeck.js');
|
|
23
|
-
var
|
|
34
|
+
var reactBootstrap = require('react-bootstrap');
|
|
35
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
36
|
+
var util = require('./util-f2c1b65b.js');
|
|
37
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
38
|
+
var Head = _interopDefault(require('next/head'));
|
|
24
39
|
var SocialShare = require('./SocialShare.js');
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var AdSlot = require('./AdSlot.js');
|
|
32
|
-
var Row = require('react-bootstrap/Row');
|
|
33
|
-
var Col = require('react-bootstrap/Col');
|
|
34
|
-
var Head = require('next/head');
|
|
35
|
-
var inherits = require('./inherits-de66ea16.js');
|
|
36
|
-
var index_esm = require('./index.esm-00a6aade.js');
|
|
37
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
38
|
-
var OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
39
|
-
var Tooltip = require('react-bootstrap/Tooltip');
|
|
40
|
-
var Popover = require('react-bootstrap/Popover');
|
|
41
|
-
|
|
42
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
43
|
-
|
|
44
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
45
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
46
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
47
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
48
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
49
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
50
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
51
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
52
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
53
|
-
var OverlayTrigger__default = /*#__PURE__*/_interopDefaultLegacy(OverlayTrigger);
|
|
54
|
-
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
55
|
-
var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
40
|
+
var _objectToArray = require('./_object-to-array-9bac8737.js');
|
|
41
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
42
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
43
|
+
var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
|
|
44
|
+
var Tooltip = _interopDefault(require('react-bootstrap/Tooltip'));
|
|
45
|
+
var Popover = _interopDefault(require('react-bootstrap/Popover'));
|
|
56
46
|
|
|
57
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
58
48
|
var pageNumber = selectedIndex + 1;
|
|
59
49
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
60
|
-
Router__default
|
|
50
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
61
51
|
};
|
|
62
52
|
|
|
63
|
-
var Slideshow
|
|
53
|
+
var Slideshow = function Slideshow(_ref) {
|
|
64
54
|
var slides = _ref.slides,
|
|
65
55
|
client = _ref.client,
|
|
66
56
|
pageview = _ref.pageview;
|
|
@@ -87,27 +77,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
87
77
|
if (pageview) pageview(router.asPath);
|
|
88
78
|
}, [router]);
|
|
89
79
|
|
|
90
|
-
return React__default
|
|
80
|
+
return React__default.createElement(
|
|
91
81
|
'div',
|
|
92
82
|
{ className: 'mt-3 mb-3' },
|
|
93
|
-
React__default
|
|
83
|
+
React__default.createElement(
|
|
94
84
|
reactBootstrap.Carousel,
|
|
95
85
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
96
86
|
return onChangeSlide(selectedIndex, router);
|
|
97
87
|
}, interval: null },
|
|
98
88
|
slides && slides.map(function (slide) {
|
|
99
|
-
return React__default
|
|
89
|
+
return React__default.createElement(
|
|
100
90
|
reactBootstrap.Carousel.Item,
|
|
101
91
|
{ key: slide._key },
|
|
102
|
-
React__default
|
|
92
|
+
React__default.createElement(
|
|
103
93
|
'picture',
|
|
104
94
|
null,
|
|
105
|
-
React__default
|
|
106
|
-
React__default
|
|
107
|
-
React__default
|
|
108
|
-
React__default
|
|
95
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
96
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
97
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
98
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
109
99
|
),
|
|
110
|
-
slide.caption && React__default
|
|
100
|
+
slide.caption && React__default.createElement(
|
|
111
101
|
'p',
|
|
112
102
|
{ className: 'p-2' },
|
|
113
103
|
slide.caption
|
|
@@ -118,18 +108,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
118
108
|
);
|
|
119
109
|
};
|
|
120
110
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
111
|
+
var isArray = Array.isArray;
|
|
112
|
+
var keyList = Object.keys;
|
|
113
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
124
114
|
|
|
125
115
|
var fastDeepEqual = function equal(a, b) {
|
|
126
116
|
if (a === b) return true;
|
|
127
117
|
|
|
128
118
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
129
|
-
|
|
119
|
+
var arrA = isArray(a)
|
|
120
|
+
, arrB = isArray(b)
|
|
121
|
+
, i
|
|
122
|
+
, length
|
|
123
|
+
, key;
|
|
130
124
|
|
|
131
|
-
|
|
132
|
-
if (Array.isArray(a)) {
|
|
125
|
+
if (arrA && arrB) {
|
|
133
126
|
length = a.length;
|
|
134
127
|
if (length != b.length) return false;
|
|
135
128
|
for (i = length; i-- !== 0;)
|
|
@@ -137,29 +130,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
137
130
|
return true;
|
|
138
131
|
}
|
|
139
132
|
|
|
133
|
+
if (arrA != arrB) return false;
|
|
140
134
|
|
|
135
|
+
var dateA = a instanceof Date
|
|
136
|
+
, dateB = b instanceof Date;
|
|
137
|
+
if (dateA != dateB) return false;
|
|
138
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
141
139
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
if (
|
|
140
|
+
var regexpA = a instanceof RegExp
|
|
141
|
+
, regexpB = b instanceof RegExp;
|
|
142
|
+
if (regexpA != regexpB) return false;
|
|
143
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
145
144
|
|
|
146
|
-
keys =
|
|
145
|
+
var keys = keyList(a);
|
|
147
146
|
length = keys.length;
|
|
148
|
-
|
|
147
|
+
|
|
148
|
+
if (length !== keyList(b).length)
|
|
149
|
+
return false;
|
|
149
150
|
|
|
150
151
|
for (i = length; i-- !== 0;)
|
|
151
|
-
if (!
|
|
152
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
152
153
|
|
|
153
154
|
for (i = length; i-- !== 0;) {
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
key = keys[i];
|
|
156
156
|
if (!equal(a[key], b[key])) return false;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
return true;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
// true if both NaN, false otherwise
|
|
163
162
|
return a!==a && b!==b;
|
|
164
163
|
};
|
|
165
164
|
|
|
@@ -697,14 +696,14 @@ function coerce(val) {
|
|
|
697
696
|
return val;
|
|
698
697
|
}
|
|
699
698
|
});
|
|
700
|
-
debug.coerce;
|
|
701
|
-
debug.disable;
|
|
702
|
-
debug.enable;
|
|
703
|
-
debug.enabled;
|
|
704
|
-
debug.humanize;
|
|
705
|
-
debug.names;
|
|
706
|
-
debug.skips;
|
|
707
|
-
debug.formatters;
|
|
699
|
+
var debug_1 = debug.coerce;
|
|
700
|
+
var debug_2 = debug.disable;
|
|
701
|
+
var debug_3 = debug.enable;
|
|
702
|
+
var debug_4 = debug.enabled;
|
|
703
|
+
var debug_5 = debug.humanize;
|
|
704
|
+
var debug_6 = debug.names;
|
|
705
|
+
var debug_7 = debug.skips;
|
|
706
|
+
var debug_8 = debug.formatters;
|
|
708
707
|
|
|
709
708
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
710
709
|
/**
|
|
@@ -893,13 +892,13 @@ function localstorage() {
|
|
|
893
892
|
} catch (e) {}
|
|
894
893
|
}
|
|
895
894
|
});
|
|
896
|
-
browser.log;
|
|
897
|
-
browser.formatArgs;
|
|
898
|
-
browser.save;
|
|
899
|
-
browser.load;
|
|
900
|
-
browser.useColors;
|
|
901
|
-
browser.storage;
|
|
902
|
-
browser.colors;
|
|
895
|
+
var browser_1 = browser.log;
|
|
896
|
+
var browser_2 = browser.formatArgs;
|
|
897
|
+
var browser_3 = browser.save;
|
|
898
|
+
var browser_4 = browser.load;
|
|
899
|
+
var browser_5 = browser.useColors;
|
|
900
|
+
var browser_6 = browser.storage;
|
|
901
|
+
var browser_7 = browser.colors;
|
|
903
902
|
|
|
904
903
|
// MIT lisence
|
|
905
904
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1174,14 +1173,14 @@ function init (debug) {
|
|
|
1174
1173
|
|
|
1175
1174
|
exports.enable(load());
|
|
1176
1175
|
});
|
|
1177
|
-
node.init;
|
|
1178
|
-
node.log;
|
|
1179
|
-
node.formatArgs;
|
|
1180
|
-
node.save;
|
|
1181
|
-
node.load;
|
|
1182
|
-
node.useColors;
|
|
1183
|
-
node.colors;
|
|
1184
|
-
node.inspectOpts;
|
|
1176
|
+
var node_1 = node.init;
|
|
1177
|
+
var node_2 = node.log;
|
|
1178
|
+
var node_3 = node.formatArgs;
|
|
1179
|
+
var node_4 = node.save;
|
|
1180
|
+
var node_5 = node.load;
|
|
1181
|
+
var node_6 = node.useColors;
|
|
1182
|
+
var node_7 = node.colors;
|
|
1183
|
+
var node_8 = node.inspectOpts;
|
|
1185
1184
|
|
|
1186
1185
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1187
1186
|
/**
|
|
@@ -1582,239 +1581,199 @@ module.exports = exports['default'];
|
|
|
1582
1581
|
|
|
1583
1582
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1584
1583
|
|
|
1585
|
-
function
|
|
1586
|
-
|
|
1587
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1584
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1588
1585
|
|
|
1589
|
-
function
|
|
1590
|
-
|
|
1591
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1586
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1592
1587
|
|
|
1593
|
-
function
|
|
1594
|
-
|
|
1595
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1596
|
-
|
|
1597
|
-
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); }; }
|
|
1598
|
-
|
|
1599
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1600
|
-
|
|
1601
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1602
|
-
|
|
1603
|
-
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; } }
|
|
1588
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1604
1589
|
|
|
1605
|
-
function
|
|
1590
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1606
1591
|
|
|
1607
|
-
function
|
|
1592
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1608
1593
|
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
*
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Object} prevProps
|
|
1616
|
-
* @param {Object} props
|
|
1594
|
+
/**
|
|
1595
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {Object} prevProps
|
|
1598
|
+
* @param {Object} props
|
|
1617
1599
|
*/
|
|
1618
|
-
|
|
1619
1600
|
function shouldUpdateVideo(prevProps, props) {
|
|
1620
1601
|
// A changing video should always trigger an update
|
|
1621
1602
|
if (prevProps.videoId !== props.videoId) {
|
|
1622
1603
|
return true;
|
|
1623
|
-
}
|
|
1624
|
-
// update.
|
|
1625
|
-
|
|
1604
|
+
}
|
|
1626
1605
|
|
|
1606
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1607
|
+
// update.
|
|
1627
1608
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1628
1609
|
var vars = props.opts.playerVars || {};
|
|
1610
|
+
|
|
1629
1611
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1630
1612
|
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1633
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1634
|
-
* player reset is necessary.
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object} opts
|
|
1637
|
-
*/
|
|
1638
|
-
|
|
1639
1613
|
|
|
1614
|
+
/**
|
|
1615
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1616
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1617
|
+
* player reset is necessary.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} opts
|
|
1620
|
+
*/
|
|
1640
1621
|
function filterResetOptions(opts) {
|
|
1641
|
-
return
|
|
1642
|
-
playerVars:
|
|
1622
|
+
return _extends({}, opts, {
|
|
1623
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1643
1624
|
autoplay: 0,
|
|
1644
1625
|
start: 0,
|
|
1645
1626
|
end: 0
|
|
1646
|
-
}
|
|
1627
|
+
})
|
|
1647
1628
|
});
|
|
1648
1629
|
}
|
|
1649
|
-
/**
|
|
1650
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1651
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1652
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1653
|
-
* those.
|
|
1654
|
-
*
|
|
1655
|
-
* @param {Object} prevProps
|
|
1656
|
-
* @param {Object} props
|
|
1657
|
-
*/
|
|
1658
|
-
|
|
1659
1630
|
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
+
* those.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {Object} prevProps
|
|
1638
|
+
* @param {Object} props
|
|
1639
|
+
*/
|
|
1660
1640
|
function shouldResetPlayer(prevProps, props) {
|
|
1661
1641
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1662
1642
|
}
|
|
1663
|
-
/**
|
|
1664
|
-
* Check whether a props change should result in an id or className update.
|
|
1665
|
-
*
|
|
1666
|
-
* @param {Object} prevProps
|
|
1667
|
-
* @param {Object} props
|
|
1668
|
-
*/
|
|
1669
|
-
|
|
1670
1643
|
|
|
1644
|
+
/**
|
|
1645
|
+
* Check whether a props change should result in an id or className update.
|
|
1646
|
+
*
|
|
1647
|
+
* @param {Object} prevProps
|
|
1648
|
+
* @param {Object} props
|
|
1649
|
+
*/
|
|
1671
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1672
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1673
1652
|
}
|
|
1674
1653
|
|
|
1675
|
-
var YouTube =
|
|
1654
|
+
var YouTube = function (_React$Component) {
|
|
1676
1655
|
_inherits(YouTube, _React$Component);
|
|
1677
1656
|
|
|
1678
|
-
var _super = _createSuper(YouTube);
|
|
1679
|
-
|
|
1680
|
-
/**
|
|
1681
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1682
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1683
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1684
|
-
*/
|
|
1685
1657
|
function YouTube(props) {
|
|
1686
|
-
var _this;
|
|
1687
|
-
|
|
1688
1658
|
_classCallCheck(this, YouTube);
|
|
1689
1659
|
|
|
1690
|
-
_this =
|
|
1660
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1691
1661
|
|
|
1692
|
-
|
|
1662
|
+
_this.onPlayerReady = function (event) {
|
|
1693
1663
|
return _this.props.onReady(event);
|
|
1694
|
-
}
|
|
1664
|
+
};
|
|
1695
1665
|
|
|
1696
|
-
|
|
1666
|
+
_this.onPlayerError = function (event) {
|
|
1697
1667
|
return _this.props.onError(event);
|
|
1698
|
-
}
|
|
1668
|
+
};
|
|
1699
1669
|
|
|
1700
|
-
|
|
1670
|
+
_this.onPlayerStateChange = function (event) {
|
|
1701
1671
|
_this.props.onStateChange(event);
|
|
1702
|
-
|
|
1703
1672
|
switch (event.data) {
|
|
1673
|
+
|
|
1704
1674
|
case YouTube.PlayerState.ENDED:
|
|
1705
1675
|
_this.props.onEnd(event);
|
|
1706
|
-
|
|
1707
1676
|
break;
|
|
1708
1677
|
|
|
1709
1678
|
case YouTube.PlayerState.PLAYING:
|
|
1710
1679
|
_this.props.onPlay(event);
|
|
1711
|
-
|
|
1712
1680
|
break;
|
|
1713
1681
|
|
|
1714
1682
|
case YouTube.PlayerState.PAUSED:
|
|
1715
1683
|
_this.props.onPause(event);
|
|
1716
|
-
|
|
1717
1684
|
break;
|
|
1718
1685
|
}
|
|
1719
|
-
}
|
|
1686
|
+
};
|
|
1720
1687
|
|
|
1721
|
-
|
|
1688
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1722
1689
|
return _this.props.onPlaybackRateChange(event);
|
|
1723
|
-
}
|
|
1690
|
+
};
|
|
1724
1691
|
|
|
1725
|
-
|
|
1692
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1726
1693
|
return _this.props.onPlaybackQualityChange(event);
|
|
1727
|
-
}
|
|
1694
|
+
};
|
|
1728
1695
|
|
|
1729
|
-
|
|
1696
|
+
_this.createPlayer = function () {
|
|
1730
1697
|
// do not attempt to create a player server-side, it won't work
|
|
1731
|
-
if (typeof document === 'undefined') return;
|
|
1732
|
-
|
|
1733
|
-
var playerOpts =
|
|
1698
|
+
if (typeof document === 'undefined') return;
|
|
1699
|
+
// create player
|
|
1700
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1734
1701
|
// preload the `videoId` video if one is already given
|
|
1735
1702
|
videoId: _this.props.videoId
|
|
1736
1703
|
});
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1704
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1705
|
+
// attach event handlers
|
|
1740
1706
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1741
|
-
|
|
1742
1707
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1743
|
-
|
|
1744
1708
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1745
|
-
|
|
1746
1709
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1747
|
-
|
|
1748
1710
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1749
|
-
}
|
|
1711
|
+
};
|
|
1750
1712
|
|
|
1751
|
-
|
|
1713
|
+
_this.resetPlayer = function () {
|
|
1752
1714
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1753
|
-
}
|
|
1715
|
+
};
|
|
1754
1716
|
|
|
1755
|
-
|
|
1717
|
+
_this.updatePlayer = function () {
|
|
1756
1718
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1757
1719
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1758
1720
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1759
1721
|
});
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1763
|
-
return _this.internalPlayer;
|
|
1764
|
-
});
|
|
1722
|
+
};
|
|
1765
1723
|
|
|
1766
|
-
|
|
1724
|
+
_this.updateVideo = function () {
|
|
1767
1725
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1768
1726
|
_this.internalPlayer.stopVideo();
|
|
1769
|
-
|
|
1770
1727
|
return;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1728
|
+
}
|
|
1773
1729
|
|
|
1730
|
+
// set queueing options
|
|
1774
1731
|
var autoplay = false;
|
|
1775
1732
|
var opts = {
|
|
1776
1733
|
videoId: _this.props.videoId
|
|
1777
1734
|
};
|
|
1778
|
-
|
|
1779
1735
|
if ('playerVars' in _this.props.opts) {
|
|
1780
1736
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1781
|
-
|
|
1782
1737
|
if ('start' in _this.props.opts.playerVars) {
|
|
1783
1738
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1784
1739
|
}
|
|
1785
|
-
|
|
1786
1740
|
if ('end' in _this.props.opts.playerVars) {
|
|
1787
1741
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1788
1742
|
}
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1743
|
+
}
|
|
1791
1744
|
|
|
1745
|
+
// if autoplay is enabled loadVideoById
|
|
1792
1746
|
if (autoplay) {
|
|
1793
1747
|
_this.internalPlayer.loadVideoById(opts);
|
|
1794
|
-
|
|
1795
1748
|
return;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
|
|
1749
|
+
}
|
|
1750
|
+
// default behaviour just cues the video
|
|
1799
1751
|
_this.internalPlayer.cueVideoById(opts);
|
|
1800
|
-
}
|
|
1752
|
+
};
|
|
1801
1753
|
|
|
1802
|
-
|
|
1754
|
+
_this.refContainer = function (container) {
|
|
1803
1755
|
_this.container = container;
|
|
1804
|
-
}
|
|
1756
|
+
};
|
|
1805
1757
|
|
|
1806
1758
|
_this.container = null;
|
|
1807
1759
|
_this.internalPlayer = null;
|
|
1808
1760
|
return _this;
|
|
1809
1761
|
}
|
|
1810
1762
|
|
|
1763
|
+
/**
|
|
1764
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1765
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1766
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1767
|
+
*/
|
|
1768
|
+
|
|
1769
|
+
|
|
1811
1770
|
_createClass(YouTube, [{
|
|
1812
|
-
key:
|
|
1771
|
+
key: 'componentDidMount',
|
|
1813
1772
|
value: function componentDidMount() {
|
|
1814
1773
|
this.createPlayer();
|
|
1815
1774
|
}
|
|
1816
1775
|
}, {
|
|
1817
|
-
key:
|
|
1776
|
+
key: 'componentDidUpdate',
|
|
1818
1777
|
value: function componentDidUpdate(prevProps) {
|
|
1819
1778
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1820
1779
|
this.updatePlayer();
|
|
@@ -1829,70 +1788,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1829
1788
|
}
|
|
1830
1789
|
}
|
|
1831
1790
|
}, {
|
|
1832
|
-
key:
|
|
1791
|
+
key: 'componentWillUnmount',
|
|
1833
1792
|
value: function componentWillUnmount() {
|
|
1834
|
-
/**
|
|
1835
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1836
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1837
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1838
|
-
* this method isn't quick enough to reset the container element.
|
|
1793
|
+
/**
|
|
1794
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1795
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1796
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1797
|
+
* this method isn't quick enough to reset the container element.
|
|
1839
1798
|
*/
|
|
1840
1799
|
this.internalPlayer.destroy();
|
|
1841
1800
|
}
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
*
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Object} target - player object
|
|
1807
|
+
*/
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1812
|
+
*
|
|
1813
|
+
* @param {Object} event
|
|
1814
|
+
* @param {Integer} data - error type
|
|
1815
|
+
* @param {Object} target - player object
|
|
1816
|
+
*/
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1821
|
+
*
|
|
1822
|
+
* @param {Object} event
|
|
1823
|
+
* @param {Integer} data - status change type
|
|
1824
|
+
* @param {Object} target - actual YT player
|
|
1825
|
+
*/
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1830
|
+
*
|
|
1831
|
+
* @param {Object} event
|
|
1832
|
+
* @param {Float} data - playback rate
|
|
1833
|
+
* @param {Object} target - actual YT player
|
|
1834
|
+
*/
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1839
|
+
*
|
|
1840
|
+
* @param {Object} event
|
|
1841
|
+
* @param {String} data - playback quality
|
|
1842
|
+
* @param {Object} target - actual YT player
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1853
|
+
*/
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1858
|
+
* React should update this automatically but since the Youtube Player API
|
|
1859
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1860
|
+
*/
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1865
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1866
|
+
* Youtube Player API methods to update the video.
|
|
1847
1867
|
*/
|
|
1848
1868
|
|
|
1849
1869
|
}, {
|
|
1850
|
-
key:
|
|
1870
|
+
key: 'render',
|
|
1851
1871
|
value: function render() {
|
|
1852
|
-
return
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
id: this.props.id,
|
|
1856
|
-
|
|
1857
|
-
ref: this.refContainer
|
|
1858
|
-
}));
|
|
1872
|
+
return React__default.createElement(
|
|
1873
|
+
'div',
|
|
1874
|
+
{ className: this.props.containerClassName },
|
|
1875
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1876
|
+
);
|
|
1859
1877
|
}
|
|
1860
1878
|
}]);
|
|
1861
1879
|
|
|
1862
1880
|
return YouTube;
|
|
1863
|
-
}(React__default
|
|
1864
|
-
|
|
1865
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1866
|
-
UNSTARTED: -1,
|
|
1867
|
-
ENDED: 0,
|
|
1868
|
-
PLAYING: 1,
|
|
1869
|
-
PAUSED: 2,
|
|
1870
|
-
BUFFERING: 3,
|
|
1871
|
-
CUED: 5
|
|
1872
|
-
});
|
|
1881
|
+
}(React__default.Component);
|
|
1873
1882
|
|
|
1874
1883
|
YouTube.propTypes = {
|
|
1875
|
-
videoId: PropTypes__default
|
|
1884
|
+
videoId: PropTypes__default.string,
|
|
1885
|
+
|
|
1876
1886
|
// custom ID for player element
|
|
1877
|
-
id: PropTypes__default
|
|
1887
|
+
id: PropTypes__default.string,
|
|
1888
|
+
|
|
1878
1889
|
// custom class name for player element
|
|
1879
|
-
className: PropTypes__default
|
|
1890
|
+
className: PropTypes__default.string,
|
|
1880
1891
|
// custom class name for player container element
|
|
1881
|
-
containerClassName: PropTypes__default
|
|
1892
|
+
containerClassName: PropTypes__default.string,
|
|
1893
|
+
|
|
1882
1894
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1883
|
-
opts: PropTypes__default
|
|
1895
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1896
|
+
|
|
1884
1897
|
// event subscriptions
|
|
1885
|
-
onReady: PropTypes__default
|
|
1886
|
-
onError: PropTypes__default
|
|
1887
|
-
onPlay: PropTypes__default
|
|
1888
|
-
onPause: PropTypes__default
|
|
1889
|
-
onEnd: PropTypes__default
|
|
1890
|
-
onStateChange: PropTypes__default
|
|
1891
|
-
onPlaybackRateChange: PropTypes__default
|
|
1892
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1898
|
+
onReady: PropTypes__default.func,
|
|
1899
|
+
onError: PropTypes__default.func,
|
|
1900
|
+
onPlay: PropTypes__default.func,
|
|
1901
|
+
onPause: PropTypes__default.func,
|
|
1902
|
+
onEnd: PropTypes__default.func,
|
|
1903
|
+
onStateChange: PropTypes__default.func,
|
|
1904
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1905
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1893
1906
|
};
|
|
1894
1907
|
YouTube.defaultProps = {
|
|
1895
|
-
videoId: null,
|
|
1896
1908
|
id: null,
|
|
1897
1909
|
className: null,
|
|
1898
1910
|
opts: {},
|
|
@@ -1906,12 +1918,20 @@ YouTube.defaultProps = {
|
|
|
1906
1918
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1907
1919
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1908
1920
|
};
|
|
1921
|
+
YouTube.PlayerState = {
|
|
1922
|
+
UNSTARTED: -1,
|
|
1923
|
+
ENDED: 0,
|
|
1924
|
+
PLAYING: 1,
|
|
1925
|
+
PAUSED: 2,
|
|
1926
|
+
BUFFERING: 3,
|
|
1927
|
+
CUED: 5
|
|
1928
|
+
};
|
|
1909
1929
|
|
|
1910
1930
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1911
1931
|
var url = _ref.url,
|
|
1912
1932
|
autoplay = _ref.autoplay;
|
|
1913
1933
|
|
|
1914
|
-
var id = index$
|
|
1934
|
+
var id = index$3.getYoutubeId(url);
|
|
1915
1935
|
|
|
1916
1936
|
var _useState = React.useState(false),
|
|
1917
1937
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1945,7 +1965,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1945
1965
|
var queue = Math.floor(duration / 10);
|
|
1946
1966
|
var segment = Math.floor(current / queue);
|
|
1947
1967
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1948
|
-
Segment.report_video_event('Video Ready', main.
|
|
1968
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1949
1969
|
};
|
|
1950
1970
|
|
|
1951
1971
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1956,7 +1976,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1956
1976
|
|
|
1957
1977
|
if (!queueProgress.includes(segment)) {
|
|
1958
1978
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1959
|
-
Segment.report_video_event('Video Segment', main.
|
|
1979
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1960
1980
|
queueProgress.push(segment);
|
|
1961
1981
|
}
|
|
1962
1982
|
};
|
|
@@ -1970,7 +1990,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1970
1990
|
var segment = Math.floor(current / queue);
|
|
1971
1991
|
|
|
1972
1992
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1973
|
-
Segment.report_video_event('Video Play', main.
|
|
1993
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1974
1994
|
|
|
1975
1995
|
if (!playReported) {
|
|
1976
1996
|
setPlayReported(true);
|
|
@@ -1990,7 +2010,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1990
2010
|
var segment = Math.floor(current / queue);
|
|
1991
2011
|
|
|
1992
2012
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1993
|
-
Segment.report_video_event('Video End', main.
|
|
2013
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1994
2014
|
setEndReported(true);
|
|
1995
2015
|
clearInterval(intervalID);
|
|
1996
2016
|
}
|
|
@@ -2004,14 +2024,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2004
2024
|
var segment = Math.floor(current / queue);
|
|
2005
2025
|
|
|
2006
2026
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
2007
|
-
Segment.report_video_event('Video Pause', main.
|
|
2027
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2008
2028
|
};
|
|
2009
2029
|
|
|
2010
|
-
return React__default
|
|
2030
|
+
return React__default.createElement(
|
|
2011
2031
|
'div',
|
|
2012
2032
|
{ id: 'fluid-video-container' },
|
|
2013
|
-
React__default
|
|
2014
|
-
React__default
|
|
2033
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2034
|
+
React__default.createElement(
|
|
2015
2035
|
'style',
|
|
2016
2036
|
{ jsx: 'true' },
|
|
2017
2037
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2024,20 +2044,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2024
2044
|
content = _ref.content,
|
|
2025
2045
|
getSerializers = _ref.getSerializers;
|
|
2026
2046
|
|
|
2027
|
-
return React__default
|
|
2047
|
+
return React__default.createElement(
|
|
2028
2048
|
'article',
|
|
2029
2049
|
{ className: 'sidebar' },
|
|
2030
|
-
React__default
|
|
2050
|
+
React__default.createElement(
|
|
2031
2051
|
'div',
|
|
2032
2052
|
null,
|
|
2033
|
-
React__default
|
|
2053
|
+
React__default.createElement(
|
|
2034
2054
|
'h3',
|
|
2035
2055
|
null,
|
|
2036
2056
|
caption
|
|
2037
2057
|
),
|
|
2038
|
-
React__default
|
|
2058
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2039
2059
|
),
|
|
2040
|
-
React__default
|
|
2060
|
+
React__default.createElement(
|
|
2041
2061
|
'style',
|
|
2042
2062
|
{ jsx: 'true' },
|
|
2043
2063
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2048,18 +2068,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2048
2068
|
var TableShow = function TableShow(_ref) {
|
|
2049
2069
|
var rows = _ref.rows;
|
|
2050
2070
|
|
|
2051
|
-
return React__default
|
|
2071
|
+
return React__default.createElement(
|
|
2052
2072
|
reactBootstrap.Table,
|
|
2053
2073
|
{ bordered: true, hover: true, responsive: true },
|
|
2054
|
-
React__default
|
|
2074
|
+
React__default.createElement(
|
|
2055
2075
|
'tbody',
|
|
2056
2076
|
null,
|
|
2057
2077
|
rows && rows.map(function (row) {
|
|
2058
|
-
return React__default
|
|
2078
|
+
return React__default.createElement(
|
|
2059
2079
|
'tr',
|
|
2060
2080
|
{ key: row._key },
|
|
2061
2081
|
row.cells && row.cells.map(function (cell, index) {
|
|
2062
|
-
return cell && React__default
|
|
2082
|
+
return cell && React__default.createElement(
|
|
2063
2083
|
'td',
|
|
2064
2084
|
{ key: index },
|
|
2065
2085
|
cell
|
|
@@ -2178,25 +2198,25 @@ var Media = function Media(_ref) {
|
|
|
2178
2198
|
margin: imageMargin
|
|
2179
2199
|
};
|
|
2180
2200
|
|
|
2181
|
-
return React__default
|
|
2201
|
+
return React__default.createElement(
|
|
2182
2202
|
reactBootstrap.Figure,
|
|
2183
2203
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2184
|
-
React__default
|
|
2204
|
+
React__default.createElement(
|
|
2185
2205
|
'a',
|
|
2186
2206
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2187
|
-
React__default
|
|
2207
|
+
React__default.createElement(
|
|
2188
2208
|
index$2.LazyLoad,
|
|
2189
2209
|
{ once: true },
|
|
2190
|
-
React__default
|
|
2210
|
+
React__default.createElement(
|
|
2191
2211
|
'picture',
|
|
2192
2212
|
null,
|
|
2193
|
-
React__default
|
|
2194
|
-
React__default
|
|
2195
|
-
React__default
|
|
2196
|
-
React__default
|
|
2213
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2214
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2215
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2216
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2197
2217
|
)
|
|
2198
2218
|
),
|
|
2199
|
-
caption && React__default
|
|
2219
|
+
caption && React__default.createElement(
|
|
2200
2220
|
reactBootstrap.Figure.Caption,
|
|
2201
2221
|
{ className: 'media-caption' },
|
|
2202
2222
|
caption
|
|
@@ -2204,9 +2224,9 @@ var Media = function Media(_ref) {
|
|
|
2204
2224
|
)
|
|
2205
2225
|
);
|
|
2206
2226
|
} else if (caption && caption !== '') {
|
|
2207
|
-
return React__default
|
|
2227
|
+
return React__default.createElement(
|
|
2208
2228
|
'a',
|
|
2209
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2229
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2210
2230
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2211
2231
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2212
2232
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2224,10 +2244,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2224
2244
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2225
2245
|
|
|
2226
2246
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2227
|
-
return React__default
|
|
2247
|
+
return React__default.createElement(
|
|
2228
2248
|
'div',
|
|
2229
2249
|
{ className: 'd-block text-center mb-3' },
|
|
2230
|
-
React__default
|
|
2250
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2231
2251
|
);
|
|
2232
2252
|
};
|
|
2233
2253
|
|
|
@@ -2262,7 +2282,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2282
|
var queue = Math.floor(duration / 10);
|
|
2263
2283
|
var segment = Math.floor(current / queue);
|
|
2264
2284
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2265
|
-
Segment.report_video_event('Video Ready', main.
|
|
2285
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2266
2286
|
};
|
|
2267
2287
|
|
|
2268
2288
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2272,7 +2292,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2272
2292
|
var segment = Math.floor(current / queue);
|
|
2273
2293
|
if (!queueProgress.includes(segment)) {
|
|
2274
2294
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2275
|
-
Segment.report_video_event('Video Segment', main.
|
|
2295
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2276
2296
|
queueProgress.push(segment);
|
|
2277
2297
|
}
|
|
2278
2298
|
};
|
|
@@ -2285,7 +2305,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2285
2305
|
var queue = Math.floor(duration / 10);
|
|
2286
2306
|
var segment = Math.floor(current / queue);
|
|
2287
2307
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2288
|
-
Segment.report_video_event('Video Play', main.
|
|
2308
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2289
2309
|
|
|
2290
2310
|
if (!playReported) {
|
|
2291
2311
|
event.persist();
|
|
@@ -2306,7 +2326,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2306
2326
|
var segment = Math.floor(current / queue);
|
|
2307
2327
|
|
|
2308
2328
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2309
|
-
Segment.report_video_event('Video End', main.
|
|
2329
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2310
2330
|
setEndReported(true);
|
|
2311
2331
|
clearInterval(intervalID);
|
|
2312
2332
|
}
|
|
@@ -2319,13 +2339,13 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2319
2339
|
var queue = Math.floor(duration / 10);
|
|
2320
2340
|
var segment = Math.floor(current / queue);
|
|
2321
2341
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2322
|
-
Segment.report_video_event('Video Pause', main.
|
|
2342
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2323
2343
|
};
|
|
2324
2344
|
|
|
2325
|
-
return React__default
|
|
2345
|
+
return React__default.createElement(
|
|
2326
2346
|
'div',
|
|
2327
2347
|
null,
|
|
2328
|
-
vidLoaded && React__default
|
|
2348
|
+
vidLoaded && React__default.createElement(
|
|
2329
2349
|
'video',
|
|
2330
2350
|
{
|
|
2331
2351
|
poster: thumbnail || '',
|
|
@@ -2343,7 +2363,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2343
2363
|
onPlay: function onPlay(e) {
|
|
2344
2364
|
return handleOnPlay(e);
|
|
2345
2365
|
} },
|
|
2346
|
-
React__default
|
|
2366
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2347
2367
|
'Your browser does not support the video tag.'
|
|
2348
2368
|
)
|
|
2349
2369
|
);
|
|
@@ -2385,7 +2405,7 @@ var Video = function Video(_ref) {
|
|
|
2385
2405
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2386
2406
|
//console.log('success:', success.ref)
|
|
2387
2407
|
var player = success.ref;
|
|
2388
|
-
if (_typeof
|
|
2408
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2389
2409
|
player.ima3.settings.debug = true;
|
|
2390
2410
|
if (targeting.content_placement && targeting.document_url) {
|
|
2391
2411
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2440,7 +2460,7 @@ var Video = function Video(_ref) {
|
|
|
2440
2460
|
}
|
|
2441
2461
|
|
|
2442
2462
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2443
|
-
Segment.report_video_event('Video Ready', main.
|
|
2463
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2444
2464
|
});
|
|
2445
2465
|
|
|
2446
2466
|
// play
|
|
@@ -2450,7 +2470,7 @@ var Video = function Video(_ref) {
|
|
|
2450
2470
|
var queue = Math.floor(duration / 10);
|
|
2451
2471
|
var segment = Math.floor(current / queue);
|
|
2452
2472
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2453
|
-
Segment.report_video_event('Video Play', main.
|
|
2473
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2454
2474
|
});
|
|
2455
2475
|
|
|
2456
2476
|
// pause
|
|
@@ -2460,7 +2480,7 @@ var Video = function Video(_ref) {
|
|
|
2460
2480
|
var queue = Math.floor(duration / 10);
|
|
2461
2481
|
var segment = Math.floor(current / queue);
|
|
2462
2482
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2463
|
-
Segment.report_video_event('Video Pause', main.
|
|
2483
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2464
2484
|
});
|
|
2465
2485
|
|
|
2466
2486
|
// end
|
|
@@ -2470,7 +2490,7 @@ var Video = function Video(_ref) {
|
|
|
2470
2490
|
var queue = Math.floor(duration / 10);
|
|
2471
2491
|
var segment = Math.floor(current / queue);
|
|
2472
2492
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2473
|
-
Segment.report_video_event('Video End', main.
|
|
2493
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2474
2494
|
autoplayNextVideo(evt);
|
|
2475
2495
|
});
|
|
2476
2496
|
|
|
@@ -2482,7 +2502,7 @@ var Video = function Video(_ref) {
|
|
|
2482
2502
|
var segment = Math.floor(current / queue);
|
|
2483
2503
|
if (!queueProgress.includes(segment)) {
|
|
2484
2504
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2485
|
-
Segment.report_video_event('Video Segment', main.
|
|
2505
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2486
2506
|
queueProgress.push(segment);
|
|
2487
2507
|
}
|
|
2488
2508
|
});
|
|
@@ -2490,29 +2510,29 @@ var Video = function Video(_ref) {
|
|
|
2490
2510
|
// ad impression
|
|
2491
2511
|
player.on('ads-ad-started', function (evt) {
|
|
2492
2512
|
var duration = player.ads.ad.duration;
|
|
2493
|
-
player.ads.ad.id;
|
|
2513
|
+
var id = player.ads.ad.id;
|
|
2494
2514
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2495
2515
|
|
|
2496
2516
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2497
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2517
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2498
2518
|
});
|
|
2499
2519
|
|
|
2500
2520
|
// ad ended
|
|
2501
2521
|
player.on('ads-ad-ended', function (evt) {
|
|
2502
2522
|
var duration = player.ads.ad.duration;
|
|
2503
|
-
player.ads.ad.id;
|
|
2523
|
+
var id = player.ads.ad.id;
|
|
2504
2524
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2505
2525
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2506
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2526
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2507
2527
|
});
|
|
2508
2528
|
};
|
|
2509
2529
|
|
|
2510
2530
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2511
2531
|
if (videoID) {
|
|
2512
|
-
return React__default
|
|
2532
|
+
return React__default.createElement(
|
|
2513
2533
|
'div',
|
|
2514
2534
|
null,
|
|
2515
|
-
React__default
|
|
2535
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2516
2536
|
onSuccess: onVideoSuccess,
|
|
2517
2537
|
onFailure: onVideoFailure,
|
|
2518
2538
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2520,43 +2540,43 @@ var Video = function Video(_ref) {
|
|
|
2520
2540
|
playerId: accountIDs.brightcove.playerId,
|
|
2521
2541
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2522
2542
|
}),
|
|
2523
|
-
React__default
|
|
2543
|
+
React__default.createElement(
|
|
2524
2544
|
'style',
|
|
2525
2545
|
{ jsx: 'true' },
|
|
2526
2546
|
'\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 '
|
|
2527
2547
|
)
|
|
2528
2548
|
);
|
|
2529
2549
|
} else if (playlistID) {
|
|
2530
|
-
return React__default
|
|
2550
|
+
return React__default.createElement(
|
|
2531
2551
|
'div',
|
|
2532
2552
|
null,
|
|
2533
|
-
React__default
|
|
2553
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2534
2554
|
accountId: accountIDs.brightcove.accountId,
|
|
2535
2555
|
playlistId: playlistID,
|
|
2536
2556
|
playerId: accountIDs.brightcove.playerId,
|
|
2537
2557
|
onSuccess: onVideoSuccess,
|
|
2538
2558
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2539
2559
|
}),
|
|
2540
|
-
React__default
|
|
2560
|
+
React__default.createElement(
|
|
2541
2561
|
'style',
|
|
2542
2562
|
{ jsx: 'true' },
|
|
2543
2563
|
'\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 '
|
|
2544
2564
|
)
|
|
2545
2565
|
);
|
|
2546
2566
|
} else if (experienceID) {
|
|
2547
|
-
return React__default
|
|
2567
|
+
return React__default.createElement(
|
|
2548
2568
|
'div',
|
|
2549
2569
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2550
|
-
videoLoaded && React__default
|
|
2570
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2551
2571
|
);
|
|
2552
2572
|
}
|
|
2553
2573
|
return null;
|
|
2554
2574
|
}
|
|
2555
2575
|
if (source === 'mp4') {
|
|
2556
|
-
return React__default
|
|
2576
|
+
return React__default.createElement(
|
|
2557
2577
|
'div',
|
|
2558
2578
|
null,
|
|
2559
|
-
React__default
|
|
2579
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2560
2580
|
);
|
|
2561
2581
|
}
|
|
2562
2582
|
|
|
@@ -2571,7 +2591,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2571
2591
|
});
|
|
2572
2592
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2573
2593
|
|
|
2574
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2594
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2575
2595
|
|
|
2576
2596
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2577
2597
|
|
|
@@ -2767,9 +2787,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2767
2787
|
});
|
|
2768
2788
|
|
|
2769
2789
|
_commonjsHelpers.unwrapExports(props);
|
|
2770
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2771
|
-
props.defaultProps;
|
|
2772
|
-
props.propTypes;
|
|
2790
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2791
|
+
var props_2 = props.defaultProps;
|
|
2792
|
+
var props_3 = props.propTypes;
|
|
2773
2793
|
|
|
2774
2794
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2775
2795
|
return isNonNullObject(value)
|
|
@@ -2934,17 +2954,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2934
2954
|
|
|
2935
2955
|
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; }
|
|
2936
2956
|
|
|
2937
|
-
function
|
|
2938
|
-
|
|
2939
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2940
|
-
|
|
2941
|
-
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."); }
|
|
2957
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2942
2958
|
|
|
2943
|
-
function
|
|
2959
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2944
2960
|
|
|
2945
|
-
function
|
|
2946
|
-
|
|
2947
|
-
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; }
|
|
2961
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2948
2962
|
|
|
2949
2963
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2950
2964
|
|
|
@@ -3074,12 +3088,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3074
3088
|
|
|
3075
3089
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3076
3090
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3077
|
-
|
|
3078
|
-
var
|
|
3079
|
-
|
|
3091
|
+
var _iteratorNormalCompletion = true;
|
|
3092
|
+
var _didIteratorError = false;
|
|
3093
|
+
var _iteratorError = undefined;
|
|
3080
3094
|
|
|
3081
3095
|
try {
|
|
3082
|
-
for (_iterator.
|
|
3096
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3083
3097
|
var p = _step.value;
|
|
3084
3098
|
|
|
3085
3099
|
if (props$1[p]) {
|
|
@@ -3094,9 +3108,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3094
3108
|
}
|
|
3095
3109
|
}
|
|
3096
3110
|
} catch (err) {
|
|
3097
|
-
|
|
3111
|
+
_didIteratorError = true;
|
|
3112
|
+
_iteratorError = err;
|
|
3098
3113
|
} finally {
|
|
3099
|
-
|
|
3114
|
+
try {
|
|
3115
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3116
|
+
_iterator["return"]();
|
|
3117
|
+
}
|
|
3118
|
+
} finally {
|
|
3119
|
+
if (_didIteratorError) {
|
|
3120
|
+
throw _iteratorError;
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3100
3123
|
}
|
|
3101
3124
|
|
|
3102
3125
|
return config;
|
|
@@ -3161,7 +3184,7 @@ function isEqual(a, b) {
|
|
|
3161
3184
|
return true;
|
|
3162
3185
|
}
|
|
3163
3186
|
|
|
3164
|
-
if ((0, React__default
|
|
3187
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3165
3188
|
return true;
|
|
3166
3189
|
}
|
|
3167
3190
|
|
|
@@ -3204,17 +3227,17 @@ function isMediaStream(url) {
|
|
|
3204
3227
|
});
|
|
3205
3228
|
|
|
3206
3229
|
_commonjsHelpers.unwrapExports(utils);
|
|
3207
|
-
utils.parseStartTime;
|
|
3208
|
-
utils.parseEndTime;
|
|
3209
|
-
utils.randomString;
|
|
3210
|
-
utils.queryString;
|
|
3211
|
-
utils.getSDK;
|
|
3212
|
-
utils.getConfig;
|
|
3213
|
-
utils.omit;
|
|
3214
|
-
utils.callPlayer;
|
|
3215
|
-
utils.isObject;
|
|
3216
|
-
utils.isEqual;
|
|
3217
|
-
utils.isMediaStream;
|
|
3230
|
+
var utils_1 = utils.parseStartTime;
|
|
3231
|
+
var utils_2 = utils.parseEndTime;
|
|
3232
|
+
var utils_3 = utils.randomString;
|
|
3233
|
+
var utils_4 = utils.queryString;
|
|
3234
|
+
var utils_5 = utils.getSDK;
|
|
3235
|
+
var utils_6 = utils.getConfig;
|
|
3236
|
+
var utils_7 = utils.omit;
|
|
3237
|
+
var utils_8 = utils.callPlayer;
|
|
3238
|
+
var utils_9 = utils.isObject;
|
|
3239
|
+
var utils_10 = utils.isEqual;
|
|
3240
|
+
var utils_11 = utils.isMediaStream;
|
|
3218
3241
|
|
|
3219
3242
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3220
3243
|
|
|
@@ -3223,7 +3246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3223
3246
|
});
|
|
3224
3247
|
exports["default"] = void 0;
|
|
3225
3248
|
|
|
3226
|
-
var _react = _interopRequireWildcard(React__default
|
|
3249
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3227
3250
|
|
|
3228
3251
|
|
|
3229
3252
|
|
|
@@ -3243,16 +3266,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3243
3266
|
|
|
3244
3267
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3245
3268
|
|
|
3246
|
-
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); }; }
|
|
3247
|
-
|
|
3248
3269
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3249
3270
|
|
|
3250
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3251
|
-
|
|
3252
|
-
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; } }
|
|
3253
|
-
|
|
3254
3271
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3255
3272
|
|
|
3273
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3274
|
+
|
|
3256
3275
|
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); }
|
|
3257
3276
|
|
|
3258
3277
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3261,12 +3280,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3261
3280
|
|
|
3262
3281
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3263
3282
|
|
|
3264
|
-
var Player =
|
|
3283
|
+
var Player =
|
|
3284
|
+
/*#__PURE__*/
|
|
3285
|
+
function (_Component) {
|
|
3265
3286
|
_inherits(Player, _Component);
|
|
3266
3287
|
|
|
3267
|
-
var _super = _createSuper(Player);
|
|
3268
|
-
|
|
3269
3288
|
function Player() {
|
|
3289
|
+
var _getPrototypeOf2;
|
|
3290
|
+
|
|
3270
3291
|
var _this;
|
|
3271
3292
|
|
|
3272
3293
|
_classCallCheck(this, Player);
|
|
@@ -3275,7 +3296,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3275
3296
|
_args[_key] = arguments[_key];
|
|
3276
3297
|
}
|
|
3277
3298
|
|
|
3278
|
-
_this =
|
|
3299
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3279
3300
|
|
|
3280
3301
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3281
3302
|
|
|
@@ -3600,7 +3621,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3600
3621
|
return null;
|
|
3601
3622
|
}
|
|
3602
3623
|
|
|
3603
|
-
return
|
|
3624
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3604
3625
|
ref: this.ref,
|
|
3605
3626
|
onReady: this.handleReady,
|
|
3606
3627
|
onPlay: this.handlePlay,
|
|
@@ -3633,7 +3654,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3633
3654
|
});
|
|
3634
3655
|
exports["default"] = createSinglePlayer;
|
|
3635
3656
|
|
|
3636
|
-
var _react = _interopRequireWildcard(React__default
|
|
3657
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3637
3658
|
|
|
3638
3659
|
|
|
3639
3660
|
|
|
@@ -3661,16 +3682,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3661
3682
|
|
|
3662
3683
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3663
3684
|
|
|
3664
|
-
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); }; }
|
|
3665
|
-
|
|
3666
3685
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3667
3686
|
|
|
3668
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3669
|
-
|
|
3670
|
-
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; } }
|
|
3671
|
-
|
|
3672
3687
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3673
3688
|
|
|
3689
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3690
|
+
|
|
3674
3691
|
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); }
|
|
3675
3692
|
|
|
3676
3693
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3682,12 +3699,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3682
3699
|
function createSinglePlayer(activePlayer) {
|
|
3683
3700
|
var _class, _temp;
|
|
3684
3701
|
|
|
3685
|
-
return _temp = _class =
|
|
3702
|
+
return _temp = _class =
|
|
3703
|
+
/*#__PURE__*/
|
|
3704
|
+
function (_Component) {
|
|
3686
3705
|
_inherits(SinglePlayer, _Component);
|
|
3687
3706
|
|
|
3688
|
-
var _super = _createSuper(SinglePlayer);
|
|
3689
|
-
|
|
3690
3707
|
function SinglePlayer() {
|
|
3708
|
+
var _getPrototypeOf2;
|
|
3709
|
+
|
|
3691
3710
|
var _this;
|
|
3692
3711
|
|
|
3693
3712
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3696,7 +3715,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3696
3715
|
args[_key] = arguments[_key];
|
|
3697
3716
|
}
|
|
3698
3717
|
|
|
3699
|
-
_this =
|
|
3718
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3700
3719
|
|
|
3701
3720
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3702
3721
|
|
|
@@ -3764,12 +3783,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3764
3783
|
height = _this$props.height,
|
|
3765
3784
|
Wrapper = _this$props.wrapper;
|
|
3766
3785
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3767
|
-
return
|
|
3786
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3768
3787
|
style: _objectSpread({}, style, {
|
|
3769
3788
|
width: width,
|
|
3770
3789
|
height: height
|
|
3771
3790
|
})
|
|
3772
|
-
}, otherProps),
|
|
3791
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3773
3792
|
ref: this.ref,
|
|
3774
3793
|
activePlayer: activePlayer,
|
|
3775
3794
|
config: this.config
|
|
@@ -3791,7 +3810,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3791
3810
|
});
|
|
3792
3811
|
exports["default"] = exports.YouTube = void 0;
|
|
3793
3812
|
|
|
3794
|
-
var _react = _interopRequireWildcard(React__default
|
|
3813
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3795
3814
|
|
|
3796
3815
|
|
|
3797
3816
|
|
|
@@ -3815,31 +3834,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3815
3834
|
|
|
3816
3835
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3817
3836
|
|
|
3818
|
-
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); }; }
|
|
3819
|
-
|
|
3820
3837
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3821
3838
|
|
|
3822
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3823
|
-
|
|
3824
|
-
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; } }
|
|
3825
|
-
|
|
3826
3839
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3827
3840
|
|
|
3841
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3842
|
+
|
|
3828
3843
|
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); }
|
|
3829
3844
|
|
|
3830
3845
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3831
3846
|
|
|
3832
3847
|
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; }
|
|
3833
3848
|
|
|
3834
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3835
|
-
|
|
3836
|
-
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."); }
|
|
3837
|
-
|
|
3838
|
-
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); }
|
|
3849
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3839
3850
|
|
|
3840
|
-
function
|
|
3851
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3841
3852
|
|
|
3842
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3853
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3843
3854
|
|
|
3844
3855
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3845
3856
|
|
|
@@ -3864,12 +3875,14 @@ function parsePlaylist(url) {
|
|
|
3864
3875
|
return {};
|
|
3865
3876
|
}
|
|
3866
3877
|
|
|
3867
|
-
var YouTube =
|
|
3878
|
+
var YouTube =
|
|
3879
|
+
/*#__PURE__*/
|
|
3880
|
+
function (_Component) {
|
|
3868
3881
|
_inherits(YouTube, _Component);
|
|
3869
3882
|
|
|
3870
|
-
var _super = _createSuper(YouTube);
|
|
3871
|
-
|
|
3872
3883
|
function YouTube() {
|
|
3884
|
+
var _getPrototypeOf2;
|
|
3885
|
+
|
|
3873
3886
|
var _this;
|
|
3874
3887
|
|
|
3875
3888
|
_classCallCheck(this, YouTube);
|
|
@@ -3878,7 +3891,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3878
3891
|
args[_key] = arguments[_key];
|
|
3879
3892
|
}
|
|
3880
3893
|
|
|
3881
|
-
_this =
|
|
3894
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3882
3895
|
|
|
3883
3896
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3884
3897
|
|
|
@@ -4066,9 +4079,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4066
4079
|
height: '100%',
|
|
4067
4080
|
display: display
|
|
4068
4081
|
};
|
|
4069
|
-
return
|
|
4082
|
+
return _react["default"].createElement("div", {
|
|
4070
4083
|
style: style
|
|
4071
|
-
},
|
|
4084
|
+
}, _react["default"].createElement("div", {
|
|
4072
4085
|
ref: this.ref
|
|
4073
4086
|
}));
|
|
4074
4087
|
}
|
|
@@ -4091,7 +4104,7 @@ exports["default"] = _default;
|
|
|
4091
4104
|
});
|
|
4092
4105
|
|
|
4093
4106
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4094
|
-
YouTube_1.YouTube;
|
|
4107
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4095
4108
|
|
|
4096
4109
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4097
4110
|
|
|
@@ -4100,7 +4113,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4100
4113
|
});
|
|
4101
4114
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4102
4115
|
|
|
4103
|
-
var _react = _interopRequireWildcard(React__default
|
|
4116
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4104
4117
|
|
|
4105
4118
|
|
|
4106
4119
|
|
|
@@ -4124,16 +4137,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4124
4137
|
|
|
4125
4138
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4126
4139
|
|
|
4127
|
-
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); }; }
|
|
4128
|
-
|
|
4129
4140
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4130
4141
|
|
|
4131
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4132
|
-
|
|
4133
|
-
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; } }
|
|
4134
|
-
|
|
4135
4142
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4136
4143
|
|
|
4144
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4145
|
+
|
|
4137
4146
|
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); }
|
|
4138
4147
|
|
|
4139
4148
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4142,14 +4151,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4142
4151
|
|
|
4143
4152
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4144
4153
|
var SDK_GLOBAL = 'SC';
|
|
4145
|
-
var MATCH_URL = /(
|
|
4154
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4146
4155
|
|
|
4147
|
-
var SoundCloud =
|
|
4156
|
+
var SoundCloud =
|
|
4157
|
+
/*#__PURE__*/
|
|
4158
|
+
function (_Component) {
|
|
4148
4159
|
_inherits(SoundCloud, _Component);
|
|
4149
4160
|
|
|
4150
|
-
var _super = _createSuper(SoundCloud);
|
|
4151
|
-
|
|
4152
4161
|
function SoundCloud() {
|
|
4162
|
+
var _getPrototypeOf2;
|
|
4163
|
+
|
|
4153
4164
|
var _this;
|
|
4154
4165
|
|
|
4155
4166
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4158,7 +4169,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4158
4169
|
args[_key] = arguments[_key];
|
|
4159
4170
|
}
|
|
4160
4171
|
|
|
4161
|
-
_this =
|
|
4172
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4162
4173
|
|
|
4163
4174
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4164
4175
|
|
|
@@ -4279,7 +4290,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4279
4290
|
height: '100%',
|
|
4280
4291
|
display: display
|
|
4281
4292
|
};
|
|
4282
|
-
return
|
|
4293
|
+
return _react["default"].createElement("iframe", {
|
|
4283
4294
|
ref: this.ref,
|
|
4284
4295
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4285
4296
|
style: style,
|
|
@@ -4308,7 +4319,7 @@ exports["default"] = _default;
|
|
|
4308
4319
|
});
|
|
4309
4320
|
|
|
4310
4321
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4311
|
-
SoundCloud_1.SoundCloud;
|
|
4322
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4312
4323
|
|
|
4313
4324
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4314
4325
|
|
|
@@ -4317,7 +4328,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4317
4328
|
});
|
|
4318
4329
|
exports["default"] = exports.Vimeo = void 0;
|
|
4319
4330
|
|
|
4320
|
-
var _react = _interopRequireWildcard(React__default
|
|
4331
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4321
4332
|
|
|
4322
4333
|
|
|
4323
4334
|
|
|
@@ -4341,16 +4352,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4341
4352
|
|
|
4342
4353
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4343
4354
|
|
|
4344
|
-
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); }; }
|
|
4345
|
-
|
|
4346
4355
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4347
4356
|
|
|
4348
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4349
|
-
|
|
4350
|
-
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; } }
|
|
4351
|
-
|
|
4352
4357
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4353
4358
|
|
|
4359
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4360
|
+
|
|
4354
4361
|
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); }
|
|
4355
4362
|
|
|
4356
4363
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4362,12 +4369,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4362
4369
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4363
4370
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4364
4371
|
|
|
4365
|
-
var Vimeo =
|
|
4372
|
+
var Vimeo =
|
|
4373
|
+
/*#__PURE__*/
|
|
4374
|
+
function (_Component) {
|
|
4366
4375
|
_inherits(Vimeo, _Component);
|
|
4367
4376
|
|
|
4368
|
-
var _super = _createSuper(Vimeo);
|
|
4369
|
-
|
|
4370
4377
|
function Vimeo() {
|
|
4378
|
+
var _getPrototypeOf2;
|
|
4379
|
+
|
|
4371
4380
|
var _this;
|
|
4372
4381
|
|
|
4373
4382
|
_classCallCheck(this, Vimeo);
|
|
@@ -4376,7 +4385,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4376
4385
|
args[_key] = arguments[_key];
|
|
4377
4386
|
}
|
|
4378
4387
|
|
|
4379
|
-
_this =
|
|
4388
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4380
4389
|
|
|
4381
4390
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4382
4391
|
|
|
@@ -4533,7 +4542,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4533
4542
|
overflow: 'hidden',
|
|
4534
4543
|
display: display
|
|
4535
4544
|
};
|
|
4536
|
-
return
|
|
4545
|
+
return _react["default"].createElement("div", {
|
|
4537
4546
|
key: this.props.url,
|
|
4538
4547
|
ref: this.ref,
|
|
4539
4548
|
style: style
|
|
@@ -4564,7 +4573,7 @@ exports["default"] = _default;
|
|
|
4564
4573
|
});
|
|
4565
4574
|
|
|
4566
4575
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4567
|
-
Vimeo_1.Vimeo;
|
|
4576
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4568
4577
|
|
|
4569
4578
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4570
4579
|
|
|
@@ -4573,7 +4582,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4573
4582
|
});
|
|
4574
4583
|
exports["default"] = exports.Facebook = void 0;
|
|
4575
4584
|
|
|
4576
|
-
var _react = _interopRequireWildcard(React__default
|
|
4585
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4577
4586
|
|
|
4578
4587
|
|
|
4579
4588
|
|
|
@@ -4593,16 +4602,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4593
4602
|
|
|
4594
4603
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4595
4604
|
|
|
4596
|
-
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); }; }
|
|
4597
|
-
|
|
4598
4605
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4599
4606
|
|
|
4600
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4601
|
-
|
|
4602
|
-
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; } }
|
|
4603
|
-
|
|
4604
4607
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4605
4608
|
|
|
4609
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4610
|
+
|
|
4606
4611
|
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); }
|
|
4607
4612
|
|
|
4608
4613
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4615,12 +4620,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4615
4620
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4616
4621
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4617
4622
|
|
|
4618
|
-
var Facebook =
|
|
4623
|
+
var Facebook =
|
|
4624
|
+
/*#__PURE__*/
|
|
4625
|
+
function (_Component) {
|
|
4619
4626
|
_inherits(Facebook, _Component);
|
|
4620
4627
|
|
|
4621
|
-
var _super = _createSuper(Facebook);
|
|
4622
|
-
|
|
4623
4628
|
function Facebook() {
|
|
4629
|
+
var _getPrototypeOf2;
|
|
4630
|
+
|
|
4624
4631
|
var _this;
|
|
4625
4632
|
|
|
4626
4633
|
_classCallCheck(this, Facebook);
|
|
@@ -4629,7 +4636,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4629
4636
|
args[_key] = arguments[_key];
|
|
4630
4637
|
}
|
|
4631
4638
|
|
|
4632
|
-
_this =
|
|
4639
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4633
4640
|
|
|
4634
4641
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4635
4642
|
|
|
@@ -4745,7 +4752,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4745
4752
|
width: '100%',
|
|
4746
4753
|
height: '100%'
|
|
4747
4754
|
};
|
|
4748
|
-
return
|
|
4755
|
+
return _react["default"].createElement("div", {
|
|
4749
4756
|
style: style,
|
|
4750
4757
|
id: this.playerID,
|
|
4751
4758
|
className: "fb-video",
|
|
@@ -4776,7 +4783,7 @@ exports["default"] = _default;
|
|
|
4776
4783
|
});
|
|
4777
4784
|
|
|
4778
4785
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4779
|
-
Facebook_1.Facebook;
|
|
4786
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4780
4787
|
|
|
4781
4788
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4782
4789
|
|
|
@@ -4785,7 +4792,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4785
4792
|
});
|
|
4786
4793
|
exports["default"] = exports.Streamable = void 0;
|
|
4787
4794
|
|
|
4788
|
-
var _react = _interopRequireWildcard(React__default
|
|
4795
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4789
4796
|
|
|
4790
4797
|
|
|
4791
4798
|
|
|
@@ -4805,16 +4812,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4805
4812
|
|
|
4806
4813
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4807
4814
|
|
|
4808
|
-
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); }; }
|
|
4809
|
-
|
|
4810
4815
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4811
4816
|
|
|
4812
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4813
|
-
|
|
4814
|
-
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; } }
|
|
4815
|
-
|
|
4816
4817
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4817
4818
|
|
|
4819
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4820
|
+
|
|
4818
4821
|
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); }
|
|
4819
4822
|
|
|
4820
4823
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4825,12 +4828,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4825
4828
|
var SDK_GLOBAL = 'playerjs';
|
|
4826
4829
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4827
4830
|
|
|
4828
|
-
var Streamable =
|
|
4831
|
+
var Streamable =
|
|
4832
|
+
/*#__PURE__*/
|
|
4833
|
+
function (_Component) {
|
|
4829
4834
|
_inherits(Streamable, _Component);
|
|
4830
4835
|
|
|
4831
|
-
var _super = _createSuper(Streamable);
|
|
4832
|
-
|
|
4833
4836
|
function Streamable() {
|
|
4837
|
+
var _getPrototypeOf2;
|
|
4838
|
+
|
|
4834
4839
|
var _this;
|
|
4835
4840
|
|
|
4836
4841
|
_classCallCheck(this, Streamable);
|
|
@@ -4839,7 +4844,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4839
4844
|
args[_key] = arguments[_key];
|
|
4840
4845
|
}
|
|
4841
4846
|
|
|
4842
|
-
_this =
|
|
4847
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4843
4848
|
|
|
4844
4849
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4845
4850
|
|
|
@@ -4959,7 +4964,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4959
4964
|
width: '100%',
|
|
4960
4965
|
height: '100%'
|
|
4961
4966
|
};
|
|
4962
|
-
return
|
|
4967
|
+
return _react["default"].createElement("iframe", {
|
|
4963
4968
|
ref: this.ref,
|
|
4964
4969
|
src: "https://streamable.com/o/".concat(id),
|
|
4965
4970
|
frameBorder: "0",
|
|
@@ -4987,7 +4992,7 @@ exports["default"] = _default;
|
|
|
4987
4992
|
});
|
|
4988
4993
|
|
|
4989
4994
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4990
|
-
Streamable_1.Streamable;
|
|
4995
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4991
4996
|
|
|
4992
4997
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4993
4998
|
|
|
@@ -4996,7 +5001,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4996
5001
|
});
|
|
4997
5002
|
exports["default"] = exports.Wistia = void 0;
|
|
4998
5003
|
|
|
4999
|
-
var _react = _interopRequireWildcard(React__default
|
|
5004
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5000
5005
|
|
|
5001
5006
|
|
|
5002
5007
|
|
|
@@ -5020,16 +5025,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5020
5025
|
|
|
5021
5026
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5022
5027
|
|
|
5023
|
-
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); }; }
|
|
5024
|
-
|
|
5025
5028
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5026
5029
|
|
|
5027
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5028
|
-
|
|
5029
|
-
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; } }
|
|
5030
|
-
|
|
5031
5030
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5032
5031
|
|
|
5032
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5033
|
+
|
|
5033
5034
|
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); }
|
|
5034
5035
|
|
|
5035
5036
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5040,48 +5041,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5040
5041
|
var SDK_GLOBAL = 'Wistia';
|
|
5041
5042
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5042
5043
|
|
|
5043
|
-
var Wistia =
|
|
5044
|
+
var Wistia =
|
|
5045
|
+
/*#__PURE__*/
|
|
5046
|
+
function (_Component) {
|
|
5044
5047
|
_inherits(Wistia, _Component);
|
|
5045
5048
|
|
|
5046
|
-
var _super = _createSuper(Wistia);
|
|
5047
|
-
|
|
5048
5049
|
function Wistia() {
|
|
5050
|
+
var _getPrototypeOf2;
|
|
5051
|
+
|
|
5049
5052
|
var _this;
|
|
5050
5053
|
|
|
5051
5054
|
_classCallCheck(this, Wistia);
|
|
5052
5055
|
|
|
5053
|
-
for (var _len = arguments.length,
|
|
5054
|
-
|
|
5056
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5057
|
+
args[_key] = arguments[_key];
|
|
5055
5058
|
}
|
|
5056
5059
|
|
|
5057
|
-
_this =
|
|
5060
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5058
5061
|
|
|
5059
5062
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5060
5063
|
|
|
5061
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5062
|
-
var _this$props;
|
|
5063
|
-
|
|
5064
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5065
|
-
});
|
|
5066
|
-
|
|
5067
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5068
|
-
var _this$props2;
|
|
5069
|
-
|
|
5070
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5071
|
-
});
|
|
5072
|
-
|
|
5073
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5074
|
-
var _this$props3;
|
|
5075
|
-
|
|
5076
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5077
|
-
});
|
|
5078
|
-
|
|
5079
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5080
|
-
var _this$props4;
|
|
5081
|
-
|
|
5082
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5083
|
-
});
|
|
5084
|
-
|
|
5085
5064
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5086
5065
|
_this.callPlayer('mute');
|
|
5087
5066
|
});
|
|
@@ -5103,13 +5082,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5103
5082
|
value: function load(url) {
|
|
5104
5083
|
var _this2 = this;
|
|
5105
5084
|
|
|
5106
|
-
var _this$
|
|
5107
|
-
playing = _this$
|
|
5108
|
-
muted = _this$
|
|
5109
|
-
controls = _this$
|
|
5110
|
-
_onReady = _this$
|
|
5111
|
-
|
|
5112
|
-
|
|
5085
|
+
var _this$props = this.props,
|
|
5086
|
+
playing = _this$props.playing,
|
|
5087
|
+
muted = _this$props.muted,
|
|
5088
|
+
controls = _this$props.controls,
|
|
5089
|
+
_onReady = _this$props.onReady,
|
|
5090
|
+
onPlay = _this$props.onPlay,
|
|
5091
|
+
onPause = _this$props.onPause,
|
|
5092
|
+
onSeek = _this$props.onSeek,
|
|
5093
|
+
onEnded = _this$props.onEnded,
|
|
5094
|
+
config = _this$props.config,
|
|
5095
|
+
onError = _this$props.onError;
|
|
5113
5096
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5114
5097
|
window._wq = window._wq || [];
|
|
5115
5098
|
|
|
@@ -5126,28 +5109,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5126
5109
|
|
|
5127
5110
|
_this2.unbind();
|
|
5128
5111
|
|
|
5129
|
-
_this2.player.bind('play',
|
|
5112
|
+
_this2.player.bind('play', onPlay);
|
|
5130
5113
|
|
|
5131
|
-
_this2.player.bind('pause',
|
|
5114
|
+
_this2.player.bind('pause', onPause);
|
|
5132
5115
|
|
|
5133
|
-
_this2.player.bind('seek',
|
|
5116
|
+
_this2.player.bind('seek', onSeek);
|
|
5134
5117
|
|
|
5135
|
-
_this2.player.bind('end',
|
|
5118
|
+
_this2.player.bind('end', onEnded);
|
|
5136
5119
|
|
|
5137
5120
|
_onReady();
|
|
5138
5121
|
}
|
|
5139
5122
|
});
|
|
5140
5123
|
}, onError);
|
|
5141
5124
|
}
|
|
5142
|
-
}, {
|
|
5143
|
-
key: "unbind",
|
|
5144
|
-
value: function unbind() {
|
|
5145
|
-
this.player.unbind('play', this.onPlay);
|
|
5146
|
-
this.player.unbind('pause', this.onPause);
|
|
5147
|
-
this.player.unbind('seek', this.onSeek);
|
|
5148
|
-
this.player.unbind('end', this.onEnded);
|
|
5149
|
-
} // Proxy methods to prevent listener leaks
|
|
5150
|
-
|
|
5151
5125
|
}, {
|
|
5152
5126
|
key: "play",
|
|
5153
5127
|
value: function play() {
|
|
@@ -5158,6 +5132,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5158
5132
|
value: function pause() {
|
|
5159
5133
|
this.callPlayer('pause');
|
|
5160
5134
|
}
|
|
5135
|
+
}, {
|
|
5136
|
+
key: "unbind",
|
|
5137
|
+
value: function unbind() {
|
|
5138
|
+
var _this$props2 = this.props,
|
|
5139
|
+
onPlay = _this$props2.onPlay,
|
|
5140
|
+
onPause = _this$props2.onPause,
|
|
5141
|
+
onSeek = _this$props2.onSeek,
|
|
5142
|
+
onEnded = _this$props2.onEnded;
|
|
5143
|
+
this.player.unbind('play', onPlay);
|
|
5144
|
+
this.player.unbind('pause', onPause);
|
|
5145
|
+
this.player.unbind('seek', onSeek);
|
|
5146
|
+
this.player.unbind('end', onEnded);
|
|
5147
|
+
}
|
|
5161
5148
|
}, {
|
|
5162
5149
|
key: "stop",
|
|
5163
5150
|
value: function stop() {
|
|
@@ -5203,7 +5190,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5203
5190
|
width: '100%',
|
|
5204
5191
|
height: '100%'
|
|
5205
5192
|
};
|
|
5206
|
-
return
|
|
5193
|
+
return _react["default"].createElement("div", {
|
|
5207
5194
|
key: id,
|
|
5208
5195
|
className: className,
|
|
5209
5196
|
style: style
|
|
@@ -5230,7 +5217,7 @@ exports["default"] = _default;
|
|
|
5230
5217
|
});
|
|
5231
5218
|
|
|
5232
5219
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5233
|
-
Wistia_1.Wistia;
|
|
5220
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5234
5221
|
|
|
5235
5222
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5236
5223
|
|
|
@@ -5239,7 +5226,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5239
5226
|
});
|
|
5240
5227
|
exports["default"] = exports.Twitch = void 0;
|
|
5241
5228
|
|
|
5242
|
-
var _react = _interopRequireWildcard(React__default
|
|
5229
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5243
5230
|
|
|
5244
5231
|
|
|
5245
5232
|
|
|
@@ -5263,16 +5250,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5263
5250
|
|
|
5264
5251
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5265
5252
|
|
|
5266
|
-
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); }; }
|
|
5267
|
-
|
|
5268
5253
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5269
5254
|
|
|
5270
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5271
|
-
|
|
5272
|
-
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; } }
|
|
5273
|
-
|
|
5274
5255
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5275
5256
|
|
|
5257
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5258
|
+
|
|
5276
5259
|
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); }
|
|
5277
5260
|
|
|
5278
5261
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5285,12 +5268,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5285
5268
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5286
5269
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5287
5270
|
|
|
5288
|
-
var Twitch =
|
|
5271
|
+
var Twitch =
|
|
5272
|
+
/*#__PURE__*/
|
|
5273
|
+
function (_Component) {
|
|
5289
5274
|
_inherits(Twitch, _Component);
|
|
5290
5275
|
|
|
5291
|
-
var _super = _createSuper(Twitch);
|
|
5292
|
-
|
|
5293
5276
|
function Twitch() {
|
|
5277
|
+
var _getPrototypeOf2;
|
|
5278
|
+
|
|
5294
5279
|
var _this;
|
|
5295
5280
|
|
|
5296
5281
|
_classCallCheck(this, Twitch);
|
|
@@ -5299,7 +5284,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5299
5284
|
args[_key] = arguments[_key];
|
|
5300
5285
|
}
|
|
5301
5286
|
|
|
5302
|
-
_this =
|
|
5287
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5303
5288
|
|
|
5304
5289
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5305
5290
|
|
|
@@ -5420,7 +5405,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5420
5405
|
width: '100%',
|
|
5421
5406
|
height: '100%'
|
|
5422
5407
|
};
|
|
5423
|
-
return
|
|
5408
|
+
return _react["default"].createElement("div", {
|
|
5424
5409
|
style: style,
|
|
5425
5410
|
id: this.playerID
|
|
5426
5411
|
});
|
|
@@ -5446,7 +5431,7 @@ exports["default"] = _default;
|
|
|
5446
5431
|
});
|
|
5447
5432
|
|
|
5448
5433
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5449
|
-
Twitch_1.Twitch;
|
|
5434
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5450
5435
|
|
|
5451
5436
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5452
5437
|
|
|
@@ -5455,7 +5440,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5455
5440
|
});
|
|
5456
5441
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5457
5442
|
|
|
5458
|
-
var _react = _interopRequireWildcard(React__default
|
|
5443
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5459
5444
|
|
|
5460
5445
|
|
|
5461
5446
|
|
|
@@ -5473,15 +5458,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5473
5458
|
|
|
5474
5459
|
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; }
|
|
5475
5460
|
|
|
5476
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5477
|
-
|
|
5478
|
-
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."); }
|
|
5479
|
-
|
|
5480
|
-
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); }
|
|
5461
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5481
5462
|
|
|
5482
|
-
function
|
|
5463
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5483
5464
|
|
|
5484
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5465
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5485
5466
|
|
|
5486
5467
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5487
5468
|
|
|
@@ -5491,16 +5472,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5491
5472
|
|
|
5492
5473
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5493
5474
|
|
|
5494
|
-
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); }; }
|
|
5495
|
-
|
|
5496
5475
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5497
5476
|
|
|
5498
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5499
|
-
|
|
5500
|
-
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; } }
|
|
5501
|
-
|
|
5502
5477
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5503
5478
|
|
|
5479
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5480
|
+
|
|
5504
5481
|
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); }
|
|
5505
5482
|
|
|
5506
5483
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5512,12 +5489,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5512
5489
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5513
5490
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5514
5491
|
|
|
5515
|
-
var DailyMotion =
|
|
5492
|
+
var DailyMotion =
|
|
5493
|
+
/*#__PURE__*/
|
|
5494
|
+
function (_Component) {
|
|
5516
5495
|
_inherits(DailyMotion, _Component);
|
|
5517
5496
|
|
|
5518
|
-
var _super = _createSuper(DailyMotion);
|
|
5519
|
-
|
|
5520
5497
|
function DailyMotion() {
|
|
5498
|
+
var _getPrototypeOf2;
|
|
5499
|
+
|
|
5521
5500
|
var _this;
|
|
5522
5501
|
|
|
5523
5502
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5526,7 +5505,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5526
5505
|
args[_key] = arguments[_key];
|
|
5527
5506
|
}
|
|
5528
5507
|
|
|
5529
|
-
_this =
|
|
5508
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5530
5509
|
|
|
5531
5510
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5532
5511
|
|
|
@@ -5655,9 +5634,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5655
5634
|
height: '100%',
|
|
5656
5635
|
display: display
|
|
5657
5636
|
};
|
|
5658
|
-
return
|
|
5637
|
+
return _react["default"].createElement("div", {
|
|
5659
5638
|
style: style
|
|
5660
|
-
},
|
|
5639
|
+
}, _react["default"].createElement("div", {
|
|
5661
5640
|
ref: this.ref
|
|
5662
5641
|
}));
|
|
5663
5642
|
}
|
|
@@ -5682,7 +5661,7 @@ exports["default"] = _default;
|
|
|
5682
5661
|
});
|
|
5683
5662
|
|
|
5684
5663
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5685
|
-
DailyMotion_1.DailyMotion;
|
|
5664
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5686
5665
|
|
|
5687
5666
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5688
5667
|
|
|
@@ -5691,7 +5670,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5691
5670
|
});
|
|
5692
5671
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5693
5672
|
|
|
5694
|
-
var _react = _interopRequireWildcard(React__default
|
|
5673
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5695
5674
|
|
|
5696
5675
|
|
|
5697
5676
|
|
|
@@ -5715,16 +5694,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5715
5694
|
|
|
5716
5695
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5717
5696
|
|
|
5718
|
-
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); }; }
|
|
5719
|
-
|
|
5720
5697
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5721
5698
|
|
|
5722
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5723
|
-
|
|
5724
|
-
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; } }
|
|
5725
|
-
|
|
5726
5699
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5727
5700
|
|
|
5701
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5702
|
+
|
|
5728
5703
|
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); }
|
|
5729
5704
|
|
|
5730
5705
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5735,12 +5710,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5735
5710
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5736
5711
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5737
5712
|
|
|
5738
|
-
var Mixcloud =
|
|
5713
|
+
var Mixcloud =
|
|
5714
|
+
/*#__PURE__*/
|
|
5715
|
+
function (_Component) {
|
|
5739
5716
|
_inherits(Mixcloud, _Component);
|
|
5740
5717
|
|
|
5741
|
-
var _super = _createSuper(Mixcloud);
|
|
5742
|
-
|
|
5743
5718
|
function Mixcloud() {
|
|
5719
|
+
var _getPrototypeOf2;
|
|
5720
|
+
|
|
5744
5721
|
var _this;
|
|
5745
5722
|
|
|
5746
5723
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5749,7 +5726,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5749
5726
|
args[_key] = arguments[_key];
|
|
5750
5727
|
}
|
|
5751
5728
|
|
|
5752
|
-
_this =
|
|
5729
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5753
5730
|
|
|
5754
5731
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5755
5732
|
|
|
@@ -5852,7 +5829,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5852
5829
|
})); // We have to give the iframe a key here to prevent a
|
|
5853
5830
|
// weird dialog appearing when loading a new track
|
|
5854
5831
|
|
|
5855
|
-
return
|
|
5832
|
+
return _react["default"].createElement("iframe", {
|
|
5856
5833
|
key: id,
|
|
5857
5834
|
ref: this.ref,
|
|
5858
5835
|
style: style,
|
|
@@ -5881,7 +5858,7 @@ exports["default"] = _default;
|
|
|
5881
5858
|
});
|
|
5882
5859
|
|
|
5883
5860
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5884
|
-
Mixcloud_1.Mixcloud;
|
|
5861
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5885
5862
|
|
|
5886
5863
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5887
5864
|
|
|
@@ -5890,7 +5867,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5890
5867
|
});
|
|
5891
5868
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5892
5869
|
|
|
5893
|
-
var _react = _interopRequireWildcard(React__default
|
|
5870
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5894
5871
|
|
|
5895
5872
|
|
|
5896
5873
|
|
|
@@ -5912,33 +5889,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5912
5889
|
|
|
5913
5890
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5914
5891
|
|
|
5915
|
-
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); }; }
|
|
5916
|
-
|
|
5917
5892
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5918
5893
|
|
|
5919
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5920
|
-
|
|
5921
|
-
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; } }
|
|
5922
|
-
|
|
5923
5894
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5924
5895
|
|
|
5896
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5897
|
+
|
|
5925
5898
|
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); }
|
|
5926
5899
|
|
|
5927
5900
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5928
5901
|
|
|
5929
5902
|
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; }
|
|
5930
5903
|
|
|
5931
|
-
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; } } }; }
|
|
5932
|
-
|
|
5933
|
-
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); }
|
|
5934
|
-
|
|
5935
|
-
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; }
|
|
5936
|
-
|
|
5937
5904
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5938
5905
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5939
5906
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5940
5907
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5941
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5908
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5942
5909
|
var HLS_GLOBAL = 'Hls';
|
|
5943
5910
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5944
5911
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5947,11 +5914,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5947
5914
|
|
|
5948
5915
|
function canPlay(url) {
|
|
5949
5916
|
if (url instanceof Array) {
|
|
5950
|
-
var
|
|
5951
|
-
|
|
5917
|
+
var _iteratorNormalCompletion = true;
|
|
5918
|
+
var _didIteratorError = false;
|
|
5919
|
+
var _iteratorError = undefined;
|
|
5952
5920
|
|
|
5953
5921
|
try {
|
|
5954
|
-
for (_iterator.
|
|
5922
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5955
5923
|
var item = _step.value;
|
|
5956
5924
|
|
|
5957
5925
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5963,9 +5931,18 @@ function canPlay(url) {
|
|
|
5963
5931
|
}
|
|
5964
5932
|
}
|
|
5965
5933
|
} catch (err) {
|
|
5966
|
-
|
|
5934
|
+
_didIteratorError = true;
|
|
5935
|
+
_iteratorError = err;
|
|
5967
5936
|
} finally {
|
|
5968
|
-
|
|
5937
|
+
try {
|
|
5938
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5939
|
+
_iterator["return"]();
|
|
5940
|
+
}
|
|
5941
|
+
} finally {
|
|
5942
|
+
if (_didIteratorError) {
|
|
5943
|
+
throw _iteratorError;
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5969
5946
|
}
|
|
5970
5947
|
|
|
5971
5948
|
return false;
|
|
@@ -5989,12 +5966,14 @@ function canEnablePIP(url) {
|
|
|
5989
5966
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5990
5967
|
}
|
|
5991
5968
|
|
|
5992
|
-
var FilePlayer =
|
|
5969
|
+
var FilePlayer =
|
|
5970
|
+
/*#__PURE__*/
|
|
5971
|
+
function (_Component) {
|
|
5993
5972
|
_inherits(FilePlayer, _Component);
|
|
5994
5973
|
|
|
5995
|
-
var _super = _createSuper(FilePlayer);
|
|
5996
|
-
|
|
5997
5974
|
function FilePlayer() {
|
|
5975
|
+
var _getPrototypeOf2;
|
|
5976
|
+
|
|
5998
5977
|
var _this;
|
|
5999
5978
|
|
|
6000
5979
|
_classCallCheck(this, FilePlayer);
|
|
@@ -6003,7 +5982,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6003
5982
|
_args[_key] = arguments[_key];
|
|
6004
5983
|
}
|
|
6005
5984
|
|
|
6006
|
-
_this =
|
|
5985
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
6007
5986
|
|
|
6008
5987
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
6009
5988
|
var _this$props;
|
|
@@ -6090,19 +6069,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6090
6069
|
|
|
6091
6070
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6092
6071
|
if (typeof source === 'string') {
|
|
6093
|
-
return
|
|
6072
|
+
return _react["default"].createElement("source", {
|
|
6094
6073
|
key: index,
|
|
6095
6074
|
src: source
|
|
6096
6075
|
});
|
|
6097
6076
|
}
|
|
6098
6077
|
|
|
6099
|
-
return
|
|
6078
|
+
return _react["default"].createElement("source", _extends({
|
|
6100
6079
|
key: index
|
|
6101
6080
|
}, source));
|
|
6102
6081
|
});
|
|
6103
6082
|
|
|
6104
6083
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6105
|
-
return
|
|
6084
|
+
return _react["default"].createElement("track", _extends({
|
|
6106
6085
|
key: index
|
|
6107
6086
|
}, track));
|
|
6108
6087
|
});
|
|
@@ -6140,10 +6119,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6140
6119
|
key: "componentWillUnmount",
|
|
6141
6120
|
value: function componentWillUnmount() {
|
|
6142
6121
|
this.removeListeners(this.player);
|
|
6143
|
-
|
|
6144
|
-
if (this.hls) {
|
|
6145
|
-
this.hls.destroy();
|
|
6146
|
-
}
|
|
6147
6122
|
}
|
|
6148
6123
|
}, {
|
|
6149
6124
|
key: "addListeners",
|
|
@@ -6274,6 +6249,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6274
6249
|
value: function stop() {
|
|
6275
6250
|
this.player.removeAttribute('src');
|
|
6276
6251
|
|
|
6252
|
+
if (this.hls) {
|
|
6253
|
+
this.hls.destroy();
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6277
6256
|
if (this.dash) {
|
|
6278
6257
|
this.dash.reset();
|
|
6279
6258
|
}
|
|
@@ -6385,7 +6364,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6385
6364
|
width: width === 'auto' ? width : '100%',
|
|
6386
6365
|
height: height === 'auto' ? height : '100%'
|
|
6387
6366
|
};
|
|
6388
|
-
return
|
|
6367
|
+
return _react["default"].createElement(Element, _extends({
|
|
6389
6368
|
ref: this.ref,
|
|
6390
6369
|
src: this.getSource(url),
|
|
6391
6370
|
style: style,
|
|
@@ -6415,7 +6394,7 @@ exports["default"] = _default;
|
|
|
6415
6394
|
});
|
|
6416
6395
|
|
|
6417
6396
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6418
|
-
FilePlayer_1.FilePlayer;
|
|
6397
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6419
6398
|
|
|
6420
6399
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6421
6400
|
|
|
@@ -6457,7 +6436,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6457
6436
|
});
|
|
6458
6437
|
exports["default"] = void 0;
|
|
6459
6438
|
|
|
6460
|
-
var _react = _interopRequireWildcard(React__default
|
|
6439
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6461
6440
|
|
|
6462
6441
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6463
6442
|
|
|
@@ -6475,16 +6454,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6475
6454
|
|
|
6476
6455
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6477
6456
|
|
|
6478
|
-
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); }; }
|
|
6479
|
-
|
|
6480
6457
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6481
6458
|
|
|
6482
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6483
|
-
|
|
6484
|
-
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; } }
|
|
6485
|
-
|
|
6486
6459
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6487
6460
|
|
|
6461
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6462
|
+
|
|
6488
6463
|
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); }
|
|
6489
6464
|
|
|
6490
6465
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6493,12 +6468,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6493
6468
|
|
|
6494
6469
|
var ICON_SIZE = '64px';
|
|
6495
6470
|
|
|
6496
|
-
var Preview =
|
|
6471
|
+
var Preview =
|
|
6472
|
+
/*#__PURE__*/
|
|
6473
|
+
function (_Component) {
|
|
6497
6474
|
_inherits(Preview, _Component);
|
|
6498
6475
|
|
|
6499
|
-
var _super = _createSuper(Preview);
|
|
6500
|
-
|
|
6501
6476
|
function Preview() {
|
|
6477
|
+
var _getPrototypeOf2;
|
|
6478
|
+
|
|
6502
6479
|
var _this;
|
|
6503
6480
|
|
|
6504
6481
|
_classCallCheck(this, Preview);
|
|
@@ -6507,7 +6484,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6507
6484
|
args[_key] = arguments[_key];
|
|
6508
6485
|
}
|
|
6509
6486
|
|
|
6510
|
-
_this =
|
|
6487
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6511
6488
|
|
|
6512
6489
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6513
6490
|
|
|
@@ -6605,15 +6582,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6605
6582
|
}
|
|
6606
6583
|
};
|
|
6607
6584
|
|
|
6608
|
-
var defaultPlayIcon =
|
|
6585
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6609
6586
|
style: styles.shadow,
|
|
6610
6587
|
className: "react-player__shadow"
|
|
6611
|
-
},
|
|
6588
|
+
}, _react["default"].createElement("div", {
|
|
6612
6589
|
style: styles.playIcon,
|
|
6613
6590
|
className: "react-player__play-icon"
|
|
6614
6591
|
}));
|
|
6615
6592
|
|
|
6616
|
-
return
|
|
6593
|
+
return _react["default"].createElement("div", {
|
|
6617
6594
|
style: styles.preview,
|
|
6618
6595
|
className: "react-player__preview",
|
|
6619
6596
|
onClick: onClick
|
|
@@ -6636,7 +6613,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6636
6613
|
});
|
|
6637
6614
|
exports["default"] = renderPreloadPlayers;
|
|
6638
6615
|
|
|
6639
|
-
var _react = _interopRequireDefault(React__default
|
|
6616
|
+
var _react = _interopRequireDefault(React__default);
|
|
6640
6617
|
|
|
6641
6618
|
var _Player = _interopRequireDefault(Player_1);
|
|
6642
6619
|
|
|
@@ -6650,12 +6627,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6650
6627
|
|
|
6651
6628
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6652
6629
|
|
|
6653
|
-
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; } } }; }
|
|
6654
|
-
|
|
6655
|
-
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); }
|
|
6656
|
-
|
|
6657
|
-
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; }
|
|
6658
|
-
|
|
6659
6630
|
var PRELOAD_PLAYERS = [{
|
|
6660
6631
|
Player: YouTube_1.YouTube,
|
|
6661
6632
|
configKey: 'youtube',
|
|
@@ -6676,16 +6647,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6676
6647
|
|
|
6677
6648
|
function renderPreloadPlayers(url, controls, config) {
|
|
6678
6649
|
var players = [];
|
|
6679
|
-
|
|
6680
|
-
var
|
|
6681
|
-
|
|
6650
|
+
var _iteratorNormalCompletion = true;
|
|
6651
|
+
var _didIteratorError = false;
|
|
6652
|
+
var _iteratorError = undefined;
|
|
6682
6653
|
|
|
6683
6654
|
try {
|
|
6684
|
-
for (_iterator.
|
|
6655
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6685
6656
|
var player = _step.value;
|
|
6686
6657
|
|
|
6687
6658
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6688
|
-
players.push(
|
|
6659
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6689
6660
|
key: player.Player.displayName,
|
|
6690
6661
|
activePlayer: player.Player,
|
|
6691
6662
|
url: player.url,
|
|
@@ -6697,9 +6668,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6697
6668
|
}
|
|
6698
6669
|
}
|
|
6699
6670
|
} catch (err) {
|
|
6700
|
-
|
|
6671
|
+
_didIteratorError = true;
|
|
6672
|
+
_iteratorError = err;
|
|
6701
6673
|
} finally {
|
|
6702
|
-
|
|
6674
|
+
try {
|
|
6675
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6676
|
+
_iterator["return"]();
|
|
6677
|
+
}
|
|
6678
|
+
} finally {
|
|
6679
|
+
if (_didIteratorError) {
|
|
6680
|
+
throw _iteratorError;
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6703
6683
|
}
|
|
6704
6684
|
|
|
6705
6685
|
return players;
|
|
@@ -6775,7 +6755,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6775
6755
|
});
|
|
6776
6756
|
exports["default"] = void 0;
|
|
6777
6757
|
|
|
6778
|
-
var _react = _interopRequireWildcard(React__default
|
|
6758
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6779
6759
|
|
|
6780
6760
|
|
|
6781
6761
|
|
|
@@ -6823,17 +6803,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6823
6803
|
|
|
6824
6804
|
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); }
|
|
6825
6805
|
|
|
6826
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6827
|
-
|
|
6828
|
-
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."); }
|
|
6806
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6829
6807
|
|
|
6830
|
-
function
|
|
6808
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6831
6809
|
|
|
6832
|
-
function _iterableToArray(iter) { if (
|
|
6810
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6833
6811
|
|
|
6834
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6835
|
-
|
|
6836
|
-
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; }
|
|
6812
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6837
6813
|
|
|
6838
6814
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6839
6815
|
|
|
@@ -6841,16 +6817,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6841
6817
|
|
|
6842
6818
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6843
6819
|
|
|
6844
|
-
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); }; }
|
|
6845
|
-
|
|
6846
6820
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6847
6821
|
|
|
6848
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6849
|
-
|
|
6850
|
-
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; } }
|
|
6851
|
-
|
|
6852
6822
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6853
6823
|
|
|
6824
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6825
|
+
|
|
6854
6826
|
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); }
|
|
6855
6827
|
|
|
6856
6828
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6860,12 +6832,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6860
6832
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6861
6833
|
var customPlayers = [];
|
|
6862
6834
|
|
|
6863
|
-
var ReactPlayer =
|
|
6835
|
+
var ReactPlayer =
|
|
6836
|
+
/*#__PURE__*/
|
|
6837
|
+
function (_Component) {
|
|
6864
6838
|
_inherits(ReactPlayer, _Component);
|
|
6865
6839
|
|
|
6866
|
-
var _super = _createSuper(ReactPlayer);
|
|
6867
|
-
|
|
6868
6840
|
function ReactPlayer() {
|
|
6841
|
+
var _getPrototypeOf2;
|
|
6842
|
+
|
|
6869
6843
|
var _this;
|
|
6870
6844
|
|
|
6871
6845
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6874,7 +6848,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6874
6848
|
args[_key] = arguments[_key];
|
|
6875
6849
|
}
|
|
6876
6850
|
|
|
6877
|
-
_this =
|
|
6851
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6878
6852
|
|
|
6879
6853
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6880
6854
|
|
|
@@ -6985,7 +6959,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6985
6959
|
key: "renderActivePlayer",
|
|
6986
6960
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6987
6961
|
if (!url) return null;
|
|
6988
|
-
return
|
|
6962
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6989
6963
|
key: activePlayer.displayName,
|
|
6990
6964
|
ref: this.activePlayerRef,
|
|
6991
6965
|
config: this.config,
|
|
@@ -7022,14 +6996,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
7022
6996
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
7023
6997
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
7024
6998
|
|
|
7025
|
-
var preview =
|
|
6999
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
7026
7000
|
url: url,
|
|
7027
7001
|
light: light,
|
|
7028
7002
|
playIcon: playIcon,
|
|
7029
7003
|
onClick: this.handleClickPreview
|
|
7030
7004
|
});
|
|
7031
7005
|
|
|
7032
|
-
return
|
|
7006
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
7033
7007
|
ref: this.wrapperRef,
|
|
7034
7008
|
style: _objectSpread({}, style, {
|
|
7035
7009
|
width: width,
|
|
@@ -7089,20 +7063,20 @@ var Audio = function Audio(_ref) {
|
|
|
7089
7063
|
var node = _ref.node;
|
|
7090
7064
|
|
|
7091
7065
|
if (node.uploadAudio) {
|
|
7092
|
-
return React__default
|
|
7066
|
+
return React__default.createElement(
|
|
7093
7067
|
'div',
|
|
7094
7068
|
{ className: 'audio d-block text-center mb-3' },
|
|
7095
|
-
React__default
|
|
7069
|
+
React__default.createElement(
|
|
7096
7070
|
'audio',
|
|
7097
7071
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7098
|
-
React__default
|
|
7099
|
-
React__default
|
|
7072
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7073
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7100
7074
|
'Your browser does not support the audio element.'
|
|
7101
7075
|
),
|
|
7102
|
-
node.caption && React__default
|
|
7076
|
+
node.caption && React__default.createElement(
|
|
7103
7077
|
'p',
|
|
7104
7078
|
{ style: { fontSize: '.9rem' } },
|
|
7105
|
-
React__default
|
|
7079
|
+
React__default.createElement(
|
|
7106
7080
|
'em',
|
|
7107
7081
|
null,
|
|
7108
7082
|
node.caption
|
|
@@ -7112,15 +7086,15 @@ var Audio = function Audio(_ref) {
|
|
|
7112
7086
|
} else if (node.audioFilePth) {
|
|
7113
7087
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7114
7088
|
if (hostname === 'embeds.audioboom.com') {
|
|
7115
|
-
return React__default
|
|
7089
|
+
return React__default.createElement(
|
|
7116
7090
|
'div',
|
|
7117
7091
|
null,
|
|
7118
|
-
React__default
|
|
7092
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7119
7093
|
' ',
|
|
7120
|
-
node.caption && React__default
|
|
7094
|
+
node.caption && React__default.createElement(
|
|
7121
7095
|
'p',
|
|
7122
7096
|
{ style: { fontSize: '.9rem' } },
|
|
7123
|
-
React__default
|
|
7097
|
+
React__default.createElement(
|
|
7124
7098
|
'em',
|
|
7125
7099
|
null,
|
|
7126
7100
|
node.caption
|
|
@@ -7128,14 +7102,14 @@ var Audio = function Audio(_ref) {
|
|
|
7128
7102
|
)
|
|
7129
7103
|
);
|
|
7130
7104
|
}
|
|
7131
|
-
return React__default
|
|
7105
|
+
return React__default.createElement(
|
|
7132
7106
|
'div',
|
|
7133
7107
|
{ className: 'audio' },
|
|
7134
|
-
React__default
|
|
7135
|
-
node.caption && React__default
|
|
7108
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7109
|
+
node.caption && React__default.createElement(
|
|
7136
7110
|
'p',
|
|
7137
7111
|
{ style: { fontSize: '.9rem' } },
|
|
7138
|
-
React__default
|
|
7112
|
+
React__default.createElement(
|
|
7139
7113
|
'em',
|
|
7140
7114
|
null,
|
|
7141
7115
|
node.caption
|
|
@@ -7154,34 +7128,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7154
7128
|
var showAuthorDetails = arguments[7];
|
|
7155
7129
|
|
|
7156
7130
|
if (authorName && authorURL) {
|
|
7157
|
-
return React__default
|
|
7131
|
+
return React__default.createElement(
|
|
7158
7132
|
'span',
|
|
7159
7133
|
null,
|
|
7160
|
-
React__default
|
|
7134
|
+
React__default.createElement(
|
|
7161
7135
|
'a',
|
|
7162
7136
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7163
7137
|
authorName
|
|
7164
7138
|
),
|
|
7165
|
-
showAuthorDetails && React__default
|
|
7139
|
+
showAuthorDetails && React__default.createElement(
|
|
7166
7140
|
reactBootstrap.Card,
|
|
7167
7141
|
{ className: 'author-details-card-' + index },
|
|
7168
|
-
React__default
|
|
7142
|
+
React__default.createElement(
|
|
7169
7143
|
reactBootstrap.Row,
|
|
7170
7144
|
null,
|
|
7171
|
-
profileImage && React__default
|
|
7145
|
+
profileImage && React__default.createElement(
|
|
7172
7146
|
reactBootstrap.Col,
|
|
7173
7147
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7174
|
-
React__default
|
|
7148
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7175
7149
|
),
|
|
7176
|
-
React__default
|
|
7150
|
+
React__default.createElement(
|
|
7177
7151
|
reactBootstrap.Col,
|
|
7178
7152
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7179
|
-
React__default
|
|
7153
|
+
React__default.createElement(
|
|
7180
7154
|
'div',
|
|
7181
7155
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7182
7156
|
authorName
|
|
7183
7157
|
),
|
|
7184
|
-
React__default
|
|
7158
|
+
React__default.createElement(
|
|
7185
7159
|
'p',
|
|
7186
7160
|
null,
|
|
7187
7161
|
biography
|
|
@@ -7189,7 +7163,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7189
7163
|
)
|
|
7190
7164
|
)
|
|
7191
7165
|
),
|
|
7192
|
-
React__default
|
|
7166
|
+
React__default.createElement(
|
|
7193
7167
|
'style',
|
|
7194
7168
|
{ jsx: 'true' },
|
|
7195
7169
|
'\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 '
|
|
@@ -7197,7 +7171,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7197
7171
|
length !== index + 1 && ', '
|
|
7198
7172
|
);
|
|
7199
7173
|
} else if (authorName) {
|
|
7200
|
-
return React__default
|
|
7174
|
+
return React__default.createElement(
|
|
7201
7175
|
'span',
|
|
7202
7176
|
{ key: index },
|
|
7203
7177
|
authorName,
|
|
@@ -7299,7 +7273,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7299
7273
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7300
7274
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7301
7275
|
} else {
|
|
7302
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7276
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7303
7277
|
}
|
|
7304
7278
|
}
|
|
7305
7279
|
});
|
|
@@ -7353,13 +7327,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7353
7327
|
var queue = Math.floor(duration / 10);
|
|
7354
7328
|
var segment = Math.floor(current / queue);
|
|
7355
7329
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7356
|
-
Segment.report_video_event('Video Ready', main.
|
|
7330
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7357
7331
|
//autoplay
|
|
7358
7332
|
|
|
7359
7333
|
//Small pause before starting next video
|
|
7360
7334
|
setTimeout(function () {
|
|
7361
7335
|
//Youtube API to start video playing automatically
|
|
7362
|
-
var id = index$
|
|
7336
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7363
7337
|
event.target.loadVideoById(id);
|
|
7364
7338
|
}, 1500);
|
|
7365
7339
|
};
|
|
@@ -7374,7 +7348,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7374
7348
|
var segment = Math.floor(current / queue);
|
|
7375
7349
|
|
|
7376
7350
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7377
|
-
Segment.report_video_event('Video End', main.
|
|
7351
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7378
7352
|
setEndReported(true);
|
|
7379
7353
|
clearInterval(intervalID);
|
|
7380
7354
|
}
|
|
@@ -7425,7 +7399,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7425
7399
|
var segment = Math.floor(current / queue);
|
|
7426
7400
|
if (!queueProgress.includes(segment)) {
|
|
7427
7401
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7428
|
-
Segment.report_video_event('Video Segment', main.
|
|
7402
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7429
7403
|
queueProgress.push(segment);
|
|
7430
7404
|
}
|
|
7431
7405
|
};
|
|
@@ -7439,7 +7413,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7439
7413
|
var segment = Math.floor(current / queue);
|
|
7440
7414
|
|
|
7441
7415
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7442
|
-
Segment.report_video_event('Video Play', main.
|
|
7416
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7443
7417
|
|
|
7444
7418
|
if (!playReported) {
|
|
7445
7419
|
setPlayReported(true);
|
|
@@ -7458,7 +7432,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7458
7432
|
var segment = Math.floor(current / queue);
|
|
7459
7433
|
|
|
7460
7434
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7461
|
-
Segment.report_video_event('Video Pause', main.
|
|
7435
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7462
7436
|
};
|
|
7463
7437
|
|
|
7464
7438
|
// Youtube Options
|
|
@@ -7469,44 +7443,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7469
7443
|
}
|
|
7470
7444
|
};
|
|
7471
7445
|
|
|
7472
|
-
return React__default
|
|
7446
|
+
return React__default.createElement(
|
|
7473
7447
|
'div',
|
|
7474
7448
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7475
|
-
React__default
|
|
7449
|
+
React__default.createElement(
|
|
7476
7450
|
'div',
|
|
7477
7451
|
{ className: 'mt-2 mb-5' },
|
|
7478
|
-
series && React__default
|
|
7452
|
+
series && React__default.createElement(
|
|
7479
7453
|
'div',
|
|
7480
7454
|
{ style: { fontSize: '0.9rem' } },
|
|
7481
7455
|
article.title,
|
|
7482
7456
|
' - Episode ',
|
|
7483
7457
|
series
|
|
7484
7458
|
),
|
|
7485
|
-
Videos[series - 1] && React__default
|
|
7459
|
+
Videos[series - 1] && React__default.createElement(
|
|
7486
7460
|
'h1',
|
|
7487
7461
|
{ className: 'mb-3' },
|
|
7488
7462
|
Videos[series - 1].title
|
|
7489
7463
|
),
|
|
7490
|
-
React__default
|
|
7464
|
+
React__default.createElement(
|
|
7491
7465
|
'div',
|
|
7492
7466
|
null,
|
|
7493
7467
|
moment.moment(article.published).format('LL')
|
|
7494
7468
|
),
|
|
7495
|
-
React__default
|
|
7469
|
+
React__default.createElement(
|
|
7496
7470
|
'div',
|
|
7497
7471
|
{ className: 'mb-3' },
|
|
7498
7472
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7499
|
-
return React__default
|
|
7473
|
+
return React__default.createElement(
|
|
7500
7474
|
'span',
|
|
7501
7475
|
{ key: index },
|
|
7502
7476
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7503
7477
|
);
|
|
7504
7478
|
})
|
|
7505
7479
|
),
|
|
7506
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7507
7481
|
'p',
|
|
7508
7482
|
null,
|
|
7509
|
-
React__default
|
|
7483
|
+
React__default.createElement(SocialShare, {
|
|
7510
7484
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7511
7485
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7512
7486
|
shareVia: meta.shareVia,
|
|
@@ -7521,22 +7495,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7521
7495
|
hideFacebook: meta.hideFBShare
|
|
7522
7496
|
})
|
|
7523
7497
|
),
|
|
7524
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7498
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7525
7499
|
'p',
|
|
7526
7500
|
{ className: 'mb-3' },
|
|
7527
|
-
React__default
|
|
7501
|
+
React__default.createElement(
|
|
7528
7502
|
'em',
|
|
7529
7503
|
null,
|
|
7530
7504
|
Videos[series - 1].intro
|
|
7531
7505
|
)
|
|
7532
7506
|
)
|
|
7533
7507
|
),
|
|
7534
|
-
React__default
|
|
7508
|
+
React__default.createElement(
|
|
7535
7509
|
'div',
|
|
7536
7510
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7537
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7511
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7538
7512
|
className: 'fluid-iframe',
|
|
7539
|
-
videoId: index$
|
|
7513
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7540
7514
|
opts: opts,
|
|
7541
7515
|
onReady: handleOnReady,
|
|
7542
7516
|
onPlay: handleOnPlay,
|
|
@@ -7545,10 +7519,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7545
7519
|
return handleOnEnd(e);
|
|
7546
7520
|
}
|
|
7547
7521
|
}),
|
|
7548
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7549
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7550
|
-
React__default
|
|
7551
|
-
series && React__default
|
|
7522
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7523
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7524
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7525
|
+
series && React__default.createElement(
|
|
7552
7526
|
'div',
|
|
7553
7527
|
{
|
|
7554
7528
|
className: 'vid-series',
|
|
@@ -7558,10 +7532,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7558
7532
|
maxHeight: '100%',
|
|
7559
7533
|
paddingBottom: '0'
|
|
7560
7534
|
} },
|
|
7561
|
-
React__default
|
|
7535
|
+
React__default.createElement(
|
|
7562
7536
|
'p',
|
|
7563
7537
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7564
|
-
React__default
|
|
7538
|
+
React__default.createElement(
|
|
7565
7539
|
'b',
|
|
7566
7540
|
{ style: { fontSize: '1.25em' } },
|
|
7567
7541
|
'Now Playing:'
|
|
@@ -7569,16 +7543,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7569
7543
|
' ',
|
|
7570
7544
|
seriesData[series ? series - 1 : 0].title
|
|
7571
7545
|
),
|
|
7572
|
-
vidUrl && React__default
|
|
7546
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7573
7547
|
)
|
|
7574
7548
|
),
|
|
7575
|
-
React__default
|
|
7576
|
-
React__default
|
|
7549
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7550
|
+
React__default.createElement(
|
|
7577
7551
|
'div',
|
|
7578
7552
|
{ className: 'vid-text' },
|
|
7579
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7553
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7580
7554
|
),
|
|
7581
|
-
React__default
|
|
7555
|
+
React__default.createElement(
|
|
7582
7556
|
'style',
|
|
7583
7557
|
{ jsx: 'true' },
|
|
7584
7558
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7586,14 +7560,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7586
7560
|
);
|
|
7587
7561
|
};
|
|
7588
7562
|
|
|
7589
|
-
var Poll
|
|
7590
|
-
var node = _ref.node
|
|
7591
|
-
_ref.client
|
|
7592
|
-
_ref.pageview
|
|
7593
|
-
_ref.videoAccountIDs
|
|
7594
|
-
|
|
7595
|
-
_ref.showVotes
|
|
7596
|
-
|
|
7563
|
+
var Poll = function Poll(_ref) {
|
|
7564
|
+
var node = _ref.node,
|
|
7565
|
+
client = _ref.client,
|
|
7566
|
+
pageview = _ref.pageview,
|
|
7567
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7568
|
+
onVote = _ref.onVote,
|
|
7569
|
+
_ref$showVotes = _ref.showVotes,
|
|
7570
|
+
getSerializers = _ref.getSerializers;
|
|
7597
7571
|
|
|
7598
7572
|
var _useState = React.useState(null),
|
|
7599
7573
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7631,67 +7605,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7631
7605
|
return acc;
|
|
7632
7606
|
}
|
|
7633
7607
|
}, 0);
|
|
7634
|
-
return React__default
|
|
7635
|
-
React__default
|
|
7608
|
+
return React__default.createElement(
|
|
7609
|
+
React__default.Fragment,
|
|
7636
7610
|
null,
|
|
7637
|
-
question && React__default
|
|
7611
|
+
question && React__default.createElement(
|
|
7638
7612
|
'p',
|
|
7639
7613
|
{ className: 'font-weight-bold' },
|
|
7640
7614
|
question
|
|
7641
7615
|
),
|
|
7642
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7616
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7643
7617
|
'form',
|
|
7644
7618
|
{ onSubmit: function onSubmit(e) {
|
|
7645
7619
|
return onSubmitPoll(e);
|
|
7646
7620
|
} },
|
|
7647
7621
|
choices && choices.map(function (choice) {
|
|
7648
|
-
return React__default
|
|
7622
|
+
return React__default.createElement(
|
|
7649
7623
|
'div',
|
|
7650
7624
|
{ key: choice._key },
|
|
7651
|
-
React__default
|
|
7625
|
+
React__default.createElement(
|
|
7652
7626
|
'label',
|
|
7653
7627
|
{ className: 'pl-2' },
|
|
7654
|
-
React__default
|
|
7628
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7655
7629
|
return setSelectedChoice(e.target.value);
|
|
7656
7630
|
} }),
|
|
7657
7631
|
' ' + choice.choiceText
|
|
7658
7632
|
)
|
|
7659
7633
|
);
|
|
7660
7634
|
}),
|
|
7661
|
-
React__default
|
|
7635
|
+
React__default.createElement(
|
|
7662
7636
|
reactBootstrap.Button,
|
|
7663
7637
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7664
7638
|
'Vote'
|
|
7665
7639
|
)
|
|
7666
7640
|
),
|
|
7667
|
-
React__default
|
|
7641
|
+
React__default.createElement(
|
|
7668
7642
|
'div',
|
|
7669
7643
|
{ className: 'progress-container' },
|
|
7670
7644
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7671
7645
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7672
|
-
return React__default
|
|
7646
|
+
return React__default.createElement(
|
|
7673
7647
|
'div',
|
|
7674
7648
|
{ key: choice._key, className: 'mb-3' },
|
|
7675
|
-
React__default
|
|
7649
|
+
React__default.createElement(
|
|
7676
7650
|
'div',
|
|
7677
7651
|
{ className: 'correct-answer' },
|
|
7678
|
-
React__default
|
|
7652
|
+
React__default.createElement(
|
|
7679
7653
|
'div',
|
|
7680
7654
|
null,
|
|
7681
7655
|
choice.choiceText
|
|
7682
7656
|
),
|
|
7683
|
-
choice.choiceAnswer === true && React__default
|
|
7657
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7684
7658
|
'div',
|
|
7685
7659
|
null,
|
|
7686
|
-
React__default
|
|
7660
|
+
React__default.createElement(
|
|
7687
7661
|
'span',
|
|
7688
7662
|
{ style: { color: 'limegreen' } },
|
|
7689
7663
|
'Correct!'
|
|
7690
7664
|
)
|
|
7691
7665
|
)
|
|
7692
7666
|
),
|
|
7693
|
-
React__default
|
|
7694
|
-
React__default
|
|
7667
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7668
|
+
React__default.createElement(
|
|
7695
7669
|
'span',
|
|
7696
7670
|
{ className: 'float-right' },
|
|
7697
7671
|
percentage,
|
|
@@ -7702,14 +7676,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7702
7676
|
);
|
|
7703
7677
|
})
|
|
7704
7678
|
),
|
|
7705
|
-
showAnswer && React__default
|
|
7679
|
+
showAnswer && React__default.createElement(
|
|
7706
7680
|
'h4',
|
|
7707
7681
|
{ className: 'text-center small p-3' },
|
|
7708
7682
|
'Total Votes: ',
|
|
7709
7683
|
choicesTotalCount
|
|
7710
7684
|
),
|
|
7711
|
-
showAnswer && response && React__default
|
|
7712
|
-
React__default
|
|
7685
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7686
|
+
React__default.createElement(
|
|
7713
7687
|
'style',
|
|
7714
7688
|
{ jsx: 'true' },
|
|
7715
7689
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7727,22 +7701,22 @@ core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
|
7727
7701
|
}
|
|
7728
7702
|
});
|
|
7729
7703
|
|
|
7730
|
-
var values
|
|
7704
|
+
var values = core_getIteratorMethod._core.Object.values;
|
|
7731
7705
|
|
|
7732
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7733
|
-
module.exports = { "default": values
|
|
7706
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7707
|
+
module.exports = { "default": values, __esModule: true };
|
|
7734
7708
|
});
|
|
7735
7709
|
|
|
7736
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7710
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7737
7711
|
|
|
7738
|
-
var Poll = function Poll(_ref) {
|
|
7739
|
-
var node = _ref.node
|
|
7740
|
-
_ref.client
|
|
7741
|
-
_ref.pageview
|
|
7742
|
-
_ref.videoAccountIDs
|
|
7743
|
-
|
|
7744
|
-
_ref.showVotes
|
|
7745
|
-
|
|
7712
|
+
var Poll$1 = function Poll(_ref) {
|
|
7713
|
+
var node = _ref.node,
|
|
7714
|
+
client = _ref.client,
|
|
7715
|
+
pageview = _ref.pageview,
|
|
7716
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7717
|
+
onVote = _ref.onVote,
|
|
7718
|
+
_ref$showVotes = _ref.showVotes,
|
|
7719
|
+
getSerializers = _ref.getSerializers;
|
|
7746
7720
|
|
|
7747
7721
|
var _useState = React.useState(null),
|
|
7748
7722
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7808,67 +7782,67 @@ var Poll = function Poll(_ref) {
|
|
|
7808
7782
|
return acc;
|
|
7809
7783
|
}
|
|
7810
7784
|
}, 0);
|
|
7811
|
-
return React__default
|
|
7812
|
-
React__default
|
|
7785
|
+
return React__default.createElement(
|
|
7786
|
+
React__default.Fragment,
|
|
7813
7787
|
null,
|
|
7814
|
-
question && React__default
|
|
7788
|
+
question && React__default.createElement(
|
|
7815
7789
|
'p',
|
|
7816
7790
|
{ className: 'font-weight-bold' },
|
|
7817
7791
|
question
|
|
7818
7792
|
),
|
|
7819
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7793
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7820
7794
|
'form',
|
|
7821
7795
|
{ onSubmit: function onSubmit(e) {
|
|
7822
7796
|
return onSubmitPoll(e);
|
|
7823
7797
|
} },
|
|
7824
7798
|
choices && choices.map(function (choice) {
|
|
7825
|
-
return React__default
|
|
7799
|
+
return React__default.createElement(
|
|
7826
7800
|
'div',
|
|
7827
7801
|
{ key: choice._key },
|
|
7828
|
-
React__default
|
|
7802
|
+
React__default.createElement(
|
|
7829
7803
|
'label',
|
|
7830
7804
|
{ className: 'pl-2' },
|
|
7831
|
-
React__default
|
|
7805
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7832
7806
|
return setSelectedChoice(e.target.value);
|
|
7833
7807
|
} }),
|
|
7834
7808
|
' ' + choice.choiceText
|
|
7835
7809
|
)
|
|
7836
7810
|
);
|
|
7837
7811
|
}),
|
|
7838
|
-
React__default
|
|
7812
|
+
React__default.createElement(
|
|
7839
7813
|
reactBootstrap.Button,
|
|
7840
7814
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7841
7815
|
'Vote'
|
|
7842
7816
|
)
|
|
7843
7817
|
),
|
|
7844
|
-
React__default
|
|
7818
|
+
React__default.createElement(
|
|
7845
7819
|
'div',
|
|
7846
7820
|
{ className: 'progress-container' },
|
|
7847
7821
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7848
7822
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7849
|
-
return React__default
|
|
7823
|
+
return React__default.createElement(
|
|
7850
7824
|
'div',
|
|
7851
7825
|
{ key: choice._key, className: 'mb-3' },
|
|
7852
|
-
React__default
|
|
7826
|
+
React__default.createElement(
|
|
7853
7827
|
'div',
|
|
7854
7828
|
{ className: 'correct-answer' },
|
|
7855
|
-
React__default
|
|
7829
|
+
React__default.createElement(
|
|
7856
7830
|
'div',
|
|
7857
7831
|
null,
|
|
7858
7832
|
choice.choiceText
|
|
7859
7833
|
),
|
|
7860
|
-
choice.choiceAnswer === true && React__default
|
|
7834
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7861
7835
|
'div',
|
|
7862
7836
|
null,
|
|
7863
|
-
React__default
|
|
7837
|
+
React__default.createElement(
|
|
7864
7838
|
'span',
|
|
7865
7839
|
{ style: { color: 'limegreen' } },
|
|
7866
7840
|
'Correct!'
|
|
7867
7841
|
)
|
|
7868
7842
|
)
|
|
7869
7843
|
),
|
|
7870
|
-
React__default
|
|
7871
|
-
React__default
|
|
7844
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7845
|
+
React__default.createElement(
|
|
7872
7846
|
'span',
|
|
7873
7847
|
{ className: 'float-right' },
|
|
7874
7848
|
percentage,
|
|
@@ -7879,14 +7853,14 @@ var Poll = function Poll(_ref) {
|
|
|
7879
7853
|
);
|
|
7880
7854
|
})
|
|
7881
7855
|
),
|
|
7882
|
-
showAnswer && React__default
|
|
7856
|
+
showAnswer && React__default.createElement(
|
|
7883
7857
|
'h4',
|
|
7884
7858
|
{ className: 'text-center small p-3' },
|
|
7885
7859
|
'Total Votes: ',
|
|
7886
7860
|
choicesTotalCount
|
|
7887
7861
|
),
|
|
7888
|
-
showAnswer && response && React__default
|
|
7889
|
-
React__default
|
|
7862
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7863
|
+
React__default.createElement(
|
|
7890
7864
|
'style',
|
|
7891
7865
|
{ jsx: 'true' },
|
|
7892
7866
|
'\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 '
|
|
@@ -7894,7 +7868,7 @@ var Poll = function Poll(_ref) {
|
|
|
7894
7868
|
);
|
|
7895
7869
|
};
|
|
7896
7870
|
|
|
7897
|
-
var numberOfPaginations = main.
|
|
7871
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7898
7872
|
|
|
7899
7873
|
var Quiz = function Quiz(_ref) {
|
|
7900
7874
|
var quizzes = _ref.quizzes,
|
|
@@ -8012,34 +7986,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
8012
7986
|
};
|
|
8013
7987
|
|
|
8014
7988
|
var renderPagination = function renderPagination() {
|
|
8015
|
-
return React__default
|
|
8016
|
-
|
|
8017
|
-
{ className: 'p-0 m-0', size: main.
|
|
8018
|
-
React__default
|
|
7989
|
+
return React__default.createElement(
|
|
7990
|
+
Pagination,
|
|
7991
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7992
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
8019
7993
|
return changePage('first');
|
|
8020
7994
|
}, disabled: currentPage === 1 }),
|
|
8021
|
-
React__default
|
|
7995
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
8022
7996
|
return changePage('prev');
|
|
8023
7997
|
}, disabled: currentPage === 1 }),
|
|
8024
|
-
React__default
|
|
7998
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8025
7999
|
return renderNewPages('prev');
|
|
8026
8000
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8027
8001
|
pages.map(function (page) {
|
|
8028
|
-
return React__default
|
|
8029
|
-
|
|
8002
|
+
return React__default.createElement(
|
|
8003
|
+
Pagination.Item,
|
|
8030
8004
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
8031
8005
|
return changePage(page);
|
|
8032
8006
|
} },
|
|
8033
8007
|
page
|
|
8034
8008
|
);
|
|
8035
8009
|
}),
|
|
8036
|
-
React__default
|
|
8010
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8037
8011
|
return renderNewPages('next');
|
|
8038
8012
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8039
|
-
React__default
|
|
8013
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8040
8014
|
return changePage('next');
|
|
8041
8015
|
}, disabled: currentPage === pageCount }),
|
|
8042
|
-
React__default
|
|
8016
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8043
8017
|
return changePage('last');
|
|
8044
8018
|
}, disabled: currentPage === pageCount })
|
|
8045
8019
|
);
|
|
@@ -8122,51 +8096,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8122
8096
|
}
|
|
8123
8097
|
};
|
|
8124
8098
|
|
|
8125
|
-
return React__default
|
|
8126
|
-
React__default
|
|
8099
|
+
return React__default.createElement(
|
|
8100
|
+
React__default.Fragment,
|
|
8127
8101
|
null,
|
|
8128
|
-
quizzes[currentPage - 1] && React__default
|
|
8129
|
-
React__default
|
|
8102
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8103
|
+
React__default.Fragment,
|
|
8130
8104
|
null,
|
|
8131
|
-
React__default
|
|
8132
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8105
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8106
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8133
8107
|
'form',
|
|
8134
8108
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8135
8109
|
return e.preventDefault();
|
|
8136
8110
|
} },
|
|
8137
8111
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8138
|
-
return React__default
|
|
8112
|
+
return React__default.createElement(
|
|
8139
8113
|
'div',
|
|
8140
8114
|
{ key: answer._key },
|
|
8141
|
-
React__default
|
|
8115
|
+
React__default.createElement(
|
|
8142
8116
|
'label',
|
|
8143
8117
|
{ className: 'pl-2' },
|
|
8144
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8118
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8145
8119
|
' ' + answer.answerText
|
|
8146
8120
|
)
|
|
8147
8121
|
);
|
|
8148
8122
|
})
|
|
8149
8123
|
)
|
|
8150
8124
|
),
|
|
8151
|
-
!showAnswer && React__default
|
|
8152
|
-
|
|
8125
|
+
!showAnswer && React__default.createElement(
|
|
8126
|
+
Button,
|
|
8153
8127
|
{ onClick: function onClick() {
|
|
8154
8128
|
return checkAnswers();
|
|
8155
8129
|
}, variant: 'info', block: true },
|
|
8156
8130
|
'Please click here for answer'
|
|
8157
8131
|
),
|
|
8158
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8159
|
-
React__default
|
|
8132
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8133
|
+
React__default.Fragment,
|
|
8160
8134
|
null,
|
|
8161
|
-
React__default
|
|
8135
|
+
React__default.createElement(
|
|
8162
8136
|
'h4',
|
|
8163
8137
|
null,
|
|
8164
8138
|
'Answer:'
|
|
8165
8139
|
),
|
|
8166
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8140
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8167
8141
|
),
|
|
8168
|
-
React__default
|
|
8169
|
-
pageCount > 1 && React__default
|
|
8142
|
+
React__default.createElement('br', null),
|
|
8143
|
+
pageCount > 1 && React__default.createElement(
|
|
8170
8144
|
'div',
|
|
8171
8145
|
{ className: 'd-flex justify-content-center' },
|
|
8172
8146
|
renderPagination()
|
|
@@ -8177,19 +8151,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8177
8151
|
var Leads = function Leads(_ref) {
|
|
8178
8152
|
var url = _ref.url;
|
|
8179
8153
|
|
|
8180
|
-
return React__default
|
|
8154
|
+
return React__default.createElement(
|
|
8181
8155
|
'div',
|
|
8182
8156
|
{ className: 'd-block text-center mb-3' },
|
|
8183
|
-
React__default
|
|
8157
|
+
React__default.createElement(
|
|
8184
8158
|
'style',
|
|
8185
8159
|
{ jsx: 'true' },
|
|
8186
8160
|
'\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 '
|
|
8187
8161
|
),
|
|
8188
|
-
url && React__default
|
|
8162
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8189
8163
|
);
|
|
8190
8164
|
};
|
|
8191
8165
|
|
|
8192
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8166
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8193
8167
|
var slides = _ref.node.slides,
|
|
8194
8168
|
client = _ref.client,
|
|
8195
8169
|
pageview = _ref.pageview,
|
|
@@ -8225,53 +8199,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8225
8199
|
setCarouselIndex(selectedIndex);
|
|
8226
8200
|
};
|
|
8227
8201
|
|
|
8228
|
-
return React__default
|
|
8202
|
+
return React__default.createElement(
|
|
8229
8203
|
'div',
|
|
8230
8204
|
{ className: 'mt-3 mb-4' },
|
|
8231
|
-
React__default
|
|
8205
|
+
React__default.createElement(
|
|
8232
8206
|
reactBootstrap.Carousel,
|
|
8233
8207
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8234
8208
|
slides && slides.map(function (slide) {
|
|
8235
8209
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8236
|
-
return React__default
|
|
8210
|
+
return React__default.createElement(
|
|
8237
8211
|
reactBootstrap.Carousel.Item,
|
|
8238
8212
|
{ key: slide._key },
|
|
8239
|
-
React__default
|
|
8213
|
+
React__default.createElement(
|
|
8240
8214
|
'a',
|
|
8241
8215
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8242
|
-
React__default
|
|
8216
|
+
React__default.createElement(
|
|
8243
8217
|
'div',
|
|
8244
8218
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8245
|
-
React__default
|
|
8219
|
+
React__default.createElement(
|
|
8246
8220
|
index$2.LazyLoad,
|
|
8247
8221
|
null,
|
|
8248
|
-
React__default
|
|
8222
|
+
React__default.createElement(
|
|
8249
8223
|
'picture',
|
|
8250
8224
|
null,
|
|
8251
|
-
React__default
|
|
8252
|
-
React__default
|
|
8253
|
-
React__default
|
|
8254
|
-
React__default
|
|
8225
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8226
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8227
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8228
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8255
8229
|
)
|
|
8256
8230
|
)
|
|
8257
8231
|
)
|
|
8258
8232
|
),
|
|
8259
|
-
React__default
|
|
8233
|
+
React__default.createElement(
|
|
8260
8234
|
'div',
|
|
8261
8235
|
{ className: 'p-2' },
|
|
8262
|
-
slide.slideshowImage.caption && React__default
|
|
8236
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8263
8237
|
'h3',
|
|
8264
8238
|
{ style: { padding: '0px' } },
|
|
8265
8239
|
slide.slideshowImage.caption
|
|
8266
8240
|
),
|
|
8267
|
-
slide.description && React__default
|
|
8241
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8268
8242
|
)
|
|
8269
8243
|
);
|
|
8270
8244
|
}
|
|
8271
8245
|
return null;
|
|
8272
8246
|
})
|
|
8273
8247
|
),
|
|
8274
|
-
React__default
|
|
8248
|
+
React__default.createElement(
|
|
8275
8249
|
'style',
|
|
8276
8250
|
{ jsx: 'true' },
|
|
8277
8251
|
'\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 '
|
|
@@ -8290,10 +8264,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8290
8264
|
sizes = _props$node.sizes,
|
|
8291
8265
|
sizeMapping = _props$node.sizeMapping;
|
|
8292
8266
|
|
|
8293
|
-
return React__default
|
|
8267
|
+
return React__default.createElement(
|
|
8294
8268
|
'div',
|
|
8295
8269
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8296
|
-
React__default
|
|
8270
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8297
8271
|
);
|
|
8298
8272
|
};
|
|
8299
8273
|
|
|
@@ -8304,15 +8278,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8304
8278
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8305
8279
|
|
|
8306
8280
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8307
|
-
return React__default
|
|
8281
|
+
return React__default.createElement(
|
|
8308
8282
|
'section',
|
|
8309
8283
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8310
|
-
Caption && React__default
|
|
8284
|
+
Caption && React__default.createElement(
|
|
8311
8285
|
'h4',
|
|
8312
8286
|
{ className: 'formstack-caption' },
|
|
8313
8287
|
Caption
|
|
8314
8288
|
),
|
|
8315
|
-
React__default
|
|
8289
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8316
8290
|
);
|
|
8317
8291
|
};
|
|
8318
8292
|
|
|
@@ -8328,36 +8302,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8328
8302
|
}
|
|
8329
8303
|
});
|
|
8330
8304
|
if (medias && medias.length > 0) {
|
|
8331
|
-
return React__default
|
|
8305
|
+
return React__default.createElement(
|
|
8332
8306
|
'div',
|
|
8333
8307
|
{ className: 'multi-media-container' },
|
|
8334
|
-
React__default
|
|
8335
|
-
|
|
8308
|
+
React__default.createElement(
|
|
8309
|
+
Row,
|
|
8336
8310
|
{ noGutters: true },
|
|
8337
8311
|
medias.map(function (media) {
|
|
8338
|
-
return React__default
|
|
8339
|
-
|
|
8312
|
+
return React__default.createElement(
|
|
8313
|
+
Col,
|
|
8340
8314
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8341
|
-
React__default
|
|
8315
|
+
React__default.createElement(
|
|
8342
8316
|
'a',
|
|
8343
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8317
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8344
8318
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8345
|
-
React__default
|
|
8319
|
+
React__default.createElement(
|
|
8346
8320
|
'div',
|
|
8347
8321
|
{ className: 'multi-media-image-container' },
|
|
8348
|
-
imageBox && React__default
|
|
8322
|
+
imageBox && React__default.createElement(
|
|
8349
8323
|
index$2.LazyLoad,
|
|
8350
8324
|
{ once: true },
|
|
8351
|
-
React__default
|
|
8325
|
+
React__default.createElement(
|
|
8352
8326
|
'picture',
|
|
8353
8327
|
null,
|
|
8354
|
-
React__default
|
|
8355
|
-
React__default
|
|
8356
|
-
React__default
|
|
8357
|
-
React__default
|
|
8328
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8329
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8330
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8331
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8358
8332
|
)
|
|
8359
8333
|
),
|
|
8360
|
-
media.caption && React__default
|
|
8334
|
+
media.caption && React__default.createElement(
|
|
8361
8335
|
'span',
|
|
8362
8336
|
{ className: 'multi-media-caption' },
|
|
8363
8337
|
media.caption
|
|
@@ -8367,7 +8341,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8367
8341
|
);
|
|
8368
8342
|
})
|
|
8369
8343
|
),
|
|
8370
|
-
React__default
|
|
8344
|
+
React__default.createElement(
|
|
8371
8345
|
'style',
|
|
8372
8346
|
{ jsx: 'true' },
|
|
8373
8347
|
'\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 '
|
|
@@ -8378,12 +8352,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8378
8352
|
};
|
|
8379
8353
|
|
|
8380
8354
|
var InscreenSensor = function (_React$Component) {
|
|
8381
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8355
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8382
8356
|
|
|
8383
8357
|
function InscreenSensor(props) {
|
|
8384
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8358
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8385
8359
|
|
|
8386
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8360
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8387
8361
|
|
|
8388
8362
|
_this.scrollHandler = function () {
|
|
8389
8363
|
var visible = _this.checkInside();
|
|
@@ -8414,12 +8388,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8414
8388
|
}
|
|
8415
8389
|
};
|
|
8416
8390
|
|
|
8417
|
-
_this.wraperRef = React__default
|
|
8391
|
+
_this.wraperRef = React__default.createRef();
|
|
8418
8392
|
_this.visible = false;
|
|
8419
8393
|
return _this;
|
|
8420
8394
|
}
|
|
8421
8395
|
|
|
8422
|
-
inherits._createClass(InscreenSensor, [{
|
|
8396
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8423
8397
|
key: 'componentDidMount',
|
|
8424
8398
|
value: function componentDidMount() {
|
|
8425
8399
|
this.visible = this.checkInside();
|
|
@@ -8442,7 +8416,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8442
8416
|
_props$id = _props.id,
|
|
8443
8417
|
id = _props$id === undefined ? '' : _props$id;
|
|
8444
8418
|
|
|
8445
|
-
return React__default
|
|
8419
|
+
return React__default.createElement(
|
|
8446
8420
|
'div',
|
|
8447
8421
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8448
8422
|
this.props.children
|
|
@@ -8451,7 +8425,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8451
8425
|
}]);
|
|
8452
8426
|
|
|
8453
8427
|
return InscreenSensor;
|
|
8454
|
-
}(React__default
|
|
8428
|
+
}(React__default.Component);
|
|
8455
8429
|
|
|
8456
8430
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8457
8431
|
var nodes = _ref.nodes,
|
|
@@ -8560,33 +8534,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8560
8534
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8561
8535
|
var showReading = show ? 'showReading' : '';
|
|
8562
8536
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8563
|
-
return React__default
|
|
8537
|
+
return React__default.createElement(
|
|
8564
8538
|
'div',
|
|
8565
8539
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8566
|
-
React__default
|
|
8540
|
+
React__default.createElement(
|
|
8567
8541
|
'a',
|
|
8568
8542
|
{ onClick: function onClick(e) {
|
|
8569
8543
|
return articleCardClickHandler(e);
|
|
8570
8544
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8571
|
-
React__default
|
|
8545
|
+
React__default.createElement(
|
|
8572
8546
|
'div',
|
|
8573
8547
|
{ className: 'prevNext-thumbnail' },
|
|
8574
|
-
React__default
|
|
8575
|
-
React__default
|
|
8548
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8549
|
+
React__default.createElement(
|
|
8576
8550
|
'div',
|
|
8577
8551
|
{ className: 'prevNext-reading ' + showReading },
|
|
8578
8552
|
articleLabel
|
|
8579
8553
|
)
|
|
8580
8554
|
),
|
|
8581
|
-
React__default
|
|
8555
|
+
React__default.createElement(
|
|
8582
8556
|
'div',
|
|
8583
8557
|
{ className: 'prevNext-summary' },
|
|
8584
|
-
React__default
|
|
8558
|
+
React__default.createElement(
|
|
8585
8559
|
'div',
|
|
8586
8560
|
{ className: 'prevNext-publishDate' },
|
|
8587
8561
|
moment.moment(article.published).format('LL')
|
|
8588
8562
|
),
|
|
8589
|
-
React__default
|
|
8563
|
+
React__default.createElement(
|
|
8590
8564
|
'h2',
|
|
8591
8565
|
{ className: 'prevNext-title' },
|
|
8592
8566
|
article.title
|
|
@@ -8635,7 +8609,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8635
8609
|
|
|
8636
8610
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8637
8611
|
if (biography) {
|
|
8638
|
-
return React__default
|
|
8612
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8639
8613
|
}
|
|
8640
8614
|
};
|
|
8641
8615
|
|
|
@@ -8721,7 +8695,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8721
8695
|
//console.log('useLayoutEffect')
|
|
8722
8696
|
if (!firstLoad) {
|
|
8723
8697
|
setUpArrowClicked(false);
|
|
8724
|
-
if (main.
|
|
8698
|
+
if (main.main_36) {
|
|
8725
8699
|
grabLoadedAds();
|
|
8726
8700
|
} else {
|
|
8727
8701
|
scrollToArticle();
|
|
@@ -8745,7 +8719,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8745
8719
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8746
8720
|
if (pageview) pageview(path);
|
|
8747
8721
|
|
|
8748
|
-
if (!main.
|
|
8722
|
+
if (!main.main_36) {
|
|
8749
8723
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8750
8724
|
if (window.googletag && googletag.pubadsReady) {
|
|
8751
8725
|
index.lib_3.refresh();
|
|
@@ -8753,7 +8727,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8753
8727
|
});
|
|
8754
8728
|
}
|
|
8755
8729
|
//Refresh leaderboard ad on mobile
|
|
8756
|
-
if (main.
|
|
8730
|
+
if (main.main_36) {
|
|
8757
8731
|
var leaderboardSlotId = '';
|
|
8758
8732
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8759
8733
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8793,38 +8767,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8793
8767
|
setSensorVisible(false);
|
|
8794
8768
|
};
|
|
8795
8769
|
|
|
8796
|
-
return React__default
|
|
8797
|
-
React__default
|
|
8770
|
+
return React__default.createElement(
|
|
8771
|
+
React__default.Fragment,
|
|
8798
8772
|
null,
|
|
8799
|
-
React__default
|
|
8773
|
+
React__default.createElement(
|
|
8800
8774
|
'div',
|
|
8801
8775
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8802
|
-
React__default
|
|
8776
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8803
8777
|
return handleArrowClick();
|
|
8804
8778
|
} })
|
|
8805
8779
|
),
|
|
8806
|
-
React__default
|
|
8807
|
-
React__default
|
|
8780
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8781
|
+
React__default.createElement(
|
|
8808
8782
|
'div',
|
|
8809
8783
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8810
|
-
React__default
|
|
8784
|
+
React__default.createElement(
|
|
8811
8785
|
'h5',
|
|
8812
8786
|
{ className: 'objective-title' },
|
|
8813
8787
|
nodes.seriesTitle
|
|
8814
8788
|
),
|
|
8815
|
-
React__default
|
|
8789
|
+
React__default.createElement(
|
|
8816
8790
|
'div',
|
|
8817
8791
|
{ className: 'prevNextWrapper' },
|
|
8818
8792
|
PrevNextCards(false, -1)
|
|
8819
8793
|
)
|
|
8820
8794
|
),
|
|
8821
|
-
React__default
|
|
8822
|
-
React__default
|
|
8795
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8796
|
+
React__default.createElement(
|
|
8823
8797
|
'div',
|
|
8824
8798
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8825
|
-
main.
|
|
8799
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8826
8800
|
if (index === 0) {
|
|
8827
|
-
return React__default
|
|
8801
|
+
return React__default.createElement(
|
|
8828
8802
|
'div',
|
|
8829
8803
|
{
|
|
8830
8804
|
key: 'addid-1',
|
|
@@ -8844,14 +8818,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8844
8818
|
}
|
|
8845
8819
|
})
|
|
8846
8820
|
),
|
|
8847
|
-
React__default
|
|
8821
|
+
React__default.createElement(
|
|
8848
8822
|
'div',
|
|
8849
8823
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8850
8824
|
Articles.map(function (article, index) {
|
|
8851
|
-
return React__default
|
|
8825
|
+
return React__default.createElement(
|
|
8852
8826
|
'div',
|
|
8853
8827
|
{ key: article.title },
|
|
8854
|
-
React__default
|
|
8828
|
+
React__default.createElement(
|
|
8855
8829
|
InscreenSensor,
|
|
8856
8830
|
{
|
|
8857
8831
|
visible: sensorVisible,
|
|
@@ -8869,84 +8843,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8869
8843
|
}
|
|
8870
8844
|
}
|
|
8871
8845
|
} },
|
|
8872
|
-
React__default
|
|
8873
|
-
|
|
8846
|
+
React__default.createElement(
|
|
8847
|
+
Head,
|
|
8874
8848
|
null,
|
|
8875
|
-
currentTitle !== null && React__default
|
|
8849
|
+
currentTitle !== null && React__default.createElement(
|
|
8876
8850
|
'title',
|
|
8877
8851
|
{ key: 'title' },
|
|
8878
8852
|
currentTitle
|
|
8879
8853
|
),
|
|
8880
|
-
currentSummary !== null && React__default
|
|
8881
|
-
currentURL !== null && React__default
|
|
8882
|
-
currentTitle !== null && React__default
|
|
8883
|
-
currentThumbnail !== null && React__default
|
|
8884
|
-
currentSummary !== null && React__default
|
|
8885
|
-
currentTitle !== null && React__default
|
|
8886
|
-
currentThumbnail !== null && React__default
|
|
8887
|
-
currentSummary !== null && React__default
|
|
8854
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8855
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8856
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8857
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8858
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8859
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8860
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8861
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8888
8862
|
),
|
|
8889
|
-
React__default
|
|
8863
|
+
React__default.createElement(
|
|
8890
8864
|
'article',
|
|
8891
8865
|
{ className: 'article-wrapper' },
|
|
8892
|
-
React__default
|
|
8866
|
+
React__default.createElement(
|
|
8893
8867
|
'div',
|
|
8894
8868
|
{ className: 'article-publishDate' },
|
|
8895
8869
|
moment.moment(article.published).format('LL')
|
|
8896
8870
|
),
|
|
8897
|
-
React__default
|
|
8871
|
+
React__default.createElement(
|
|
8898
8872
|
'div',
|
|
8899
8873
|
{ className: 'author-details-wrapper' },
|
|
8900
8874
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8901
|
-
return React__default
|
|
8875
|
+
return React__default.createElement(
|
|
8902
8876
|
'span',
|
|
8903
8877
|
{ key: index },
|
|
8904
8878
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8905
8879
|
);
|
|
8906
8880
|
})
|
|
8907
8881
|
),
|
|
8908
|
-
React__default
|
|
8882
|
+
React__default.createElement(
|
|
8909
8883
|
'h2',
|
|
8910
8884
|
{ className: 'article-title' },
|
|
8911
8885
|
article.title
|
|
8912
8886
|
),
|
|
8913
|
-
React__default
|
|
8887
|
+
React__default.createElement(
|
|
8914
8888
|
'div',
|
|
8915
8889
|
{ className: 'mt-2 mb-2' },
|
|
8916
|
-
React__default
|
|
8890
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8917
8891
|
serializers: getSerializers,
|
|
8918
8892
|
videoAccountIDs: accountIDs,
|
|
8919
8893
|
blocks: article.text,
|
|
8920
8894
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8921
8895
|
}, client.config())),
|
|
8922
|
-
React__default
|
|
8896
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8923
8897
|
),
|
|
8924
|
-
Articles.length > 1 && React__default
|
|
8925
|
-
React__default
|
|
8898
|
+
Articles.length > 1 && React__default.createElement(
|
|
8899
|
+
React__default.Fragment,
|
|
8926
8900
|
null,
|
|
8927
|
-
React__default
|
|
8901
|
+
React__default.createElement(
|
|
8928
8902
|
'div',
|
|
8929
8903
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8930
|
-
React__default
|
|
8904
|
+
React__default.createElement(
|
|
8931
8905
|
'h5',
|
|
8932
8906
|
{ className: 'objective-title' },
|
|
8933
8907
|
nodes.seriesTitle
|
|
8934
8908
|
),
|
|
8935
|
-
React__default
|
|
8909
|
+
React__default.createElement(
|
|
8936
8910
|
'div',
|
|
8937
8911
|
{ className: 'prevNextWrapper' },
|
|
8938
8912
|
PrevNextCards(true, index)
|
|
8939
8913
|
)
|
|
8940
8914
|
),
|
|
8941
|
-
React__default
|
|
8915
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8942
8916
|
)
|
|
8943
8917
|
),
|
|
8944
|
-
React__default
|
|
8918
|
+
React__default.createElement(
|
|
8945
8919
|
'div',
|
|
8946
8920
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8947
|
-
main.
|
|
8921
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8948
8922
|
if (innerIndex === 0) {
|
|
8949
|
-
return React__default
|
|
8923
|
+
return React__default.createElement(
|
|
8950
8924
|
'div',
|
|
8951
8925
|
{
|
|
8952
8926
|
key: 'addid-' + (index + 2),
|
|
@@ -8969,7 +8943,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8969
8943
|
)
|
|
8970
8944
|
);
|
|
8971
8945
|
}),
|
|
8972
|
-
React__default
|
|
8946
|
+
React__default.createElement(
|
|
8973
8947
|
'style',
|
|
8974
8948
|
{ jsx: 'true' },
|
|
8975
8949
|
'\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 '
|
|
@@ -8999,11 +8973,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8999
8973
|
};
|
|
9000
8974
|
}, [handleClickOutside]);
|
|
9001
8975
|
|
|
9002
|
-
return React__default
|
|
8976
|
+
return React__default.createElement(
|
|
9003
8977
|
'div',
|
|
9004
8978
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9005
|
-
React__default
|
|
9006
|
-
React__default
|
|
8979
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8980
|
+
React__default.createElement(
|
|
9007
8981
|
'style',
|
|
9008
8982
|
{ jsx: 'true' },
|
|
9009
8983
|
'\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 '
|
|
@@ -9017,7 +8991,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9017
8991
|
}
|
|
9018
8992
|
};
|
|
9019
8993
|
|
|
9020
|
-
var FigureImage
|
|
8994
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
9021
8995
|
var node = _ref2.node,
|
|
9022
8996
|
client = _ref2.client,
|
|
9023
8997
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9025,13 +8999,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
|
9025
8999
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9026
9000
|
|
|
9027
9001
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9028
|
-
return React__default
|
|
9002
|
+
return React__default.createElement(
|
|
9029
9003
|
'picture',
|
|
9030
9004
|
null,
|
|
9031
|
-
React__default
|
|
9032
|
-
React__default
|
|
9033
|
-
React__default
|
|
9034
|
-
React__default
|
|
9005
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9006
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9007
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9008
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9035
9009
|
style: figureImageStyle,
|
|
9036
9010
|
className: 'figure-image',
|
|
9037
9011
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9082,30 +9056,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9082
9056
|
|
|
9083
9057
|
var renderTooltip = function renderTooltip(props) {
|
|
9084
9058
|
if (infoBox[0].title) {
|
|
9085
|
-
return React__default
|
|
9086
|
-
|
|
9059
|
+
return React__default.createElement(
|
|
9060
|
+
Popover,
|
|
9087
9061
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9088
|
-
React__default
|
|
9089
|
-
|
|
9062
|
+
React__default.createElement(
|
|
9063
|
+
Popover.Title,
|
|
9090
9064
|
{ as: 'h3' },
|
|
9091
9065
|
infoBox[0].title
|
|
9092
9066
|
),
|
|
9093
|
-
React__default
|
|
9094
|
-
|
|
9067
|
+
React__default.createElement(
|
|
9068
|
+
Popover.Content,
|
|
9095
9069
|
null,
|
|
9096
|
-
React__default
|
|
9070
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9097
9071
|
)
|
|
9098
9072
|
);
|
|
9099
9073
|
} else {
|
|
9100
|
-
return React__default
|
|
9101
|
-
|
|
9102
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9103
|
-
React__default
|
|
9074
|
+
return React__default.createElement(
|
|
9075
|
+
Tooltip,
|
|
9076
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9077
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9104
9078
|
);
|
|
9105
9079
|
}
|
|
9106
9080
|
};
|
|
9107
9081
|
|
|
9108
|
-
var FigureImageWOverLay = React__default
|
|
9082
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9109
9083
|
var node = _ref3.node,
|
|
9110
9084
|
client = _ref3.client,
|
|
9111
9085
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9113,32 +9087,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9113
9087
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9114
9088
|
|
|
9115
9089
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9116
|
-
var triggerAction = main.
|
|
9117
|
-
var placementLocation = main.
|
|
9118
|
-
return React__default
|
|
9090
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9091
|
+
var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9092
|
+
return React__default.createElement(
|
|
9119
9093
|
'picture',
|
|
9120
9094
|
null,
|
|
9121
|
-
React__default
|
|
9122
|
-
React__default
|
|
9123
|
-
React__default
|
|
9124
|
-
main.
|
|
9095
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9096
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9097
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9098
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9125
9099
|
style: figureImageStyle,
|
|
9126
9100
|
className: 'figure-image',
|
|
9127
9101
|
src: urlFor({ source: node, client: client }),
|
|
9128
9102
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9129
|
-
}, !link && !main.
|
|
9103
|
+
}, !link && !main.main_35 && {
|
|
9130
9104
|
onClick: function onClick() {
|
|
9131
9105
|
return handleClickFigure(node, client);
|
|
9132
9106
|
}
|
|
9133
|
-
})) : React__default
|
|
9134
|
-
|
|
9107
|
+
})) : React__default.createElement(
|
|
9108
|
+
OverlayTrigger,
|
|
9135
9109
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9136
|
-
React__default
|
|
9110
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9137
9111
|
style: figureImageStyle,
|
|
9138
9112
|
className: 'figure-image',
|
|
9139
9113
|
src: urlFor({ source: node, client: client }),
|
|
9140
9114
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9141
|
-
}, !link && !main.
|
|
9115
|
+
}, !link && !main.main_35 && {
|
|
9142
9116
|
onClick: function onClick() {
|
|
9143
9117
|
return handleClickFigure(node, client);
|
|
9144
9118
|
}
|
|
@@ -9187,13 +9161,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9187
9161
|
|
|
9188
9162
|
var FigureCaption = React.useCallback(function () {
|
|
9189
9163
|
if (imgcaption && imgcaption.length > 0) {
|
|
9190
|
-
return React__default
|
|
9164
|
+
return React__default.createElement(
|
|
9191
9165
|
'div',
|
|
9192
9166
|
{ className: 'figure-caption' },
|
|
9193
|
-
React__default
|
|
9167
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9194
9168
|
);
|
|
9195
9169
|
} else if (caption) {
|
|
9196
|
-
return React__default
|
|
9170
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9197
9171
|
} else return null;
|
|
9198
9172
|
}, [caption, imgcaption]);
|
|
9199
9173
|
|
|
@@ -9210,24 +9184,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9210
9184
|
setShowLightbox(true);
|
|
9211
9185
|
}, [node, client]);
|
|
9212
9186
|
|
|
9213
|
-
return React__default
|
|
9214
|
-
React__default
|
|
9187
|
+
return React__default.createElement(
|
|
9188
|
+
React__default.Fragment,
|
|
9215
9189
|
null,
|
|
9216
|
-
infoBox.length >= 1 ? React__default
|
|
9217
|
-
|
|
9190
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9191
|
+
Figure$1,
|
|
9218
9192
|
{ className: '' + class_name, style: figureStyle },
|
|
9219
|
-
link ? React__default
|
|
9193
|
+
link ? React__default.createElement(
|
|
9220
9194
|
'a',
|
|
9221
9195
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9222
|
-
React__default
|
|
9223
|
-
React__default
|
|
9224
|
-
) : React__default
|
|
9225
|
-
React__default
|
|
9196
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9197
|
+
React__default.createElement(FigureCaption, null)
|
|
9198
|
+
) : React__default.createElement(
|
|
9199
|
+
React__default.Fragment,
|
|
9226
9200
|
null,
|
|
9227
|
-
React__default
|
|
9228
|
-
React__default
|
|
9201
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9202
|
+
React__default.createElement(FigureCaption, null)
|
|
9229
9203
|
),
|
|
9230
|
-
React__default
|
|
9204
|
+
React__default.createElement(LightBox, {
|
|
9231
9205
|
showLightbox: showLightbox,
|
|
9232
9206
|
lightboxImgSrc: lightboxImgSrc,
|
|
9233
9207
|
closeLightbox: function closeLightbox() {
|
|
@@ -9235,21 +9209,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9235
9209
|
setShowLightbox(false);
|
|
9236
9210
|
}
|
|
9237
9211
|
})
|
|
9238
|
-
) : React__default
|
|
9239
|
-
|
|
9212
|
+
) : React__default.createElement(
|
|
9213
|
+
Figure$1,
|
|
9240
9214
|
{ className: '' + class_name, style: figureStyle },
|
|
9241
|
-
link ? React__default
|
|
9215
|
+
link ? React__default.createElement(
|
|
9242
9216
|
'a',
|
|
9243
9217
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9244
|
-
React__default
|
|
9245
|
-
React__default
|
|
9246
|
-
) : React__default
|
|
9247
|
-
React__default
|
|
9218
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9219
|
+
React__default.createElement(FigureCaption, null)
|
|
9220
|
+
) : React__default.createElement(
|
|
9221
|
+
React__default.Fragment,
|
|
9248
9222
|
null,
|
|
9249
|
-
React__default
|
|
9250
|
-
React__default
|
|
9223
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9224
|
+
React__default.createElement(FigureCaption, null)
|
|
9251
9225
|
),
|
|
9252
|
-
React__default
|
|
9226
|
+
React__default.createElement(LightBox, {
|
|
9253
9227
|
showLightbox: showLightbox,
|
|
9254
9228
|
lightboxImgSrc: lightboxImgSrc,
|
|
9255
9229
|
closeLightbox: function closeLightbox() {
|
|
@@ -9258,7 +9232,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9258
9232
|
}
|
|
9259
9233
|
})
|
|
9260
9234
|
),
|
|
9261
|
-
React__default
|
|
9235
|
+
React__default.createElement(
|
|
9262
9236
|
'style',
|
|
9263
9237
|
{ jsx: 'true' },
|
|
9264
9238
|
'\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 '
|
|
@@ -9266,7 +9240,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9266
9240
|
);
|
|
9267
9241
|
};
|
|
9268
9242
|
|
|
9269
|
-
var Figure = React__default
|
|
9243
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9270
9244
|
|
|
9271
9245
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9272
9246
|
React.useEffect(function () {
|
|
@@ -9283,7 +9257,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9283
9257
|
}, [ref]);
|
|
9284
9258
|
}
|
|
9285
9259
|
|
|
9286
|
-
var FigureImage = React__default
|
|
9260
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9287
9261
|
var imagesCount = _ref.imagesCount,
|
|
9288
9262
|
image = _ref.image,
|
|
9289
9263
|
client = _ref.client,
|
|
@@ -9291,13 +9265,13 @@ var FigureImage = React__default['default'].memo(function (_ref) {
|
|
|
9291
9265
|
link = _ref.link,
|
|
9292
9266
|
handleClickFigure = _ref.handleClickFigure;
|
|
9293
9267
|
|
|
9294
|
-
return React__default
|
|
9268
|
+
return React__default.createElement(
|
|
9295
9269
|
'picture',
|
|
9296
9270
|
null,
|
|
9297
|
-
React__default
|
|
9298
|
-
React__default
|
|
9299
|
-
React__default
|
|
9300
|
-
React__default
|
|
9271
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9272
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9273
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9274
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9301
9275
|
'images-count': imagesCount,
|
|
9302
9276
|
className: 'multi-figure-image',
|
|
9303
9277
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9334,13 +9308,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9334
9308
|
imgcaption = _ref2.imgcaption;
|
|
9335
9309
|
|
|
9336
9310
|
if (imgcaption && imgcaption.length > 0) {
|
|
9337
|
-
return React__default
|
|
9311
|
+
return React__default.createElement(
|
|
9338
9312
|
'div',
|
|
9339
9313
|
{ className: 'multi-figure-caption' },
|
|
9340
|
-
React__default
|
|
9314
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9341
9315
|
);
|
|
9342
9316
|
} else if (caption) {
|
|
9343
|
-
return React__default
|
|
9317
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9344
9318
|
} else return null;
|
|
9345
9319
|
};
|
|
9346
9320
|
|
|
@@ -9349,7 +9323,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9349
9323
|
setOpenImg(true);
|
|
9350
9324
|
}, [client]);
|
|
9351
9325
|
|
|
9352
|
-
var FigureImageWOverLay = React__default
|
|
9326
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9353
9327
|
var imagesCount = _ref3.imagesCount,
|
|
9354
9328
|
image = _ref3.image,
|
|
9355
9329
|
client = _ref3.client,
|
|
@@ -9357,32 +9331,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9357
9331
|
link = _ref3.link,
|
|
9358
9332
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9359
9333
|
|
|
9360
|
-
var triggerAction = main.
|
|
9361
|
-
var placementLocation = main.
|
|
9362
|
-
return React__default
|
|
9334
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9335
|
+
var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9336
|
+
return React__default.createElement(
|
|
9363
9337
|
'picture',
|
|
9364
9338
|
null,
|
|
9365
|
-
React__default
|
|
9366
|
-
React__default
|
|
9367
|
-
React__default
|
|
9368
|
-
main.
|
|
9339
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9340
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9341
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9342
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9369
9343
|
'images-count': imagesCount,
|
|
9370
9344
|
className: 'multi-figure-image',
|
|
9371
9345
|
src: urlFor({ source: image, client: client }),
|
|
9372
9346
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9373
|
-
}, !link && !main.
|
|
9347
|
+
}, !link && !main.main_35 && {
|
|
9374
9348
|
onClick: function onClick() {
|
|
9375
9349
|
return handleClickFigure(image, client);
|
|
9376
9350
|
}
|
|
9377
|
-
})) : React__default
|
|
9378
|
-
|
|
9351
|
+
})) : React__default.createElement(
|
|
9352
|
+
OverlayTrigger,
|
|
9379
9353
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9380
|
-
React__default
|
|
9354
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9381
9355
|
'images-count': imagesCount,
|
|
9382
9356
|
className: 'multi-figure-image',
|
|
9383
9357
|
src: urlFor({ source: image, client: client }),
|
|
9384
9358
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9385
|
-
}, !link && !main.
|
|
9359
|
+
}, !link && !main.main_35 && {
|
|
9386
9360
|
onClick: function onClick() {
|
|
9387
9361
|
return handleClickFigure(image, client);
|
|
9388
9362
|
}
|
|
@@ -9393,102 +9367,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9393
9367
|
|
|
9394
9368
|
var renderTooltip = function renderTooltip(image) {
|
|
9395
9369
|
if (image.infoBox[0].title) {
|
|
9396
|
-
return React__default
|
|
9397
|
-
|
|
9370
|
+
return React__default.createElement(
|
|
9371
|
+
Popover,
|
|
9398
9372
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9399
|
-
React__default
|
|
9400
|
-
|
|
9373
|
+
React__default.createElement(
|
|
9374
|
+
Popover.Title,
|
|
9401
9375
|
{ as: 'h3' },
|
|
9402
9376
|
image.infoBox[0].title
|
|
9403
9377
|
),
|
|
9404
|
-
React__default
|
|
9405
|
-
|
|
9378
|
+
React__default.createElement(
|
|
9379
|
+
Popover.Content,
|
|
9406
9380
|
null,
|
|
9407
|
-
React__default
|
|
9381
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9408
9382
|
)
|
|
9409
9383
|
);
|
|
9410
9384
|
} else {
|
|
9411
|
-
return React__default
|
|
9412
|
-
|
|
9413
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9414
|
-
React__default
|
|
9385
|
+
return React__default.createElement(
|
|
9386
|
+
Tooltip,
|
|
9387
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9388
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9415
9389
|
);
|
|
9416
9390
|
}
|
|
9417
9391
|
};
|
|
9418
9392
|
|
|
9419
9393
|
if (images && images.length > 0) {
|
|
9420
|
-
return React__default
|
|
9394
|
+
return React__default.createElement(
|
|
9421
9395
|
'div',
|
|
9422
9396
|
{ className: 'multi-figure-container' },
|
|
9423
|
-
React__default
|
|
9424
|
-
|
|
9397
|
+
React__default.createElement(
|
|
9398
|
+
Row,
|
|
9425
9399
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9426
9400
|
images.map(function (image, index) {
|
|
9427
9401
|
if (image.infoBox) {
|
|
9428
|
-
return React__default
|
|
9429
|
-
|
|
9402
|
+
return React__default.createElement(
|
|
9403
|
+
Col,
|
|
9430
9404
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9431
|
-
image.link ? React__default
|
|
9405
|
+
image.link ? React__default.createElement(
|
|
9432
9406
|
'a',
|
|
9433
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9434
|
-
React__default
|
|
9407
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9408
|
+
React__default.createElement(
|
|
9435
9409
|
'div',
|
|
9436
9410
|
{ className: 'multi-figure-image-container' },
|
|
9437
|
-
React__default
|
|
9411
|
+
React__default.createElement(
|
|
9438
9412
|
index$2.LazyLoad,
|
|
9439
9413
|
{ once: true },
|
|
9440
|
-
React__default
|
|
9414
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9441
9415
|
),
|
|
9442
|
-
React__default
|
|
9416
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9443
9417
|
)
|
|
9444
|
-
) : React__default
|
|
9418
|
+
) : React__default.createElement(
|
|
9445
9419
|
'div',
|
|
9446
9420
|
{ className: 'multi-figure-image-container' },
|
|
9447
|
-
React__default
|
|
9421
|
+
React__default.createElement(
|
|
9448
9422
|
index$2.LazyLoad,
|
|
9449
9423
|
{ once: true },
|
|
9450
|
-
React__default
|
|
9424
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9451
9425
|
),
|
|
9452
|
-
React__default
|
|
9426
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9453
9427
|
)
|
|
9454
9428
|
);
|
|
9455
9429
|
} else {
|
|
9456
|
-
return React__default
|
|
9457
|
-
|
|
9430
|
+
return React__default.createElement(
|
|
9431
|
+
Col,
|
|
9458
9432
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9459
|
-
image.link ? React__default
|
|
9433
|
+
image.link ? React__default.createElement(
|
|
9460
9434
|
'a',
|
|
9461
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9462
|
-
React__default
|
|
9435
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9436
|
+
React__default.createElement(
|
|
9463
9437
|
'div',
|
|
9464
9438
|
{ className: 'multi-figure-image-container' },
|
|
9465
|
-
React__default
|
|
9439
|
+
React__default.createElement(
|
|
9466
9440
|
index$2.LazyLoad,
|
|
9467
9441
|
{ once: true },
|
|
9468
|
-
React__default
|
|
9442
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9469
9443
|
),
|
|
9470
|
-
React__default
|
|
9444
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9471
9445
|
)
|
|
9472
|
-
) : React__default
|
|
9446
|
+
) : React__default.createElement(
|
|
9473
9447
|
'div',
|
|
9474
9448
|
{ className: 'multi-figure-image-container' },
|
|
9475
|
-
React__default
|
|
9449
|
+
React__default.createElement(
|
|
9476
9450
|
index$2.LazyLoad,
|
|
9477
9451
|
{ once: true },
|
|
9478
|
-
React__default
|
|
9452
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9479
9453
|
),
|
|
9480
|
-
React__default
|
|
9454
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9481
9455
|
)
|
|
9482
9456
|
);
|
|
9483
9457
|
}
|
|
9484
9458
|
})
|
|
9485
9459
|
),
|
|
9486
|
-
React__default
|
|
9460
|
+
React__default.createElement(
|
|
9487
9461
|
'div',
|
|
9488
9462
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9489
|
-
React__default
|
|
9463
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9490
9464
|
),
|
|
9491
|
-
React__default
|
|
9465
|
+
React__default.createElement(
|
|
9492
9466
|
'style',
|
|
9493
9467
|
{ jsx: 'true' },
|
|
9494
9468
|
'\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 '
|
|
@@ -9537,23 +9511,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9537
9511
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9538
9512
|
}, []);
|
|
9539
9513
|
|
|
9540
|
-
return React__default
|
|
9541
|
-
React__default
|
|
9514
|
+
return React__default.createElement(
|
|
9515
|
+
React__default.Fragment,
|
|
9542
9516
|
null,
|
|
9543
|
-
React__default
|
|
9544
|
-
|
|
9517
|
+
React__default.createElement(
|
|
9518
|
+
Head,
|
|
9545
9519
|
null,
|
|
9546
|
-
React__default
|
|
9520
|
+
React__default.createElement('script', {
|
|
9547
9521
|
dangerouslySetInnerHTML: {
|
|
9548
9522
|
__html: 'history.scrollRestoration = "manual"'
|
|
9549
9523
|
}
|
|
9550
9524
|
})
|
|
9551
9525
|
),
|
|
9552
|
-
React__default
|
|
9526
|
+
React__default.createElement(
|
|
9553
9527
|
'div',
|
|
9554
9528
|
{ id: elementId },
|
|
9555
|
-
React__default
|
|
9556
|
-
React__default
|
|
9529
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9530
|
+
React__default.createElement(
|
|
9557
9531
|
'style',
|
|
9558
9532
|
{ jsx: 'true' },
|
|
9559
9533
|
'\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 '
|
|
@@ -9587,7 +9561,7 @@ exports.__esModule = true;
|
|
|
9587
9561
|
|
|
9588
9562
|
|
|
9589
9563
|
|
|
9590
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9564
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9591
9565
|
|
|
9592
9566
|
|
|
9593
9567
|
|
|
@@ -9595,23 +9569,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9595
9569
|
|
|
9596
9570
|
|
|
9597
9571
|
|
|
9598
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9572
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9599
9573
|
|
|
9600
9574
|
|
|
9601
9575
|
|
|
9602
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9576
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9603
9577
|
|
|
9604
9578
|
|
|
9605
9579
|
|
|
9606
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9580
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9607
9581
|
|
|
9608
9582
|
|
|
9609
9583
|
|
|
9610
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9584
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9611
9585
|
|
|
9612
9586
|
|
|
9613
9587
|
|
|
9614
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9588
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9615
9589
|
|
|
9616
9590
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9617
9591
|
var noop = function noop() {};
|
|
@@ -9756,9 +9730,9 @@ var ScriptTag = function (_Component) {
|
|
|
9756
9730
|
|
|
9757
9731
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9758
9732
|
// eslint-disable-next-line no-unused-vars
|
|
9759
|
-
var _props3 = this.props
|
|
9760
|
-
_props3.isHydrating
|
|
9761
|
-
|
|
9733
|
+
var _props3 = this.props,
|
|
9734
|
+
isHydrating = _props3.isHydrating,
|
|
9735
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9762
9736
|
|
|
9763
9737
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9764
9738
|
return _this2.domRef = tag;
|
|
@@ -9766,7 +9740,7 @@ var ScriptTag = function (_Component) {
|
|
|
9766
9740
|
};
|
|
9767
9741
|
|
|
9768
9742
|
return ScriptTag;
|
|
9769
|
-
}(React__default
|
|
9743
|
+
}(React__default.Component);
|
|
9770
9744
|
|
|
9771
9745
|
ScriptTag.propTypes = {
|
|
9772
9746
|
/**
|
|
@@ -9845,11 +9819,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9845
9819
|
}, []);
|
|
9846
9820
|
|
|
9847
9821
|
if (iframeSrc) {
|
|
9848
|
-
return React__default
|
|
9822
|
+
return React__default.createElement(
|
|
9849
9823
|
'section',
|
|
9850
9824
|
{ className: 'form-assembly' },
|
|
9851
|
-
React__default
|
|
9852
|
-
React__default
|
|
9825
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9826
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9853
9827
|
);
|
|
9854
9828
|
}
|
|
9855
9829
|
|
|
@@ -9886,27 +9860,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9886
9860
|
return window.removeEventListener('resize', handleResize);
|
|
9887
9861
|
};
|
|
9888
9862
|
}, []);
|
|
9889
|
-
return React__default
|
|
9863
|
+
return React__default.createElement(
|
|
9890
9864
|
'div',
|
|
9891
9865
|
{ className: 'blockTableHolder', ref: holder },
|
|
9892
|
-
React__default
|
|
9866
|
+
React__default.createElement(
|
|
9893
9867
|
'div',
|
|
9894
9868
|
{ className: 'blockTable' },
|
|
9895
9869
|
rows && rows.map(function (row) {
|
|
9896
|
-
return React__default
|
|
9870
|
+
return React__default.createElement(
|
|
9897
9871
|
'div',
|
|
9898
9872
|
{ className: 'blockTableRow' },
|
|
9899
9873
|
row.cells && row.cells.map(function (cell) {
|
|
9900
|
-
return React__default
|
|
9874
|
+
return React__default.createElement(
|
|
9901
9875
|
'div',
|
|
9902
9876
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9903
|
-
React__default
|
|
9877
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9904
9878
|
);
|
|
9905
9879
|
})
|
|
9906
9880
|
);
|
|
9907
9881
|
})
|
|
9908
9882
|
),
|
|
9909
|
-
React__default
|
|
9883
|
+
React__default.createElement(
|
|
9910
9884
|
'style',
|
|
9911
9885
|
{ jsx: true },
|
|
9912
9886
|
'\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 '
|
|
@@ -9991,12 +9965,12 @@ var getSerializers = function getSerializers() {
|
|
|
9991
9965
|
var node = _ref.node;
|
|
9992
9966
|
var url = node.url;
|
|
9993
9967
|
|
|
9994
|
-
return React__default
|
|
9968
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9995
9969
|
},
|
|
9996
9970
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9997
9971
|
var node = _ref2.node;
|
|
9998
9972
|
|
|
9999
|
-
return React__default
|
|
9973
|
+
return React__default.createElement(YouTubeGallery, {
|
|
10000
9974
|
nodes: node,
|
|
10001
9975
|
article: article,
|
|
10002
9976
|
meta: meta,
|
|
@@ -10010,7 +9984,7 @@ var getSerializers = function getSerializers() {
|
|
|
10010
9984
|
articleSeries: function articleSeries(_ref3) {
|
|
10011
9985
|
var node = _ref3.node;
|
|
10012
9986
|
|
|
10013
|
-
return React__default
|
|
9987
|
+
return React__default.createElement(ArticleSeries, {
|
|
10014
9988
|
nodes: node,
|
|
10015
9989
|
accountIDs: videoAccountIDs || {},
|
|
10016
9990
|
pageview: pageview,
|
|
@@ -10023,61 +9997,61 @@ var getSerializers = function getSerializers() {
|
|
|
10023
9997
|
figure: function figure(_ref4) {
|
|
10024
9998
|
var node = _ref4.node;
|
|
10025
9999
|
|
|
10026
|
-
return React__default
|
|
10000
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10027
10001
|
},
|
|
10028
10002
|
multifigure: function multifigure(_ref5) {
|
|
10029
10003
|
var node = _ref5.node;
|
|
10030
10004
|
|
|
10031
|
-
return React__default
|
|
10005
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10032
10006
|
},
|
|
10033
10007
|
slideshow: function slideshow(_ref6) {
|
|
10034
10008
|
var node = _ref6.node;
|
|
10035
10009
|
var slides = node.slides;
|
|
10036
10010
|
|
|
10037
|
-
return React__default
|
|
10011
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10038
10012
|
},
|
|
10039
10013
|
sidebar: function sidebar(_ref7) {
|
|
10040
10014
|
var node = _ref7.node;
|
|
10041
10015
|
var caption = node.caption,
|
|
10042
10016
|
content = node.content;
|
|
10043
10017
|
|
|
10044
|
-
return React__default
|
|
10018
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10045
10019
|
},
|
|
10046
10020
|
datatable: function datatable(_ref8) {
|
|
10047
10021
|
var node = _ref8.node;
|
|
10048
10022
|
var table = node.table;
|
|
10049
10023
|
|
|
10050
|
-
return React__default
|
|
10024
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10051
10025
|
},
|
|
10052
10026
|
media: function media(_ref9) {
|
|
10053
10027
|
var node = _ref9.node;
|
|
10054
10028
|
|
|
10055
|
-
return React__default
|
|
10029
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
10056
10030
|
},
|
|
10057
10031
|
iframe: function iframe(_ref10) {
|
|
10058
10032
|
var node = _ref10.node;
|
|
10059
10033
|
|
|
10060
|
-
return React__default
|
|
10034
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10061
10035
|
},
|
|
10062
10036
|
video: function video(_ref11) {
|
|
10063
10037
|
var node = _ref11.node;
|
|
10064
10038
|
|
|
10065
|
-
return React__default
|
|
10039
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10066
10040
|
},
|
|
10067
10041
|
audio: function audio(_ref12) {
|
|
10068
10042
|
var node = _ref12.node;
|
|
10069
10043
|
|
|
10070
|
-
return React__default
|
|
10044
|
+
return React__default.createElement(Audio, { node: node });
|
|
10071
10045
|
},
|
|
10072
10046
|
poll: function poll(_ref13) {
|
|
10073
10047
|
var node = _ref13.node;
|
|
10074
10048
|
|
|
10075
|
-
return React__default
|
|
10049
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10076
10050
|
},
|
|
10077
10051
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10078
10052
|
var node = _ref14.node;
|
|
10079
10053
|
|
|
10080
|
-
return React__default
|
|
10054
|
+
return React__default.createElement(Poll$1, {
|
|
10081
10055
|
node: node,
|
|
10082
10056
|
client: client,
|
|
10083
10057
|
pageview: pageview,
|
|
@@ -10091,35 +10065,35 @@ var getSerializers = function getSerializers() {
|
|
|
10091
10065
|
var node = _ref15.node;
|
|
10092
10066
|
var quizzes = node.quizzes;
|
|
10093
10067
|
|
|
10094
|
-
return React__default
|
|
10068
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10095
10069
|
},
|
|
10096
10070
|
leads: function leads(_ref16) {
|
|
10097
10071
|
var node = _ref16.node;
|
|
10098
10072
|
var leadID = node.leadID;
|
|
10099
10073
|
|
|
10100
10074
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10101
|
-
return React__default
|
|
10075
|
+
return React__default.createElement(Leads, { url: url });
|
|
10102
10076
|
},
|
|
10103
10077
|
slideshows: function slideshows(_ref17) {
|
|
10104
10078
|
var node = _ref17.node;
|
|
10105
10079
|
|
|
10106
|
-
return React__default
|
|
10080
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10107
10081
|
},
|
|
10108
10082
|
nativeAd: function nativeAd(_ref18) {
|
|
10109
10083
|
var node = _ref18.node;
|
|
10110
10084
|
|
|
10111
|
-
return React__default
|
|
10085
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10112
10086
|
},
|
|
10113
10087
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10114
10088
|
var node = _ref19.node;
|
|
10115
10089
|
|
|
10116
|
-
return React__default
|
|
10090
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10117
10091
|
},
|
|
10118
10092
|
hrtag: function hrtag() {
|
|
10119
|
-
return React__default
|
|
10093
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10120
10094
|
},
|
|
10121
10095
|
brtag: function brtag() {
|
|
10122
|
-
return React__default
|
|
10096
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10123
10097
|
},
|
|
10124
10098
|
formstack: function formstack(_ref20) {
|
|
10125
10099
|
var node = _ref20.node;
|
|
@@ -10127,29 +10101,29 @@ var getSerializers = function getSerializers() {
|
|
|
10127
10101
|
Caption = node.Caption,
|
|
10128
10102
|
needSegmentSupport = node.needSegmentSupport;
|
|
10129
10103
|
|
|
10130
|
-
return React__default
|
|
10104
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10131
10105
|
},
|
|
10132
10106
|
formassembly: FormAssembly,
|
|
10133
10107
|
multimedia: function multimedia(_ref21) {
|
|
10134
10108
|
var node = _ref21.node;
|
|
10135
10109
|
|
|
10136
|
-
return React__default
|
|
10110
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10137
10111
|
},
|
|
10138
10112
|
blockTable: function blockTable(_ref22) {
|
|
10139
10113
|
var node = _ref22.node;
|
|
10140
|
-
return React__default
|
|
10114
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10141
10115
|
}
|
|
10142
10116
|
},
|
|
10143
10117
|
marks: {
|
|
10144
10118
|
superscript: function superscript(props) {
|
|
10145
|
-
return React__default
|
|
10119
|
+
return React__default.createElement(
|
|
10146
10120
|
'sup',
|
|
10147
10121
|
null,
|
|
10148
10122
|
props.children
|
|
10149
10123
|
);
|
|
10150
10124
|
},
|
|
10151
10125
|
subscript: function subscript(props) {
|
|
10152
|
-
return React__default
|
|
10126
|
+
return React__default.createElement(
|
|
10153
10127
|
'sub',
|
|
10154
10128
|
null,
|
|
10155
10129
|
props.children
|
|
@@ -10166,7 +10140,7 @@ var getSerializers = function getSerializers() {
|
|
|
10166
10140
|
if (href && href.charAt(0) === '#') {
|
|
10167
10141
|
var elementId = href.slice(1);
|
|
10168
10142
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10169
|
-
return React__default
|
|
10143
|
+
return React__default.createElement(
|
|
10170
10144
|
'a',
|
|
10171
10145
|
{ onClick: function onClick() {
|
|
10172
10146
|
return ScrollToElement(elementId);
|
|
@@ -10176,15 +10150,15 @@ var getSerializers = function getSerializers() {
|
|
|
10176
10150
|
}
|
|
10177
10151
|
|
|
10178
10152
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10179
|
-
return href ? React__default
|
|
10153
|
+
return href ? React__default.createElement(
|
|
10180
10154
|
'a',
|
|
10181
|
-
_extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10155
|
+
_extends$1._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10182
10156
|
children
|
|
10183
10157
|
) : children;
|
|
10184
10158
|
},
|
|
10185
10159
|
alignleft: function alignleft(_ref23) {
|
|
10186
10160
|
var children = _ref23.children;
|
|
10187
|
-
return React__default
|
|
10161
|
+
return React__default.createElement(
|
|
10188
10162
|
'div',
|
|
10189
10163
|
{ style: { textAlign: 'left' } },
|
|
10190
10164
|
children
|
|
@@ -10192,7 +10166,7 @@ var getSerializers = function getSerializers() {
|
|
|
10192
10166
|
},
|
|
10193
10167
|
alignright: function alignright(_ref24) {
|
|
10194
10168
|
var children = _ref24.children;
|
|
10195
|
-
return React__default
|
|
10169
|
+
return React__default.createElement(
|
|
10196
10170
|
'div',
|
|
10197
10171
|
{ style: { textAlign: 'right' } },
|
|
10198
10172
|
children
|
|
@@ -10200,7 +10174,7 @@ var getSerializers = function getSerializers() {
|
|
|
10200
10174
|
},
|
|
10201
10175
|
aligncenter: function aligncenter(_ref25) {
|
|
10202
10176
|
var children = _ref25.children;
|
|
10203
|
-
return React__default
|
|
10177
|
+
return React__default.createElement(
|
|
10204
10178
|
'div',
|
|
10205
10179
|
{ style: { textAlign: 'center' } },
|
|
10206
10180
|
children
|
|
@@ -10208,7 +10182,7 @@ var getSerializers = function getSerializers() {
|
|
|
10208
10182
|
},
|
|
10209
10183
|
alignjustify: function alignjustify(_ref26) {
|
|
10210
10184
|
var children = _ref26.children;
|
|
10211
|
-
return React__default
|
|
10185
|
+
return React__default.createElement(
|
|
10212
10186
|
'div',
|
|
10213
10187
|
{ style: { textAlign: 'justify' } },
|
|
10214
10188
|
children
|
|
@@ -10218,7 +10192,7 @@ var getSerializers = function getSerializers() {
|
|
|
10218
10192
|
var children = props.children,
|
|
10219
10193
|
color = props.mark.color;
|
|
10220
10194
|
|
|
10221
|
-
return React__default
|
|
10195
|
+
return React__default.createElement(
|
|
10222
10196
|
'span',
|
|
10223
10197
|
{ style: { color: color ? color.hex : null } },
|
|
10224
10198
|
children
|