@mjhls/mjh-framework 1.0.786-beta.0 → 1.0.786
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/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +27 -26
- package/dist/cjs/AD300x250x600.js +27 -26
- package/dist/cjs/AD728x90.js +30 -29
- package/dist/cjs/ADFloatingFooter.js +29 -28
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +29 -28
- package/dist/cjs/{ADInfeed-bb09e44c.js → ADInfeed-1e53d7db.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +29 -28
- package/dist/cjs/ADSponsoredResources.js +29 -28
- package/dist/cjs/ADWebcast.js +29 -28
- package/dist/cjs/ADWelcome.js +30 -29
- package/dist/cjs/{ADlgInfeed-fa91dbda.js → ADlgInfeed-2494fd17.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +16 -15
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +57 -54
- package/dist/cjs/ArticleSeriesLandingPage.js +38 -37
- package/dist/cjs/ArticleSeriesListing.js +61 -60
- package/dist/cjs/Auth.js +4231 -0
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +82 -82
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +57 -54
- package/dist/cjs/ConferenceArticleCard.js +24 -23
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +97 -93
- package/dist/cjs/DeckQueue.js +91 -87
- package/dist/cjs/{Dfp-b807d8fa.js → Dfp-a17e00fa.js} +32 -31
- package/dist/cjs/EventsDeck.js +138 -131
- package/dist/cjs/ExternalResources.js +80 -77
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +181 -177
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +135 -130
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +71 -68
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +40 -39
- package/dist/cjs/LeftNav.js +37 -35
- package/dist/cjs/MasterDeck.js +70 -69
- package/dist/cjs/MediaSeriesLanding.js +40 -38
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +142 -137
- package/dist/cjs/NavNative.js +134 -126
- package/dist/cjs/NavNormal.js +52 -47
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +112 -99
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +39 -38
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +83 -79
- package/dist/cjs/QueueDeckExpanded.js +291 -291
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +25 -24
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-193a2958.js} +38 -37
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -34
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TaxonomyDescription.js +54 -51
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +76 -70
- package/dist/cjs/VideoSeriesCard.js +32 -31
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +46 -45
- package/dist/cjs/VideoSeriesListing.js +78 -77
- package/dist/cjs/View.js +261 -255
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +63 -62
- package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-b6a175bf.js} +7 -7
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
- package/dist/cjs/{extends-0a918631.js → extends-1e24fc8d.js} +1 -2
- package/dist/cjs/getRelatedArticle.js +443 -28
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +44 -42
- package/dist/cjs/{getTargeting-67f12cd7.js → getTargeting-497b581d.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-57d0264f.js → index-4f6e2a09.js} +948 -1747
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +166 -154
- package/dist/cjs/{inherits-452ff02c.js → inherits-2eb23889.js} +5 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-4ef21f0f.js} +72 -23
- package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/util-6f784d85.js +576 -0
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -23
- package/dist/esm/AD300x250x600.js +23 -23
- package/dist/esm/AD728x90.js +26 -26
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +25 -25
- package/dist/esm/{ADInfeed-0b552b0a.js → ADInfeed-94817c40.js} +9 -9
- package/dist/esm/ADSkyscraper.js +25 -25
- package/dist/esm/ADSponsoredResources.js +25 -25
- package/dist/esm/ADWebcast.js +25 -25
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-49f41f83.js → ADlgInfeed-6124ee3c.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +53 -51
- package/dist/esm/ArticleSeriesLandingPage.js +34 -34
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +4211 -0
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +78 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +47 -47
- package/dist/esm/ConferenceArticleCard.js +19 -19
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +75 -75
- package/dist/esm/DeckQueue.js +65 -65
- package/dist/esm/{Dfp-ebc4b22f.js → Dfp-988dbcaa.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +72 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -65
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +63 -63
- package/dist/esm/MediaSeriesLanding.js +31 -31
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +99 -99
- package/dist/esm/NavNormal.js +35 -35
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +107 -95
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +35 -35
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +54 -54
- package/dist/esm/QueueDeckExpanded.js +271 -271
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +31 -31
- package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-6a1081ff.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +48 -46
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +62 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +241 -239
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
- package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-585841c0.js} +7 -7
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
- package/dist/esm/{extends-6f2fcc99.js → extends-31d65aba.js} +2 -2
- package/dist/esm/getRelatedArticle.js +443 -28
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +44 -42
- package/dist/esm/{getTargeting-ed6ebf43.js → getTargeting-2d402d66.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-0141b5a9.js → index-761f5e47.js} +874 -1681
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +132 -124
- package/dist/esm/{inherits-cf8dde54.js → inherits-5906fbea.js} +6 -6
- package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ad27652f.js} +72 -23
- package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/util-3ab476bf.js +574 -0
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
-
import { l as lib_3 } from './index-a9e53f80.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
1
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-cdeaee08.js';
|
|
3
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
+
import { l as lib_3 } from './index-888f9253.js';
|
|
13
6
|
import Router, { useRouter } from 'next/router';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
-
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
16
|
-
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
+
import { u as util } from './util-3ab476bf.js';
|
|
11
|
+
import Beam from './Beam.js';
|
|
12
|
+
import Segment from './Segment.js';
|
|
13
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-1450d277.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
15
|
+
import { _ as _extends } from './extends-31d65aba.js';
|
|
16
|
+
import { L as LazyLoad } from './index-752d1dae.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-e9cea9e8.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
24
19
|
import GroupDeck from './GroupDeck.js';
|
|
25
|
-
import {
|
|
26
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
28
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
29
21
|
import SocialShare from './SocialShare.js';
|
|
30
|
-
import { _ as
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-97770c52.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-8f409e54.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
31
25
|
import Pagination from 'react-bootstrap/Pagination';
|
|
32
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
33
|
-
import
|
|
27
|
+
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
+
import DFPAdSlot from './AdSlot.js';
|
|
29
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
+
import Head from 'next/head';
|
|
32
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-5906fbea.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
+
import ScriptTag from 'react-script-tag';
|
|
34
36
|
|
|
35
37
|
var urlFor = function urlFor(source, builder) {
|
|
36
38
|
return builder.image(source).auto('format');
|
|
@@ -71,20 +73,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
71
73
|
if (pageview) pageview(router.asPath);
|
|
72
74
|
}, [router]);
|
|
73
75
|
|
|
74
|
-
return
|
|
76
|
+
return React.createElement(
|
|
75
77
|
'div',
|
|
76
78
|
{ className: 'mt-3 mb-3' },
|
|
77
|
-
|
|
79
|
+
React.createElement(
|
|
78
80
|
Carousel,
|
|
79
81
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
80
82
|
return onChangeSlide(selectedIndex, router);
|
|
81
83
|
}, interval: null },
|
|
82
84
|
slides && slides.map(function (slide) {
|
|
83
|
-
return
|
|
85
|
+
return React.createElement(
|
|
84
86
|
Carousel.Item,
|
|
85
87
|
{ key: slide._key },
|
|
86
|
-
|
|
87
|
-
slide.caption &&
|
|
88
|
+
React.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
89
|
+
slide.caption && React.createElement(
|
|
88
90
|
'p',
|
|
89
91
|
{ className: 'p-2' },
|
|
90
92
|
slide.caption
|
|
@@ -95,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
95
97
|
);
|
|
96
98
|
};
|
|
97
99
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
101
103
|
|
|
102
104
|
var fastDeepEqual = function equal(a, b) {
|
|
103
105
|
if (a === b) return true;
|
|
104
106
|
|
|
105
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
106
|
-
|
|
107
|
-
, arrB = isArray(b)
|
|
108
|
-
, i
|
|
109
|
-
, length
|
|
110
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
111
109
|
|
|
112
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
113
112
|
length = a.length;
|
|
114
113
|
if (length != b.length) return false;
|
|
115
114
|
for (i = length; i-- !== 0;)
|
|
@@ -117,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
117
116
|
return true;
|
|
118
117
|
}
|
|
119
118
|
|
|
120
|
-
if (arrA != arrB) return false;
|
|
121
119
|
|
|
122
|
-
var dateA = a instanceof Date
|
|
123
|
-
, dateB = b instanceof Date;
|
|
124
|
-
if (dateA != dateB) return false;
|
|
125
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
126
120
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (
|
|
130
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
131
124
|
|
|
132
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
133
126
|
length = keys.length;
|
|
134
|
-
|
|
135
|
-
if (length !== keyList(b).length)
|
|
136
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
137
128
|
|
|
138
129
|
for (i = length; i-- !== 0;)
|
|
139
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
140
131
|
|
|
141
132
|
for (i = length; i-- !== 0;) {
|
|
142
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
143
135
|
if (!equal(a[key], b[key])) return false;
|
|
144
136
|
}
|
|
145
137
|
|
|
146
138
|
return true;
|
|
147
139
|
}
|
|
148
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
149
142
|
return a!==a && b!==b;
|
|
150
143
|
};
|
|
151
144
|
|
|
@@ -683,14 +676,14 @@ function coerce(val) {
|
|
|
683
676
|
return val;
|
|
684
677
|
}
|
|
685
678
|
});
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
679
|
+
debug.coerce;
|
|
680
|
+
debug.disable;
|
|
681
|
+
debug.enable;
|
|
682
|
+
debug.enabled;
|
|
683
|
+
debug.humanize;
|
|
684
|
+
debug.names;
|
|
685
|
+
debug.skips;
|
|
686
|
+
debug.formatters;
|
|
694
687
|
|
|
695
688
|
var browser = createCommonjsModule(function (module, exports) {
|
|
696
689
|
/**
|
|
@@ -879,13 +872,13 @@ function localstorage() {
|
|
|
879
872
|
} catch (e) {}
|
|
880
873
|
}
|
|
881
874
|
});
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
875
|
+
browser.log;
|
|
876
|
+
browser.formatArgs;
|
|
877
|
+
browser.save;
|
|
878
|
+
browser.load;
|
|
879
|
+
browser.useColors;
|
|
880
|
+
browser.storage;
|
|
881
|
+
browser.colors;
|
|
889
882
|
|
|
890
883
|
// MIT lisence
|
|
891
884
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -908,579 +901,6 @@ var tty = {
|
|
|
908
901
|
WriteStream: WriteStream
|
|
909
902
|
};
|
|
910
903
|
|
|
911
|
-
var inherits;
|
|
912
|
-
if (typeof Object.create === 'function'){
|
|
913
|
-
inherits = function inherits(ctor, superCtor) {
|
|
914
|
-
// implementation from standard node.js 'util' module
|
|
915
|
-
ctor.super_ = superCtor;
|
|
916
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
917
|
-
constructor: {
|
|
918
|
-
value: ctor,
|
|
919
|
-
enumerable: false,
|
|
920
|
-
writable: true,
|
|
921
|
-
configurable: true
|
|
922
|
-
}
|
|
923
|
-
});
|
|
924
|
-
};
|
|
925
|
-
} else {
|
|
926
|
-
inherits = function inherits(ctor, superCtor) {
|
|
927
|
-
ctor.super_ = superCtor;
|
|
928
|
-
var TempCtor = function () {};
|
|
929
|
-
TempCtor.prototype = superCtor.prototype;
|
|
930
|
-
ctor.prototype = new TempCtor();
|
|
931
|
-
ctor.prototype.constructor = ctor;
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
var inherits$1 = inherits;
|
|
935
|
-
|
|
936
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
937
|
-
var formatRegExp = /%[sdj%]/g;
|
|
938
|
-
function format(f) {
|
|
939
|
-
if (!isString(f)) {
|
|
940
|
-
var objects = [];
|
|
941
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
942
|
-
objects.push(inspect(arguments[i]));
|
|
943
|
-
}
|
|
944
|
-
return objects.join(' ');
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
var i = 1;
|
|
948
|
-
var args = arguments;
|
|
949
|
-
var len = args.length;
|
|
950
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
|
951
|
-
if (x === '%%') return '%';
|
|
952
|
-
if (i >= len) return x;
|
|
953
|
-
switch (x) {
|
|
954
|
-
case '%s': return String(args[i++]);
|
|
955
|
-
case '%d': return Number(args[i++]);
|
|
956
|
-
case '%j':
|
|
957
|
-
try {
|
|
958
|
-
return JSON.stringify(args[i++]);
|
|
959
|
-
} catch (_) {
|
|
960
|
-
return '[Circular]';
|
|
961
|
-
}
|
|
962
|
-
default:
|
|
963
|
-
return x;
|
|
964
|
-
}
|
|
965
|
-
});
|
|
966
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
967
|
-
if (isNull(x) || !isObject(x)) {
|
|
968
|
-
str += ' ' + x;
|
|
969
|
-
} else {
|
|
970
|
-
str += ' ' + inspect(x);
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
return str;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
// Mark that a method should not be used.
|
|
977
|
-
// Returns a modified function which warns once by default.
|
|
978
|
-
// If --no-deprecation is set, then it is a no-op.
|
|
979
|
-
function deprecate(fn, msg) {
|
|
980
|
-
// Allow for deprecating things in the process of starting up.
|
|
981
|
-
if (isUndefined(global.process)) {
|
|
982
|
-
return function() {
|
|
983
|
-
return deprecate(fn, msg).apply(this, arguments);
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
var warned = false;
|
|
988
|
-
function deprecated() {
|
|
989
|
-
if (!warned) {
|
|
990
|
-
{
|
|
991
|
-
console.error(msg);
|
|
992
|
-
}
|
|
993
|
-
warned = true;
|
|
994
|
-
}
|
|
995
|
-
return fn.apply(this, arguments);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
return deprecated;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
var debugs = {};
|
|
1002
|
-
var debugEnviron;
|
|
1003
|
-
function debuglog(set) {
|
|
1004
|
-
if (isUndefined(debugEnviron))
|
|
1005
|
-
debugEnviron = '';
|
|
1006
|
-
set = set.toUpperCase();
|
|
1007
|
-
if (!debugs[set]) {
|
|
1008
|
-
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
1009
|
-
var pid = 0;
|
|
1010
|
-
debugs[set] = function() {
|
|
1011
|
-
var msg = format.apply(null, arguments);
|
|
1012
|
-
console.error('%s %d: %s', set, pid, msg);
|
|
1013
|
-
};
|
|
1014
|
-
} else {
|
|
1015
|
-
debugs[set] = function() {};
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
return debugs[set];
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
/**
|
|
1022
|
-
* Echos the value of a value. Trys to print the value out
|
|
1023
|
-
* in the best way possible given the different types.
|
|
1024
|
-
*
|
|
1025
|
-
* @param {Object} obj The object to print out.
|
|
1026
|
-
* @param {Object} opts Optional options object that alters the output.
|
|
1027
|
-
*/
|
|
1028
|
-
/* legacy: obj, showHidden, depth, colors*/
|
|
1029
|
-
function inspect(obj, opts) {
|
|
1030
|
-
// default options
|
|
1031
|
-
var ctx = {
|
|
1032
|
-
seen: [],
|
|
1033
|
-
stylize: stylizeNoColor
|
|
1034
|
-
};
|
|
1035
|
-
// legacy...
|
|
1036
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1037
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1038
|
-
if (isBoolean(opts)) {
|
|
1039
|
-
// legacy...
|
|
1040
|
-
ctx.showHidden = opts;
|
|
1041
|
-
} else if (opts) {
|
|
1042
|
-
// got an "options" object
|
|
1043
|
-
_extend(ctx, opts);
|
|
1044
|
-
}
|
|
1045
|
-
// set default options
|
|
1046
|
-
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1047
|
-
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1048
|
-
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1049
|
-
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1050
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1051
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
1055
|
-
inspect.colors = {
|
|
1056
|
-
'bold' : [1, 22],
|
|
1057
|
-
'italic' : [3, 23],
|
|
1058
|
-
'underline' : [4, 24],
|
|
1059
|
-
'inverse' : [7, 27],
|
|
1060
|
-
'white' : [37, 39],
|
|
1061
|
-
'grey' : [90, 39],
|
|
1062
|
-
'black' : [30, 39],
|
|
1063
|
-
'blue' : [34, 39],
|
|
1064
|
-
'cyan' : [36, 39],
|
|
1065
|
-
'green' : [32, 39],
|
|
1066
|
-
'magenta' : [35, 39],
|
|
1067
|
-
'red' : [31, 39],
|
|
1068
|
-
'yellow' : [33, 39]
|
|
1069
|
-
};
|
|
1070
|
-
|
|
1071
|
-
// Don't use 'blue' not visible on cmd.exe
|
|
1072
|
-
inspect.styles = {
|
|
1073
|
-
'special': 'cyan',
|
|
1074
|
-
'number': 'yellow',
|
|
1075
|
-
'boolean': 'yellow',
|
|
1076
|
-
'undefined': 'grey',
|
|
1077
|
-
'null': 'bold',
|
|
1078
|
-
'string': 'green',
|
|
1079
|
-
'date': 'magenta',
|
|
1080
|
-
// "name": intentionally not styling
|
|
1081
|
-
'regexp': 'red'
|
|
1082
|
-
};
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
function stylizeWithColor(str, styleType) {
|
|
1086
|
-
var style = inspect.styles[styleType];
|
|
1087
|
-
|
|
1088
|
-
if (style) {
|
|
1089
|
-
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
1090
|
-
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
1091
|
-
} else {
|
|
1092
|
-
return str;
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
function stylizeNoColor(str, styleType) {
|
|
1098
|
-
return str;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
function arrayToHash(array) {
|
|
1103
|
-
var hash = {};
|
|
1104
|
-
|
|
1105
|
-
array.forEach(function(val, idx) {
|
|
1106
|
-
hash[val] = true;
|
|
1107
|
-
});
|
|
1108
|
-
|
|
1109
|
-
return hash;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
1114
|
-
// Provide a hook for user-specified inspect functions.
|
|
1115
|
-
// Check that value is an object with an inspect function on it
|
|
1116
|
-
if (ctx.customInspect &&
|
|
1117
|
-
value &&
|
|
1118
|
-
isFunction(value.inspect) &&
|
|
1119
|
-
// Filter out the util module, it's inspect function is special
|
|
1120
|
-
value.inspect !== inspect &&
|
|
1121
|
-
// Also filter out any prototype objects using the circular check.
|
|
1122
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
1123
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
1124
|
-
if (!isString(ret)) {
|
|
1125
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
1126
|
-
}
|
|
1127
|
-
return ret;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
// Primitive types cannot have properties
|
|
1131
|
-
var primitive = formatPrimitive(ctx, value);
|
|
1132
|
-
if (primitive) {
|
|
1133
|
-
return primitive;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
// Look up the keys of the object.
|
|
1137
|
-
var keys = Object.keys(value);
|
|
1138
|
-
var visibleKeys = arrayToHash(keys);
|
|
1139
|
-
|
|
1140
|
-
if (ctx.showHidden) {
|
|
1141
|
-
keys = Object.getOwnPropertyNames(value);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
// IE doesn't make error fields non-enumerable
|
|
1145
|
-
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
1146
|
-
if (isError(value)
|
|
1147
|
-
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
1148
|
-
return formatError(value);
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
// Some type of object without properties can be shortcutted.
|
|
1152
|
-
if (keys.length === 0) {
|
|
1153
|
-
if (isFunction(value)) {
|
|
1154
|
-
var name = value.name ? ': ' + value.name : '';
|
|
1155
|
-
return ctx.stylize('[Function' + name + ']', 'special');
|
|
1156
|
-
}
|
|
1157
|
-
if (isRegExp(value)) {
|
|
1158
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1159
|
-
}
|
|
1160
|
-
if (isDate(value)) {
|
|
1161
|
-
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
1162
|
-
}
|
|
1163
|
-
if (isError(value)) {
|
|
1164
|
-
return formatError(value);
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
var base = '', array = false, braces = ['{', '}'];
|
|
1169
|
-
|
|
1170
|
-
// Make Array say that they are Array
|
|
1171
|
-
if (isArray$1(value)) {
|
|
1172
|
-
array = true;
|
|
1173
|
-
braces = ['[', ']'];
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
// Make functions say that they are functions
|
|
1177
|
-
if (isFunction(value)) {
|
|
1178
|
-
var n = value.name ? ': ' + value.name : '';
|
|
1179
|
-
base = ' [Function' + n + ']';
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
// Make RegExps say that they are RegExps
|
|
1183
|
-
if (isRegExp(value)) {
|
|
1184
|
-
base = ' ' + RegExp.prototype.toString.call(value);
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
// Make dates with properties first say the date
|
|
1188
|
-
if (isDate(value)) {
|
|
1189
|
-
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
// Make error with message first say the error
|
|
1193
|
-
if (isError(value)) {
|
|
1194
|
-
base = ' ' + formatError(value);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
1198
|
-
return braces[0] + base + braces[1];
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
if (recurseTimes < 0) {
|
|
1202
|
-
if (isRegExp(value)) {
|
|
1203
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1204
|
-
} else {
|
|
1205
|
-
return ctx.stylize('[Object]', 'special');
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
ctx.seen.push(value);
|
|
1210
|
-
|
|
1211
|
-
var output;
|
|
1212
|
-
if (array) {
|
|
1213
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1214
|
-
} else {
|
|
1215
|
-
output = keys.map(function(key) {
|
|
1216
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
ctx.seen.pop();
|
|
1221
|
-
|
|
1222
|
-
return reduceToSingleString(output, base, braces);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
function formatPrimitive(ctx, value) {
|
|
1227
|
-
if (isUndefined(value))
|
|
1228
|
-
return ctx.stylize('undefined', 'undefined');
|
|
1229
|
-
if (isString(value)) {
|
|
1230
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
1231
|
-
.replace(/'/g, "\\'")
|
|
1232
|
-
.replace(/\\"/g, '"') + '\'';
|
|
1233
|
-
return ctx.stylize(simple, 'string');
|
|
1234
|
-
}
|
|
1235
|
-
if (isNumber(value))
|
|
1236
|
-
return ctx.stylize('' + value, 'number');
|
|
1237
|
-
if (isBoolean(value))
|
|
1238
|
-
return ctx.stylize('' + value, 'boolean');
|
|
1239
|
-
// For some reason typeof null is "object", so special case here.
|
|
1240
|
-
if (isNull(value))
|
|
1241
|
-
return ctx.stylize('null', 'null');
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
function formatError(value) {
|
|
1246
|
-
return '[' + Error.prototype.toString.call(value) + ']';
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1251
|
-
var output = [];
|
|
1252
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1253
|
-
if (hasOwnProperty(value, String(i))) {
|
|
1254
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1255
|
-
String(i), true));
|
|
1256
|
-
} else {
|
|
1257
|
-
output.push('');
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
keys.forEach(function(key) {
|
|
1261
|
-
if (!key.match(/^\d+$/)) {
|
|
1262
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1263
|
-
key, true));
|
|
1264
|
-
}
|
|
1265
|
-
});
|
|
1266
|
-
return output;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1271
|
-
var name, str, desc;
|
|
1272
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1273
|
-
if (desc.get) {
|
|
1274
|
-
if (desc.set) {
|
|
1275
|
-
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
1276
|
-
} else {
|
|
1277
|
-
str = ctx.stylize('[Getter]', 'special');
|
|
1278
|
-
}
|
|
1279
|
-
} else {
|
|
1280
|
-
if (desc.set) {
|
|
1281
|
-
str = ctx.stylize('[Setter]', 'special');
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
1285
|
-
name = '[' + key + ']';
|
|
1286
|
-
}
|
|
1287
|
-
if (!str) {
|
|
1288
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1289
|
-
if (isNull(recurseTimes)) {
|
|
1290
|
-
str = formatValue(ctx, desc.value, null);
|
|
1291
|
-
} else {
|
|
1292
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1293
|
-
}
|
|
1294
|
-
if (str.indexOf('\n') > -1) {
|
|
1295
|
-
if (array) {
|
|
1296
|
-
str = str.split('\n').map(function(line) {
|
|
1297
|
-
return ' ' + line;
|
|
1298
|
-
}).join('\n').substr(2);
|
|
1299
|
-
} else {
|
|
1300
|
-
str = '\n' + str.split('\n').map(function(line) {
|
|
1301
|
-
return ' ' + line;
|
|
1302
|
-
}).join('\n');
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
} else {
|
|
1306
|
-
str = ctx.stylize('[Circular]', 'special');
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
if (isUndefined(name)) {
|
|
1310
|
-
if (array && key.match(/^\d+$/)) {
|
|
1311
|
-
return str;
|
|
1312
|
-
}
|
|
1313
|
-
name = JSON.stringify('' + key);
|
|
1314
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1315
|
-
name = name.substr(1, name.length - 2);
|
|
1316
|
-
name = ctx.stylize(name, 'name');
|
|
1317
|
-
} else {
|
|
1318
|
-
name = name.replace(/'/g, "\\'")
|
|
1319
|
-
.replace(/\\"/g, '"')
|
|
1320
|
-
.replace(/(^"|"$)/g, "'");
|
|
1321
|
-
name = ctx.stylize(name, 'string');
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
return name + ': ' + str;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
function reduceToSingleString(output, base, braces) {
|
|
1330
|
-
var length = output.reduce(function(prev, cur) {
|
|
1331
|
-
if (cur.indexOf('\n') >= 0) ;
|
|
1332
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
1333
|
-
}, 0);
|
|
1334
|
-
|
|
1335
|
-
if (length > 60) {
|
|
1336
|
-
return braces[0] +
|
|
1337
|
-
(base === '' ? '' : base + '\n ') +
|
|
1338
|
-
' ' +
|
|
1339
|
-
output.join(',\n ') +
|
|
1340
|
-
' ' +
|
|
1341
|
-
braces[1];
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
1349
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
1350
|
-
function isArray$1(ar) {
|
|
1351
|
-
return Array.isArray(ar);
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
function isBoolean(arg) {
|
|
1355
|
-
return typeof arg === 'boolean';
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
function isNull(arg) {
|
|
1359
|
-
return arg === null;
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
function isNullOrUndefined(arg) {
|
|
1363
|
-
return arg == null;
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
function isNumber(arg) {
|
|
1367
|
-
return typeof arg === 'number';
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
function isString(arg) {
|
|
1371
|
-
return typeof arg === 'string';
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
function isSymbol(arg) {
|
|
1375
|
-
return typeof arg === 'symbol';
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
function isUndefined(arg) {
|
|
1379
|
-
return arg === void 0;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
function isRegExp(re) {
|
|
1383
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
function isObject(arg) {
|
|
1387
|
-
return typeof arg === 'object' && arg !== null;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
function isDate(d) {
|
|
1391
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
function isError(e) {
|
|
1395
|
-
return isObject(e) &&
|
|
1396
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
function isFunction(arg) {
|
|
1400
|
-
return typeof arg === 'function';
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
function isPrimitive(arg) {
|
|
1404
|
-
return arg === null ||
|
|
1405
|
-
typeof arg === 'boolean' ||
|
|
1406
|
-
typeof arg === 'number' ||
|
|
1407
|
-
typeof arg === 'string' ||
|
|
1408
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
1409
|
-
typeof arg === 'undefined';
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
function isBuffer(maybeBuf) {
|
|
1413
|
-
return Buffer.isBuffer(maybeBuf);
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
function objectToString(o) {
|
|
1417
|
-
return Object.prototype.toString.call(o);
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
function pad(n) {
|
|
1422
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
1427
|
-
'Oct', 'Nov', 'Dec'];
|
|
1428
|
-
|
|
1429
|
-
// 26 Feb 16:19:34
|
|
1430
|
-
function timestamp() {
|
|
1431
|
-
var d = new Date();
|
|
1432
|
-
var time = [pad(d.getHours()),
|
|
1433
|
-
pad(d.getMinutes()),
|
|
1434
|
-
pad(d.getSeconds())].join(':');
|
|
1435
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
1440
|
-
function log() {
|
|
1441
|
-
console.log('%s - %s', timestamp(), format.apply(null, arguments));
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
function _extend(origin, add) {
|
|
1445
|
-
// Don't do anything if add isn't an object
|
|
1446
|
-
if (!add || !isObject(add)) return origin;
|
|
1447
|
-
|
|
1448
|
-
var keys = Object.keys(add);
|
|
1449
|
-
var i = keys.length;
|
|
1450
|
-
while (i--) {
|
|
1451
|
-
origin[keys[i]] = add[keys[i]];
|
|
1452
|
-
}
|
|
1453
|
-
return origin;
|
|
1454
|
-
}
|
|
1455
|
-
function hasOwnProperty(obj, prop) {
|
|
1456
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
var util = {
|
|
1460
|
-
inherits: inherits$1,
|
|
1461
|
-
_extend: _extend,
|
|
1462
|
-
log: log,
|
|
1463
|
-
isBuffer: isBuffer,
|
|
1464
|
-
isPrimitive: isPrimitive,
|
|
1465
|
-
isFunction: isFunction,
|
|
1466
|
-
isError: isError,
|
|
1467
|
-
isDate: isDate,
|
|
1468
|
-
isObject: isObject,
|
|
1469
|
-
isRegExp: isRegExp,
|
|
1470
|
-
isUndefined: isUndefined,
|
|
1471
|
-
isSymbol: isSymbol,
|
|
1472
|
-
isString: isString,
|
|
1473
|
-
isNumber: isNumber,
|
|
1474
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
1475
|
-
isNull: isNull,
|
|
1476
|
-
isBoolean: isBoolean,
|
|
1477
|
-
isArray: isArray$1,
|
|
1478
|
-
inspect: inspect,
|
|
1479
|
-
deprecate: deprecate,
|
|
1480
|
-
format: format,
|
|
1481
|
-
debuglog: debuglog
|
|
1482
|
-
};
|
|
1483
|
-
|
|
1484
904
|
var require$$2 = {};
|
|
1485
905
|
|
|
1486
906
|
var node = createCommonjsModule(function (module, exports) {
|
|
@@ -1733,14 +1153,14 @@ function init (debug) {
|
|
|
1733
1153
|
|
|
1734
1154
|
exports.enable(load());
|
|
1735
1155
|
});
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1156
|
+
node.init;
|
|
1157
|
+
node.log;
|
|
1158
|
+
node.formatArgs;
|
|
1159
|
+
node.save;
|
|
1160
|
+
node.load;
|
|
1161
|
+
node.useColors;
|
|
1162
|
+
node.colors;
|
|
1163
|
+
node.inspectOpts;
|
|
1744
1164
|
|
|
1745
1165
|
var src = createCommonjsModule(function (module) {
|
|
1746
1166
|
/**
|
|
@@ -2141,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
2141
1561
|
|
|
2142
1562
|
var youTubePlayer = unwrapExports(dist);
|
|
2143
1563
|
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
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; };
|
|
1564
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2147
1565
|
|
|
2148
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2149
1567
|
|
|
2150
|
-
function
|
|
1568
|
+
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); } }
|
|
2151
1569
|
|
|
2152
|
-
function
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
+
|
|
1572
|
+
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); }
|
|
2153
1573
|
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
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); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1583
|
+
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1587
|
+
|
|
1588
|
+
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; }
|
|
1589
|
+
|
|
1590
|
+
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; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
2159
1596
|
*/
|
|
1597
|
+
|
|
2160
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
2161
1599
|
// A changing video should always trigger an update
|
|
2162
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
2163
1601
|
return true;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
2167
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
2168
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
2169
1607
|
var vars = props.opts.playerVars || {};
|
|
2170
|
-
|
|
2171
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
2172
1609
|
}
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
*
|
|
2176
|
-
*
|
|
2177
|
-
*
|
|
2178
|
-
*
|
|
2179
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
2180
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
2181
1619
|
function filterResetOptions(opts) {
|
|
2182
|
-
return
|
|
2183
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
2184
1622
|
autoplay: 0,
|
|
2185
1623
|
start: 0,
|
|
2186
1624
|
end: 0
|
|
2187
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
2188
1626
|
});
|
|
2189
1627
|
}
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
*
|
|
2193
|
-
*
|
|
2194
|
-
*
|
|
2195
|
-
*
|
|
2196
|
-
*
|
|
2197
|
-
* @param {Object}
|
|
2198
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
2199
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
2200
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
2201
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
2202
1641
|
}
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
*
|
|
2206
|
-
*
|
|
2207
|
-
* @param {Object}
|
|
2208
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
2209
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
2210
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
2211
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
2212
1652
|
}
|
|
2213
1653
|
|
|
2214
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
2215
1655
|
_inherits(YouTube, _React$Component);
|
|
2216
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
2217
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
2218
1667
|
_classCallCheck(this, YouTube);
|
|
2219
1668
|
|
|
2220
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
2221
1670
|
|
|
2222
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
2223
1672
|
return _this.props.onReady(event);
|
|
2224
|
-
};
|
|
1673
|
+
});
|
|
2225
1674
|
|
|
2226
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
2227
1676
|
return _this.props.onError(event);
|
|
2228
|
-
};
|
|
1677
|
+
});
|
|
2229
1678
|
|
|
2230
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
2231
1680
|
_this.props.onStateChange(event);
|
|
2232
|
-
switch (event.data) {
|
|
2233
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
2234
1683
|
case YouTube.PlayerState.ENDED:
|
|
2235
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
2236
1686
|
break;
|
|
2237
1687
|
|
|
2238
1688
|
case YouTube.PlayerState.PLAYING:
|
|
2239
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
2240
1691
|
break;
|
|
2241
1692
|
|
|
2242
1693
|
case YouTube.PlayerState.PAUSED:
|
|
2243
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
2244
1696
|
break;
|
|
2245
1697
|
}
|
|
2246
|
-
};
|
|
1698
|
+
});
|
|
2247
1699
|
|
|
2248
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
2249
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
2250
|
-
};
|
|
1702
|
+
});
|
|
2251
1703
|
|
|
2252
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
2253
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
2254
|
-
};
|
|
1706
|
+
});
|
|
2255
1707
|
|
|
2256
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
2257
1709
|
// do not attempt to create a player server-side, it won't work
|
|
2258
|
-
if (typeof document === 'undefined') return;
|
|
2259
|
-
|
|
2260
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
2261
1713
|
// preload the `videoId` video if one is already given
|
|
2262
1714
|
videoId: _this.props.videoId
|
|
2263
1715
|
});
|
|
2264
|
-
|
|
2265
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
2266
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
2267
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
2268
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
2269
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
2270
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
2271
|
-
};
|
|
1728
|
+
});
|
|
2272
1729
|
|
|
2273
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
2274
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
2275
|
-
};
|
|
1732
|
+
});
|
|
2276
1733
|
|
|
2277
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
2278
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
2279
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
2280
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
2281
1738
|
});
|
|
2282
|
-
};
|
|
1739
|
+
});
|
|
1740
|
+
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
2283
1744
|
|
|
2284
|
-
_this
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
2285
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
2286
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
2287
1749
|
return;
|
|
2288
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
2289
1752
|
|
|
2290
|
-
// set queueing options
|
|
2291
1753
|
var autoplay = false;
|
|
2292
1754
|
var opts = {
|
|
2293
1755
|
videoId: _this.props.videoId
|
|
2294
1756
|
};
|
|
1757
|
+
|
|
2295
1758
|
if ('playerVars' in _this.props.opts) {
|
|
2296
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
2297
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
2298
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
2299
1763
|
}
|
|
1764
|
+
|
|
2300
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
2301
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
2302
1767
|
}
|
|
2303
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
2304
1770
|
|
|
2305
|
-
// if autoplay is enabled loadVideoById
|
|
2306
1771
|
if (autoplay) {
|
|
2307
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
2308
1774
|
return;
|
|
2309
|
-
}
|
|
2310
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
2311
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
2312
|
-
};
|
|
1779
|
+
});
|
|
2313
1780
|
|
|
2314
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
2315
1782
|
_this.container = container;
|
|
2316
|
-
};
|
|
1783
|
+
});
|
|
2317
1784
|
|
|
2318
1785
|
_this.container = null;
|
|
2319
1786
|
_this.internalPlayer = null;
|
|
2320
1787
|
return _this;
|
|
2321
1788
|
}
|
|
2322
1789
|
|
|
2323
|
-
/**
|
|
2324
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
2325
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
2326
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2327
|
-
*/
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
1790
|
_createClass(YouTube, [{
|
|
2331
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
2332
1792
|
value: function componentDidMount() {
|
|
2333
1793
|
this.createPlayer();
|
|
2334
1794
|
}
|
|
2335
1795
|
}, {
|
|
2336
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
2337
1797
|
value: function componentDidUpdate(prevProps) {
|
|
2338
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
2339
1799
|
this.updatePlayer();
|
|
@@ -2348,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
2348
1808
|
}
|
|
2349
1809
|
}
|
|
2350
1810
|
}, {
|
|
2351
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
2352
1812
|
value: function componentWillUnmount() {
|
|
2353
|
-
/**
|
|
2354
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
2355
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
2356
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
2357
|
-
* this method isn't quick enough to reset the container element.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
2358
1818
|
*/
|
|
2359
1819
|
this.internalPlayer.destroy();
|
|
2360
1820
|
}
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
*
|
|
2364
|
-
*
|
|
2365
|
-
*
|
|
2366
|
-
* @param {Object} target - player object
|
|
2367
|
-
*/
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
/**
|
|
2371
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
2372
|
-
*
|
|
2373
|
-
* @param {Object} event
|
|
2374
|
-
* @param {Integer} data - error type
|
|
2375
|
-
* @param {Object} target - player object
|
|
2376
|
-
*/
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
/**
|
|
2380
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2381
|
-
*
|
|
2382
|
-
* @param {Object} event
|
|
2383
|
-
* @param {Integer} data - status change type
|
|
2384
|
-
* @param {Object} target - actual YT player
|
|
2385
|
-
*/
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
/**
|
|
2389
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
2390
|
-
*
|
|
2391
|
-
* @param {Object} event
|
|
2392
|
-
* @param {Float} data - playback rate
|
|
2393
|
-
* @param {Object} target - actual YT player
|
|
2394
|
-
*/
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
/**
|
|
2398
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
2399
|
-
*
|
|
2400
|
-
* @param {Object} event
|
|
2401
|
-
* @param {String} data - playback quality
|
|
2402
|
-
* @param {Object} target - actual YT player
|
|
2403
|
-
*/
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
/**
|
|
2407
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
2408
|
-
*/
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
/**
|
|
2412
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
2413
|
-
*/
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
/**
|
|
2417
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
2418
|
-
* React should update this automatically but since the Youtube Player API
|
|
2419
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
2420
|
-
*/
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
/**
|
|
2424
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
2425
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
2426
|
-
* Youtube Player API methods to update the video.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
2427
1826
|
*/
|
|
2428
1827
|
|
|
2429
1828
|
}, {
|
|
2430
|
-
key:
|
|
1829
|
+
key: "render",
|
|
2431
1830
|
value: function render() {
|
|
2432
|
-
return
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
1831
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
2437
1838
|
}
|
|
2438
1839
|
}]);
|
|
2439
1840
|
|
|
2440
1841
|
return YouTube;
|
|
2441
|
-
}(
|
|
1842
|
+
}(React.Component);
|
|
1843
|
+
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
2442
1852
|
|
|
2443
1853
|
YouTube.propTypes = {
|
|
2444
1854
|
videoId: PropTypes.string,
|
|
2445
|
-
|
|
2446
1855
|
// custom ID for player element
|
|
2447
1856
|
id: PropTypes.string,
|
|
2448
|
-
|
|
2449
1857
|
// custom class name for player element
|
|
2450
1858
|
className: PropTypes.string,
|
|
2451
1859
|
// custom class name for player container element
|
|
2452
1860
|
containerClassName: PropTypes.string,
|
|
2453
|
-
|
|
2454
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
2455
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
2456
|
-
|
|
2457
1863
|
// event subscriptions
|
|
2458
1864
|
onReady: PropTypes.func,
|
|
2459
1865
|
onError: PropTypes.func,
|
|
@@ -2465,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
2465
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
2466
1872
|
};
|
|
2467
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
2468
1875
|
id: null,
|
|
2469
1876
|
className: null,
|
|
2470
1877
|
opts: {},
|
|
@@ -2478,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
2478
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
2479
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
2480
1887
|
};
|
|
2481
|
-
YouTube.PlayerState = {
|
|
2482
|
-
UNSTARTED: -1,
|
|
2483
|
-
ENDED: 0,
|
|
2484
|
-
PLAYING: 1,
|
|
2485
|
-
PAUSED: 2,
|
|
2486
|
-
BUFFERING: 3,
|
|
2487
|
-
CUED: 5
|
|
2488
|
-
};
|
|
2489
1888
|
|
|
2490
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
2491
1890
|
var url = _ref.url,
|
|
@@ -2587,11 +1986,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2587
1986
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2588
1987
|
};
|
|
2589
1988
|
|
|
2590
|
-
return
|
|
1989
|
+
return React.createElement(
|
|
2591
1990
|
'div',
|
|
2592
1991
|
{ id: 'fluid-video-container' },
|
|
2593
|
-
|
|
2594
|
-
|
|
1992
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1993
|
+
React.createElement(
|
|
2595
1994
|
'style',
|
|
2596
1995
|
{ jsx: 'true' },
|
|
2597
1996
|
'\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 '
|
|
@@ -2604,20 +2003,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2604
2003
|
content = _ref.content,
|
|
2605
2004
|
getSerializers = _ref.getSerializers;
|
|
2606
2005
|
|
|
2607
|
-
return
|
|
2006
|
+
return React.createElement(
|
|
2608
2007
|
'article',
|
|
2609
2008
|
{ className: 'sidebar' },
|
|
2610
|
-
|
|
2009
|
+
React.createElement(
|
|
2611
2010
|
'div',
|
|
2612
2011
|
null,
|
|
2613
|
-
|
|
2012
|
+
React.createElement(
|
|
2614
2013
|
'h3',
|
|
2615
2014
|
null,
|
|
2616
2015
|
caption
|
|
2617
2016
|
),
|
|
2618
|
-
|
|
2017
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2619
2018
|
),
|
|
2620
|
-
|
|
2019
|
+
React.createElement(
|
|
2621
2020
|
'style',
|
|
2622
2021
|
{ jsx: 'true' },
|
|
2623
2022
|
'\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 '
|
|
@@ -2628,18 +2027,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2628
2027
|
var TableShow = function TableShow(_ref) {
|
|
2629
2028
|
var rows = _ref.rows;
|
|
2630
2029
|
|
|
2631
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2632
2031
|
Table,
|
|
2633
2032
|
{ bordered: true, hover: true, responsive: true },
|
|
2634
|
-
|
|
2033
|
+
React.createElement(
|
|
2635
2034
|
'tbody',
|
|
2636
2035
|
null,
|
|
2637
2036
|
rows && rows.map(function (row) {
|
|
2638
|
-
return
|
|
2037
|
+
return React.createElement(
|
|
2639
2038
|
'tr',
|
|
2640
2039
|
{ key: row._key },
|
|
2641
2040
|
row.cells && row.cells.map(function (cell, index) {
|
|
2642
|
-
return cell &&
|
|
2041
|
+
return cell && React.createElement(
|
|
2643
2042
|
'td',
|
|
2644
2043
|
{ key: index },
|
|
2645
2044
|
cell
|
|
@@ -2742,18 +2141,18 @@ var Media = function Media(_ref) {
|
|
|
2742
2141
|
margin: imageMargin
|
|
2743
2142
|
};
|
|
2744
2143
|
|
|
2745
|
-
return
|
|
2144
|
+
return React.createElement(
|
|
2746
2145
|
Figure$1,
|
|
2747
2146
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2748
|
-
|
|
2147
|
+
React.createElement(
|
|
2749
2148
|
'a',
|
|
2750
2149
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2751
|
-
|
|
2150
|
+
React.createElement(
|
|
2752
2151
|
LazyLoad,
|
|
2753
2152
|
{ once: true },
|
|
2754
|
-
|
|
2153
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2755
2154
|
),
|
|
2756
|
-
caption &&
|
|
2155
|
+
caption && React.createElement(
|
|
2757
2156
|
Figure$1.Caption,
|
|
2758
2157
|
{ className: 'media-caption' },
|
|
2759
2158
|
caption
|
|
@@ -2761,9 +2160,9 @@ var Media = function Media(_ref) {
|
|
|
2761
2160
|
)
|
|
2762
2161
|
);
|
|
2763
2162
|
} else if (caption && caption !== '') {
|
|
2764
|
-
return
|
|
2163
|
+
return React.createElement(
|
|
2765
2164
|
'a',
|
|
2766
|
-
_extends
|
|
2165
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2767
2166
|
href: uploadDoc.asset.url + '?dl='
|
|
2768
2167
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2769
2168
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2781,10 +2180,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2781
2180
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2782
2181
|
|
|
2783
2182
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2784
|
-
return
|
|
2183
|
+
return React.createElement(
|
|
2785
2184
|
'div',
|
|
2786
2185
|
{ className: 'd-block text-center mb-3' },
|
|
2787
|
-
|
|
2186
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2788
2187
|
);
|
|
2789
2188
|
};
|
|
2790
2189
|
|
|
@@ -2879,10 +2278,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2879
2278
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2880
2279
|
};
|
|
2881
2280
|
|
|
2882
|
-
return
|
|
2281
|
+
return React.createElement(
|
|
2883
2282
|
'div',
|
|
2884
2283
|
null,
|
|
2885
|
-
vidLoaded &&
|
|
2284
|
+
vidLoaded && React.createElement(
|
|
2886
2285
|
'video',
|
|
2887
2286
|
{
|
|
2888
2287
|
poster: thumbnail || '',
|
|
@@ -2900,7 +2299,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2900
2299
|
onPlay: function onPlay(e) {
|
|
2901
2300
|
return handleOnPlay(e);
|
|
2902
2301
|
} },
|
|
2903
|
-
|
|
2302
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2904
2303
|
'Your browser does not support the video tag.'
|
|
2905
2304
|
)
|
|
2906
2305
|
);
|
|
@@ -2937,7 +2336,7 @@ var Video = function Video(_ref) {
|
|
|
2937
2336
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2938
2337
|
//console.log('success:', success.ref)
|
|
2939
2338
|
var player = success.ref;
|
|
2940
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2339
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2941
2340
|
player.ima3.settings.debug = true;
|
|
2942
2341
|
if (targeting.content_placement && targeting.document_url) {
|
|
2943
2342
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -3035,53 +2434,53 @@ var Video = function Video(_ref) {
|
|
|
3035
2434
|
|
|
3036
2435
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
3037
2436
|
if (videoID) {
|
|
3038
|
-
return
|
|
2437
|
+
return React.createElement(
|
|
3039
2438
|
'div',
|
|
3040
2439
|
null,
|
|
3041
|
-
|
|
2440
|
+
React.createElement(ReactPlayerLoader, {
|
|
3042
2441
|
onSuccess: onVideoSuccess,
|
|
3043
2442
|
accountId: accountIDs.brightcove.accountId,
|
|
3044
2443
|
videoId: videoID,
|
|
3045
2444
|
playerId: accountIDs.brightcove.playerId,
|
|
3046
2445
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
3047
2446
|
}),
|
|
3048
|
-
|
|
2447
|
+
React.createElement(
|
|
3049
2448
|
'style',
|
|
3050
2449
|
{ jsx: 'true' },
|
|
3051
2450
|
'\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 '
|
|
3052
2451
|
)
|
|
3053
2452
|
);
|
|
3054
2453
|
} else if (playlistID) {
|
|
3055
|
-
return
|
|
2454
|
+
return React.createElement(
|
|
3056
2455
|
'div',
|
|
3057
2456
|
null,
|
|
3058
|
-
|
|
2457
|
+
React.createElement(ReactPlayerLoader, {
|
|
3059
2458
|
accountId: accountIDs.brightcove.accountId,
|
|
3060
2459
|
playlistId: playlistID,
|
|
3061
2460
|
playerId: accountIDs.brightcove.playerId,
|
|
3062
2461
|
onSuccess: onVideoSuccess,
|
|
3063
2462
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
3064
2463
|
}),
|
|
3065
|
-
|
|
2464
|
+
React.createElement(
|
|
3066
2465
|
'style',
|
|
3067
2466
|
{ jsx: 'true' },
|
|
3068
2467
|
'\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 '
|
|
3069
2468
|
)
|
|
3070
2469
|
);
|
|
3071
2470
|
} else if (experienceID) {
|
|
3072
|
-
return
|
|
2471
|
+
return React.createElement(
|
|
3073
2472
|
'div',
|
|
3074
2473
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
3075
|
-
videoLoaded &&
|
|
2474
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
3076
2475
|
);
|
|
3077
2476
|
}
|
|
3078
2477
|
return null;
|
|
3079
2478
|
}
|
|
3080
2479
|
if (source === 'mp4') {
|
|
3081
|
-
return
|
|
2480
|
+
return React.createElement(
|
|
3082
2481
|
'div',
|
|
3083
2482
|
null,
|
|
3084
|
-
|
|
2483
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
3085
2484
|
);
|
|
3086
2485
|
}
|
|
3087
2486
|
|
|
@@ -3292,9 +2691,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
3292
2691
|
});
|
|
3293
2692
|
|
|
3294
2693
|
unwrapExports(props);
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
2694
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2695
|
+
props.defaultProps;
|
|
2696
|
+
props.propTypes;
|
|
3298
2697
|
|
|
3299
2698
|
var isMergeableObject = function isMergeableObject(value) {
|
|
3300
2699
|
return isNonNullObject(value)
|
|
@@ -3459,11 +2858,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3459
2858
|
|
|
3460
2859
|
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; }
|
|
3461
2860
|
|
|
3462
|
-
function
|
|
2861
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2862
|
+
|
|
2863
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3463
2864
|
|
|
3464
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2865
|
+
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."); }
|
|
3465
2866
|
|
|
3466
|
-
function
|
|
2867
|
+
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); }
|
|
2868
|
+
|
|
2869
|
+
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; }
|
|
2870
|
+
|
|
2871
|
+
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; }
|
|
3467
2872
|
|
|
3468
2873
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3469
2874
|
|
|
@@ -3593,12 +2998,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3593
2998
|
|
|
3594
2999
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3595
3000
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3596
|
-
|
|
3597
|
-
var
|
|
3598
|
-
|
|
3001
|
+
|
|
3002
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3003
|
+
_step;
|
|
3599
3004
|
|
|
3600
3005
|
try {
|
|
3601
|
-
for (
|
|
3006
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3602
3007
|
var p = _step.value;
|
|
3603
3008
|
|
|
3604
3009
|
if (props$1[p]) {
|
|
@@ -3613,18 +3018,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3613
3018
|
}
|
|
3614
3019
|
}
|
|
3615
3020
|
} catch (err) {
|
|
3616
|
-
|
|
3617
|
-
_iteratorError = err;
|
|
3021
|
+
_iterator.e(err);
|
|
3618
3022
|
} finally {
|
|
3619
|
-
|
|
3620
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3621
|
-
_iterator["return"]();
|
|
3622
|
-
}
|
|
3623
|
-
} finally {
|
|
3624
|
-
if (_didIteratorError) {
|
|
3625
|
-
throw _iteratorError;
|
|
3626
|
-
}
|
|
3627
|
-
}
|
|
3023
|
+
_iterator.f();
|
|
3628
3024
|
}
|
|
3629
3025
|
|
|
3630
3026
|
return config;
|
|
@@ -3689,7 +3085,7 @@ function isEqual(a, b) {
|
|
|
3689
3085
|
return true;
|
|
3690
3086
|
}
|
|
3691
3087
|
|
|
3692
|
-
if ((0,
|
|
3088
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3693
3089
|
return true;
|
|
3694
3090
|
}
|
|
3695
3091
|
|
|
@@ -3732,17 +3128,17 @@ function isMediaStream(url) {
|
|
|
3732
3128
|
});
|
|
3733
3129
|
|
|
3734
3130
|
unwrapExports(utils);
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3131
|
+
utils.parseStartTime;
|
|
3132
|
+
utils.parseEndTime;
|
|
3133
|
+
utils.randomString;
|
|
3134
|
+
utils.queryString;
|
|
3135
|
+
utils.getSDK;
|
|
3136
|
+
utils.getConfig;
|
|
3137
|
+
utils.omit;
|
|
3138
|
+
utils.callPlayer;
|
|
3139
|
+
utils.isObject;
|
|
3140
|
+
utils.isEqual;
|
|
3141
|
+
utils.isMediaStream;
|
|
3746
3142
|
|
|
3747
3143
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3748
3144
|
|
|
@@ -3751,7 +3147,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3751
3147
|
});
|
|
3752
3148
|
exports["default"] = void 0;
|
|
3753
3149
|
|
|
3754
|
-
var _react = _interopRequireWildcard(
|
|
3150
|
+
var _react = _interopRequireWildcard(React);
|
|
3755
3151
|
|
|
3756
3152
|
|
|
3757
3153
|
|
|
@@ -3771,12 +3167,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3771
3167
|
|
|
3772
3168
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3773
3169
|
|
|
3774
|
-
function
|
|
3170
|
+
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); }; }
|
|
3775
3171
|
|
|
3776
|
-
function
|
|
3172
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3777
3173
|
|
|
3778
3174
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3779
3175
|
|
|
3176
|
+
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; } }
|
|
3177
|
+
|
|
3178
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3179
|
+
|
|
3780
3180
|
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); }
|
|
3781
3181
|
|
|
3782
3182
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3785,14 +3185,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3785
3185
|
|
|
3786
3186
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3787
3187
|
|
|
3788
|
-
var Player =
|
|
3789
|
-
/*#__PURE__*/
|
|
3790
|
-
function (_Component) {
|
|
3188
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3791
3189
|
_inherits(Player, _Component);
|
|
3792
3190
|
|
|
3793
|
-
|
|
3794
|
-
var _getPrototypeOf2;
|
|
3191
|
+
var _super = _createSuper(Player);
|
|
3795
3192
|
|
|
3193
|
+
function Player() {
|
|
3796
3194
|
var _this;
|
|
3797
3195
|
|
|
3798
3196
|
_classCallCheck(this, Player);
|
|
@@ -3801,7 +3199,7 @@ function (_Component) {
|
|
|
3801
3199
|
_args[_key] = arguments[_key];
|
|
3802
3200
|
}
|
|
3803
3201
|
|
|
3804
|
-
_this =
|
|
3202
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3805
3203
|
|
|
3806
3204
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3807
3205
|
|
|
@@ -4126,7 +3524,7 @@ function (_Component) {
|
|
|
4126
3524
|
return null;
|
|
4127
3525
|
}
|
|
4128
3526
|
|
|
4129
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3527
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
4130
3528
|
ref: this.ref,
|
|
4131
3529
|
onReady: this.handleReady,
|
|
4132
3530
|
onPlay: this.handlePlay,
|
|
@@ -4159,7 +3557,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4159
3557
|
});
|
|
4160
3558
|
exports["default"] = createSinglePlayer;
|
|
4161
3559
|
|
|
4162
|
-
var _react = _interopRequireWildcard(
|
|
3560
|
+
var _react = _interopRequireWildcard(React);
|
|
4163
3561
|
|
|
4164
3562
|
|
|
4165
3563
|
|
|
@@ -4187,12 +3585,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4187
3585
|
|
|
4188
3586
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4189
3587
|
|
|
4190
|
-
function
|
|
3588
|
+
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); }; }
|
|
4191
3589
|
|
|
4192
|
-
function
|
|
3590
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4193
3591
|
|
|
4194
3592
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4195
3593
|
|
|
3594
|
+
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; } }
|
|
3595
|
+
|
|
3596
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3597
|
+
|
|
4196
3598
|
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); }
|
|
4197
3599
|
|
|
4198
3600
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4204,14 +3606,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
4204
3606
|
function createSinglePlayer(activePlayer) {
|
|
4205
3607
|
var _class, _temp;
|
|
4206
3608
|
|
|
4207
|
-
return _temp = _class =
|
|
4208
|
-
/*#__PURE__*/
|
|
4209
|
-
function (_Component) {
|
|
3609
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
4210
3610
|
_inherits(SinglePlayer, _Component);
|
|
4211
3611
|
|
|
4212
|
-
|
|
4213
|
-
var _getPrototypeOf2;
|
|
3612
|
+
var _super = _createSuper(SinglePlayer);
|
|
4214
3613
|
|
|
3614
|
+
function SinglePlayer() {
|
|
4215
3615
|
var _this;
|
|
4216
3616
|
|
|
4217
3617
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -4220,7 +3620,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
4220
3620
|
args[_key] = arguments[_key];
|
|
4221
3621
|
}
|
|
4222
3622
|
|
|
4223
|
-
_this =
|
|
3623
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4224
3624
|
|
|
4225
3625
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
4226
3626
|
|
|
@@ -4288,12 +3688,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
4288
3688
|
height = _this$props.height,
|
|
4289
3689
|
Wrapper = _this$props.wrapper;
|
|
4290
3690
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
4291
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3691
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
4292
3692
|
style: _objectSpread({}, style, {
|
|
4293
3693
|
width: width,
|
|
4294
3694
|
height: height
|
|
4295
3695
|
})
|
|
4296
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3696
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
4297
3697
|
ref: this.ref,
|
|
4298
3698
|
activePlayer: activePlayer,
|
|
4299
3699
|
config: this.config
|
|
@@ -4315,7 +3715,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4315
3715
|
});
|
|
4316
3716
|
exports["default"] = exports.YouTube = void 0;
|
|
4317
3717
|
|
|
4318
|
-
var _react = _interopRequireWildcard(
|
|
3718
|
+
var _react = _interopRequireWildcard(React);
|
|
4319
3719
|
|
|
4320
3720
|
|
|
4321
3721
|
|
|
@@ -4339,23 +3739,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4339
3739
|
|
|
4340
3740
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4341
3741
|
|
|
4342
|
-
function
|
|
3742
|
+
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); }; }
|
|
4343
3743
|
|
|
4344
|
-
function
|
|
3744
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4345
3745
|
|
|
4346
3746
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4347
3747
|
|
|
3748
|
+
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; } }
|
|
3749
|
+
|
|
3750
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3751
|
+
|
|
4348
3752
|
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); }
|
|
4349
3753
|
|
|
4350
3754
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
4351
3755
|
|
|
4352
3756
|
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; }
|
|
4353
3757
|
|
|
4354
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3758
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3759
|
+
|
|
3760
|
+
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."); }
|
|
3761
|
+
|
|
3762
|
+
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); }
|
|
4355
3763
|
|
|
4356
|
-
function
|
|
3764
|
+
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; }
|
|
4357
3765
|
|
|
4358
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3766
|
+
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; }
|
|
4359
3767
|
|
|
4360
3768
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
4361
3769
|
|
|
@@ -4380,14 +3788,12 @@ function parsePlaylist(url) {
|
|
|
4380
3788
|
return {};
|
|
4381
3789
|
}
|
|
4382
3790
|
|
|
4383
|
-
var YouTube =
|
|
4384
|
-
/*#__PURE__*/
|
|
4385
|
-
function (_Component) {
|
|
3791
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
4386
3792
|
_inherits(YouTube, _Component);
|
|
4387
3793
|
|
|
4388
|
-
|
|
4389
|
-
var _getPrototypeOf2;
|
|
3794
|
+
var _super = _createSuper(YouTube);
|
|
4390
3795
|
|
|
3796
|
+
function YouTube() {
|
|
4391
3797
|
var _this;
|
|
4392
3798
|
|
|
4393
3799
|
_classCallCheck(this, YouTube);
|
|
@@ -4396,7 +3802,7 @@ function (_Component) {
|
|
|
4396
3802
|
args[_key] = arguments[_key];
|
|
4397
3803
|
}
|
|
4398
3804
|
|
|
4399
|
-
_this =
|
|
3805
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4400
3806
|
|
|
4401
3807
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4402
3808
|
|
|
@@ -4584,9 +3990,9 @@ function (_Component) {
|
|
|
4584
3990
|
height: '100%',
|
|
4585
3991
|
display: display
|
|
4586
3992
|
};
|
|
4587
|
-
return _react["default"].createElement("div", {
|
|
3993
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4588
3994
|
style: style
|
|
4589
|
-
}, _react["default"].createElement("div", {
|
|
3995
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4590
3996
|
ref: this.ref
|
|
4591
3997
|
}));
|
|
4592
3998
|
}
|
|
@@ -4609,7 +4015,7 @@ exports["default"] = _default;
|
|
|
4609
4015
|
});
|
|
4610
4016
|
|
|
4611
4017
|
unwrapExports(YouTube_1);
|
|
4612
|
-
|
|
4018
|
+
YouTube_1.YouTube;
|
|
4613
4019
|
|
|
4614
4020
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4615
4021
|
|
|
@@ -4618,7 +4024,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4618
4024
|
});
|
|
4619
4025
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4620
4026
|
|
|
4621
|
-
var _react = _interopRequireWildcard(
|
|
4027
|
+
var _react = _interopRequireWildcard(React);
|
|
4622
4028
|
|
|
4623
4029
|
|
|
4624
4030
|
|
|
@@ -4642,12 +4048,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4642
4048
|
|
|
4643
4049
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4644
4050
|
|
|
4645
|
-
function
|
|
4051
|
+
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); }; }
|
|
4646
4052
|
|
|
4647
|
-
function
|
|
4053
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4648
4054
|
|
|
4649
4055
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4650
4056
|
|
|
4057
|
+
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; } }
|
|
4058
|
+
|
|
4059
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4060
|
+
|
|
4651
4061
|
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); }
|
|
4652
4062
|
|
|
4653
4063
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4656,16 +4066,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4656
4066
|
|
|
4657
4067
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4658
4068
|
var SDK_GLOBAL = 'SC';
|
|
4659
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4069
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4660
4070
|
|
|
4661
|
-
var SoundCloud =
|
|
4662
|
-
/*#__PURE__*/
|
|
4663
|
-
function (_Component) {
|
|
4071
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4664
4072
|
_inherits(SoundCloud, _Component);
|
|
4665
4073
|
|
|
4666
|
-
|
|
4667
|
-
var _getPrototypeOf2;
|
|
4074
|
+
var _super = _createSuper(SoundCloud);
|
|
4668
4075
|
|
|
4076
|
+
function SoundCloud() {
|
|
4669
4077
|
var _this;
|
|
4670
4078
|
|
|
4671
4079
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4674,7 +4082,7 @@ function (_Component) {
|
|
|
4674
4082
|
args[_key] = arguments[_key];
|
|
4675
4083
|
}
|
|
4676
4084
|
|
|
4677
|
-
_this =
|
|
4085
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4678
4086
|
|
|
4679
4087
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4680
4088
|
|
|
@@ -4795,7 +4203,7 @@ function (_Component) {
|
|
|
4795
4203
|
height: '100%',
|
|
4796
4204
|
display: display
|
|
4797
4205
|
};
|
|
4798
|
-
return _react["default"].createElement("iframe", {
|
|
4206
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4799
4207
|
ref: this.ref,
|
|
4800
4208
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4801
4209
|
style: style,
|
|
@@ -4824,7 +4232,7 @@ exports["default"] = _default;
|
|
|
4824
4232
|
});
|
|
4825
4233
|
|
|
4826
4234
|
unwrapExports(SoundCloud_1);
|
|
4827
|
-
|
|
4235
|
+
SoundCloud_1.SoundCloud;
|
|
4828
4236
|
|
|
4829
4237
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4830
4238
|
|
|
@@ -4833,7 +4241,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4833
4241
|
});
|
|
4834
4242
|
exports["default"] = exports.Vimeo = void 0;
|
|
4835
4243
|
|
|
4836
|
-
var _react = _interopRequireWildcard(
|
|
4244
|
+
var _react = _interopRequireWildcard(React);
|
|
4837
4245
|
|
|
4838
4246
|
|
|
4839
4247
|
|
|
@@ -4857,12 +4265,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4857
4265
|
|
|
4858
4266
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4859
4267
|
|
|
4860
|
-
function
|
|
4268
|
+
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); }; }
|
|
4861
4269
|
|
|
4862
|
-
function
|
|
4270
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4863
4271
|
|
|
4864
4272
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4865
4273
|
|
|
4274
|
+
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; } }
|
|
4275
|
+
|
|
4276
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4277
|
+
|
|
4866
4278
|
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); }
|
|
4867
4279
|
|
|
4868
4280
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4874,14 +4286,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4874
4286
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4875
4287
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4876
4288
|
|
|
4877
|
-
var Vimeo =
|
|
4878
|
-
/*#__PURE__*/
|
|
4879
|
-
function (_Component) {
|
|
4289
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4880
4290
|
_inherits(Vimeo, _Component);
|
|
4881
4291
|
|
|
4882
|
-
|
|
4883
|
-
var _getPrototypeOf2;
|
|
4292
|
+
var _super = _createSuper(Vimeo);
|
|
4884
4293
|
|
|
4294
|
+
function Vimeo() {
|
|
4885
4295
|
var _this;
|
|
4886
4296
|
|
|
4887
4297
|
_classCallCheck(this, Vimeo);
|
|
@@ -4890,7 +4300,7 @@ function (_Component) {
|
|
|
4890
4300
|
args[_key] = arguments[_key];
|
|
4891
4301
|
}
|
|
4892
4302
|
|
|
4893
|
-
_this =
|
|
4303
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4894
4304
|
|
|
4895
4305
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4896
4306
|
|
|
@@ -5047,7 +4457,7 @@ function (_Component) {
|
|
|
5047
4457
|
overflow: 'hidden',
|
|
5048
4458
|
display: display
|
|
5049
4459
|
};
|
|
5050
|
-
return _react["default"].createElement("div", {
|
|
4460
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5051
4461
|
key: this.props.url,
|
|
5052
4462
|
ref: this.ref,
|
|
5053
4463
|
style: style
|
|
@@ -5078,7 +4488,7 @@ exports["default"] = _default;
|
|
|
5078
4488
|
});
|
|
5079
4489
|
|
|
5080
4490
|
unwrapExports(Vimeo_1);
|
|
5081
|
-
|
|
4491
|
+
Vimeo_1.Vimeo;
|
|
5082
4492
|
|
|
5083
4493
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
5084
4494
|
|
|
@@ -5087,7 +4497,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5087
4497
|
});
|
|
5088
4498
|
exports["default"] = exports.Facebook = void 0;
|
|
5089
4499
|
|
|
5090
|
-
var _react = _interopRequireWildcard(
|
|
4500
|
+
var _react = _interopRequireWildcard(React);
|
|
5091
4501
|
|
|
5092
4502
|
|
|
5093
4503
|
|
|
@@ -5107,12 +4517,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5107
4517
|
|
|
5108
4518
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5109
4519
|
|
|
5110
|
-
function
|
|
4520
|
+
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); }; }
|
|
5111
4521
|
|
|
5112
|
-
function
|
|
4522
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5113
4523
|
|
|
5114
4524
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5115
4525
|
|
|
4526
|
+
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; } }
|
|
4527
|
+
|
|
4528
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4529
|
+
|
|
5116
4530
|
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); }
|
|
5117
4531
|
|
|
5118
4532
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5125,14 +4539,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
5125
4539
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
5126
4540
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
5127
4541
|
|
|
5128
|
-
var Facebook =
|
|
5129
|
-
/*#__PURE__*/
|
|
5130
|
-
function (_Component) {
|
|
4542
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
5131
4543
|
_inherits(Facebook, _Component);
|
|
5132
4544
|
|
|
5133
|
-
|
|
5134
|
-
var _getPrototypeOf2;
|
|
4545
|
+
var _super = _createSuper(Facebook);
|
|
5135
4546
|
|
|
4547
|
+
function Facebook() {
|
|
5136
4548
|
var _this;
|
|
5137
4549
|
|
|
5138
4550
|
_classCallCheck(this, Facebook);
|
|
@@ -5141,7 +4553,7 @@ function (_Component) {
|
|
|
5141
4553
|
args[_key] = arguments[_key];
|
|
5142
4554
|
}
|
|
5143
4555
|
|
|
5144
|
-
_this =
|
|
4556
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5145
4557
|
|
|
5146
4558
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5147
4559
|
|
|
@@ -5257,7 +4669,7 @@ function (_Component) {
|
|
|
5257
4669
|
width: '100%',
|
|
5258
4670
|
height: '100%'
|
|
5259
4671
|
};
|
|
5260
|
-
return _react["default"].createElement("div", {
|
|
4672
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5261
4673
|
style: style,
|
|
5262
4674
|
id: this.playerID,
|
|
5263
4675
|
className: "fb-video",
|
|
@@ -5288,7 +4700,7 @@ exports["default"] = _default;
|
|
|
5288
4700
|
});
|
|
5289
4701
|
|
|
5290
4702
|
unwrapExports(Facebook_1);
|
|
5291
|
-
|
|
4703
|
+
Facebook_1.Facebook;
|
|
5292
4704
|
|
|
5293
4705
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
5294
4706
|
|
|
@@ -5297,7 +4709,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5297
4709
|
});
|
|
5298
4710
|
exports["default"] = exports.Streamable = void 0;
|
|
5299
4711
|
|
|
5300
|
-
var _react = _interopRequireWildcard(
|
|
4712
|
+
var _react = _interopRequireWildcard(React);
|
|
5301
4713
|
|
|
5302
4714
|
|
|
5303
4715
|
|
|
@@ -5317,12 +4729,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5317
4729
|
|
|
5318
4730
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5319
4731
|
|
|
5320
|
-
function
|
|
4732
|
+
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); }; }
|
|
5321
4733
|
|
|
5322
|
-
function
|
|
4734
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5323
4735
|
|
|
5324
4736
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5325
4737
|
|
|
4738
|
+
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; } }
|
|
4739
|
+
|
|
4740
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4741
|
+
|
|
5326
4742
|
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); }
|
|
5327
4743
|
|
|
5328
4744
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5333,14 +4749,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
5333
4749
|
var SDK_GLOBAL = 'playerjs';
|
|
5334
4750
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
5335
4751
|
|
|
5336
|
-
var Streamable =
|
|
5337
|
-
/*#__PURE__*/
|
|
5338
|
-
function (_Component) {
|
|
4752
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
5339
4753
|
_inherits(Streamable, _Component);
|
|
5340
4754
|
|
|
5341
|
-
|
|
5342
|
-
var _getPrototypeOf2;
|
|
4755
|
+
var _super = _createSuper(Streamable);
|
|
5343
4756
|
|
|
4757
|
+
function Streamable() {
|
|
5344
4758
|
var _this;
|
|
5345
4759
|
|
|
5346
4760
|
_classCallCheck(this, Streamable);
|
|
@@ -5349,7 +4763,7 @@ function (_Component) {
|
|
|
5349
4763
|
args[_key] = arguments[_key];
|
|
5350
4764
|
}
|
|
5351
4765
|
|
|
5352
|
-
_this =
|
|
4766
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5353
4767
|
|
|
5354
4768
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5355
4769
|
|
|
@@ -5469,7 +4883,7 @@ function (_Component) {
|
|
|
5469
4883
|
width: '100%',
|
|
5470
4884
|
height: '100%'
|
|
5471
4885
|
};
|
|
5472
|
-
return _react["default"].createElement("iframe", {
|
|
4886
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5473
4887
|
ref: this.ref,
|
|
5474
4888
|
src: "https://streamable.com/o/".concat(id),
|
|
5475
4889
|
frameBorder: "0",
|
|
@@ -5497,7 +4911,7 @@ exports["default"] = _default;
|
|
|
5497
4911
|
});
|
|
5498
4912
|
|
|
5499
4913
|
unwrapExports(Streamable_1);
|
|
5500
|
-
|
|
4914
|
+
Streamable_1.Streamable;
|
|
5501
4915
|
|
|
5502
4916
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
5503
4917
|
|
|
@@ -5506,7 +4920,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5506
4920
|
});
|
|
5507
4921
|
exports["default"] = exports.Wistia = void 0;
|
|
5508
4922
|
|
|
5509
|
-
var _react = _interopRequireWildcard(
|
|
4923
|
+
var _react = _interopRequireWildcard(React);
|
|
5510
4924
|
|
|
5511
4925
|
|
|
5512
4926
|
|
|
@@ -5530,12 +4944,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5530
4944
|
|
|
5531
4945
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5532
4946
|
|
|
4947
|
+
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); }; }
|
|
4948
|
+
|
|
5533
4949
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5534
4950
|
|
|
4951
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4952
|
+
|
|
4953
|
+
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; } }
|
|
4954
|
+
|
|
5535
4955
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5536
4956
|
|
|
5537
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5538
|
-
|
|
5539
4957
|
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); }
|
|
5540
4958
|
|
|
5541
4959
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5546,26 +4964,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5546
4964
|
var SDK_GLOBAL = 'Wistia';
|
|
5547
4965
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5548
4966
|
|
|
5549
|
-
var Wistia =
|
|
5550
|
-
/*#__PURE__*/
|
|
5551
|
-
function (_Component) {
|
|
4967
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
5552
4968
|
_inherits(Wistia, _Component);
|
|
5553
4969
|
|
|
5554
|
-
|
|
5555
|
-
var _getPrototypeOf2;
|
|
4970
|
+
var _super = _createSuper(Wistia);
|
|
5556
4971
|
|
|
4972
|
+
function Wistia() {
|
|
5557
4973
|
var _this;
|
|
5558
4974
|
|
|
5559
4975
|
_classCallCheck(this, Wistia);
|
|
5560
4976
|
|
|
5561
|
-
for (var _len = arguments.length,
|
|
5562
|
-
|
|
4977
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4978
|
+
_args[_key] = arguments[_key];
|
|
5563
4979
|
}
|
|
5564
4980
|
|
|
5565
|
-
_this =
|
|
4981
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5566
4982
|
|
|
5567
4983
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5568
4984
|
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4986
|
+
var _this$props;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4992
|
+
var _this$props2;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
4997
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4998
|
+
var _this$props3;
|
|
4999
|
+
|
|
5000
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5001
|
+
});
|
|
5002
|
+
|
|
5003
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5004
|
+
var _this$props4;
|
|
5005
|
+
|
|
5006
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5007
|
+
});
|
|
5008
|
+
|
|
5569
5009
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5570
5010
|
_this.callPlayer('mute');
|
|
5571
5011
|
});
|
|
@@ -5587,17 +5027,13 @@ function (_Component) {
|
|
|
5587
5027
|
value: function load(url) {
|
|
5588
5028
|
var _this2 = this;
|
|
5589
5029
|
|
|
5590
|
-
var _this$
|
|
5591
|
-
playing = _this$
|
|
5592
|
-
muted = _this$
|
|
5593
|
-
controls = _this$
|
|
5594
|
-
_onReady = _this$
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
onSeek = _this$props.onSeek,
|
|
5598
|
-
onEnded = _this$props.onEnded,
|
|
5599
|
-
config = _this$props.config,
|
|
5600
|
-
onError = _this$props.onError;
|
|
5030
|
+
var _this$props5 = this.props,
|
|
5031
|
+
playing = _this$props5.playing,
|
|
5032
|
+
muted = _this$props5.muted,
|
|
5033
|
+
controls = _this$props5.controls,
|
|
5034
|
+
_onReady = _this$props5.onReady,
|
|
5035
|
+
config = _this$props5.config,
|
|
5036
|
+
onError = _this$props5.onError;
|
|
5601
5037
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5602
5038
|
window._wq = window._wq || [];
|
|
5603
5039
|
|
|
@@ -5614,19 +5050,28 @@ function (_Component) {
|
|
|
5614
5050
|
|
|
5615
5051
|
_this2.unbind();
|
|
5616
5052
|
|
|
5617
|
-
_this2.player.bind('play', onPlay);
|
|
5053
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5618
5054
|
|
|
5619
|
-
_this2.player.bind('pause', onPause);
|
|
5055
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5620
5056
|
|
|
5621
|
-
_this2.player.bind('seek', onSeek);
|
|
5057
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5622
5058
|
|
|
5623
|
-
_this2.player.bind('end', onEnded);
|
|
5059
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5624
5060
|
|
|
5625
5061
|
_onReady();
|
|
5626
5062
|
}
|
|
5627
5063
|
});
|
|
5628
5064
|
}, onError);
|
|
5629
5065
|
}
|
|
5066
|
+
}, {
|
|
5067
|
+
key: "unbind",
|
|
5068
|
+
value: function unbind() {
|
|
5069
|
+
this.player.unbind('play', this.onPlay);
|
|
5070
|
+
this.player.unbind('pause', this.onPause);
|
|
5071
|
+
this.player.unbind('seek', this.onSeek);
|
|
5072
|
+
this.player.unbind('end', this.onEnded);
|
|
5073
|
+
} // Proxy methods to prevent listener leaks
|
|
5074
|
+
|
|
5630
5075
|
}, {
|
|
5631
5076
|
key: "play",
|
|
5632
5077
|
value: function play() {
|
|
@@ -5637,19 +5082,6 @@ function (_Component) {
|
|
|
5637
5082
|
value: function pause() {
|
|
5638
5083
|
this.callPlayer('pause');
|
|
5639
5084
|
}
|
|
5640
|
-
}, {
|
|
5641
|
-
key: "unbind",
|
|
5642
|
-
value: function unbind() {
|
|
5643
|
-
var _this$props2 = this.props,
|
|
5644
|
-
onPlay = _this$props2.onPlay,
|
|
5645
|
-
onPause = _this$props2.onPause,
|
|
5646
|
-
onSeek = _this$props2.onSeek,
|
|
5647
|
-
onEnded = _this$props2.onEnded;
|
|
5648
|
-
this.player.unbind('play', onPlay);
|
|
5649
|
-
this.player.unbind('pause', onPause);
|
|
5650
|
-
this.player.unbind('seek', onSeek);
|
|
5651
|
-
this.player.unbind('end', onEnded);
|
|
5652
|
-
}
|
|
5653
5085
|
}, {
|
|
5654
5086
|
key: "stop",
|
|
5655
5087
|
value: function stop() {
|
|
@@ -5695,7 +5127,7 @@ function (_Component) {
|
|
|
5695
5127
|
width: '100%',
|
|
5696
5128
|
height: '100%'
|
|
5697
5129
|
};
|
|
5698
|
-
return _react["default"].createElement("div", {
|
|
5130
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5699
5131
|
key: id,
|
|
5700
5132
|
className: className,
|
|
5701
5133
|
style: style
|
|
@@ -5722,7 +5154,7 @@ exports["default"] = _default;
|
|
|
5722
5154
|
});
|
|
5723
5155
|
|
|
5724
5156
|
unwrapExports(Wistia_1);
|
|
5725
|
-
|
|
5157
|
+
Wistia_1.Wistia;
|
|
5726
5158
|
|
|
5727
5159
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5728
5160
|
|
|
@@ -5731,7 +5163,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5731
5163
|
});
|
|
5732
5164
|
exports["default"] = exports.Twitch = void 0;
|
|
5733
5165
|
|
|
5734
|
-
var _react = _interopRequireWildcard(
|
|
5166
|
+
var _react = _interopRequireWildcard(React);
|
|
5735
5167
|
|
|
5736
5168
|
|
|
5737
5169
|
|
|
@@ -5755,12 +5187,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5755
5187
|
|
|
5756
5188
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5757
5189
|
|
|
5758
|
-
function
|
|
5190
|
+
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); }; }
|
|
5759
5191
|
|
|
5760
|
-
function
|
|
5192
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5761
5193
|
|
|
5762
5194
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5763
5195
|
|
|
5196
|
+
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; } }
|
|
5197
|
+
|
|
5198
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5199
|
+
|
|
5764
5200
|
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); }
|
|
5765
5201
|
|
|
5766
5202
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5773,14 +5209,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5773
5209
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5774
5210
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5775
5211
|
|
|
5776
|
-
var Twitch =
|
|
5777
|
-
/*#__PURE__*/
|
|
5778
|
-
function (_Component) {
|
|
5212
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5779
5213
|
_inherits(Twitch, _Component);
|
|
5780
5214
|
|
|
5781
|
-
|
|
5782
|
-
var _getPrototypeOf2;
|
|
5215
|
+
var _super = _createSuper(Twitch);
|
|
5783
5216
|
|
|
5217
|
+
function Twitch() {
|
|
5784
5218
|
var _this;
|
|
5785
5219
|
|
|
5786
5220
|
_classCallCheck(this, Twitch);
|
|
@@ -5789,7 +5223,7 @@ function (_Component) {
|
|
|
5789
5223
|
args[_key] = arguments[_key];
|
|
5790
5224
|
}
|
|
5791
5225
|
|
|
5792
|
-
_this =
|
|
5226
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5793
5227
|
|
|
5794
5228
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5795
5229
|
|
|
@@ -5910,7 +5344,7 @@ function (_Component) {
|
|
|
5910
5344
|
width: '100%',
|
|
5911
5345
|
height: '100%'
|
|
5912
5346
|
};
|
|
5913
|
-
return _react["default"].createElement("div", {
|
|
5347
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5914
5348
|
style: style,
|
|
5915
5349
|
id: this.playerID
|
|
5916
5350
|
});
|
|
@@ -5936,7 +5370,7 @@ exports["default"] = _default;
|
|
|
5936
5370
|
});
|
|
5937
5371
|
|
|
5938
5372
|
unwrapExports(Twitch_1);
|
|
5939
|
-
|
|
5373
|
+
Twitch_1.Twitch;
|
|
5940
5374
|
|
|
5941
5375
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5942
5376
|
|
|
@@ -5945,7 +5379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5945
5379
|
});
|
|
5946
5380
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5947
5381
|
|
|
5948
|
-
var _react = _interopRequireWildcard(
|
|
5382
|
+
var _react = _interopRequireWildcard(React);
|
|
5949
5383
|
|
|
5950
5384
|
|
|
5951
5385
|
|
|
@@ -5963,11 +5397,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5963
5397
|
|
|
5964
5398
|
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; }
|
|
5965
5399
|
|
|
5966
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5400
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5967
5401
|
|
|
5968
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5402
|
+
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."); }
|
|
5969
5403
|
|
|
5970
|
-
function
|
|
5404
|
+
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); }
|
|
5405
|
+
|
|
5406
|
+
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; }
|
|
5407
|
+
|
|
5408
|
+
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; }
|
|
5971
5409
|
|
|
5972
5410
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5973
5411
|
|
|
@@ -5977,12 +5415,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5977
5415
|
|
|
5978
5416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5979
5417
|
|
|
5980
|
-
function
|
|
5418
|
+
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); }; }
|
|
5981
5419
|
|
|
5982
|
-
function
|
|
5420
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5983
5421
|
|
|
5984
5422
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5985
5423
|
|
|
5424
|
+
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; } }
|
|
5425
|
+
|
|
5426
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5427
|
+
|
|
5986
5428
|
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); }
|
|
5987
5429
|
|
|
5988
5430
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5994,14 +5436,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5994
5436
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5995
5437
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5996
5438
|
|
|
5997
|
-
var DailyMotion =
|
|
5998
|
-
/*#__PURE__*/
|
|
5999
|
-
function (_Component) {
|
|
5439
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
6000
5440
|
_inherits(DailyMotion, _Component);
|
|
6001
5441
|
|
|
6002
|
-
|
|
6003
|
-
var _getPrototypeOf2;
|
|
5442
|
+
var _super = _createSuper(DailyMotion);
|
|
6004
5443
|
|
|
5444
|
+
function DailyMotion() {
|
|
6005
5445
|
var _this;
|
|
6006
5446
|
|
|
6007
5447
|
_classCallCheck(this, DailyMotion);
|
|
@@ -6010,7 +5450,7 @@ function (_Component) {
|
|
|
6010
5450
|
args[_key] = arguments[_key];
|
|
6011
5451
|
}
|
|
6012
5452
|
|
|
6013
|
-
_this =
|
|
5453
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6014
5454
|
|
|
6015
5455
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
6016
5456
|
|
|
@@ -6139,9 +5579,9 @@ function (_Component) {
|
|
|
6139
5579
|
height: '100%',
|
|
6140
5580
|
display: display
|
|
6141
5581
|
};
|
|
6142
|
-
return _react["default"].createElement("div", {
|
|
5582
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6143
5583
|
style: style
|
|
6144
|
-
}, _react["default"].createElement("div", {
|
|
5584
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6145
5585
|
ref: this.ref
|
|
6146
5586
|
}));
|
|
6147
5587
|
}
|
|
@@ -6166,7 +5606,7 @@ exports["default"] = _default;
|
|
|
6166
5606
|
});
|
|
6167
5607
|
|
|
6168
5608
|
unwrapExports(DailyMotion_1);
|
|
6169
|
-
|
|
5609
|
+
DailyMotion_1.DailyMotion;
|
|
6170
5610
|
|
|
6171
5611
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
6172
5612
|
|
|
@@ -6175,7 +5615,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6175
5615
|
});
|
|
6176
5616
|
exports["default"] = exports.Mixcloud = void 0;
|
|
6177
5617
|
|
|
6178
|
-
var _react = _interopRequireWildcard(
|
|
5618
|
+
var _react = _interopRequireWildcard(React);
|
|
6179
5619
|
|
|
6180
5620
|
|
|
6181
5621
|
|
|
@@ -6199,12 +5639,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6199
5639
|
|
|
6200
5640
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6201
5641
|
|
|
6202
|
-
function
|
|
5642
|
+
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); }; }
|
|
6203
5643
|
|
|
6204
|
-
function
|
|
5644
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6205
5645
|
|
|
6206
5646
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6207
5647
|
|
|
5648
|
+
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; } }
|
|
5649
|
+
|
|
5650
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5651
|
+
|
|
6208
5652
|
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); }
|
|
6209
5653
|
|
|
6210
5654
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6215,14 +5659,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
6215
5659
|
var SDK_GLOBAL = 'Mixcloud';
|
|
6216
5660
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
6217
5661
|
|
|
6218
|
-
var Mixcloud =
|
|
6219
|
-
/*#__PURE__*/
|
|
6220
|
-
function (_Component) {
|
|
5662
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
6221
5663
|
_inherits(Mixcloud, _Component);
|
|
6222
5664
|
|
|
6223
|
-
|
|
6224
|
-
var _getPrototypeOf2;
|
|
5665
|
+
var _super = _createSuper(Mixcloud);
|
|
6225
5666
|
|
|
5667
|
+
function Mixcloud() {
|
|
6226
5668
|
var _this;
|
|
6227
5669
|
|
|
6228
5670
|
_classCallCheck(this, Mixcloud);
|
|
@@ -6231,7 +5673,7 @@ function (_Component) {
|
|
|
6231
5673
|
args[_key] = arguments[_key];
|
|
6232
5674
|
}
|
|
6233
5675
|
|
|
6234
|
-
_this =
|
|
5676
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6235
5677
|
|
|
6236
5678
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
6237
5679
|
|
|
@@ -6334,7 +5776,7 @@ function (_Component) {
|
|
|
6334
5776
|
})); // We have to give the iframe a key here to prevent a
|
|
6335
5777
|
// weird dialog appearing when loading a new track
|
|
6336
5778
|
|
|
6337
|
-
return _react["default"].createElement("iframe", {
|
|
5779
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
6338
5780
|
key: id,
|
|
6339
5781
|
ref: this.ref,
|
|
6340
5782
|
style: style,
|
|
@@ -6363,7 +5805,7 @@ exports["default"] = _default;
|
|
|
6363
5805
|
});
|
|
6364
5806
|
|
|
6365
5807
|
unwrapExports(Mixcloud_1);
|
|
6366
|
-
|
|
5808
|
+
Mixcloud_1.Mixcloud;
|
|
6367
5809
|
|
|
6368
5810
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
6369
5811
|
|
|
@@ -6372,7 +5814,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6372
5814
|
});
|
|
6373
5815
|
exports["default"] = exports.FilePlayer = void 0;
|
|
6374
5816
|
|
|
6375
|
-
var _react = _interopRequireWildcard(
|
|
5817
|
+
var _react = _interopRequireWildcard(React);
|
|
6376
5818
|
|
|
6377
5819
|
|
|
6378
5820
|
|
|
@@ -6394,23 +5836,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6394
5836
|
|
|
6395
5837
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6396
5838
|
|
|
6397
|
-
function
|
|
5839
|
+
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); }; }
|
|
6398
5840
|
|
|
6399
|
-
function
|
|
5841
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6400
5842
|
|
|
6401
5843
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6402
5844
|
|
|
5845
|
+
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; } }
|
|
5846
|
+
|
|
5847
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5848
|
+
|
|
6403
5849
|
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); }
|
|
6404
5850
|
|
|
6405
5851
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
6406
5852
|
|
|
6407
5853
|
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; }
|
|
6408
5854
|
|
|
5855
|
+
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; } } }; }
|
|
5856
|
+
|
|
5857
|
+
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); }
|
|
5858
|
+
|
|
5859
|
+
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; }
|
|
5860
|
+
|
|
6409
5861
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
6410
5862
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
6411
5863
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
6412
5864
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
6413
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5865
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
6414
5866
|
var HLS_GLOBAL = 'Hls';
|
|
6415
5867
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
6416
5868
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -6419,12 +5871,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
6419
5871
|
|
|
6420
5872
|
function canPlay(url) {
|
|
6421
5873
|
if (url instanceof Array) {
|
|
6422
|
-
var
|
|
6423
|
-
|
|
6424
|
-
var _iteratorError = undefined;
|
|
5874
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5875
|
+
_step;
|
|
6425
5876
|
|
|
6426
5877
|
try {
|
|
6427
|
-
for (
|
|
5878
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6428
5879
|
var item = _step.value;
|
|
6429
5880
|
|
|
6430
5881
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -6436,18 +5887,9 @@ function canPlay(url) {
|
|
|
6436
5887
|
}
|
|
6437
5888
|
}
|
|
6438
5889
|
} catch (err) {
|
|
6439
|
-
|
|
6440
|
-
_iteratorError = err;
|
|
5890
|
+
_iterator.e(err);
|
|
6441
5891
|
} finally {
|
|
6442
|
-
|
|
6443
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6444
|
-
_iterator["return"]();
|
|
6445
|
-
}
|
|
6446
|
-
} finally {
|
|
6447
|
-
if (_didIteratorError) {
|
|
6448
|
-
throw _iteratorError;
|
|
6449
|
-
}
|
|
6450
|
-
}
|
|
5892
|
+
_iterator.f();
|
|
6451
5893
|
}
|
|
6452
5894
|
|
|
6453
5895
|
return false;
|
|
@@ -6471,14 +5913,12 @@ function canEnablePIP(url) {
|
|
|
6471
5913
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
6472
5914
|
}
|
|
6473
5915
|
|
|
6474
|
-
var FilePlayer =
|
|
6475
|
-
/*#__PURE__*/
|
|
6476
|
-
function (_Component) {
|
|
5916
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
6477
5917
|
_inherits(FilePlayer, _Component);
|
|
6478
5918
|
|
|
6479
|
-
|
|
6480
|
-
var _getPrototypeOf2;
|
|
5919
|
+
var _super = _createSuper(FilePlayer);
|
|
6481
5920
|
|
|
5921
|
+
function FilePlayer() {
|
|
6482
5922
|
var _this;
|
|
6483
5923
|
|
|
6484
5924
|
_classCallCheck(this, FilePlayer);
|
|
@@ -6487,7 +5927,7 @@ function (_Component) {
|
|
|
6487
5927
|
_args[_key] = arguments[_key];
|
|
6488
5928
|
}
|
|
6489
5929
|
|
|
6490
|
-
_this =
|
|
5930
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
6491
5931
|
|
|
6492
5932
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
6493
5933
|
var _this$props;
|
|
@@ -6574,19 +6014,19 @@ function (_Component) {
|
|
|
6574
6014
|
|
|
6575
6015
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6576
6016
|
if (typeof source === 'string') {
|
|
6577
|
-
return _react["default"].createElement("source", {
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6578
6018
|
key: index,
|
|
6579
6019
|
src: source
|
|
6580
6020
|
});
|
|
6581
6021
|
}
|
|
6582
6022
|
|
|
6583
|
-
return _react["default"].createElement("source", _extends({
|
|
6023
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6584
6024
|
key: index
|
|
6585
6025
|
}, source));
|
|
6586
6026
|
});
|
|
6587
6027
|
|
|
6588
6028
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6589
|
-
return _react["default"].createElement("track", _extends({
|
|
6029
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6590
6030
|
key: index
|
|
6591
6031
|
}, track));
|
|
6592
6032
|
});
|
|
@@ -6624,6 +6064,10 @@ function (_Component) {
|
|
|
6624
6064
|
key: "componentWillUnmount",
|
|
6625
6065
|
value: function componentWillUnmount() {
|
|
6626
6066
|
this.removeListeners(this.player);
|
|
6067
|
+
|
|
6068
|
+
if (this.hls) {
|
|
6069
|
+
this.hls.destroy();
|
|
6070
|
+
}
|
|
6627
6071
|
}
|
|
6628
6072
|
}, {
|
|
6629
6073
|
key: "addListeners",
|
|
@@ -6754,10 +6198,6 @@ function (_Component) {
|
|
|
6754
6198
|
value: function stop() {
|
|
6755
6199
|
this.player.removeAttribute('src');
|
|
6756
6200
|
|
|
6757
|
-
if (this.hls) {
|
|
6758
|
-
this.hls.destroy();
|
|
6759
|
-
}
|
|
6760
|
-
|
|
6761
6201
|
if (this.dash) {
|
|
6762
6202
|
this.dash.reset();
|
|
6763
6203
|
}
|
|
@@ -6869,7 +6309,7 @@ function (_Component) {
|
|
|
6869
6309
|
width: width === 'auto' ? width : '100%',
|
|
6870
6310
|
height: height === 'auto' ? height : '100%'
|
|
6871
6311
|
};
|
|
6872
|
-
return _react["default"].createElement(Element, _extends({
|
|
6312
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6873
6313
|
ref: this.ref,
|
|
6874
6314
|
src: this.getSource(url),
|
|
6875
6315
|
style: style,
|
|
@@ -6899,7 +6339,7 @@ exports["default"] = _default;
|
|
|
6899
6339
|
});
|
|
6900
6340
|
|
|
6901
6341
|
unwrapExports(FilePlayer_1);
|
|
6902
|
-
|
|
6342
|
+
FilePlayer_1.FilePlayer;
|
|
6903
6343
|
|
|
6904
6344
|
var players = createCommonjsModule(function (module, exports) {
|
|
6905
6345
|
|
|
@@ -6941,7 +6381,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6941
6381
|
});
|
|
6942
6382
|
exports["default"] = void 0;
|
|
6943
6383
|
|
|
6944
|
-
var _react = _interopRequireWildcard(
|
|
6384
|
+
var _react = _interopRequireWildcard(React);
|
|
6945
6385
|
|
|
6946
6386
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6947
6387
|
|
|
@@ -6959,12 +6399,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6959
6399
|
|
|
6960
6400
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6961
6401
|
|
|
6962
|
-
function
|
|
6402
|
+
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); }; }
|
|
6963
6403
|
|
|
6964
|
-
function
|
|
6404
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6965
6405
|
|
|
6966
6406
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6967
6407
|
|
|
6408
|
+
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; } }
|
|
6409
|
+
|
|
6410
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6411
|
+
|
|
6968
6412
|
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); }
|
|
6969
6413
|
|
|
6970
6414
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6973,14 +6417,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6973
6417
|
|
|
6974
6418
|
var ICON_SIZE = '64px';
|
|
6975
6419
|
|
|
6976
|
-
var Preview =
|
|
6977
|
-
/*#__PURE__*/
|
|
6978
|
-
function (_Component) {
|
|
6420
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6979
6421
|
_inherits(Preview, _Component);
|
|
6980
6422
|
|
|
6981
|
-
|
|
6982
|
-
var _getPrototypeOf2;
|
|
6423
|
+
var _super = _createSuper(Preview);
|
|
6983
6424
|
|
|
6425
|
+
function Preview() {
|
|
6984
6426
|
var _this;
|
|
6985
6427
|
|
|
6986
6428
|
_classCallCheck(this, Preview);
|
|
@@ -6989,7 +6431,7 @@ function (_Component) {
|
|
|
6989
6431
|
args[_key] = arguments[_key];
|
|
6990
6432
|
}
|
|
6991
6433
|
|
|
6992
|
-
_this =
|
|
6434
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6993
6435
|
|
|
6994
6436
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6995
6437
|
|
|
@@ -7087,15 +6529,15 @@ function (_Component) {
|
|
|
7087
6529
|
}
|
|
7088
6530
|
};
|
|
7089
6531
|
|
|
7090
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6532
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
7091
6533
|
style: styles.shadow,
|
|
7092
6534
|
className: "react-player__shadow"
|
|
7093
|
-
}, _react["default"].createElement("div", {
|
|
6535
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
7094
6536
|
style: styles.playIcon,
|
|
7095
6537
|
className: "react-player__play-icon"
|
|
7096
6538
|
}));
|
|
7097
6539
|
|
|
7098
|
-
return _react["default"].createElement("div", {
|
|
6540
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
7099
6541
|
style: styles.preview,
|
|
7100
6542
|
className: "react-player__preview",
|
|
7101
6543
|
onClick: onClick
|
|
@@ -7118,7 +6560,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7118
6560
|
});
|
|
7119
6561
|
exports["default"] = renderPreloadPlayers;
|
|
7120
6562
|
|
|
7121
|
-
var _react = _interopRequireDefault(
|
|
6563
|
+
var _react = _interopRequireDefault(React);
|
|
7122
6564
|
|
|
7123
6565
|
var _Player = _interopRequireDefault(Player_1);
|
|
7124
6566
|
|
|
@@ -7132,6 +6574,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
7132
6574
|
|
|
7133
6575
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
7134
6576
|
|
|
6577
|
+
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; } } }; }
|
|
6578
|
+
|
|
6579
|
+
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); }
|
|
6580
|
+
|
|
6581
|
+
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; }
|
|
6582
|
+
|
|
7135
6583
|
var PRELOAD_PLAYERS = [{
|
|
7136
6584
|
Player: YouTube_1.YouTube,
|
|
7137
6585
|
configKey: 'youtube',
|
|
@@ -7152,16 +6600,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
7152
6600
|
|
|
7153
6601
|
function renderPreloadPlayers(url, controls, config) {
|
|
7154
6602
|
var players = [];
|
|
7155
|
-
|
|
7156
|
-
var
|
|
7157
|
-
|
|
6603
|
+
|
|
6604
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6605
|
+
_step;
|
|
7158
6606
|
|
|
7159
6607
|
try {
|
|
7160
|
-
for (
|
|
6608
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7161
6609
|
var player = _step.value;
|
|
7162
6610
|
|
|
7163
6611
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
7164
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6612
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
7165
6613
|
key: player.Player.displayName,
|
|
7166
6614
|
activePlayer: player.Player,
|
|
7167
6615
|
url: player.url,
|
|
@@ -7173,18 +6621,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
7173
6621
|
}
|
|
7174
6622
|
}
|
|
7175
6623
|
} catch (err) {
|
|
7176
|
-
|
|
7177
|
-
_iteratorError = err;
|
|
6624
|
+
_iterator.e(err);
|
|
7178
6625
|
} finally {
|
|
7179
|
-
|
|
7180
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
7181
|
-
_iterator["return"]();
|
|
7182
|
-
}
|
|
7183
|
-
} finally {
|
|
7184
|
-
if (_didIteratorError) {
|
|
7185
|
-
throw _iteratorError;
|
|
7186
|
-
}
|
|
7187
|
-
}
|
|
6626
|
+
_iterator.f();
|
|
7188
6627
|
}
|
|
7189
6628
|
|
|
7190
6629
|
return players;
|
|
@@ -7260,7 +6699,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
7260
6699
|
});
|
|
7261
6700
|
exports["default"] = void 0;
|
|
7262
6701
|
|
|
7263
|
-
var _react = _interopRequireWildcard(
|
|
6702
|
+
var _react = _interopRequireWildcard(React);
|
|
7264
6703
|
|
|
7265
6704
|
|
|
7266
6705
|
|
|
@@ -7308,13 +6747,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7308
6747
|
|
|
7309
6748
|
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); }
|
|
7310
6749
|
|
|
7311
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6750
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6751
|
+
|
|
6752
|
+
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."); }
|
|
7312
6753
|
|
|
7313
|
-
function
|
|
6754
|
+
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); }
|
|
7314
6755
|
|
|
7315
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6756
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
7316
6757
|
|
|
7317
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6758
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6759
|
+
|
|
6760
|
+
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; }
|
|
7318
6761
|
|
|
7319
6762
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7320
6763
|
|
|
@@ -7322,12 +6765,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
7322
6765
|
|
|
7323
6766
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7324
6767
|
|
|
7325
|
-
function
|
|
6768
|
+
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); }; }
|
|
7326
6769
|
|
|
7327
|
-
function
|
|
6770
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
7328
6771
|
|
|
7329
6772
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7330
6773
|
|
|
6774
|
+
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; } }
|
|
6775
|
+
|
|
6776
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6777
|
+
|
|
7331
6778
|
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); }
|
|
7332
6779
|
|
|
7333
6780
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -7337,14 +6784,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7337
6784
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
7338
6785
|
var customPlayers = [];
|
|
7339
6786
|
|
|
7340
|
-
var ReactPlayer =
|
|
7341
|
-
/*#__PURE__*/
|
|
7342
|
-
function (_Component) {
|
|
6787
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
7343
6788
|
_inherits(ReactPlayer, _Component);
|
|
7344
6789
|
|
|
7345
|
-
|
|
7346
|
-
var _getPrototypeOf2;
|
|
6790
|
+
var _super = _createSuper(ReactPlayer);
|
|
7347
6791
|
|
|
6792
|
+
function ReactPlayer() {
|
|
7348
6793
|
var _this;
|
|
7349
6794
|
|
|
7350
6795
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -7353,7 +6798,7 @@ function (_Component) {
|
|
|
7353
6798
|
args[_key] = arguments[_key];
|
|
7354
6799
|
}
|
|
7355
6800
|
|
|
7356
|
-
_this =
|
|
6801
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
7357
6802
|
|
|
7358
6803
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
7359
6804
|
|
|
@@ -7464,7 +6909,7 @@ function (_Component) {
|
|
|
7464
6909
|
key: "renderActivePlayer",
|
|
7465
6910
|
value: function renderActivePlayer(url, activePlayer) {
|
|
7466
6911
|
if (!url) return null;
|
|
7467
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6912
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
7468
6913
|
key: activePlayer.displayName,
|
|
7469
6914
|
ref: this.activePlayerRef,
|
|
7470
6915
|
config: this.config,
|
|
@@ -7501,14 +6946,14 @@ function (_Component) {
|
|
|
7501
6946
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
7502
6947
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
7503
6948
|
|
|
7504
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6949
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
7505
6950
|
url: url,
|
|
7506
6951
|
light: light,
|
|
7507
6952
|
playIcon: playIcon,
|
|
7508
6953
|
onClick: this.handleClickPreview
|
|
7509
6954
|
});
|
|
7510
6955
|
|
|
7511
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6956
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
7512
6957
|
ref: this.wrapperRef,
|
|
7513
6958
|
style: _objectSpread({}, style, {
|
|
7514
6959
|
width: width,
|
|
@@ -7568,20 +7013,20 @@ var Audio = function Audio(_ref) {
|
|
|
7568
7013
|
var node = _ref.node;
|
|
7569
7014
|
|
|
7570
7015
|
if (node.uploadAudio) {
|
|
7571
|
-
return
|
|
7016
|
+
return React.createElement(
|
|
7572
7017
|
'div',
|
|
7573
7018
|
{ className: 'audio d-block text-center mb-3' },
|
|
7574
|
-
|
|
7019
|
+
React.createElement(
|
|
7575
7020
|
'audio',
|
|
7576
7021
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7577
|
-
|
|
7578
|
-
|
|
7022
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7023
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7579
7024
|
'Your browser does not support the audio element.'
|
|
7580
7025
|
),
|
|
7581
|
-
node.caption &&
|
|
7026
|
+
node.caption && React.createElement(
|
|
7582
7027
|
'p',
|
|
7583
7028
|
{ style: { fontSize: '.9rem' } },
|
|
7584
|
-
|
|
7029
|
+
React.createElement(
|
|
7585
7030
|
'em',
|
|
7586
7031
|
null,
|
|
7587
7032
|
node.caption
|
|
@@ -7591,15 +7036,15 @@ var Audio = function Audio(_ref) {
|
|
|
7591
7036
|
} else if (node.audioFilePth) {
|
|
7592
7037
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7593
7038
|
if (hostname === 'embeds.audioboom.com') {
|
|
7594
|
-
return
|
|
7039
|
+
return React.createElement(
|
|
7595
7040
|
'div',
|
|
7596
7041
|
null,
|
|
7597
|
-
|
|
7042
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7598
7043
|
' ',
|
|
7599
|
-
node.caption &&
|
|
7044
|
+
node.caption && React.createElement(
|
|
7600
7045
|
'p',
|
|
7601
7046
|
{ style: { fontSize: '.9rem' } },
|
|
7602
|
-
|
|
7047
|
+
React.createElement(
|
|
7603
7048
|
'em',
|
|
7604
7049
|
null,
|
|
7605
7050
|
node.caption
|
|
@@ -7607,14 +7052,14 @@ var Audio = function Audio(_ref) {
|
|
|
7607
7052
|
)
|
|
7608
7053
|
);
|
|
7609
7054
|
}
|
|
7610
|
-
return
|
|
7055
|
+
return React.createElement(
|
|
7611
7056
|
'div',
|
|
7612
7057
|
{ className: 'audio' },
|
|
7613
|
-
|
|
7614
|
-
node.caption &&
|
|
7058
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7059
|
+
node.caption && React.createElement(
|
|
7615
7060
|
'p',
|
|
7616
7061
|
{ style: { fontSize: '.9rem' } },
|
|
7617
|
-
|
|
7062
|
+
React.createElement(
|
|
7618
7063
|
'em',
|
|
7619
7064
|
null,
|
|
7620
7065
|
node.caption
|
|
@@ -7632,34 +7077,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7632
7077
|
var profileImage = arguments[6];
|
|
7633
7078
|
|
|
7634
7079
|
if (authorName && authorURL) {
|
|
7635
|
-
return
|
|
7080
|
+
return React.createElement(
|
|
7636
7081
|
'span',
|
|
7637
7082
|
null,
|
|
7638
|
-
|
|
7083
|
+
React.createElement(
|
|
7639
7084
|
'a',
|
|
7640
7085
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7641
7086
|
authorName
|
|
7642
7087
|
),
|
|
7643
|
-
|
|
7088
|
+
React.createElement(
|
|
7644
7089
|
Card,
|
|
7645
7090
|
{ className: 'author-details-card-' + index },
|
|
7646
|
-
|
|
7091
|
+
React.createElement(
|
|
7647
7092
|
Row,
|
|
7648
7093
|
null,
|
|
7649
|
-
profileImage &&
|
|
7094
|
+
profileImage && React.createElement(
|
|
7650
7095
|
Col,
|
|
7651
7096
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7652
|
-
|
|
7097
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7653
7098
|
),
|
|
7654
|
-
|
|
7099
|
+
React.createElement(
|
|
7655
7100
|
Col,
|
|
7656
7101
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7657
|
-
|
|
7102
|
+
React.createElement(
|
|
7658
7103
|
'div',
|
|
7659
7104
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7660
7105
|
authorName
|
|
7661
7106
|
),
|
|
7662
|
-
|
|
7107
|
+
React.createElement(
|
|
7663
7108
|
'p',
|
|
7664
7109
|
null,
|
|
7665
7110
|
biography
|
|
@@ -7667,7 +7112,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7667
7112
|
)
|
|
7668
7113
|
)
|
|
7669
7114
|
),
|
|
7670
|
-
|
|
7115
|
+
React.createElement(
|
|
7671
7116
|
'style',
|
|
7672
7117
|
{ jsx: 'true' },
|
|
7673
7118
|
'\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 '
|
|
@@ -7675,7 +7120,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7675
7120
|
length !== index + 1 && ' , '
|
|
7676
7121
|
);
|
|
7677
7122
|
} else if (authorName) {
|
|
7678
|
-
return
|
|
7123
|
+
return React.createElement(
|
|
7679
7124
|
'span',
|
|
7680
7125
|
{ key: index },
|
|
7681
7126
|
authorName,
|
|
@@ -7952,44 +7397,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7952
7397
|
}
|
|
7953
7398
|
};
|
|
7954
7399
|
|
|
7955
|
-
return
|
|
7400
|
+
return React.createElement(
|
|
7956
7401
|
'div',
|
|
7957
7402
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7958
|
-
|
|
7403
|
+
React.createElement(
|
|
7959
7404
|
'div',
|
|
7960
7405
|
{ className: 'mt-2 mb-5' },
|
|
7961
|
-
series &&
|
|
7406
|
+
series && React.createElement(
|
|
7962
7407
|
'div',
|
|
7963
7408
|
{ style: { fontSize: '0.9rem' } },
|
|
7964
7409
|
article.title,
|
|
7965
7410
|
' - Episode ',
|
|
7966
7411
|
series
|
|
7967
7412
|
),
|
|
7968
|
-
Videos[series - 1] &&
|
|
7413
|
+
Videos[series - 1] && React.createElement(
|
|
7969
7414
|
'h1',
|
|
7970
7415
|
{ className: 'mb-3' },
|
|
7971
7416
|
Videos[series - 1].title
|
|
7972
7417
|
),
|
|
7973
|
-
|
|
7418
|
+
React.createElement(
|
|
7974
7419
|
'div',
|
|
7975
7420
|
null,
|
|
7976
7421
|
moment(article.published).format('LL')
|
|
7977
7422
|
),
|
|
7978
|
-
|
|
7423
|
+
React.createElement(
|
|
7979
7424
|
'div',
|
|
7980
7425
|
{ className: 'mb-3' },
|
|
7981
7426
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7982
|
-
return
|
|
7427
|
+
return React.createElement(
|
|
7983
7428
|
'span',
|
|
7984
7429
|
{ key: index },
|
|
7985
7430
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7986
7431
|
);
|
|
7987
7432
|
})
|
|
7988
7433
|
),
|
|
7989
|
-
|
|
7434
|
+
React.createElement(
|
|
7990
7435
|
'p',
|
|
7991
7436
|
null,
|
|
7992
|
-
|
|
7437
|
+
React.createElement(SocialShare, {
|
|
7993
7438
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7994
7439
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7995
7440
|
shareVia: meta.shareVia,
|
|
@@ -8004,20 +7449,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8004
7449
|
hideFacebook: meta.hideFBShare
|
|
8005
7450
|
})
|
|
8006
7451
|
),
|
|
8007
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7452
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
8008
7453
|
'p',
|
|
8009
7454
|
{ className: 'mb-3' },
|
|
8010
|
-
|
|
7455
|
+
React.createElement(
|
|
8011
7456
|
'em',
|
|
8012
7457
|
null,
|
|
8013
7458
|
Videos[series - 1].intro
|
|
8014
7459
|
)
|
|
8015
7460
|
)
|
|
8016
7461
|
),
|
|
8017
|
-
|
|
7462
|
+
React.createElement(
|
|
8018
7463
|
'div',
|
|
8019
7464
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
8020
|
-
vidUrl && vidType == 'youtube' &&
|
|
7465
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
8021
7466
|
className: 'fluid-iframe',
|
|
8022
7467
|
videoId: getYoutubeId(vidUrl),
|
|
8023
7468
|
opts: opts,
|
|
@@ -8028,10 +7473,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8028
7473
|
return handleOnEnd(e);
|
|
8029
7474
|
}
|
|
8030
7475
|
}),
|
|
8031
|
-
vidUrl && vidType == 'mp4' &&
|
|
8032
|
-
vidUrl && vidType == 'brightcove' &&
|
|
8033
|
-
|
|
8034
|
-
series &&
|
|
7476
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7477
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7478
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7479
|
+
series && React.createElement(
|
|
8035
7480
|
'div',
|
|
8036
7481
|
{
|
|
8037
7482
|
className: 'vid-series',
|
|
@@ -8041,10 +7486,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8041
7486
|
maxHeight: '100%',
|
|
8042
7487
|
paddingBottom: '0'
|
|
8043
7488
|
} },
|
|
8044
|
-
|
|
7489
|
+
React.createElement(
|
|
8045
7490
|
'p',
|
|
8046
7491
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
8047
|
-
|
|
7492
|
+
React.createElement(
|
|
8048
7493
|
'b',
|
|
8049
7494
|
{ style: { fontSize: '1.25em' } },
|
|
8050
7495
|
'Now Playing:'
|
|
@@ -8052,16 +7497,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8052
7497
|
' ',
|
|
8053
7498
|
seriesData[series ? series - 1 : 0].title
|
|
8054
7499
|
),
|
|
8055
|
-
vidUrl &&
|
|
7500
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
8056
7501
|
)
|
|
8057
7502
|
),
|
|
8058
|
-
|
|
8059
|
-
|
|
7503
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7504
|
+
React.createElement(
|
|
8060
7505
|
'div',
|
|
8061
7506
|
{ className: 'vid-text' },
|
|
8062
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7507
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
8063
7508
|
),
|
|
8064
|
-
|
|
7509
|
+
React.createElement(
|
|
8065
7510
|
'style',
|
|
8066
7511
|
{ jsx: 'true' },
|
|
8067
7512
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -8070,13 +7515,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8070
7515
|
};
|
|
8071
7516
|
|
|
8072
7517
|
var Poll = function Poll(_ref) {
|
|
8073
|
-
var node = _ref.node
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
onVote = _ref.onVote
|
|
8078
|
-
_ref
|
|
8079
|
-
getSerializers = _ref.getSerializers;
|
|
7518
|
+
var node = _ref.node;
|
|
7519
|
+
_ref.client;
|
|
7520
|
+
_ref.pageview;
|
|
7521
|
+
_ref.videoAccountIDs;
|
|
7522
|
+
var onVote = _ref.onVote;
|
|
7523
|
+
_ref.showVotes;
|
|
7524
|
+
var getSerializers = _ref.getSerializers;
|
|
8080
7525
|
|
|
8081
7526
|
var _useState = useState(null),
|
|
8082
7527
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8114,67 +7559,67 @@ var Poll = function Poll(_ref) {
|
|
|
8114
7559
|
return acc;
|
|
8115
7560
|
}
|
|
8116
7561
|
}, 0);
|
|
8117
|
-
return
|
|
8118
|
-
|
|
7562
|
+
return React.createElement(
|
|
7563
|
+
React.Fragment,
|
|
8119
7564
|
null,
|
|
8120
|
-
question &&
|
|
7565
|
+
question && React.createElement(
|
|
8121
7566
|
'p',
|
|
8122
7567
|
{ className: 'font-weight-bold' },
|
|
8123
7568
|
question
|
|
8124
7569
|
),
|
|
8125
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7570
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
8126
7571
|
'form',
|
|
8127
7572
|
{ onSubmit: function onSubmit(e) {
|
|
8128
7573
|
return onSubmitPoll(e);
|
|
8129
7574
|
} },
|
|
8130
7575
|
choices && choices.map(function (choice) {
|
|
8131
|
-
return
|
|
7576
|
+
return React.createElement(
|
|
8132
7577
|
'div',
|
|
8133
7578
|
{ key: choice._key },
|
|
8134
|
-
|
|
7579
|
+
React.createElement(
|
|
8135
7580
|
'label',
|
|
8136
7581
|
{ className: 'pl-2' },
|
|
8137
|
-
|
|
7582
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8138
7583
|
return setSelectedChoice(e.target.value);
|
|
8139
7584
|
} }),
|
|
8140
7585
|
' ' + choice.choiceText
|
|
8141
7586
|
)
|
|
8142
7587
|
);
|
|
8143
7588
|
}),
|
|
8144
|
-
|
|
7589
|
+
React.createElement(
|
|
8145
7590
|
Button,
|
|
8146
7591
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8147
7592
|
'Vote'
|
|
8148
7593
|
)
|
|
8149
7594
|
),
|
|
8150
|
-
|
|
7595
|
+
React.createElement(
|
|
8151
7596
|
'div',
|
|
8152
7597
|
{ className: 'progress-container' },
|
|
8153
7598
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8154
7599
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8155
|
-
return
|
|
7600
|
+
return React.createElement(
|
|
8156
7601
|
'div',
|
|
8157
7602
|
{ key: choice._key, className: 'mb-3' },
|
|
8158
|
-
|
|
7603
|
+
React.createElement(
|
|
8159
7604
|
'div',
|
|
8160
7605
|
{ className: 'correct-answer' },
|
|
8161
|
-
|
|
7606
|
+
React.createElement(
|
|
8162
7607
|
'div',
|
|
8163
7608
|
null,
|
|
8164
7609
|
choice.choiceText
|
|
8165
7610
|
),
|
|
8166
|
-
choice.choiceAnswer === true &&
|
|
7611
|
+
choice.choiceAnswer === true && React.createElement(
|
|
8167
7612
|
'div',
|
|
8168
7613
|
null,
|
|
8169
|
-
|
|
7614
|
+
React.createElement(
|
|
8170
7615
|
'span',
|
|
8171
7616
|
{ style: { color: 'limegreen' } },
|
|
8172
7617
|
'Correct!'
|
|
8173
7618
|
)
|
|
8174
7619
|
)
|
|
8175
7620
|
),
|
|
8176
|
-
|
|
8177
|
-
|
|
7621
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7622
|
+
React.createElement(
|
|
8178
7623
|
'span',
|
|
8179
7624
|
{ className: 'float-right' },
|
|
8180
7625
|
percentage,
|
|
@@ -8185,14 +7630,14 @@ var Poll = function Poll(_ref) {
|
|
|
8185
7630
|
);
|
|
8186
7631
|
})
|
|
8187
7632
|
),
|
|
8188
|
-
showAnswer &&
|
|
7633
|
+
showAnswer && React.createElement(
|
|
8189
7634
|
'h4',
|
|
8190
7635
|
{ className: 'text-center small p-3' },
|
|
8191
7636
|
'Total Votes: ',
|
|
8192
7637
|
choicesTotalCount
|
|
8193
7638
|
),
|
|
8194
|
-
showAnswer && response &&
|
|
8195
|
-
|
|
7639
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7640
|
+
React.createElement(
|
|
8196
7641
|
'style',
|
|
8197
7642
|
{ jsx: 'true' },
|
|
8198
7643
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8219,13 +7664,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
8219
7664
|
var _Object$values = unwrapExports(values$1);
|
|
8220
7665
|
|
|
8221
7666
|
var Poll$1 = function Poll(_ref) {
|
|
8222
|
-
var node = _ref.node
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
onVote = _ref.onVote
|
|
8227
|
-
_ref
|
|
8228
|
-
getSerializers = _ref.getSerializers;
|
|
7667
|
+
var node = _ref.node;
|
|
7668
|
+
_ref.client;
|
|
7669
|
+
_ref.pageview;
|
|
7670
|
+
_ref.videoAccountIDs;
|
|
7671
|
+
var onVote = _ref.onVote;
|
|
7672
|
+
_ref.showVotes;
|
|
7673
|
+
var getSerializers = _ref.getSerializers;
|
|
8229
7674
|
|
|
8230
7675
|
var _useState = useState(null),
|
|
8231
7676
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8291,67 +7736,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8291
7736
|
return acc;
|
|
8292
7737
|
}
|
|
8293
7738
|
}, 0);
|
|
8294
|
-
return
|
|
8295
|
-
|
|
7739
|
+
return React.createElement(
|
|
7740
|
+
React.Fragment,
|
|
8296
7741
|
null,
|
|
8297
|
-
question &&
|
|
7742
|
+
question && React.createElement(
|
|
8298
7743
|
'p',
|
|
8299
7744
|
{ className: 'font-weight-bold' },
|
|
8300
7745
|
question
|
|
8301
7746
|
),
|
|
8302
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7747
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
8303
7748
|
'form',
|
|
8304
7749
|
{ onSubmit: function onSubmit(e) {
|
|
8305
7750
|
return onSubmitPoll(e);
|
|
8306
7751
|
} },
|
|
8307
7752
|
choices && choices.map(function (choice) {
|
|
8308
|
-
return
|
|
7753
|
+
return React.createElement(
|
|
8309
7754
|
'div',
|
|
8310
7755
|
{ key: choice._key },
|
|
8311
|
-
|
|
7756
|
+
React.createElement(
|
|
8312
7757
|
'label',
|
|
8313
7758
|
{ className: 'pl-2' },
|
|
8314
|
-
|
|
7759
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8315
7760
|
return setSelectedChoice(e.target.value);
|
|
8316
7761
|
} }),
|
|
8317
7762
|
' ' + choice.choiceText
|
|
8318
7763
|
)
|
|
8319
7764
|
);
|
|
8320
7765
|
}),
|
|
8321
|
-
|
|
7766
|
+
React.createElement(
|
|
8322
7767
|
Button,
|
|
8323
7768
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8324
7769
|
'Vote'
|
|
8325
7770
|
)
|
|
8326
7771
|
),
|
|
8327
|
-
|
|
7772
|
+
React.createElement(
|
|
8328
7773
|
'div',
|
|
8329
7774
|
{ className: 'progress-container' },
|
|
8330
7775
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8331
7776
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8332
|
-
return
|
|
7777
|
+
return React.createElement(
|
|
8333
7778
|
'div',
|
|
8334
7779
|
{ key: choice._key, className: 'mb-3' },
|
|
8335
|
-
|
|
7780
|
+
React.createElement(
|
|
8336
7781
|
'div',
|
|
8337
7782
|
{ className: 'correct-answer' },
|
|
8338
|
-
|
|
7783
|
+
React.createElement(
|
|
8339
7784
|
'div',
|
|
8340
7785
|
null,
|
|
8341
7786
|
choice.choiceText
|
|
8342
7787
|
),
|
|
8343
|
-
choice.choiceAnswer === true &&
|
|
7788
|
+
choice.choiceAnswer === true && React.createElement(
|
|
8344
7789
|
'div',
|
|
8345
7790
|
null,
|
|
8346
|
-
|
|
7791
|
+
React.createElement(
|
|
8347
7792
|
'span',
|
|
8348
7793
|
{ style: { color: 'limegreen' } },
|
|
8349
7794
|
'Correct!'
|
|
8350
7795
|
)
|
|
8351
7796
|
)
|
|
8352
7797
|
),
|
|
8353
|
-
|
|
8354
|
-
|
|
7798
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7799
|
+
React.createElement(
|
|
8355
7800
|
'span',
|
|
8356
7801
|
{ className: 'float-right' },
|
|
8357
7802
|
percentage,
|
|
@@ -8362,14 +7807,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8362
7807
|
);
|
|
8363
7808
|
})
|
|
8364
7809
|
),
|
|
8365
|
-
showAnswer &&
|
|
7810
|
+
showAnswer && React.createElement(
|
|
8366
7811
|
'h4',
|
|
8367
7812
|
{ className: 'text-center small p-3' },
|
|
8368
7813
|
'Total Votes: ',
|
|
8369
7814
|
choicesTotalCount
|
|
8370
7815
|
),
|
|
8371
|
-
showAnswer && response &&
|
|
8372
|
-
|
|
7816
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7817
|
+
React.createElement(
|
|
8373
7818
|
'style',
|
|
8374
7819
|
{ jsx: 'true' },
|
|
8375
7820
|
'\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 '
|
|
@@ -8377,7 +7822,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8377
7822
|
);
|
|
8378
7823
|
};
|
|
8379
7824
|
|
|
8380
|
-
var numberOfPaginations =
|
|
7825
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
8381
7826
|
|
|
8382
7827
|
var Quiz = function Quiz(_ref) {
|
|
8383
7828
|
var quizzes = _ref.quizzes,
|
|
@@ -8495,20 +7940,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
8495
7940
|
};
|
|
8496
7941
|
|
|
8497
7942
|
var renderPagination = function renderPagination() {
|
|
8498
|
-
return
|
|
7943
|
+
return React.createElement(
|
|
8499
7944
|
Pagination,
|
|
8500
|
-
{ className: 'p-0 m-0', size:
|
|
8501
|
-
|
|
7945
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7946
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
8502
7947
|
return changePage('first');
|
|
8503
7948
|
}, disabled: currentPage === 1 }),
|
|
8504
|
-
|
|
7949
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
8505
7950
|
return changePage('prev');
|
|
8506
7951
|
}, disabled: currentPage === 1 }),
|
|
8507
|
-
|
|
7952
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8508
7953
|
return renderNewPages('prev');
|
|
8509
7954
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8510
7955
|
pages.map(function (page) {
|
|
8511
|
-
return
|
|
7956
|
+
return React.createElement(
|
|
8512
7957
|
Pagination.Item,
|
|
8513
7958
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
8514
7959
|
return changePage(page);
|
|
@@ -8516,13 +7961,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
8516
7961
|
page
|
|
8517
7962
|
);
|
|
8518
7963
|
}),
|
|
8519
|
-
|
|
7964
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8520
7965
|
return renderNewPages('next');
|
|
8521
7966
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8522
|
-
|
|
7967
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8523
7968
|
return changePage('next');
|
|
8524
7969
|
}, disabled: currentPage === pageCount }),
|
|
8525
|
-
|
|
7970
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8526
7971
|
return changePage('last');
|
|
8527
7972
|
}, disabled: currentPage === pageCount })
|
|
8528
7973
|
);
|
|
@@ -8605,51 +8050,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8605
8050
|
}
|
|
8606
8051
|
};
|
|
8607
8052
|
|
|
8608
|
-
return
|
|
8609
|
-
|
|
8053
|
+
return React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8610
8055
|
null,
|
|
8611
|
-
quizzes[currentPage - 1] &&
|
|
8612
|
-
|
|
8056
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8057
|
+
React.Fragment,
|
|
8613
8058
|
null,
|
|
8614
|
-
|
|
8615
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8059
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8060
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8616
8061
|
'form',
|
|
8617
8062
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8618
8063
|
return e.preventDefault();
|
|
8619
8064
|
} },
|
|
8620
8065
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8621
|
-
return
|
|
8066
|
+
return React.createElement(
|
|
8622
8067
|
'div',
|
|
8623
8068
|
{ key: answer._key },
|
|
8624
|
-
|
|
8069
|
+
React.createElement(
|
|
8625
8070
|
'label',
|
|
8626
8071
|
{ className: 'pl-2' },
|
|
8627
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8072
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8628
8073
|
' ' + answer.answerText
|
|
8629
8074
|
)
|
|
8630
8075
|
);
|
|
8631
8076
|
})
|
|
8632
8077
|
)
|
|
8633
8078
|
),
|
|
8634
|
-
!showAnswer &&
|
|
8079
|
+
!showAnswer && React.createElement(
|
|
8635
8080
|
Button$1,
|
|
8636
8081
|
{ onClick: function onClick() {
|
|
8637
8082
|
return checkAnswers();
|
|
8638
8083
|
}, variant: 'info', block: true },
|
|
8639
8084
|
'Please click here for answer'
|
|
8640
8085
|
),
|
|
8641
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8642
|
-
|
|
8086
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8087
|
+
React.Fragment,
|
|
8643
8088
|
null,
|
|
8644
|
-
|
|
8089
|
+
React.createElement(
|
|
8645
8090
|
'h4',
|
|
8646
8091
|
null,
|
|
8647
8092
|
'Answer:'
|
|
8648
8093
|
),
|
|
8649
|
-
quizzes[currentPage - 1].answer &&
|
|
8094
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8650
8095
|
),
|
|
8651
|
-
|
|
8652
|
-
pageCount > 1 &&
|
|
8096
|
+
React.createElement('br', null),
|
|
8097
|
+
pageCount > 1 && React.createElement(
|
|
8653
8098
|
'div',
|
|
8654
8099
|
{ className: 'd-flex justify-content-center' },
|
|
8655
8100
|
renderPagination()
|
|
@@ -8660,10 +8105,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8660
8105
|
var Leads = function Leads(_ref) {
|
|
8661
8106
|
var url = _ref.url;
|
|
8662
8107
|
|
|
8663
|
-
return
|
|
8108
|
+
return React.createElement(
|
|
8664
8109
|
'div',
|
|
8665
8110
|
{ className: 'd-block text-center mb-3' },
|
|
8666
|
-
url &&
|
|
8111
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8667
8112
|
);
|
|
8668
8113
|
};
|
|
8669
8114
|
|
|
@@ -8684,8 +8129,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8684
8129
|
|
|
8685
8130
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8686
8131
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8687
|
-
carouselIndex = _useState2[0]
|
|
8688
|
-
|
|
8132
|
+
carouselIndex = _useState2[0];
|
|
8133
|
+
_useState2[1];
|
|
8689
8134
|
|
|
8690
8135
|
// useEffect(() => {
|
|
8691
8136
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8711,42 +8156,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8711
8156
|
}
|
|
8712
8157
|
};
|
|
8713
8158
|
|
|
8714
|
-
return
|
|
8159
|
+
return React.createElement(
|
|
8715
8160
|
'div',
|
|
8716
8161
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8717
|
-
|
|
8162
|
+
React.createElement(
|
|
8718
8163
|
Carousel,
|
|
8719
8164
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8720
8165
|
slides && slides.map(function (slide) {
|
|
8721
8166
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8722
|
-
return
|
|
8167
|
+
return React.createElement(
|
|
8723
8168
|
Carousel.Item,
|
|
8724
8169
|
{ key: slide._key },
|
|
8725
|
-
|
|
8170
|
+
React.createElement(
|
|
8726
8171
|
'a',
|
|
8727
8172
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8728
|
-
|
|
8173
|
+
React.createElement(
|
|
8729
8174
|
LazyLoad,
|
|
8730
8175
|
null,
|
|
8731
|
-
|
|
8176
|
+
React.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8732
8177
|
)
|
|
8733
8178
|
),
|
|
8734
|
-
|
|
8179
|
+
React.createElement(
|
|
8735
8180
|
'div',
|
|
8736
8181
|
{ className: 'p-2' },
|
|
8737
|
-
slide.slideshowImage.caption &&
|
|
8182
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8738
8183
|
'h3',
|
|
8739
8184
|
{ style: { padding: '0px' } },
|
|
8740
8185
|
slide.slideshowImage.caption
|
|
8741
8186
|
),
|
|
8742
|
-
slide.description &&
|
|
8187
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8743
8188
|
)
|
|
8744
8189
|
);
|
|
8745
8190
|
}
|
|
8746
8191
|
return null;
|
|
8747
8192
|
})
|
|
8748
8193
|
),
|
|
8749
|
-
|
|
8194
|
+
React.createElement(
|
|
8750
8195
|
'style',
|
|
8751
8196
|
{ jsx: 'true' },
|
|
8752
8197
|
'\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 '
|
|
@@ -8765,10 +8210,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8765
8210
|
sizes = _props$node.sizes,
|
|
8766
8211
|
sizeMapping = _props$node.sizeMapping;
|
|
8767
8212
|
|
|
8768
|
-
return
|
|
8213
|
+
return React.createElement(
|
|
8769
8214
|
'div',
|
|
8770
8215
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8771
|
-
|
|
8216
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8772
8217
|
);
|
|
8773
8218
|
};
|
|
8774
8219
|
|
|
@@ -8779,15 +8224,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8779
8224
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8780
8225
|
|
|
8781
8226
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8782
|
-
return
|
|
8227
|
+
return React.createElement(
|
|
8783
8228
|
'section',
|
|
8784
8229
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8785
|
-
Caption &&
|
|
8230
|
+
Caption && React.createElement(
|
|
8786
8231
|
'h4',
|
|
8787
8232
|
{ className: 'formstack-caption' },
|
|
8788
8233
|
Caption
|
|
8789
8234
|
),
|
|
8790
|
-
|
|
8235
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8791
8236
|
);
|
|
8792
8237
|
};
|
|
8793
8238
|
|
|
@@ -8807,29 +8252,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8807
8252
|
}
|
|
8808
8253
|
});
|
|
8809
8254
|
if (medias && medias.length > 0) {
|
|
8810
|
-
return
|
|
8255
|
+
return React.createElement(
|
|
8811
8256
|
'div',
|
|
8812
8257
|
{ className: 'multi-media-container' },
|
|
8813
|
-
|
|
8258
|
+
React.createElement(
|
|
8814
8259
|
Row$1,
|
|
8815
8260
|
{ noGutters: true },
|
|
8816
8261
|
medias.map(function (media) {
|
|
8817
|
-
return
|
|
8262
|
+
return React.createElement(
|
|
8818
8263
|
Col$1,
|
|
8819
8264
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8820
|
-
|
|
8265
|
+
React.createElement(
|
|
8821
8266
|
'a',
|
|
8822
|
-
_extends
|
|
8267
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8823
8268
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8824
|
-
|
|
8269
|
+
React.createElement(
|
|
8825
8270
|
'div',
|
|
8826
8271
|
{ className: 'multi-media-image-container' },
|
|
8827
|
-
imageBox &&
|
|
8272
|
+
imageBox && React.createElement(
|
|
8828
8273
|
LazyLoad,
|
|
8829
8274
|
{ once: true },
|
|
8830
|
-
|
|
8275
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8831
8276
|
),
|
|
8832
|
-
media.caption &&
|
|
8277
|
+
media.caption && React.createElement(
|
|
8833
8278
|
'span',
|
|
8834
8279
|
{ className: 'multi-media-caption' },
|
|
8835
8280
|
media.caption
|
|
@@ -8839,7 +8284,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8839
8284
|
);
|
|
8840
8285
|
})
|
|
8841
8286
|
),
|
|
8842
|
-
|
|
8287
|
+
React.createElement(
|
|
8843
8288
|
'style',
|
|
8844
8289
|
{ jsx: 'true' },
|
|
8845
8290
|
'\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 '
|
|
@@ -8886,7 +8331,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8886
8331
|
}
|
|
8887
8332
|
};
|
|
8888
8333
|
|
|
8889
|
-
_this.wraperRef =
|
|
8334
|
+
_this.wraperRef = React.createRef();
|
|
8890
8335
|
_this.visible = false;
|
|
8891
8336
|
return _this;
|
|
8892
8337
|
}
|
|
@@ -8914,7 +8359,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8914
8359
|
_props$id = _props.id,
|
|
8915
8360
|
id = _props$id === undefined ? '' : _props$id;
|
|
8916
8361
|
|
|
8917
|
-
return
|
|
8362
|
+
return React.createElement(
|
|
8918
8363
|
'div',
|
|
8919
8364
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8920
8365
|
this.props.children
|
|
@@ -8923,7 +8368,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8923
8368
|
}]);
|
|
8924
8369
|
|
|
8925
8370
|
return InscreenSensor;
|
|
8926
|
-
}(
|
|
8371
|
+
}(React.Component);
|
|
8927
8372
|
|
|
8928
8373
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8929
8374
|
var nodes = _ref.nodes,
|
|
@@ -9036,33 +8481,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9036
8481
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
9037
8482
|
var showReading = show ? 'showReading' : '';
|
|
9038
8483
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
9039
|
-
return
|
|
8484
|
+
return React.createElement(
|
|
9040
8485
|
'div',
|
|
9041
8486
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
9042
|
-
|
|
8487
|
+
React.createElement(
|
|
9043
8488
|
'a',
|
|
9044
8489
|
{ onClick: function onClick(e) {
|
|
9045
8490
|
return articleCardClickHandler(e);
|
|
9046
8491
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
9047
|
-
|
|
8492
|
+
React.createElement(
|
|
9048
8493
|
'div',
|
|
9049
8494
|
{ className: 'prevNext-thumbnail' },
|
|
9050
|
-
|
|
9051
|
-
|
|
8495
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8496
|
+
React.createElement(
|
|
9052
8497
|
'div',
|
|
9053
8498
|
{ className: 'prevNext-reading ' + showReading },
|
|
9054
8499
|
articleLabel
|
|
9055
8500
|
)
|
|
9056
8501
|
),
|
|
9057
|
-
|
|
8502
|
+
React.createElement(
|
|
9058
8503
|
'div',
|
|
9059
8504
|
{ className: 'prevNext-summary' },
|
|
9060
|
-
|
|
8505
|
+
React.createElement(
|
|
9061
8506
|
'div',
|
|
9062
8507
|
{ className: 'prevNext-publishDate' },
|
|
9063
8508
|
moment(article.published).format('LL')
|
|
9064
8509
|
),
|
|
9065
|
-
|
|
8510
|
+
React.createElement(
|
|
9066
8511
|
'h2',
|
|
9067
8512
|
{ className: 'prevNext-title' },
|
|
9068
8513
|
article.title
|
|
@@ -9111,7 +8556,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9111
8556
|
|
|
9112
8557
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
9113
8558
|
if (biography) {
|
|
9114
|
-
return
|
|
8559
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9115
8560
|
}
|
|
9116
8561
|
};
|
|
9117
8562
|
|
|
@@ -9197,7 +8642,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9197
8642
|
//console.log('useLayoutEffect')
|
|
9198
8643
|
if (!firstLoad) {
|
|
9199
8644
|
setUpArrowClicked(false);
|
|
9200
|
-
if (
|
|
8645
|
+
if (main_40) {
|
|
9201
8646
|
grabLoadedAds();
|
|
9202
8647
|
} else {
|
|
9203
8648
|
scrollToArticle();
|
|
@@ -9221,7 +8666,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9221
8666
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
9222
8667
|
if (pageview) pageview(path);
|
|
9223
8668
|
|
|
9224
|
-
if (!
|
|
8669
|
+
if (!main_40) {
|
|
9225
8670
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9226
8671
|
if (window.googletag && googletag.pubadsReady) {
|
|
9227
8672
|
lib_3.refresh();
|
|
@@ -9229,7 +8674,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9229
8674
|
});
|
|
9230
8675
|
}
|
|
9231
8676
|
//Refresh leaderboard ad on mobile
|
|
9232
|
-
if (
|
|
8677
|
+
if (main_40) {
|
|
9233
8678
|
var leaderboardSlotId = '';
|
|
9234
8679
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9235
8680
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -9269,38 +8714,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9269
8714
|
setSensorVisible(false);
|
|
9270
8715
|
};
|
|
9271
8716
|
|
|
9272
|
-
return
|
|
9273
|
-
|
|
8717
|
+
return React.createElement(
|
|
8718
|
+
React.Fragment,
|
|
9274
8719
|
null,
|
|
9275
|
-
|
|
8720
|
+
React.createElement(
|
|
9276
8721
|
'div',
|
|
9277
8722
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
9278
|
-
|
|
8723
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
9279
8724
|
return handleArrowClick();
|
|
9280
8725
|
} })
|
|
9281
8726
|
),
|
|
9282
|
-
|
|
9283
|
-
|
|
8727
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8728
|
+
React.createElement(
|
|
9284
8729
|
'div',
|
|
9285
8730
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9286
|
-
|
|
8731
|
+
React.createElement(
|
|
9287
8732
|
'h5',
|
|
9288
8733
|
{ className: 'objective-title' },
|
|
9289
8734
|
nodes.seriesTitle
|
|
9290
8735
|
),
|
|
9291
|
-
|
|
8736
|
+
React.createElement(
|
|
9292
8737
|
'div',
|
|
9293
8738
|
{ className: 'prevNextWrapper' },
|
|
9294
8739
|
PrevNextCards(false, -1)
|
|
9295
8740
|
)
|
|
9296
8741
|
),
|
|
9297
|
-
|
|
9298
|
-
|
|
8742
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8743
|
+
React.createElement(
|
|
9299
8744
|
'div',
|
|
9300
8745
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9301
|
-
|
|
8746
|
+
main_40 && Ads.map(function (ad, index) {
|
|
9302
8747
|
if (index === 0) {
|
|
9303
|
-
return
|
|
8748
|
+
return React.createElement(
|
|
9304
8749
|
'div',
|
|
9305
8750
|
{
|
|
9306
8751
|
key: 'addid-1',
|
|
@@ -9320,14 +8765,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9320
8765
|
}
|
|
9321
8766
|
})
|
|
9322
8767
|
),
|
|
9323
|
-
|
|
8768
|
+
React.createElement(
|
|
9324
8769
|
'div',
|
|
9325
8770
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
9326
8771
|
Articles.map(function (article, index) {
|
|
9327
|
-
return
|
|
8772
|
+
return React.createElement(
|
|
9328
8773
|
'div',
|
|
9329
8774
|
{ key: article.title },
|
|
9330
|
-
|
|
8775
|
+
React.createElement(
|
|
9331
8776
|
InscreenSensor,
|
|
9332
8777
|
{
|
|
9333
8778
|
visible: sensorVisible,
|
|
@@ -9345,84 +8790,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9345
8790
|
}
|
|
9346
8791
|
}
|
|
9347
8792
|
} },
|
|
9348
|
-
|
|
8793
|
+
React.createElement(
|
|
9349
8794
|
Head,
|
|
9350
8795
|
null,
|
|
9351
|
-
currentTitle !== null &&
|
|
8796
|
+
currentTitle !== null && React.createElement(
|
|
9352
8797
|
'title',
|
|
9353
8798
|
{ key: 'title' },
|
|
9354
8799
|
currentTitle
|
|
9355
8800
|
),
|
|
9356
|
-
currentSummary !== null &&
|
|
9357
|
-
currentURL !== null &&
|
|
9358
|
-
currentTitle !== null &&
|
|
9359
|
-
currentThumbnail !== null &&
|
|
9360
|
-
currentSummary !== null &&
|
|
9361
|
-
currentTitle !== null &&
|
|
9362
|
-
currentThumbnail !== null &&
|
|
9363
|
-
currentSummary !== null &&
|
|
8801
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8802
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8803
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8804
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8805
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8806
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8807
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8808
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
9364
8809
|
),
|
|
9365
|
-
|
|
8810
|
+
React.createElement(
|
|
9366
8811
|
'article',
|
|
9367
8812
|
{ className: 'article-wrapper' },
|
|
9368
|
-
|
|
8813
|
+
React.createElement(
|
|
9369
8814
|
'div',
|
|
9370
8815
|
{ className: 'article-publishDate' },
|
|
9371
8816
|
moment(article.published).format('LL')
|
|
9372
8817
|
),
|
|
9373
|
-
|
|
8818
|
+
React.createElement(
|
|
9374
8819
|
'div',
|
|
9375
8820
|
{ className: 'author-details-wrapper' },
|
|
9376
8821
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
9377
|
-
return
|
|
8822
|
+
return React.createElement(
|
|
9378
8823
|
'span',
|
|
9379
8824
|
{ key: index },
|
|
9380
8825
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
9381
8826
|
);
|
|
9382
8827
|
})
|
|
9383
8828
|
),
|
|
9384
|
-
|
|
8829
|
+
React.createElement(
|
|
9385
8830
|
'h2',
|
|
9386
8831
|
{ className: 'article-title' },
|
|
9387
8832
|
article.title
|
|
9388
8833
|
),
|
|
9389
|
-
|
|
8834
|
+
React.createElement(
|
|
9390
8835
|
'div',
|
|
9391
8836
|
{ className: 'mt-2 mb-2' },
|
|
9392
|
-
|
|
8837
|
+
React.createElement(BlockContent, _extends({
|
|
9393
8838
|
serializers: getSerializers,
|
|
9394
8839
|
videoAccountIDs: accountIDs,
|
|
9395
8840
|
blocks: article.text,
|
|
9396
8841
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
9397
8842
|
}, client.config())),
|
|
9398
|
-
|
|
8843
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
9399
8844
|
),
|
|
9400
|
-
Articles.length > 1 &&
|
|
9401
|
-
|
|
8845
|
+
Articles.length > 1 && React.createElement(
|
|
8846
|
+
React.Fragment,
|
|
9402
8847
|
null,
|
|
9403
|
-
|
|
8848
|
+
React.createElement(
|
|
9404
8849
|
'div',
|
|
9405
8850
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9406
|
-
|
|
8851
|
+
React.createElement(
|
|
9407
8852
|
'h5',
|
|
9408
8853
|
{ className: 'objective-title' },
|
|
9409
8854
|
nodes.seriesTitle
|
|
9410
8855
|
),
|
|
9411
|
-
|
|
8856
|
+
React.createElement(
|
|
9412
8857
|
'div',
|
|
9413
8858
|
{ className: 'prevNextWrapper' },
|
|
9414
8859
|
PrevNextCards(true, index)
|
|
9415
8860
|
)
|
|
9416
8861
|
),
|
|
9417
|
-
|
|
8862
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
9418
8863
|
)
|
|
9419
8864
|
),
|
|
9420
|
-
|
|
8865
|
+
React.createElement(
|
|
9421
8866
|
'div',
|
|
9422
8867
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9423
|
-
|
|
8868
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
9424
8869
|
if (innerIndex === 0) {
|
|
9425
|
-
return
|
|
8870
|
+
return React.createElement(
|
|
9426
8871
|
'div',
|
|
9427
8872
|
{
|
|
9428
8873
|
key: 'addid-' + (index + 2),
|
|
@@ -9445,7 +8890,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9445
8890
|
)
|
|
9446
8891
|
);
|
|
9447
8892
|
}),
|
|
9448
|
-
|
|
8893
|
+
React.createElement(
|
|
9449
8894
|
'style',
|
|
9450
8895
|
{ jsx: 'true' },
|
|
9451
8896
|
'\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 '
|
|
@@ -9475,11 +8920,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
9475
8920
|
};
|
|
9476
8921
|
}, [handleClickOutside]);
|
|
9477
8922
|
|
|
9478
|
-
return
|
|
8923
|
+
return React.createElement(
|
|
9479
8924
|
'div',
|
|
9480
8925
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9481
|
-
|
|
9482
|
-
|
|
8926
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8927
|
+
React.createElement(
|
|
9483
8928
|
'style',
|
|
9484
8929
|
{ jsx: 'true' },
|
|
9485
8930
|
'\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 '
|
|
@@ -9573,13 +9018,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9573
9018
|
|
|
9574
9019
|
var FigureCaption = useCallback(function () {
|
|
9575
9020
|
if (imgcaption && imgcaption.length > 0) {
|
|
9576
|
-
return
|
|
9021
|
+
return React.createElement(
|
|
9577
9022
|
'div',
|
|
9578
9023
|
{ className: 'figure-caption' },
|
|
9579
|
-
|
|
9024
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9580
9025
|
);
|
|
9581
9026
|
} else if (caption) {
|
|
9582
|
-
return
|
|
9027
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9583
9028
|
} else return null;
|
|
9584
9029
|
}, [caption, imgcaption]);
|
|
9585
9030
|
|
|
@@ -9591,21 +9036,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9591
9036
|
margin: figureMargin
|
|
9592
9037
|
};
|
|
9593
9038
|
|
|
9594
|
-
return
|
|
9595
|
-
|
|
9039
|
+
return React.createElement(
|
|
9040
|
+
React.Fragment,
|
|
9596
9041
|
null,
|
|
9597
|
-
|
|
9598
|
-
Figure$
|
|
9042
|
+
React.createElement(
|
|
9043
|
+
Figure$2,
|
|
9599
9044
|
{ className: '' + class_name, style: figureStyle },
|
|
9600
|
-
link ?
|
|
9045
|
+
link ? React.createElement(
|
|
9601
9046
|
'a',
|
|
9602
9047
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
) :
|
|
9606
|
-
|
|
9048
|
+
React.createElement(Figure$2.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9049
|
+
React.createElement(FigureCaption, null)
|
|
9050
|
+
) : React.createElement(
|
|
9051
|
+
React.Fragment,
|
|
9607
9052
|
null,
|
|
9608
|
-
|
|
9053
|
+
React.createElement(Figure$2.Image, {
|
|
9609
9054
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9610
9055
|
className: 'figure-image',
|
|
9611
9056
|
src: urlFor$3(node, client).url(),
|
|
@@ -9615,9 +9060,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9615
9060
|
setShowLightbox(true);
|
|
9616
9061
|
}
|
|
9617
9062
|
}),
|
|
9618
|
-
|
|
9063
|
+
React.createElement(FigureCaption, null)
|
|
9619
9064
|
),
|
|
9620
|
-
|
|
9065
|
+
React.createElement(LightBox, {
|
|
9621
9066
|
showLightbox: showLightbox,
|
|
9622
9067
|
lightboxImgSrc: lightboxImgSrc,
|
|
9623
9068
|
closeLightbox: function closeLightbox() {
|
|
@@ -9626,7 +9071,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9626
9071
|
}
|
|
9627
9072
|
})
|
|
9628
9073
|
),
|
|
9629
|
-
|
|
9074
|
+
React.createElement(
|
|
9630
9075
|
'style',
|
|
9631
9076
|
{ jsx: 'true' },
|
|
9632
9077
|
'\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 '
|
|
@@ -9634,7 +9079,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9634
9079
|
);
|
|
9635
9080
|
};
|
|
9636
9081
|
|
|
9637
|
-
var Figure =
|
|
9082
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9638
9083
|
|
|
9639
9084
|
var urlFor$4 = function urlFor(source, client) {
|
|
9640
9085
|
var builder = imageUrlBuilder(client);
|
|
@@ -9680,47 +9125,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9680
9125
|
imgcaption = _ref.imgcaption;
|
|
9681
9126
|
|
|
9682
9127
|
if (imgcaption && imgcaption.length > 0) {
|
|
9683
|
-
return
|
|
9128
|
+
return React.createElement(
|
|
9684
9129
|
'div',
|
|
9685
9130
|
{ className: 'multi-figure-caption' },
|
|
9686
|
-
|
|
9131
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9687
9132
|
);
|
|
9688
9133
|
} else if (caption) {
|
|
9689
|
-
return
|
|
9134
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9690
9135
|
} else return null;
|
|
9691
9136
|
};
|
|
9692
9137
|
|
|
9693
9138
|
if (images && images.length > 0) {
|
|
9694
|
-
return
|
|
9139
|
+
return React.createElement(
|
|
9695
9140
|
'div',
|
|
9696
9141
|
{ className: 'multi-figure-container' },
|
|
9697
|
-
|
|
9142
|
+
React.createElement(
|
|
9698
9143
|
Row$1,
|
|
9699
9144
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9700
9145
|
images.map(function (image, index) {
|
|
9701
|
-
return
|
|
9146
|
+
return React.createElement(
|
|
9702
9147
|
Col$1,
|
|
9703
9148
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9704
|
-
image.link ?
|
|
9149
|
+
image.link ? React.createElement(
|
|
9705
9150
|
'a',
|
|
9706
|
-
_extends
|
|
9707
|
-
|
|
9151
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9152
|
+
React.createElement(
|
|
9708
9153
|
'div',
|
|
9709
9154
|
{ className: 'multi-figure-image-container' },
|
|
9710
|
-
|
|
9155
|
+
React.createElement(
|
|
9711
9156
|
LazyLoad,
|
|
9712
9157
|
{ once: true },
|
|
9713
|
-
|
|
9158
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9714
9159
|
),
|
|
9715
|
-
|
|
9160
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9716
9161
|
)
|
|
9717
|
-
) :
|
|
9162
|
+
) : React.createElement(
|
|
9718
9163
|
'div',
|
|
9719
9164
|
{ className: 'multi-figure-image-container' },
|
|
9720
|
-
|
|
9165
|
+
React.createElement(
|
|
9721
9166
|
LazyLoad,
|
|
9722
9167
|
{ once: true },
|
|
9723
|
-
|
|
9168
|
+
React.createElement('img', {
|
|
9724
9169
|
'images-count': images.length,
|
|
9725
9170
|
className: 'multi-figure-image',
|
|
9726
9171
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9731,17 +9176,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9731
9176
|
}
|
|
9732
9177
|
})
|
|
9733
9178
|
),
|
|
9734
|
-
|
|
9179
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9735
9180
|
)
|
|
9736
9181
|
);
|
|
9737
9182
|
})
|
|
9738
9183
|
),
|
|
9739
|
-
|
|
9184
|
+
React.createElement(
|
|
9740
9185
|
'div',
|
|
9741
9186
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9742
|
-
|
|
9187
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9743
9188
|
),
|
|
9744
|
-
|
|
9189
|
+
React.createElement(
|
|
9745
9190
|
'style',
|
|
9746
9191
|
{ jsx: 'true' },
|
|
9747
9192
|
'\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 }\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 '
|
|
@@ -9763,265 +9208,13 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9763
9208
|
|
|
9764
9209
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9765
9210
|
|
|
9766
|
-
return
|
|
9211
|
+
return React.createElement(
|
|
9767
9212
|
'div',
|
|
9768
9213
|
{ id: elementId },
|
|
9769
|
-
|
|
9214
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9770
9215
|
);
|
|
9771
9216
|
};
|
|
9772
9217
|
|
|
9773
|
-
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9774
|
-
|
|
9775
|
-
exports.__esModule = true;
|
|
9776
|
-
|
|
9777
|
-
exports.default = function (obj, keys) {
|
|
9778
|
-
var target = {};
|
|
9779
|
-
|
|
9780
|
-
for (var i in obj) {
|
|
9781
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
9782
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9783
|
-
target[i] = obj[i];
|
|
9784
|
-
}
|
|
9785
|
-
|
|
9786
|
-
return target;
|
|
9787
|
-
};
|
|
9788
|
-
});
|
|
9789
|
-
|
|
9790
|
-
unwrapExports(objectWithoutProperties);
|
|
9791
|
-
|
|
9792
|
-
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9793
|
-
|
|
9794
|
-
exports.__esModule = true;
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
var _inherits3 = _interopRequireDefault(inherits$2);
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9823
|
-
|
|
9824
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9825
|
-
var noop = function noop() {};
|
|
9826
|
-
|
|
9827
|
-
var ScriptTag = function (_Component) {
|
|
9828
|
-
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9829
|
-
|
|
9830
|
-
ScriptTag.removeNode = function removeNode(node) {
|
|
9831
|
-
if (node) {
|
|
9832
|
-
node.parentNode.removeChild(node);
|
|
9833
|
-
}
|
|
9834
|
-
};
|
|
9835
|
-
|
|
9836
|
-
function ScriptTag(props, context) {
|
|
9837
|
-
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9838
|
-
|
|
9839
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9840
|
-
|
|
9841
|
-
_this.domRef = null;
|
|
9842
|
-
_this.state = {
|
|
9843
|
-
isHydrated: props.isHydrating,
|
|
9844
|
-
additionalNode: null,
|
|
9845
|
-
removeAdditionalNode: null
|
|
9846
|
-
};
|
|
9847
|
-
return _this;
|
|
9848
|
-
}
|
|
9849
|
-
|
|
9850
|
-
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9851
|
-
var _props = this.props,
|
|
9852
|
-
onError = _props.onError,
|
|
9853
|
-
onLoad = _props.onLoad,
|
|
9854
|
-
nonce = _props.nonce;
|
|
9855
|
-
|
|
9856
|
-
// Create a new HTML script element
|
|
9857
|
-
|
|
9858
|
-
var newElement = document.createElement("script");
|
|
9859
|
-
|
|
9860
|
-
// Copy all attribute values
|
|
9861
|
-
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9862
|
-
var attr = this.domRef.attributes[i];
|
|
9863
|
-
if (attr.nodeName === 'nonce') {
|
|
9864
|
-
// The browser clears the nonce value - grab from props
|
|
9865
|
-
newElement.setAttribute(attr.nodeName, nonce);
|
|
9866
|
-
} else {
|
|
9867
|
-
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9868
|
-
}
|
|
9869
|
-
}
|
|
9870
|
-
|
|
9871
|
-
// Copy the inner script
|
|
9872
|
-
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9873
|
-
newElement.innerHTML = this.domRef.innerHTML;
|
|
9874
|
-
}
|
|
9875
|
-
|
|
9876
|
-
// Bind event listeners
|
|
9877
|
-
newElement.addEventListener('load', onLoad);
|
|
9878
|
-
newElement.addEventListener('error', onError);
|
|
9879
|
-
|
|
9880
|
-
// Append the new script tag
|
|
9881
|
-
this.domRef.parentNode.appendChild(newElement);
|
|
9882
|
-
return newElement;
|
|
9883
|
-
};
|
|
9884
|
-
|
|
9885
|
-
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9886
|
-
var isHydrated = this.state.isHydrated;
|
|
9887
|
-
|
|
9888
|
-
if (isHydrated) {
|
|
9889
|
-
// was rendered on server, don't replace elements when hydrating
|
|
9890
|
-
return;
|
|
9891
|
-
}
|
|
9892
|
-
|
|
9893
|
-
this.setState({
|
|
9894
|
-
additionalNode: this.appendAdditionalElement(),
|
|
9895
|
-
removeAdditionalNode: null
|
|
9896
|
-
});
|
|
9897
|
-
};
|
|
9898
|
-
|
|
9899
|
-
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9900
|
-
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9901
|
-
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9902
|
-
|
|
9903
|
-
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9904
|
-
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9905
|
-
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9906
|
-
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9907
|
-
// This really complicates the component - for now we'll leave it as is.
|
|
9908
|
-
var _props2 = this.props,
|
|
9909
|
-
src = _props2.src,
|
|
9910
|
-
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9911
|
-
|
|
9912
|
-
if (src && src === nextProps.src) {
|
|
9913
|
-
// The 'src' attribute has not changed
|
|
9914
|
-
return;
|
|
9915
|
-
}
|
|
9916
|
-
|
|
9917
|
-
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9918
|
-
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9919
|
-
return;
|
|
9920
|
-
}
|
|
9921
|
-
|
|
9922
|
-
this.setState({
|
|
9923
|
-
removeAdditionalNode: this.state.additionalNode,
|
|
9924
|
-
additionalNode: null
|
|
9925
|
-
});
|
|
9926
|
-
};
|
|
9927
|
-
|
|
9928
|
-
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9929
|
-
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9930
|
-
};
|
|
9931
|
-
|
|
9932
|
-
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9933
|
-
var _state = this.state,
|
|
9934
|
-
additionalNode = _state.additionalNode,
|
|
9935
|
-
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9936
|
-
|
|
9937
|
-
if (additionalNode === null) {
|
|
9938
|
-
this.setState({
|
|
9939
|
-
additionalNode: this.appendAdditionalElement()
|
|
9940
|
-
});
|
|
9941
|
-
}
|
|
9942
|
-
|
|
9943
|
-
if (removeAdditionalNode !== null) {
|
|
9944
|
-
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9945
|
-
this.setState({
|
|
9946
|
-
removeAdditionalNode: null
|
|
9947
|
-
});
|
|
9948
|
-
}
|
|
9949
|
-
};
|
|
9950
|
-
|
|
9951
|
-
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9952
|
-
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9953
|
-
ScriptTag.removeNode(this.state.additionalNode);
|
|
9954
|
-
};
|
|
9955
|
-
|
|
9956
|
-
ScriptTag.prototype.render = function render() {
|
|
9957
|
-
var _this2 = this;
|
|
9958
|
-
|
|
9959
|
-
var additionalNode = this.state.additionalNode;
|
|
9960
|
-
|
|
9961
|
-
if (additionalNode !== null) {
|
|
9962
|
-
return null;
|
|
9963
|
-
}
|
|
9964
|
-
|
|
9965
|
-
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9966
|
-
// eslint-disable-next-line no-unused-vars
|
|
9967
|
-
var _props3 = this.props,
|
|
9968
|
-
isHydrating = _props3.isHydrating,
|
|
9969
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9970
|
-
|
|
9971
|
-
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9972
|
-
return _this2.domRef = tag;
|
|
9973
|
-
} }));
|
|
9974
|
-
};
|
|
9975
|
-
|
|
9976
|
-
return ScriptTag;
|
|
9977
|
-
}(React__default.Component);
|
|
9978
|
-
|
|
9979
|
-
ScriptTag.propTypes = {
|
|
9980
|
-
/**
|
|
9981
|
-
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9982
|
-
*/
|
|
9983
|
-
isHydrating: _propTypes2.default.bool,
|
|
9984
|
-
|
|
9985
|
-
// Standard <script> tag props
|
|
9986
|
-
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9987
|
-
crossOrigin: _propTypes2.default.string,
|
|
9988
|
-
defer: _propTypes2.default.bool,
|
|
9989
|
-
integrity: _propTypes2.default.string,
|
|
9990
|
-
nonce: _propTypes2.default.string,
|
|
9991
|
-
src: _propTypes2.default.string,
|
|
9992
|
-
text: _propTypes2.default.string,
|
|
9993
|
-
type: _propTypes2.default.string,
|
|
9994
|
-
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9995
|
-
|
|
9996
|
-
// globals
|
|
9997
|
-
onError: _propTypes2.default.func,
|
|
9998
|
-
onLoad: _propTypes2.default.func
|
|
9999
|
-
};
|
|
10000
|
-
ScriptTag.defaultProps = {
|
|
10001
|
-
isHydrating: false,
|
|
10002
|
-
onError: noop,
|
|
10003
|
-
onLoad: noop
|
|
10004
|
-
};
|
|
10005
|
-
exports.default = ScriptTag;
|
|
10006
|
-
});
|
|
10007
|
-
|
|
10008
|
-
unwrapExports(ScriptTag_1);
|
|
10009
|
-
|
|
10010
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
10011
|
-
|
|
10012
|
-
exports.__esModule = true;
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
10017
|
-
|
|
10018
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10019
|
-
|
|
10020
|
-
exports.default = _ScriptTag2.default;
|
|
10021
|
-
});
|
|
10022
|
-
|
|
10023
|
-
var ScriptTag = unwrapExports(lib);
|
|
10024
|
-
|
|
10025
9218
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
10026
9219
|
|
|
10027
9220
|
var FormAssembly = function FormAssembly(_ref) {
|
|
@@ -10044,11 +9237,11 @@ var FormAssembly = function FormAssembly(_ref) {
|
|
|
10044
9237
|
}, 1000);
|
|
10045
9238
|
}, []);
|
|
10046
9239
|
|
|
10047
|
-
return
|
|
9240
|
+
return React.createElement(
|
|
10048
9241
|
'section',
|
|
10049
9242
|
{ ref: formAssemblyRef, className: 'form-assembly' },
|
|
10050
|
-
|
|
10051
|
-
|
|
9243
|
+
React.createElement('iframe', { src: 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID, height: '800', width: '100%', frameBorder: '0' }),
|
|
9244
|
+
React.createElement(ScriptTag, { src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10052
9245
|
);
|
|
10053
9246
|
};
|
|
10054
9247
|
|
|
@@ -10082,27 +9275,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
10082
9275
|
return window.removeEventListener('resize', handleResize);
|
|
10083
9276
|
};
|
|
10084
9277
|
}, []);
|
|
10085
|
-
return
|
|
9278
|
+
return React.createElement(
|
|
10086
9279
|
'div',
|
|
10087
9280
|
{ className: 'blockTableHolder', ref: holder },
|
|
10088
|
-
|
|
9281
|
+
React.createElement(
|
|
10089
9282
|
'div',
|
|
10090
9283
|
{ className: 'blockTable' },
|
|
10091
9284
|
rows && rows.map(function (row) {
|
|
10092
|
-
return
|
|
9285
|
+
return React.createElement(
|
|
10093
9286
|
'div',
|
|
10094
9287
|
{ className: 'blockTableRow' },
|
|
10095
9288
|
row.cells && row.cells.map(function (cell) {
|
|
10096
|
-
return
|
|
9289
|
+
return React.createElement(
|
|
10097
9290
|
'div',
|
|
10098
9291
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10099
|
-
|
|
9292
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10100
9293
|
);
|
|
10101
9294
|
})
|
|
10102
9295
|
);
|
|
10103
9296
|
})
|
|
10104
9297
|
),
|
|
10105
|
-
|
|
9298
|
+
React.createElement(
|
|
10106
9299
|
'style',
|
|
10107
9300
|
{ jsx: true },
|
|
10108
9301
|
'\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 '
|
|
@@ -10181,12 +9374,12 @@ var getSerializers = function getSerializers() {
|
|
|
10181
9374
|
var node = _ref.node;
|
|
10182
9375
|
var url = node.url;
|
|
10183
9376
|
|
|
10184
|
-
return
|
|
9377
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
10185
9378
|
},
|
|
10186
9379
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
10187
9380
|
var node = _ref2.node;
|
|
10188
9381
|
|
|
10189
|
-
return
|
|
9382
|
+
return React.createElement(YouTubeGallery, {
|
|
10190
9383
|
nodes: node,
|
|
10191
9384
|
article: article,
|
|
10192
9385
|
meta: meta,
|
|
@@ -10200,7 +9393,7 @@ var getSerializers = function getSerializers() {
|
|
|
10200
9393
|
articleSeries: function articleSeries(_ref3) {
|
|
10201
9394
|
var node = _ref3.node;
|
|
10202
9395
|
|
|
10203
|
-
return
|
|
9396
|
+
return React.createElement(ArticleSeries, {
|
|
10204
9397
|
nodes: node,
|
|
10205
9398
|
accountIDs: videoAccountIDs || {},
|
|
10206
9399
|
pageview: pageview,
|
|
@@ -10213,61 +9406,61 @@ var getSerializers = function getSerializers() {
|
|
|
10213
9406
|
figure: function figure(_ref4) {
|
|
10214
9407
|
var node = _ref4.node;
|
|
10215
9408
|
|
|
10216
|
-
return
|
|
9409
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10217
9410
|
},
|
|
10218
9411
|
multifigure: function multifigure(_ref5) {
|
|
10219
9412
|
var node = _ref5.node;
|
|
10220
9413
|
|
|
10221
|
-
return
|
|
9414
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10222
9415
|
},
|
|
10223
9416
|
slideshow: function slideshow(_ref6) {
|
|
10224
9417
|
var node = _ref6.node;
|
|
10225
9418
|
var slides = node.slides;
|
|
10226
9419
|
|
|
10227
|
-
return
|
|
9420
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10228
9421
|
},
|
|
10229
9422
|
sidebar: function sidebar(_ref7) {
|
|
10230
9423
|
var node = _ref7.node;
|
|
10231
9424
|
var caption = node.caption,
|
|
10232
9425
|
content = node.content;
|
|
10233
9426
|
|
|
10234
|
-
return
|
|
9427
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
10235
9428
|
},
|
|
10236
9429
|
datatable: function datatable(_ref8) {
|
|
10237
9430
|
var node = _ref8.node;
|
|
10238
9431
|
var table = node.table;
|
|
10239
9432
|
|
|
10240
|
-
return
|
|
9433
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
10241
9434
|
},
|
|
10242
9435
|
media: function media(_ref9) {
|
|
10243
9436
|
var node = _ref9.node;
|
|
10244
9437
|
|
|
10245
|
-
return
|
|
9438
|
+
return React.createElement(Media, { node: node, client: client });
|
|
10246
9439
|
},
|
|
10247
9440
|
iframe: function iframe(_ref10) {
|
|
10248
9441
|
var node = _ref10.node;
|
|
10249
9442
|
|
|
10250
|
-
return
|
|
9443
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10251
9444
|
},
|
|
10252
9445
|
video: function video(_ref11) {
|
|
10253
9446
|
var node = _ref11.node;
|
|
10254
9447
|
|
|
10255
|
-
return
|
|
9448
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10256
9449
|
},
|
|
10257
9450
|
audio: function audio(_ref12) {
|
|
10258
9451
|
var node = _ref12.node;
|
|
10259
9452
|
|
|
10260
|
-
return
|
|
9453
|
+
return React.createElement(Audio, { node: node });
|
|
10261
9454
|
},
|
|
10262
9455
|
poll: function poll(_ref13) {
|
|
10263
9456
|
var node = _ref13.node;
|
|
10264
9457
|
|
|
10265
|
-
return
|
|
9458
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
10266
9459
|
},
|
|
10267
9460
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10268
9461
|
var node = _ref14.node;
|
|
10269
9462
|
|
|
10270
|
-
return
|
|
9463
|
+
return React.createElement(Poll$1, {
|
|
10271
9464
|
node: node,
|
|
10272
9465
|
client: client,
|
|
10273
9466
|
pageview: pageview,
|
|
@@ -10281,35 +9474,35 @@ var getSerializers = function getSerializers() {
|
|
|
10281
9474
|
var node = _ref15.node;
|
|
10282
9475
|
var quizzes = node.quizzes;
|
|
10283
9476
|
|
|
10284
|
-
return
|
|
9477
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10285
9478
|
},
|
|
10286
9479
|
leads: function leads(_ref16) {
|
|
10287
9480
|
var node = _ref16.node;
|
|
10288
9481
|
var leadID = node.leadID;
|
|
10289
9482
|
|
|
10290
9483
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10291
|
-
return
|
|
9484
|
+
return React.createElement(Leads, { url: url });
|
|
10292
9485
|
},
|
|
10293
9486
|
slideshows: function slideshows(_ref17) {
|
|
10294
9487
|
var node = _ref17.node;
|
|
10295
9488
|
|
|
10296
|
-
return
|
|
9489
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10297
9490
|
},
|
|
10298
9491
|
nativeAd: function nativeAd(_ref18) {
|
|
10299
9492
|
var node = _ref18.node;
|
|
10300
9493
|
|
|
10301
|
-
return
|
|
9494
|
+
return React.createElement(NativeAd, { node: node });
|
|
10302
9495
|
},
|
|
10303
9496
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10304
9497
|
var node = _ref19.node;
|
|
10305
9498
|
|
|
10306
|
-
return
|
|
9499
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10307
9500
|
},
|
|
10308
9501
|
hrtag: function hrtag() {
|
|
10309
|
-
return
|
|
9502
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10310
9503
|
},
|
|
10311
9504
|
brtag: function brtag() {
|
|
10312
|
-
return
|
|
9505
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10313
9506
|
},
|
|
10314
9507
|
formstack: function formstack(_ref20) {
|
|
10315
9508
|
var node = _ref20.node;
|
|
@@ -10317,33 +9510,33 @@ var getSerializers = function getSerializers() {
|
|
|
10317
9510
|
Caption = node.Caption,
|
|
10318
9511
|
needSegmentSupport = node.needSegmentSupport;
|
|
10319
9512
|
|
|
10320
|
-
return
|
|
9513
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10321
9514
|
},
|
|
10322
9515
|
formassembly: function formassembly(_ref21) {
|
|
10323
9516
|
var node = _ref21.node;
|
|
10324
9517
|
|
|
10325
|
-
return
|
|
9518
|
+
return React.createElement(FormAssembly, { node: node });
|
|
10326
9519
|
},
|
|
10327
9520
|
multimedia: function multimedia(_ref22) {
|
|
10328
9521
|
var node = _ref22.node;
|
|
10329
9522
|
|
|
10330
|
-
return
|
|
9523
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10331
9524
|
},
|
|
10332
9525
|
blockTable: function blockTable(_ref23) {
|
|
10333
9526
|
var node = _ref23.node;
|
|
10334
|
-
return
|
|
9527
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10335
9528
|
}
|
|
10336
9529
|
},
|
|
10337
9530
|
marks: {
|
|
10338
9531
|
superscript: function superscript(props) {
|
|
10339
|
-
return
|
|
9532
|
+
return React.createElement(
|
|
10340
9533
|
'sup',
|
|
10341
9534
|
null,
|
|
10342
9535
|
props.children
|
|
10343
9536
|
);
|
|
10344
9537
|
},
|
|
10345
9538
|
subscript: function subscript(props) {
|
|
10346
|
-
return
|
|
9539
|
+
return React.createElement(
|
|
10347
9540
|
'sub',
|
|
10348
9541
|
null,
|
|
10349
9542
|
props.children
|
|
@@ -10359,7 +9552,7 @@ var getSerializers = function getSerializers() {
|
|
|
10359
9552
|
if (href && href.charAt(0) === '#') {
|
|
10360
9553
|
var elementId = href.slice(1);
|
|
10361
9554
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10362
|
-
return
|
|
9555
|
+
return React.createElement(
|
|
10363
9556
|
'a',
|
|
10364
9557
|
{ onClick: function onClick() {
|
|
10365
9558
|
return ScrollToElement(elementId);
|
|
@@ -10369,7 +9562,7 @@ var getSerializers = function getSerializers() {
|
|
|
10369
9562
|
}
|
|
10370
9563
|
|
|
10371
9564
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10372
|
-
return
|
|
9565
|
+
return React.createElement(
|
|
10373
9566
|
'a',
|
|
10374
9567
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
10375
9568
|
children
|
|
@@ -10377,7 +9570,7 @@ var getSerializers = function getSerializers() {
|
|
|
10377
9570
|
},
|
|
10378
9571
|
alignleft: function alignleft(_ref24) {
|
|
10379
9572
|
var children = _ref24.children;
|
|
10380
|
-
return
|
|
9573
|
+
return React.createElement(
|
|
10381
9574
|
'div',
|
|
10382
9575
|
{ style: { textAlign: 'left' } },
|
|
10383
9576
|
children
|
|
@@ -10385,7 +9578,7 @@ var getSerializers = function getSerializers() {
|
|
|
10385
9578
|
},
|
|
10386
9579
|
alignright: function alignright(_ref25) {
|
|
10387
9580
|
var children = _ref25.children;
|
|
10388
|
-
return
|
|
9581
|
+
return React.createElement(
|
|
10389
9582
|
'div',
|
|
10390
9583
|
{ style: { textAlign: 'right' } },
|
|
10391
9584
|
children
|
|
@@ -10393,7 +9586,7 @@ var getSerializers = function getSerializers() {
|
|
|
10393
9586
|
},
|
|
10394
9587
|
aligncenter: function aligncenter(_ref26) {
|
|
10395
9588
|
var children = _ref26.children;
|
|
10396
|
-
return
|
|
9589
|
+
return React.createElement(
|
|
10397
9590
|
'div',
|
|
10398
9591
|
{ style: { textAlign: 'center' } },
|
|
10399
9592
|
children
|
|
@@ -10401,7 +9594,7 @@ var getSerializers = function getSerializers() {
|
|
|
10401
9594
|
},
|
|
10402
9595
|
alignjustify: function alignjustify(_ref27) {
|
|
10403
9596
|
var children = _ref27.children;
|
|
10404
|
-
return
|
|
9597
|
+
return React.createElement(
|
|
10405
9598
|
'div',
|
|
10406
9599
|
{ style: { textAlign: 'justify' } },
|
|
10407
9600
|
children
|
|
@@ -10411,7 +9604,7 @@ var getSerializers = function getSerializers() {
|
|
|
10411
9604
|
var children = props.children,
|
|
10412
9605
|
color = props.mark.color;
|
|
10413
9606
|
|
|
10414
|
-
return
|
|
9607
|
+
return React.createElement(
|
|
10415
9608
|
'span',
|
|
10416
9609
|
{ style: { color: color ? color.hex : null } },
|
|
10417
9610
|
children
|